Skip to content

Commit e9ff974

Browse files
authored
Merge pull request #457 from binance/derivatives_trading_usds_futures_update
2 parents 028c4d0 + d6ad085 commit e9ff974

File tree

8 files changed

+26
-8
lines changed

8 files changed

+26
-8
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,25 @@ jobs:
5050
new_version=$(grep '^version' pyproject.toml | head -1 | sed -E 's/version = "(.*)"/\1/')
5151
5252
if [ "$old_version" = "$new_version" ]; then
53-
echo "::error ::Version was not bumped in pyproject.toml — skipping release"
54-
exit 1
53+
echo "release_needed=false" >> $GITHUB_OUTPUT
54+
else
55+
echo "release_needed=true" >> $GITHUB_OUTPUT
5556
fi
5657
5758
- name: Set working directory path
59+
if: steps.version.outputs.release_needed == 'true'
5860
id: path
5961
run: echo "dir=$([[ '${{ matrix.client }}' == 'common' ]] && echo 'common' || echo 'clients/${{ matrix.client }}')" >> $GITHUB_OUTPUT
6062

6163
- name: Install dependencies
64+
if: steps.version.outputs.release_needed == 'true'
6265
working-directory: ${{ steps.path.outputs.dir }}
6366
run: |
6467
curl -sSL https://install.python-poetry.org | python3 -
6568
echo "$HOME/.local/bin" >> $GITHUB_PATH
6669
6770
- name: Configure Poetry
71+
if: steps.version.outputs.release_needed == 'true'
6872
working-directory: ${{ steps.path.outputs.dir }}
6973
run: |
7074
poetry install
@@ -75,9 +79,11 @@ jobs:
7579
fi
7680
7781
- name: Build (release)
82+
if: steps.version.outputs.release_needed == 'true'
7883
working-directory: ${{ steps.path.outputs.dir }}
7984
run: poetry build
8085

8186
- name: Publish to pypi
87+
if: steps.version.outputs.release_needed == 'true'
8288
working-directory: ${{ steps.path.outputs.dir }}
8389
run: poetry publish

clients/derivatives_trading_usds_futures/CHANGELOG.md

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

3+
## 2.0.0 - 2025-10-27
4+
5+
### Changed (1)
6+
7+
#### WebSocket Streams
8+
9+
- Modified User Data Streams response for `OrderTradeUpdateO`:
10+
- `er` added
11+
312
## 1.8.0 - 2025-10-10
413

514
### Changed (4)
@@ -74,4 +83,4 @@
7483

7584
## 1.0.0 - 2025-07-17
7685

77-
- Initial release
86+
- Initial release

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

clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/rest_api/api/trade_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ def modify_order(
961961
962962
Weight: 1 on 10s order rate limit(X-MBX-ORDER-COUNT-10S);
963963
1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M);
964-
1 on IP rate limit(x-mbx-used-weight-1m)
964+
0 on IP rate limit(x-mbx-used-weight-1m)
965965
966966
Args:
967967
symbol (Union[str, None]):

clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/rest_api/rest_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2487,7 +2487,7 @@ def modify_order(
24872487
24882488
Weight: 1 on 10s order rate limit(X-MBX-ORDER-COUNT-10S);
24892489
1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M);
2490-
1 on IP rate limit(x-mbx-used-weight-1m)
2490+
0 on IP rate limit(x-mbx-used-weight-1m)
24912491
24922492
Args:
24932493
symbol (Union[str, None]):

clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/websocket_api/api/trade_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ async def modify_order(
134134
135135
Weight: 1 on 10s order rate limit(X-MBX-ORDER-COUNT-10S);
136136
1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M);
137-
1 on IP rate limit(x-mbx-used-weight-1m)
137+
0 on IP rate limit(x-mbx-used-weight-1m)
138138
139139
Args:
140140
symbol (Union[str, None]):

clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/websocket_api/websocket_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ async def modify_order(
425425
426426
Weight: 1 on 10s order rate limit(X-MBX-ORDER-COUNT-10S);
427427
1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M);
428-
1 on IP rate limit(x-mbx-used-weight-1m)
428+
0 on IP rate limit(x-mbx-used-weight-1m)
429429
430430
Args:
431431
symbol (Union[str, None]):

clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/websocket_streams/models/order_trade_update_o.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class OrderTradeUpdateO(BaseModel):
6363
V: Optional[StrictStr] = Field(default=None, alias="V")
6464
pm: Optional[StrictStr] = None
6565
gtd: Optional[StrictInt] = None
66+
er: Optional[StrictStr] = None
6667
additional_properties: Dict[str, Any] = {}
6768
__properties: ClassVar[List[str]] = [
6869
"s",
@@ -101,6 +102,7 @@ class OrderTradeUpdateO(BaseModel):
101102
"V",
102103
"pm",
103104
"gtd",
105+
"er",
104106
]
105107

106108
model_config = ConfigDict(
@@ -199,6 +201,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
199201
"V": obj.get("V"),
200202
"pm": obj.get("pm"),
201203
"gtd": obj.get("gtd"),
204+
"er": obj.get("er"),
202205
}
203206
)
204207
# store additional fields in additional_properties

0 commit comments

Comments
 (0)