Module spot

Module spot 

Source
Expand description

Binance Spot market adapter with full SBE (Simple Binary Encoding) support.

This module provides high-performance market data and execution clients for Binance Spot markets using SBE encoding for both REST API and WebSocket streams.

§Features

  • SBE REST API: All REST responses decoded from SBE format
  • SBE WebSocket Streams: Market data streams with microsecond timestamps
  • Ed25519 Authentication: Required for SBE market data streams

§Architecture

spot/
├── http/           # REST API client (SBE encoded)
│   ├── client.rs   # BinanceSpotHttpClient
│   ├── models.rs   # Response types
│   └── query.rs    # Query parameter builders
└── websocket/      # WebSocket client (SBE encoded)
    ├── client.rs   # BinanceSpotWebSocketClient
    ├── handler.rs  # Message parsing and routing
    ├── messages.rs # Internal message types
    └── streams.rs  # Stream subscription management

Re-exports§

pub use http::client::BinanceSpotHttpClient;
pub use websocket::client::BinanceSpotWebSocketClient;

Modules§

http
Binance Spot HTTP client with SBE encoding support.
websocket
Binance Spot WebSocket client with SBE encoding support.