crypto-ws-client
Cryptocurrency Websocket Client.
Usage
use ;
Cryptocurrency Websocket Client.
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();
}