Skip to main content

parse_derivative_ticker_index_price

Function parse_derivative_ticker_index_price 

Source
pub fn parse_derivative_ticker_index_price(
    msg: &DerivativeTickerMsg,
    instrument_id: InstrumentId,
    price_precision: u8,
) -> Result<Option<IndexPriceUpdate>>
Expand description

Parses a derivative ticker message into an index price update.

ยงErrors

Returns an error if timestamp conversion fails.