Expand description
Binance WebSocket API client implementation.
This module provides the WebSocketConnector and WebSocketConnection for interacting
with the Binance WebSocket API. It enables real-time streaming of market data, such as mini ticker
updates, and is used internally to implement the AssetInfoProvider trait for asset workers.
This module provides:
- Establishes WebSocket connections to Binance servers
- Subscribes and unsubscribes to mini ticker streams for specified symbols
- Processes incoming WebSocket messages, including mini ticker updates and ping events
- Transforms WebSocket messages into
AssetInfofor use in workers - Handles connection management, including closing connections gracefully
Structs§
- WebSocket
Connection - Represents an active WebSocket connection to Binance.
- WebSocket
Connector - A connector for establishing WebSocket connections to the Binance WebSocket API.