Module handler

Module handler 

Source
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 HandlerCommand from 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 NautilusWsApiMessage events to client via channel.

Structs§

BinanceSpotWsApiHandler
Binance Spot WebSocket API handler.