binance-rs icon indicating copy to clipboard operation
binance-rs copied to clipboard

Rust Library for the Binance API

Results 52 binance-rs issues
Sort by recently updated
recently updated
newest added

let custom_order = CustomOrderRequest { symbol: "SRMUSDT".into(), side: OrderSide::Sell, position_side: None, order_type: OrderType::StopMarket, time_in_force: None, qty: None, reduce_only: None, price: None, stop_price: Some(7.4), close_position: Some(true), activation_price: None, callback_rate: None, working_type:...

When I create a stop-limit buy order, the order goes through successfully but I get an error variant back: ``` Error(ReqError(reqwest::Error { kind: Decode, source: Error("missing field `price`", line: 1,...

Can't seem to figure out how to get multiple steams with a config. I tried using a single websocket and looping over an array of symbols to do the connection....

this PR is derived from #180 , but i think it makes sense as an incremental improvement. this PR - deduplicates the setup logic in the 'account' tests - modifiers...

Hi, I'm having error with `FutureMarket.get_trades`. below is reproduce code ```rs let start = SystemTime::now(); let future_market = binance::futures::market::FuturesMarket::new(None, None); while true { match future_market.get_trades("BTCBUSD") { Ok(_) => { println!(...

Updates the requirements on [env_logger](https://github.com/rust-cli/env_logger) to permit the latest version. Changelog Sourced from env_logger's changelog. 0.10.0 - 2022-11-24 MSRV changed to 1.60 to hide optional dependencies Fixes Resolved soundness issue...

dependencies
rust

use 'Self' to refer to own type. This is less verbose, easier to refactor, and makes it clear that a method is a 'constructor'. this PR is stacked on #183,...

deglob import statements. I've also removed one level of unnecessary `#[cfg(test)]` nesting in the integration tests, which unfortunately has made the diff a little hard to parse.

there are a number of single-variant enums. eg. ```rust #[derive(Debug, Serialize, Deserialize, Clone)] #[serde(rename_all = "camelCase")] #[serde(untagged)] pub enum Prices { AllPrices(Vec), } ``` they seem to be some kind...

not sure why BTreeMap has been used instead of HashMap here, given that there's no need to preserve ordering (is there?). I've also removed some allocations by using `&'static str`...