Skip to main content

parse_depth_snapshot

Function parse_depth_snapshot 

Source
pub fn parse_depth_snapshot(
    msg: &BinanceSpotPartialDepthMsg,
    instrument: &InstrumentAny,
    ts_init: UnixNanos,
) -> OrderBookDeltas
Expand description

Parses a partial depth snapshot message into OrderBookDeltas.

Skips unparsable levels; a snapshot without usable levels clears the book.