Skip to main content

Module decode_sbe

Module decode_sbe 

Source
Expand description

SBE decoders for Binance Spot user data stream events.

Decodes templates 601 (BalanceUpdateEvent), 603 (ExecutionReportEvent), and 607 (OutboundAccountPositionEvent) from schema 3:3 binary payloads into the venue-level structs defined in super::user_data. The existing JSON parse functions in super::parse then convert these to Nautilus types.

Functionsยง

decode_account_position
Decodes an SBE OutboundAccountPositionEvent (template 607) into a BinanceSpotAccountPositionMsg.
decode_balance_update
Decodes an SBE BalanceUpdateEvent (template 601) into a BinanceSpotBalanceUpdateMsg.
decode_execution_report
Decodes an SBE ExecutionReportEvent (template 603) into a BinanceSpotExecutionReport.