Expand description
Binance Spot WebSocket API 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.
§Responsibilities
- Command processing: Receives
BinanceSpotWsTradingCommandfrom client, serializes to JSON requests. - Response decoding: Parses SBE binary responses using schema 3 decoders.
- Request correlation: Matches responses to pending requests by ID.
- Message transformation: Emits
BinanceSpotWsTradingMessageevents to client via channel.
Structs§
- Binance
Spot WsTrading Handler - Binance Spot WebSocket API handler.