powered by
Creates a Commodity Object with the relevant info needed to calculate the Exposure-at-Default (EAD)
An object of type Commodity
The notional amount of the trade
The mark-to-market valuation of the trade
The currency set that the trade belongs to
The number of years that the trade will take to start (zero if already started)
Takes the values of either 'Buy' or 'Sell'
Takes the values of 'Oil/Gas','Silver','Electricity' etc.
Tasos Grivas <tasos@openriskcalculator.com>
Basel Committee: The standardised approach for measuring counterparty credit risk exposures http://www.bis.org/publ/bcbs279.htm
tr1 = Commodity(Notional=10000,MtM=-50, BuySell='Buy',SubClass='Energy',commodity_type='Oil')
Run the code above in your browser using DataLab