getInstrumentNotional

语法

getInstrumentNotional(instrument)

详情

根据输入的金融工具,获取该工具的名义本金。

参数

instrument INSTRUMENT 类型标量或向量,表示金融工具。

返回值

ANY 向量。

例子

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)

相关函数:parseInstrumentgetInstrumentFieldgetInstrumentKeys