Learn R Programming

SACCR (version 1.5)

IRDSwap-class: IRD Swap Class

Description

Creates an IRD Swap Object with the relevant info needed to calculate the Exposure-at-Default (EAD)

Arguments

Notional
The notional amount of the trade
MTM
The mark-to-market valuation of the trade
Currency
The currency set that the trade belongs to
Si
The number of years that the trade will take to start (zero if already started)
Ei
The number of years that the trade will expire
BuySell
Takes the values of either 'Buy' or 'Sell'

Value

An object of type IRDSwap

Examples

Run this code
# 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