pub fn parse_index_price_update(
raw: &OKXIndexTicker,
instrument_id: InstrumentId,
price_precision: u8,
ts_init: UnixNanos,
) -> Result<IndexPriceUpdate>
Expand description
Parses an OKX index ticker record into a Nautilus IndexPriceUpdate
.
ยงErrors
Returns an error if raw.idx_px
cannot be parsed into a Price
with the
specified precision.