getInstrumentStrike
Syntax
getInstrumentStrike(instrument)
Details
Get the strike price of one or more instruments.
Arguments
instrument is a scalar or vector of the INSTRUMENT type, indicating one or more instruments.
Returns
A scalar or vector of the DOUBLE type.
Examples
forward = {
"productType": "Forward",
"forwardType": "FxForward",
"version": 0,
"expiry": 2025.09.24,
"delivery": 2025.09.26,
"currencyPair": "USDCNY",
"direction": "Buy",
"notional": ["USD", 1E8],
"strike": 7.2
}
instrument = parseInstrument(forward)
getInstrumentStrike(instrument)
// output: 7.2
Related functions: parseInstrument, getInstrumentField, getInstrumentKeys
