Skip to main content

parse_ticker_option_greeks

Function parse_ticker_option_greeks 

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

Parses an option ticker payload into [OptionGreeks].

ยงErrors

Returns an error if any of the greek fields cannot be parsed as f64.