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 an error if:
- The buffer is too short.
- The template ID or schema ID does not match.
- The balance count exceeds
crate::spot::sbe::MAX_GROUP_SIZE. - Message or balance framing is malformed.
- A balance mantissa and exponent cannot be converted to a decimal.
A balance conversion error rejects the whole message; no partial balances are returned.