powered by
Creates a Credit Index Object with the relevant info needed to calculate the Exposure-at-Default (EAD)
An object of type CDX
The notional amount of the trade
The mark-to-market valuation of the trade
The currency set that the belongs
The number of years after which the trade will start (zero if already started)
The number of years that the trade will expire
Takes the values of either 'Buy' or 'Sell'
Specifies if the underlying Index is investment grade or not (possible values are IG & SG)
The name of the underlying Index
## the CDX trade given in the Basel regulation Credit example tr3 = CDX(Notional=10000,MtM=0,Currency="USD",Si=0,Ei=5, BuySell='Buy',SubClass='IG',RefEntity='Portfolio_1')
Run the code above in your browser using DataLab