getInstrumentNotional
Syntax
getInstrumentNotional(instrument)
Details
Get the notional principal amount of one or more instruments.
Arguments
instrument is a scalar or vector of the INSTRUMENT type, indicating one or more instruments.
Returns
An ANY vector.
Examples
deposit = {
"productType": "Cash",
"assetType": "Deposit",
"version": 0,
"start": 2025.05.15,
"maturity": 2025.08.15,
"rate": 0.02,
"dayCountConvention": "Actual360",
"notional":["CNY", 1E6],
"payReceive": "Receive"
}
instrument = parseInstrument(deposit)
getInstrumentNotional(instrument)
// output: ("CNY",1000000)
Related functions: parseInstrument, getInstrumentField, getInstrumentKeys
