Skip to content

Commit 5725647

Browse files
authored
Merge pull request #490 from binance/release_clients_january_29
2 parents 60bbf4c + 53b2062 commit 5725647

106 files changed

Lines changed: 1107 additions & 501 deletions

File tree

Some content is hidden

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

clients/algo/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.3.0 - 2026-01-29
4+
5+
### Changed (1)
6+
7+
- Updated `binance-common` library to version `3.5.0`
8+
39
## 2.2.0 - 2026-01-23
410

511
### Changed (1)

clients/algo/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "binance-sdk-algo"
3-
version = "2.2.0"
3+
version = "2.3.0"
44
description = "Official Binance Algo SDK - A lightweight library that provides a convenient interface to Binance's Algo REST API"
55
authors = ["Binance"]
66
license = "MIT"
@@ -20,7 +20,7 @@ black = "^25.1.0"
2020
ruff = "^0.12.0"
2121
pycryptodome = "^3.17"
2222
aiohttp = "^3.9"
23-
binance-common = "3.4.1"
23+
binance-common = "3.5.0"
2424
pytest = { version = ">=6.2.5", optional = true }
2525

2626
[tool.poetry.extras]

clients/alpha/CHANGELOG.md

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

3+
## 1.1.0 - 2026-01-29
4+
5+
### Changed (1)
6+
7+
- Updated `binance-common` library to version `3.5.0`
8+
39
## 1.0.0 - 2026-01-23
410

511
- Initial release

clients/alpha/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "binance-sdk-alpha"
3-
version = "1.0.0"
3+
version = "1.1.0"
44
description = "Official Binance Alpha Connector - A lightweight library that provides a convenient interface to Binance's Alpha REST API"
55
authors = ["Binance"]
66
license = "MIT"
@@ -19,7 +19,7 @@ black = "^25.1.0"
1919
ruff = "^0.12.0"
2020
pycryptodome = "^3.17"
2121
aiohttp = "^3.9"
22-
binance-common = "3.4.1"
22+
binance-common = "3.5.0"
2323
pytest = { version = ">=6.2.5", optional = true }
2424

2525
[tool.poetry.extras]

clients/c2c/CHANGELOG.md

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

3+
## 3.3.0 - 2026-01-29
4+
5+
### Changed (1)
6+
7+
- Updated `binance-common` library to version `3.5.0`
8+
39
## 3.2.0 - 2026-01-23
410

511
### Changed (1)

clients/c2c/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "binance-sdk-c2c"
3-
version = "3.2.0"
3+
version = "3.3.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"
@@ -20,7 +20,7 @@ black = "^25.1.0"
2020
ruff = "^0.12.0"
2121
pycryptodome = "^3.17"
2222
aiohttp = "^3.9"
23-
binance-common = "3.4.1"
23+
binance-common = "3.5.0"
2424
pytest = { version = ">=6.2.5", optional = true }
2525

2626
[tool.poetry.extras]

clients/convert/CHANGELOG.md

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

3+
## 4.0.0 - 2026-01-29
4+
5+
### Changed (2)
6+
7+
- Updated `binance-common` library to version `3.5.0`
8+
- Modified response for `place_limit_order()` (`POST /sapi/v1/convert/limit/placeOrder`):
9+
- property `status` added
10+
- property `orderId` added
11+
- property `fromAmount` deleted
12+
- property `inverseRatio` deleted
13+
- property `quoteId` deleted
14+
- property `ratio` deleted
15+
- property `toAmount` deleted
16+
- property `validTimestamp` deleted
17+
318
## 3.2.0 - 2026-01-23
419

520
### Changed (1)

clients/convert/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "binance-sdk-convert"
3-
version = "3.2.0"
3+
version = "4.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"
@@ -20,7 +20,7 @@ black = "^25.1.0"
2020
ruff = "^0.12.0"
2121
pycryptodome = "^3.17"
2222
aiohttp = "^3.9"
23-
binance-common = "3.4.1"
23+
binance-common = "3.5.0"
2424
pytest = { version = ">=6.2.5", optional = true }
2525

2626
[tool.poetry.extras]

clients/convert/src/binance_sdk_convert/rest_api/models/place_limit_order_response.py

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,10 @@ class PlaceLimitOrderResponse(BaseModel):
2727
PlaceLimitOrderResponse
2828
""" # noqa: E501
2929

30-
quote_id: Optional[StrictStr] = Field(default=None, alias="quoteId")
31-
ratio: Optional[StrictStr] = None
32-
inverse_ratio: Optional[StrictStr] = Field(default=None, alias="inverseRatio")
33-
valid_timestamp: Optional[StrictInt] = Field(default=None, alias="validTimestamp")
34-
to_amount: Optional[StrictStr] = Field(default=None, alias="toAmount")
35-
from_amount: Optional[StrictStr] = Field(default=None, alias="fromAmount")
30+
order_id: Optional[StrictInt] = Field(default=None, alias="orderId")
31+
status: Optional[StrictStr] = None
3632
additional_properties: Dict[str, Any] = {}
37-
__properties: ClassVar[List[str]] = [
38-
"quoteId",
39-
"ratio",
40-
"inverseRatio",
41-
"validTimestamp",
42-
"toAmount",
43-
"fromAmount",
44-
]
33+
__properties: ClassVar[List[str]] = ["orderId", "status"]
4534

4635
model_config = ConfigDict(
4736
populate_by_name=True,
@@ -106,14 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
10695
return cls.model_validate(obj)
10796

10897
_obj = cls.model_validate(
109-
{
110-
"quoteId": obj.get("quoteId"),
111-
"ratio": obj.get("ratio"),
112-
"inverseRatio": obj.get("inverseRatio"),
113-
"validTimestamp": obj.get("validTimestamp"),
114-
"toAmount": obj.get("toAmount"),
115-
"fromAmount": obj.get("fromAmount"),
116-
}
98+
{"orderId": obj.get("orderId"), "status": obj.get("status")}
11799
)
118100
# store additional fields in additional_properties
119101
for _key in obj.keys():

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

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -579,14 +579,7 @@ def test_place_limit_order_success(self, mock_get_signature):
579579
"expired_type": "expired_type_example",
580580
}
581581

582-
expected_response = {
583-
"quoteId": "12415572564",
584-
"ratio": "38163.7",
585-
"inverseRatio": "0.0000262",
586-
"validTimestamp": 1623319461670,
587-
"toAmount": "3816.37",
588-
"fromAmount": "0.1",
589-
}
582+
expected_response = {"orderId": 1603680255057330400, "status": "PROCESS"}
590583
mock_get_signature.return_value = "mocked_signature"
591584
self.set_mock_response(expected_response)
592585

@@ -645,14 +638,7 @@ def test_place_limit_order_success_with_optional_params(self, mock_get_signature
645638
"recv_window": 5000,
646639
}
647640

648-
expected_response = {
649-
"quoteId": "12415572564",
650-
"ratio": "38163.7",
651-
"inverseRatio": "0.0000262",
652-
"validTimestamp": 1623319461670,
653-
"toAmount": "3816.37",
654-
"fromAmount": "0.1",
655-
}
641+
expected_response = {"orderId": 1603680255057330400, "status": "PROCESS"}
656642
mock_get_signature.return_value = "mocked_signature"
657643
self.set_mock_response(expected_response)
658644

0 commit comments

Comments
 (0)