Learn R Programming

Trading (version 2.0)

CreditSingle-class: Credit Single Class

Description

Creates a Credit Single 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 CreditSingle

References

Basel Committee: The standardised approach for measuring counterparty credit risk exposures http://www.bis.org/publ/bcbs279.htm

Examples

Run this code
# NOT RUN {
## the CreditSingle trade given in the Basel regulation Credit example
tr1 = CreditSingle(Notional=10000,MtM=20,Currency="USD",Si=0,Ei=3,BuySell='Buy',
SubClass='AA',RefEntity='FirmA')
# }

Run the code above in your browser using DataLab