crypto-ws-client

A versatile websocket client that supports many cryptocurrency exchanges.

Usage

```rust use cryptowsclient::{BinanceSpotWSClient, WSClient};

fn main() { let mut wsclient = BinanceSpotWSClient::new(Box::new(|msg| println!("{}", msg)), None); let channels = vec!["btcusdt@aggTrade".tostring(), "btcusdt@depth".tostring(),]; wsclient.subscribe(&channels); wsclient.run(None); wsclient.close(); } ```