Skip to main content

parse_depth_diff

Function parse_depth_diff 

Source
pub fn parse_depth_diff(
    event: &DepthDiffStreamEvent,
    instrument: &InstrumentAny,
) -> Option<OrderBookDeltas>
Expand description

Parses a depth diff event into OrderBookDeltas.

Returns None if the diff contains no updates.