getInstrumentStrike

Syntax

getInstrumentStrike(instrument)

Details

Get the strike price of one or more instruments.

Parameters

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",
    "expiry": 2025.09.24,
    "delivery": 2025.09.26,
    "currencyPair": "USDCNY",
    "direction": "Buy",
    "notionalCurrency": "USD",
    "notionalAmount": 1E8,
    "strike": 7.2
}
instrument = parseInstrument(forward)

getInstrumentStrike(instrument)
// output: 7.2

Related functions: parseInstrument, getInstrumentField, getInstrumentKeys