pub fn parse_mark_price_update(
raw: &OKXMarkPrice,
instrument_id: InstrumentId,
price_precision: u8,
ts_init: UnixNanos,
) -> Result<MarkPriceUpdate>
Expand description
Parses an OKX mark price record into a Nautilus MarkPriceUpdate
.
ยงErrors
Returns an error if raw.mark_px
cannot be parsed into a Price
with
the specified precision.