pub fn decode_balance_update(data: &[u8]) -> Result<BinanceSpotBalanceUpdateMsg>Expand description
Decodes an SBE BalanceUpdateEvent (template 601) into a BinanceSpotBalanceUpdateMsg.
The input buffer must include the 8-byte SBE message header.
ยงErrors
Returns an error if:
- The buffer is too short.
- The template ID or schema ID does not match.
- The declared block length is shorter than the minimum for the message version.
- The quantity exponent is the SBE null value (-128).
- Asset framing is malformed.