Skip to main content

parse_mark_price

Function parse_mark_price 

Source
pub fn parse_mark_price(
    msg: &DeriveTickerMsg,
    price_precision: u8,
    ts_init: UnixNanos,
) -> Result<Option<MarkPriceUpdate>>
Expand description

Parses a ticker payload into a [MarkPriceUpdate].

ยงErrors

Returns an error when the ticker timestamp is negative or overflows.