Skip to content

Commit 04629fe

Browse files
authored
Merge pull request #482 from binance/release_clients_january_19
2 parents 491e9ff + f242457 commit 04629fe

125 files changed

Lines changed: 4578 additions & 4755 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/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+
## 3.2.0 - 2026-01-19
4+
5+
### Changed (1)
6+
7+
- Updated `Subscribe` method in `websocket.py` to accept optional `stream_url` parameter.
8+
39
## 3.1.0 - 2026-01-13
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 = "3.1.0"
3+
version = "3.2.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_streams/websocket_streams.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,22 @@ async def ping_server(self, connection: WebSocketConnection):
5151
else:
5252
raise ValueError("WebSocket session is not initialized.")
5353

54-
async def subscribe(self, streams, response_model: Optional[T] = None):
54+
async def subscribe(
55+
self,
56+
streams,
57+
response_model: Optional[T] = None,
58+
stream_url: Optional[str] = None,
59+
):
5560
"""Subscribes to the specified WebSocket streams.
5661
5762
Args:
5863
streams (list): A list of WebSocket streams to subscribe to.
5964
response_model (Optional[T]): The Pydantic model to validate the response against.
6065
"""
6166

62-
await super().subscribe(streams, response_model=response_model)
67+
await super().subscribe(
68+
streams, response_model=response_model, stream_url=stream_url
69+
)
6370

6471
async def unsubscribe(self, streams):
6572
"""Unsubscribes from the specified WebSocket streams.
@@ -112,7 +119,9 @@ async def user_data(self, listenKey: str) -> RequestStreamHandle:
112119
"""
113120

114121
return await RequestStream(
115-
self, listenKey, response_model=UserDataStreamEventsResponse
122+
self,
123+
listenKey,
124+
response_model=UserDataStreamEventsResponse,
116125
)
117126

118127
async def aggregate_trade_streams(

clients/derivatives_trading_options/CHANGELOG.md

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

3+
## 5.0.0 - 2026-01-19
4+
5+
### Added (10)
6+
7+
#### REST API
8+
9+
- `user_commission()` (`GET /eapi/v1/commission`)
10+
11+
#### WebSocket Streams
12+
13+
- `diff_book_depth_streams()` (`<symbol>@depth@<updateSpeed>` stream)
14+
- `index_price_streams()` (`!index@arr` stream)
15+
- `individual_symbol_book_ticker_streams()` (`<symbol>@bookTicker` stream)
16+
- `mark_price()` (`<underlying>@optionMarkPrice` stream)
17+
- `new_symbol_info()` (`!optionSymbol` stream)
18+
- `open_interest()` (`underlying@optionOpenInterest@<expirationDate>` stream)
19+
- `partial_book_depth_streams()` (`<symbol>@depth<level>@<updateSpeed>` stream)
20+
- `ticker24_hour()` (`<symbol>@optionTicker` stream)
21+
- `trade_streams()` (`<symbol>@optionTrade` stream)
22+
23+
### Changed (20)
24+
25+
#### REST API
26+
27+
- Modified parameter `orders`:
28+
- items.`timeInForce`: enum added: `GTX`
29+
- items.`timeInForce`: enum added: `GTX`
30+
- affected methods:
31+
- `place_multiple_orders()` (`POST /eapi/v1/batchOrders`)
32+
- Modified parameter `timeInForce`:
33+
- enum added: `GTX`
34+
- affected methods:
35+
- `new_order()` (`POST /eapi/v1/order`)
36+
- Modified response for `cancel_all_option_orders_by_underlying()` (`DELETE /eapi/v1/allOpenOrdersByUnderlying`):
37+
- property `data` deleted
38+
39+
- Modified response for `cancel_multiple_option_orders()` (`DELETE /eapi/v1/batchOrders`):
40+
- items: property `priceScale` added
41+
- items: property `optionSide` added
42+
- items: property `mmp` added
43+
- items: property `source` added
44+
- items: property `quoteAsset` added
45+
- items: property `quantityScale` added
46+
- items: property `fee` deleted
47+
- items: item property `priceScale` added
48+
- items: item property `optionSide` added
49+
- items: item property `mmp` added
50+
- items: item property `source` added
51+
- items: item property `quoteAsset` added
52+
- items: item property `quantityScale` added
53+
- items: item property `fee` deleted
54+
55+
- Modified response for `place_multiple_orders()` (`POST /eapi/v1/batchOrders`):
56+
- items: property `optionSide` added
57+
- items: property `status` added
58+
- items: property `timeInForce` added
59+
- items: property `quantityScale` added
60+
- items: property `avgPrice` added
61+
- items: property `createTime` added
62+
- items: property `priceScale` added
63+
- items: property `source` added
64+
- items: property `quoteAsset` added
65+
- items: property `updateTime` added
66+
- items: property `executedQty` added
67+
- items: property `postOnly` deleted
68+
- items: item property `optionSide` added
69+
- items: item property `status` added
70+
- items: item property `timeInForce` added
71+
- items: item property `quantityScale` added
72+
- items: item property `avgPrice` added
73+
- items: item property `createTime` added
74+
- items: item property `priceScale` added
75+
- items: item property `source` added
76+
- items: item property `quoteAsset` added
77+
- items: item property `updateTime` added
78+
- items: item property `executedQty` added
79+
- items: item property `postOnly` deleted
80+
81+
- Modified response for `order_book()` (`GET /eapi/v1/depth`):
82+
- property `lastUpdateId` added
83+
- property `u` deleted
84+
85+
- Modified response for `exchange_information()` (`GET /eapi/v1/exchangeInfo`):
86+
- `optionSymbols`.items: property `status` added
87+
- `optionSymbols`.items: property `makerFeeRate` deleted
88+
- `optionSymbols`.items: property `takerFeeRate` deleted
89+
- `optionSymbols`.items: item property `status` added
90+
- `optionSymbols`.items: item property `makerFeeRate` deleted
91+
- `optionSymbols`.items: item property `takerFeeRate` deleted
92+
93+
- Modified response for `user_exercise_record()` (`GET /eapi/v1/exerciseRecord`):
94+
- items: property `markPrice` deleted
95+
- items: item property `markPrice` deleted
96+
97+
- Modified response for `query_option_order_history()` (`GET /eapi/v1/historyOrders`):
98+
- items: property `reason` deleted
99+
- items: property `postOnly` deleted
100+
- items: property `source` deleted
101+
- items: property `fee` deleted
102+
- items: item property `reason` deleted
103+
- items: item property `postOnly` deleted
104+
- items: item property `source` deleted
105+
- items: item property `fee` deleted
106+
107+
- Modified response for `kline_candlestick_data()` (`GET /eapi/v1/klines`):
108+
- items: type `object``array`
109+
- items: property `interval` deleted
110+
- items: property `openTime` deleted
111+
- items: property `takerVolume` deleted
112+
- items: property `amount` deleted
113+
- items: property `close` deleted
114+
- items: property `low` deleted
115+
- items: property `takerAmount` deleted
116+
- items: property `closeTime` deleted
117+
- items: property `high` deleted
118+
- items: property `open` deleted
119+
- items: property `tradeCount` deleted
120+
- items: property `volume` deleted
121+
- items: item property `interval` deleted
122+
- items: item property `openTime` deleted
123+
- items: item property `takerVolume` deleted
124+
- items: item property `amount` deleted
125+
- items: item property `close` deleted
126+
- items: item property `low` deleted
127+
- items: item property `takerAmount` deleted
128+
- items: item property `closeTime` deleted
129+
- items: item property `high` deleted
130+
- items: item property `open` deleted
131+
- items: item property `tradeCount` deleted
132+
- items: item property `volume` deleted
133+
134+
- Modified response for `start_user_data_stream()` (`POST /eapi/v1/listenKey`):
135+
- property `expiration` added
136+
137+
- Modified response for `option_margin_account_information()` (`GET /eapi/v1/marginAccount`):
138+
- property `canDeposit` added
139+
- property `canTrade` added
140+
- property `canWithdraw` added
141+
- property `reduceOnly` added
142+
143+
- Modified response for `query_current_open_option_orders()` (`GET /eapi/v1/openOrders`):
144+
- items: property `postOnly` deleted
145+
- items: property `fee` deleted
146+
- items: item property `postOnly` deleted
147+
- items: item property `fee` deleted
148+
149+
- Modified response for `cancel_option_order()` (`DELETE /eapi/v1/order`):
150+
- property `postOnly` deleted
151+
- property `fee` deleted
152+
153+
- Modified response for `query_single_order()` (`GET /eapi/v1/order`):
154+
- property `postOnly` deleted
155+
- property `fee` deleted
156+
- property `source` deleted
157+
158+
- Modified response for `new_order()` (`POST /eapi/v1/order`):
159+
- property `source` added
160+
- property `fee` deleted
161+
- property `postOnly` deleted
162+
- property `createDate` deleted
163+
164+
- Modified response for `option_position_information()` (`GET /eapi/v1/position`):
165+
- items: property `time` added
166+
- items: property `bidQuantity` added
167+
- items: property `askQuantity` added
168+
- items: property `ror` deleted
169+
- items: property `positionCost` deleted
170+
- items: property `reducibleQty` deleted
171+
- items: item property `time` added
172+
- items: item property `bidQuantity` added
173+
- items: item property `askQuantity` added
174+
- items: item property `ror` deleted
175+
- items: item property `positionCost` deleted
176+
- items: item property `reducibleQty` deleted
177+
178+
- Modified response for `recent_trades_list()` (`GET /eapi/v1/trades`):
179+
- items: property `tradeId` added
180+
- items.`id`: type `string``integer`
181+
- items: item property `tradeId` added
182+
- items.`id`: type `string``integer`
183+
184+
- Modified response for `account_trade_list()` (`GET /eapi/v1/userTrades`):
185+
- items: property `volatility` deleted
186+
- items: item property `volatility` deleted
187+
188+
#### WebSocket Streams
189+
190+
- Modified response for `kline_candlestick_streams()` (`<symbol>@kline_<interval>` stream):
191+
- `k`: property `f` added
192+
- `k`: property `F` deleted
193+
194+
### Removed (12)
195+
196+
#### REST API
197+
198+
- `get_download_id_for_option_transaction_history()` (`GET /eapi/v1/income/asyn`)
199+
- `get_option_transaction_history_download_link_by_id()` (`GET /eapi/v1/income/asyn/id`)
200+
- `old_trades_lookup()` (`GET /eapi/v1/historicalTrades`)
201+
- `option_account_information()` (`GET /eapi/v1/account`)
202+
203+
#### WebSocket Streams
204+
205+
- `/<symbol>@depth<levels>@<update_speed>()` (`<symbol>@depth<levels>@<updateSpeed>` stream)
206+
- `/<symbol>@index()` (`<symbol>@index` stream)
207+
- `/<symbol>@ticker()` (`<symbol>@ticker` stream)
208+
- `/<symbol>@trade()` (`<symbol>@trade` stream)
209+
- `/<underlying_asset>@mark_price()` (`<underlyingAsset>@markPrice` stream)
210+
- `/<underlying_asset>@open_interest@<expiration_date>()` (`<underlyingAsset>@openInterest@<expirationDate>` stream)
211+
- `/<underlying_asset>@ticker@<expiration_date>()` (`<underlyingAsset>@ticker@<expirationDate>` stream)
212+
- `/option_pair()` (`option_pair` stream)
213+
3214
## 4.1.0 - 2026-01-13
4215

5216
### Changed (1)

clients/derivatives_trading_options/examples/rest_api/Account/get_download_id_for_option_transaction_history.py

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

clients/derivatives_trading_options/examples/rest_api/Account/get_option_transaction_history_download_link_by_id.py

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

0 commit comments

Comments
 (0)