Skip to main content

parse_book_ticker

Function parse_book_ticker 

Source
pub fn parse_book_ticker(
    msg: &BinanceSpotBookTickerMsg,
    instrument: &InstrumentAny,
    ts_init: UnixNanos,
) -> Result<QuoteTick>
Expand description

Parses a book ticker message into a QuoteTick.

ยงErrors

Returns an error if price or quantity fields cannot be parsed.