Skip to content

Commit df4669e

Browse files
authored
Merge pull request #63 from binance/rc-v10.0.0
Release v10.0.0
2 parents c26799b + a4d194b commit df4669e

File tree

8 files changed

+1267
-93
lines changed

8 files changed

+1267
-93
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Changelog
22

3+
## 10.0.0 - 2025-07-23
4+
5+
**Spot**
6+
7+
### Changed (4)
8+
9+
#### REST API
10+
11+
- Added missing parameters to `order_test()` (`POST /api/v3/order/test`)
12+
13+
#### WebSocket API
14+
15+
- Added missing parameters to `order_test()`
16+
17+
- Modified parameter `cancelOrderId`:
18+
- format `int32``int64`
19+
- affected methods:
20+
- `order_cancel_replace()` (`order.cancelReplace` method)
21+
- Modified parameter `orderId`:
22+
- format `int32``int64`
23+
- affected methods:
24+
- `all_orders()` (`allOrders` method)
25+
- `my_trades()` (`myTrades` method)
26+
- `order_cancel()` (`order.cancel` method)
27+
- `order_status()` (`order.status` method)
28+
329
## 9.0.0 - 2025-07-22
430

531
### Added (1)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "binance-sdk"
3-
version = "9.0.0"
3+
version = "10.0.0"
44
authors = [ "Binance" ]
55
edition = "2024"
66
resolver = "3"

examples/spot/rest_api/trade_api/sor_order_test.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
use anyhow::{Context, Result};
2+
use rust_decimal::prelude::*;
23
use std::env;
34
use tracing::info;
45

56
use binance_sdk::config::ConfigurationRestApi;
6-
use binance_sdk::spot::{SpotRestApi, rest_api::SorOrderTestParams};
7+
use binance_sdk::spot::{
8+
SpotRestApi,
9+
rest_api::{SorOrderTestParams, SorOrderTestSideEnum, SorOrderTestTypeEnum},
10+
};
711

812
#[tokio::main]
913
async fn main() -> Result<()> {
@@ -21,7 +25,13 @@ async fn main() -> Result<()> {
2125
let rest_client = SpotRestApi::production(rest_conf);
2226

2327
// Setup the API parameters
24-
let params = SorOrderTestParams::default();
28+
let params = SorOrderTestParams::builder(
29+
"BNBUSDT".to_string(),
30+
SorOrderTestSideEnum::Buy,
31+
SorOrderTestTypeEnum::Market,
32+
dec!(1.0),
33+
)
34+
.build()?;
2535

2636
// Make the API call
2737
let response = rest_client

examples/spot/websocket_api/trade_api/order_test.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ use std::env;
33
use tracing::info;
44

55
use binance_sdk::config::ConfigurationWebsocketApi;
6-
use binance_sdk::spot::{SpotWsApi, websocket_api::OrderTestParams};
6+
use binance_sdk::spot::{
7+
SpotWsApi,
8+
websocket_api::{OrderTestParams, OrderTestSideEnum, OrderTestTypeEnum},
9+
};
710

811
#[tokio::main]
912
async fn main() -> Result<()> {
@@ -27,7 +30,12 @@ async fn main() -> Result<()> {
2730
.context("Failed to connect to WebSocket API")?;
2831

2932
// Setup the WS API parameters
30-
let params = OrderTestParams::default();
33+
let params = OrderTestParams::builder(
34+
"BNBUSDT".to_string(),
35+
OrderTestSideEnum::Buy,
36+
OrderTestTypeEnum::Market,
37+
)
38+
.build()?;
3139

3240
// Make the WS API call
3341
let response = connection

examples/spot/websocket_api/trade_api/sor_order_test.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
use anyhow::{Context, Result};
2+
use rust_decimal::prelude::*;
23
use std::env;
34
use tracing::info;
45

56
use binance_sdk::config::ConfigurationWebsocketApi;
6-
use binance_sdk::spot::{SpotWsApi, websocket_api::SorOrderTestParams};
7+
use binance_sdk::spot::{
8+
SpotWsApi,
9+
websocket_api::{SorOrderTestParams, SorOrderTestSideEnum, SorOrderTestTypeEnum},
10+
};
711

812
#[tokio::main]
913
async fn main() -> Result<()> {
@@ -27,7 +31,13 @@ async fn main() -> Result<()> {
2731
.context("Failed to connect to WebSocket API")?;
2832

2933
// Setup the WS API parameters
30-
let params = SorOrderTestParams::default();
34+
let params = SorOrderTestParams::builder(
35+
"BNBUSDT".to_string(),
36+
SorOrderTestSideEnum::Buy,
37+
SorOrderTestTypeEnum::Market,
38+
dec!(1.0),
39+
)
40+
.build()?;
3141

3242
// Make the WS API call
3343
let response = connection

0 commit comments

Comments
 (0)