Skip to content

Commit d26c38f

Browse files
authored
Merge pull request #463 from binance/release_clients_2025_11_14
2 parents e9ff974 + 83d41a5 commit d26c38f

File tree

129 files changed

+8096
-4080
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+8096
-4080
lines changed

clients/c2c/CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## 2.0.0 - 2025-11-14
4+
5+
### Changed (6)
6+
7+
- Added parameter `endTimestamp`
8+
- affected methods:
9+
- `get_c2_c_trade_history()` (`GET /sapi/v1/c2c/orderMatch/listUserOrderHistory`)
10+
- Added parameter `startTimestamp`
11+
- affected methods:
12+
- `get_c2_c_trade_history()` (`GET /sapi/v1/c2c/orderMatch/listUserOrderHistory`)
13+
- Added parameter `rows`
14+
- affected methods:
15+
- `get_c2_c_trade_history()` (`GET /sapi/v1/c2c/orderMatch/listUserOrderHistory`)
16+
- Added parameter `tradeType`
17+
- affected methods:
18+
- `get_c2_c_trade_history()` (`GET /sapi/v1/c2c/orderMatch/listUserOrderHistory`)
19+
320
## 1.7.0 - 2025-10-10
421

522
### Changed (1)
@@ -45,4 +62,4 @@
4562

4663
## 1.0.0 - 2025-07-17
4764

48-
- Initial release
65+
- Initial release

clients/c2c/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "binance-sdk-c2c"
3-
version = "1.7.0"
3+
version = "2.0.0"
44
description = "Official Binance C2C SDK - A lightweight library that provides a convenient interface to Binance's C2C REST API"
55
authors = ["Binance"]
66
license = "MIT"

clients/c2c/src/binance_sdk_c2c/rest_api/api/c2_c_api.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ def __init__(
3333

3434
def get_c2_c_trade_history(
3535
self,
36-
start_time: Optional[int] = None,
37-
end_time: Optional[int] = None,
36+
trade_type: Optional[str] = None,
37+
start_timestamp: Optional[int] = None,
38+
end_timestamp: Optional[int] = None,
3839
page: Optional[int] = None,
40+
rows: Optional[int] = None,
3941
recv_window: Optional[int] = None,
4042
) -> ApiResponse[GetC2CTradeHistoryResponse]:
4143
"""
@@ -45,17 +47,18 @@ def get_c2_c_trade_history(
4547
4648
Get C2C Trade History
4749
48-
* The max interval between startTime and endTime is 30 days.
49-
* If startTime and endTime are not sent, the recent 7 days' data will be returned.
50-
* The earliest startTime is supported on June 10, 2020
51-
* Return up to 200 records per request.
50+
* The max interval between startTimestamp and endTimestamp is 30 days.
51+
* If startTimestamp and endTimestamp are not sent, the recent 30 days' data will be returned.
52+
* You can only view data from the past 6 months. To see all C2C orders, please check https://c2c.binance.com/en/fiatOrder
5253
5354
Weight: 1
5455
5556
Args:
56-
start_time (Optional[int] = None):
57-
end_time (Optional[int] = None):
57+
trade_type (Optional[str] = None): BUY, SELL
58+
start_timestamp (Optional[int] = None):
59+
end_timestamp (Optional[int] = None):
5860
page (Optional[int] = None): Default 1
61+
rows (Optional[int] = None): default 100, max 100
5962
recv_window (Optional[int] = None):
6063
6164
Returns:
@@ -67,9 +70,11 @@ def get_c2_c_trade_history(
6770
"""
6871

6972
payload = {
70-
"start_time": start_time,
71-
"end_time": end_time,
73+
"trade_type": trade_type,
74+
"start_timestamp": start_timestamp,
75+
"end_timestamp": end_timestamp,
7276
"page": page,
77+
"rows": rows,
7378
"recv_window": recv_window,
7479
}
7580

clients/c2c/src/binance_sdk_c2c/rest_api/rest_api.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,27 +83,30 @@ def send_signed_request(
8383

8484
def get_c2_c_trade_history(
8585
self,
86-
start_time: Optional[int] = None,
87-
end_time: Optional[int] = None,
86+
trade_type: Optional[str] = None,
87+
start_timestamp: Optional[int] = None,
88+
end_timestamp: Optional[int] = None,
8889
page: Optional[int] = None,
90+
rows: Optional[int] = None,
8991
recv_window: Optional[int] = None,
9092
) -> ApiResponse[GetC2CTradeHistoryResponse]:
9193
"""
9294
Get C2C Trade History (USER_DATA)
9395
9496
Get C2C Trade History
9597
96-
* The max interval between startTime and endTime is 30 days.
97-
* If startTime and endTime are not sent, the recent 7 days' data will be returned.
98-
* The earliest startTime is supported on June 10, 2020
99-
* Return up to 200 records per request.
98+
* The max interval between startTimestamp and endTimestamp is 30 days.
99+
* If startTimestamp and endTimestamp are not sent, the recent 30 days' data will be returned.
100+
* You can only view data from the past 6 months. To see all C2C orders, please check https://c2c.binance.com/en/fiatOrder
100101
101102
Weight: 1
102103
103104
Args:
104-
start_time (Optional[int] = None):
105-
end_time (Optional[int] = None):
105+
trade_type (Optional[str] = None): BUY, SELL
106+
start_timestamp (Optional[int] = None):
107+
end_timestamp (Optional[int] = None):
106108
page (Optional[int] = None): Default 1
109+
rows (Optional[int] = None): default 100, max 100
107110
recv_window (Optional[int] = None):
108111
109112
Returns:
@@ -115,5 +118,5 @@ def get_c2_c_trade_history(
115118
"""
116119

117120
return self._c2CApi.get_c2_c_trade_history(
118-
start_time, end_time, page, recv_window
121+
trade_type, start_timestamp, end_timestamp, page, rows, recv_window
119122
)

clients/c2c/tests/unit/rest_api/test_c2_c_api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,11 @@ def test_get_c2_c_trade_history_success_with_optional_params(
115115
"""Test get_c2_c_trade_history() successfully with optional parameters."""
116116

117117
params = {
118-
"start_time": 1623319461670,
119-
"end_time": 1641782889000,
118+
"trade_type": "trade_type_example",
119+
"start_timestamp": 56,
120+
"end_timestamp": 56,
120121
"page": 1,
122+
"rows": 100,
121123
"recv_window": 5000,
122124
}
123125

clients/derivatives_trading_portfolio_margin_pro/CHANGELOG.md

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

3+
## 3.0.0 - 2025-11-14
4+
5+
### Removed (2)
6+
7+
#### REST API
8+
9+
- `mint_bfusd_for_portfolio_margin()` (`POST /sapi/v1/portfolio/mint`)
10+
- `redeem_bfusd_for_portfolio_margin()` (`POST /sapi/v1/portfolio/redeem`)
11+
312
## 2.0.0 - 2025-10-10
413

514
### Changed (3)

clients/derivatives_trading_portfolio_margin_pro/examples/rest_api/Account/mint_bfusd_for_portfolio_margin.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

clients/derivatives_trading_portfolio_margin_pro/examples/rest_api/Account/redeem_bfusd_for_portfolio_margin.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

clients/derivatives_trading_portfolio_margin_pro/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "binance-sdk-derivatives-trading-portfolio-margin-pro"
3-
version = "2.0.0"
3+
version = "3.0.0"
44
description = "Official Binance Derivatives Trading Portfolio Margin Pro SDK - A lightweight library that provides a convenient interface to Binance's DerivativesTradingPortfolioMarginPro REST API and WebSocket Streams."
55
authors = ["Binance"]
66
license = "MIT"

0 commit comments

Comments
 (0)