Skip to main content

decode_account_position

Function decode_account_position 

Source
pub fn decode_account_position(
    data: &[u8],
) -> Result<BinanceSpotAccountPositionMsg>
Expand description

Decodes an SBE OutboundAccountPositionEvent (template 607) into a BinanceSpotAccountPositionMsg.

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.