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.
§Errors
Returns an error if parsing or constructing OptionContract fails.