binance-spot-connector-rust
binance-spot-connector-rust copied to clipboard
I'm trying to use the Websocket version of the api but I don't see any place to put the credentials There is a lot of unclarity in the docs and...
the trait bound `fn(teloxide::Bot, teloxide::prelude::Message, Me) -> impl Future
This PR enables binance_spot_connector with Hyper client to be used within async contexts and Tokio runtime. ## Problem Using hyper client within tokio::spawn throws an error. ```rust tokio::spawn(async move {...
- Allows reading and writing to socket simultaneously, i.e. allow subscribing to new stuff while reading stream
Now, it is possible to use a dynamic list of symbols for subscribing. ```rust let symbol_lst = vec!["BTCUSDT".to_string(), "BNBBUSD".to_string(), "BTCUSDT".to_string()]; let lst = symbol_lst.iter() .map(|x| BookTickerStream::from_symbol(&x).into()) .collect::() ; conn.subscribe_from_slice(&lst); ```...
This PR fix the build error when it compiles only with feature `enable-tokio-tungstenite`. Feature `enable-tokio-tungstenite` requires tokio and futures_util. Test command ``` cargo build --features enable-tokio-tungstenite ``` It fails to...
Subscribing to multiple symbols can be done as follows: ```rust let mut conn = BinanceWebSocketClient::connect_with_url(&stream_adr)?; conn.subscribe(vec![ &BookTickerStream::from_symbol("BTCUSDT").into(), &BookTickerStream::from_symbol("BNBBUSD").into(), ]); ``` It works fine, however, I need to subscribe to a...
please use btreemap for params as the order is required
The parameter `computeCommissionRates` is missing for Request `NewOrderTest`.