Skip to main content

decode_trades

Function decode_trades 

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

Decode a trades response.

Returns the list of trades.

ยงErrors

Returns an error if:

  • The buffer is too short.
  • The schema ID or template ID does not match.
  • The group count exceeds the limit.
  • A group block is shorter than its fixed entry width.