Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Module: binance/ws

Source: binance/ws.rs

Binance WebSocket client implementation. Maintains a persistent WSS connection with request/response routing. Reconnection is deliberately owned by the caller: pending order outcomes must be reconciled before a new connection can safely retry work. request/response routing, and HMAC-SHA256 signed authenticated requests.

Structs

pub struct WsClient

#![allow(unused)]
fn main() {
pub struct WsClient {
    pub req_tx: crossbeam_channel :: Sender < WsRequest >,
    pub stream_tx: crossbeam_channel :: Sender < StreamMsg >,
};
}

pub struct WsRequest

#![allow(unused)]
fn main() {
pub struct WsRequest {
    pub method: String,
    pub params: Map < String , Value >,
    pub response_tx: oneshot :: Sender < Result < Value > >,
};
}

pub struct BinanceWs

#![allow(unused)]
fn main() {
pub struct BinanceWs {
    url: String,
    api_key: String,
    secret_key: String,
};
}