decode_depth

Function decode_depth 

Source
pub fn decode_depth(buf: &[u8]) -> Result<BinanceDepth, SbeDecodeError>
Expand description

Decode a depth response.

Returns the order book depth with bids and asks.

§Errors

Returns error if buffer is too short, schema mismatch, or group size exceeded.

§Panics

This function will not panic as buffer lengths are validated before slicing.