Skip to main content

parse_ticker_linear_mark_price

Function parse_ticker_linear_mark_price 

Source
pub fn parse_ticker_linear_mark_price(
    data: &BybitWsTickerLinear,
    instrument: &InstrumentAny,
    ts_event: UnixNanos,
    ts_init: UnixNanos,
) -> Result<MarkPriceUpdate>
Expand description

Parses a linear/inverse ticker payload into a [MarkPriceUpdate].

ยงErrors

Returns an error if the mark_price field is missing or cannot be parsed.