[−][src]Crate crypto_ws_client
A versatile websocket client that supports many cryptocurrency exchanges.
Example
use crypto_ws_client::{BinanceSpotWSClient, WSClient}; fn main() { let mut ws_client = BinanceSpotWSClient::init(|msg| println!("{}", msg)); let channels = vec!["btcusdt@aggTrade".to_string(), "btcusdt@depth".to_string(),]; ws_client.subscribe(&channels); ws_client.run(); ws_client.close(); }
Structs
BinanceDeliveryWSClient | The WebSocket client for Binance Coin Dilivery market(https://binance-docs.github.io/apidocs/delivery/en/). |
BinanceFuturesWSClient | The WebSocket client for Binance USDT Futures market(https://binance-docs.github.io/apidocs/futures/en/). |
BinanceSpotWSClient | The WebSocket client for Binance Spot market(https://binance-docs.github.io/apidocs/spot/en/). |
HuobiCoinSwapWSClient | The WebSocket client for Huobi Coin Swap market(https://huobiapi.github.io/docs/coin_margined_swap/v1/en/). |
HuobiFuturesWSClient | The WebSocket client for Huobi Futures market(https://huobiapi.github.io/docs/dm/v1/en/). |
HuobiOptionWSClient | The WebSocket client for Huobi Option market(https://huobiapi.github.io/docs/option/v1/en/). |
HuobiSpotWSClient | The WebSocket client for Huobi Spot market(https://huobiapi.github.io/docs/spot/v1/en/). |
HuobiUsdtSwapWSClient | The WebSocket client for Huobi USDT Swap market(https://huobiapi.github.io/docs/usdt_swap/v1/en/). |
Traits
WSClient | The public interface of every WebSocket client. |