Skip to main content

decode_balance_update

Function decode_balance_update 

Source
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 error if the buffer is too short, the template ID is wrong, or the schema ID does not match.