binance-spot-connector-rust icon indicating copy to clipboard operation
binance-spot-connector-rust copied to clipboard

Results 12 binance-spot-connector-rust issues
Sort by recently updated
recently updated
newest added

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 {...

review

remove unnecessary convert

review

- Allows reading and writing to socket simultaneously, i.e. allow subscribing to new stuff while reading stream

review

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); ```...

review

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...

enhancement

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

review

The parameter `computeCommissionRates` is missing for Request `NewOrderTest`.