getInstrumentNotionalCurrency

Syntax

getInstrumentNotionalCurrency(instrument)

Details

Get the notional principal of one or more instruments.

Parameters

instrument is a scalar or vector of the INSTRUMENT type, indicating one or more instruments.

Returns

A STRING scalar or vector.

Examples

deposit =  {
    "productType": "Cash",
    "assetType": "Deposit",
    "start": 2025.05.15,
    "maturity": 2025.08.15,
    "rate": 0.02,
    "dayCountConvention": "Actual360",
    "notionalAmount":1E6,
    "notionalCurrency":"CNY",
    "payReceive": "Receive"
}
instrument = parseInstrument(deposit)
getInstrumentNotionalCurrency(instrument)

// output: "CNY"

Related functions: parseInstrument, getInstrumentField, getInstrumentKeys