pub fn decode_option_contract(
msg: &InstrumentDefMsg,
instrument_id: InstrumentId,
ts_init: Option<UnixNanos>,
decode_config: Option<&DatabentoDecodeConfig>,
) -> Result<OptionContract>Expand description
Decodes a Databento instrument definition message into an OptionContract instrument.
Strike precision preserves every wire digit, with a floor at the strike currency’s precision. Exercise style and settlement type come from the CFI code. OPRA definitions carry no CFI code, so they use fixed rules by option root.
§Errors
Returns an error if parsing or constructing OptionContract fails.