Skip to main content

parse_derivative_ticker_mark_price

Function parse_derivative_ticker_mark_price 

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

Parses a derivative ticker message into a mark price update.

ยงErrors

Returns an error if timestamp conversion fails.