Module handler

Module handler 

Source
Expand description

Binance Spot WebSocket message handler.

The handler runs in a dedicated Tokio task as the I/O boundary between the client orchestrator and the network layer. It exclusively owns the WebSocketClient and processes commands from the client via an unbounded channel.

Key responsibilities:

  • Command processing: Receives HandlerCommand from client, executes WebSocket operations.
  • SBE binary decoding: Routes binary frames to appropriate SBE decoders.
  • Message transformation: Parses raw venue messages into Nautilus domain events.
  • Subscription tracking: Manages pending subscription state.

Enums§

MarketDataMessage
Decoded market data message.

Functions§

decode_market_data
Decode an SBE binary frame into a market data message.