Skip to main content

parse_depth_diff

Function parse_depth_diff 

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

Parses a depth diff event into OrderBookDeltas using the supplied adapter initialization timestamp for the aggregate and every inner delta.

Returns None if the diff contains no updates.