getInstrumentMaturity

Syntax

getInstrumentMaturity(instrument)

Details

Get the maturity date 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 DATE type.

Examples

bond = {
    "productType": "Cash",
    "assetType": "Bond",
    "bondType": "ZeroCouponBond",
    "version": 0,
    "instrumentId": "0001",
    "start": 1996.03.01,
    "maturity": 2032.05.15,
    "dayCountConvention": "ActualActualISDA",
    "coupon": 0.0276,
    "issuePrice": 100.0,
    "frequency": "Semiannual",
    "subType":"TREASURY_BOND",
    "creditRating":"B",
    "settlement": 2022.05.15 
}
ins = parseInstrument(bond)
getInstrumentMaturity(ins)

// output: 2032.05.15

Related functions: parseInstrument, getInstrumentField, getInstrumentKeys