powered by
Creates an IRD Swap Object with the relevant info needed to calculate the Exposure-at-Default (EAD)
An object of type IRDSwap
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'
# the IRD Swap trade given in the Basel regulation IRD example tr1 = IRDSwap(Notional=10000,MtM=30,Currency="USD",Si=0,Ei=10,BuySell='Buy')
Run the code above in your browser using DataLab