pub fn parse_index_price_msg(
msg: &CoinbaseIntxWsRiskMsg,
instrument_id: InstrumentId,
price_precision: u8,
ts_init: UnixNanos,
) -> Result<IndexPriceUpdate>
Expand description
Parses an index price message into IndexPriceUpdate
.
§Errors
Returns an error if the price value cannot be parsed.