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.
§Key Responsibilities
- Command processing: Receives
HandlerCommandfrom 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
NautilusWsApiMessageevents to client via channel.
Structs§
- Binance
Spot WsApi Handler - Binance Spot WebSocket API handler.