Skip to main content

parse_ticker_option_mark_price

Function parse_ticker_option_mark_price 

Source
pub fn parse_ticker_option_mark_price(
    msg: &BybitWsTickerOptionMsg,
    instrument: &InstrumentAny,
    ts_init: UnixNanos,
) -> Result<MarkPriceUpdate>
Expand description

Parses an option ticker payload into a [MarkPriceUpdate].

ยงErrors

Returns an error if the mark_price field cannot be parsed.