Skip to main content

parse_index_price

Function parse_index_price 

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

Parses a ticker payload into an [IndexPriceUpdate].

ยงErrors

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