Skip to content

Commit ed415b7

Browse files
authored
Merge pull request #438 from binance/release_clients_2025_09_24
2 parents 51b4874 + a13d681 commit ed415b7

File tree

70 files changed

+1199
-699
lines changed

Some content is hidden

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

70 files changed

+1199
-699
lines changed

clients/convert/CHANGELOG.md

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

3+
## 2.0.0 - 2025-09-24
4+
5+
### Changed (1)
6+
7+
- Fixed `/sapi/v1/convert/limit/queryOpenOrders` endpoint http request
8+
39
## 1.6.0 - 2025-09-16
410

511
### Changed (1)
@@ -39,4 +45,4 @@
3945

4046
## 1.0.0 - 2025-07-17
4147

42-
- Initial release
48+
- Initial release

clients/convert/examples/rest_api/MarketData/list_all_convert_pairs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
# Create configuration for the REST API
1515
configuration_rest_api = ConfigurationRestAPI(
16-
api_key="CVp5zsxL61CJRCV7UJMZpDw4sgsDP1EUiLDLJvUFrrUXIdiAGYybe0gMDdB9pppG",
17-
api_secret="LIRgrJxa9vTw6gOxxheCLYDYpuMTiftdtwB8CUW09wlZVKrCswE7jWpWOiu9hEk0",
16+
api_key=os.getenv("API_KEY", ""),
17+
api_secret=os.getenv("API_SECRET", ""),
1818
base_path=os.getenv("BASE_PATH", CONVERT_REST_API_PROD_URL),
1919
)
2020

clients/convert/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-convert"
3-
version = "1.6.0"
3+
version = "2.0.0"
44
description = "Official Binance Convert SDK - A lightweight library that provides a convenient interface to Binance's Convert REST API"
55
authors = ["Binance"]
66
license = "MIT"

clients/convert/src/binance_sdk_convert/rest_api/api/trade_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def query_limit_open_orders(
328328
) -> ApiResponse[QueryLimitOpenOrdersResponse]:
329329
"""
330330
Query limit open orders (USER_DATA)
331-
POST /sapi/v1/convert/limit/queryOpenOrders
331+
GET /sapi/v1/convert/limit/queryOpenOrders
332332
https://developers.binance.com/docs/convert/trade/Query-Order
333333
334334
Request a quote for the requested token pairs
@@ -351,7 +351,7 @@ def query_limit_open_orders(
351351
return send_request(
352352
self._session,
353353
self._configuration,
354-
method="POST",
354+
method="GET",
355355
path="/sapi/v1/convert/limit/queryOpenOrders",
356356
payload=payload,
357357
time_unit=self._configuration.time_unit,

clients/convert/tests/unit/rest_api/test_trade_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ def test_query_limit_open_orders_success(self, mock_get_signature):
811811
assert "url" in request_kwargs
812812
assert "signature" in parse_qs(request_kwargs["params"])
813813
assert "/sapi/v1/convert/limit/queryOpenOrders" in request_kwargs["url"]
814-
assert request_kwargs["method"] == "POST"
814+
assert request_kwargs["method"] == "GET"
815815

816816
assert response is not None
817817
is_list = isinstance(expected_response, list)
@@ -867,7 +867,7 @@ def test_query_limit_open_orders_success_with_optional_params(
867867
assert "url" in request_kwargs
868868
assert "signature" in parse_qs(request_kwargs["params"])
869869
assert "/sapi/v1/convert/limit/queryOpenOrders" in request_kwargs["url"]
870-
assert request_kwargs["method"] == "POST"
870+
assert request_kwargs["method"] == "GET"
871871

872872
self.mock_session.request.assert_called_once()
873873
assert response is not None

clients/derivatives_trading_coin_futures/CHANGELOG.md

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

3+
## 2.4.0 - 2025-09-24
4+
5+
### Changed (1)
6+
7+
- Modified method for removing slashes (`/`) in endpoints
8+
39
## 2.3.0 - 2025-09-16
410

511
### Changed (1)

clients/derivatives_trading_coin_futures/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-coin-futures"
3-
version = "2.3.0"
3+
version = "2.4.0"
44
description = "Official Binance Derivatives Trading Coin Futures SDK - A lightweight library that provides a convenient interface to Binance's DerivativesTradingCoinFutures REST API, WebSocket API and WebSocket Streams."
55
authors = ["Binance"]
66
license = "MIT"

clients/derivatives_trading_coin_futures/src/binance_sdk_derivatives_trading_coin_futures/websocket_api/api/account_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def account_information(
6262
}
6363

6464
payload = {
65-
"method": "/account.status".replace("/", ""),
65+
"method": "/account.status".replace("/", "", 1),
6666
"params": params,
6767
}
6868

@@ -104,7 +104,7 @@ async def futures_account_balance(
104104
}
105105

106106
payload = {
107-
"method": "/account.balance".replace("/", ""),
107+
"method": "/account.balance".replace("/", "", 1),
108108
"params": params,
109109
}
110110

clients/derivatives_trading_coin_futures/src/binance_sdk_derivatives_trading_coin_futures/websocket_api/api/trade_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async def cancel_order(
9797
}
9898

9999
payload = {
100-
"method": "/order.cancel".replace("/", ""),
100+
"method": "/order.cancel".replace("/", "", 1),
101101
"params": params,
102102
}
103103

@@ -189,7 +189,7 @@ async def modify_order(
189189
}
190190

191191
payload = {
192-
"method": "/order.modify".replace("/", ""),
192+
"method": "/order.modify".replace("/", "", 1),
193193
"params": params,
194194
}
195195

@@ -344,7 +344,7 @@ async def new_order(
344344
}
345345

346346
payload = {
347-
"method": "/order.place".replace("/", ""),
347+
"method": "/order.place".replace("/", "", 1),
348348
"params": params,
349349
}
350350

@@ -392,7 +392,7 @@ async def position_information(
392392
}
393393

394394
payload = {
395-
"method": "/account.position".replace("/", ""),
395+
"method": "/account.position".replace("/", "", 1),
396396
"params": params,
397397
}
398398

@@ -459,7 +459,7 @@ async def query_order(
459459
}
460460

461461
payload = {
462-
"method": "/order.status".replace("/", ""),
462+
"method": "/order.status".replace("/", "", 1),
463463
"params": params,
464464
}
465465

clients/derivatives_trading_coin_futures/src/binance_sdk_derivatives_trading_coin_futures/websocket_api/api/user_data_streams_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def close_user_data_stream(
6060
}
6161

6262
payload = {
63-
"method": "/userDataStream.stop".replace("/", ""),
63+
"method": "/userDataStream.stop".replace("/", "", 1),
6464
"params": params,
6565
}
6666

@@ -97,7 +97,7 @@ async def keepalive_user_data_stream(
9797
}
9898

9999
payload = {
100-
"method": "/userDataStream.ping".replace("/", ""),
100+
"method": "/userDataStream.ping".replace("/", "", 1),
101101
"params": params,
102102
}
103103

@@ -136,7 +136,7 @@ async def start_user_data_stream(
136136
}
137137

138138
payload = {
139-
"method": "/userDataStream.start".replace("/", ""),
139+
"method": "/userDataStream.start".replace("/", "", 1),
140140
"params": params,
141141
}
142142

0 commit comments

Comments
 (0)