powered by
Creates a Commodity Forward Object with the relevant info needed to calculate the Exposure-at-Default (EAD)
An object of type Commodity Forward
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)
The number of years that the trade will expire
Takes the values of either 'Buy' or 'Sell'
Takes the values of 'Oil','Gas','Silver','Electricity' etc.
Defines the relevant hedging set. Possible values: 'Energy','Agriculture','Metal','Other','Climatic'
Tasos Grivas <tasos@openriskcalculator.com>
Regulation (EU) 2019/876 of the European Parliament and of the Council of 20 May 2019 http://data.europa.eu/eli/reg/2019/876/oj
## the Commodity Forward trade given in the Basel regulation Commodity example tr1 = CommodityForward(Notional=10000,MtM=-50,Si=0,Ei=0.75, BuySell='Buy',SubClass='Energy',commodity_type='Oil')
Run the code above in your browser using DataLab