Skip to main content

parse_depth_diff

Function parse_depth_diff 

Source
pub fn parse_depth_diff(
    msg: &BinanceSpotDepthDiffMsg,
    instrument: &InstrumentAny,
    ts_init: UnixNanos,
) -> Result<Option<OrderBookDeltas>>
Expand description

Parses a depth diff message into OrderBookDeltas.

ยงErrors

Returns an error if any price or quantity update cannot be parsed.