Skip to content

Commit 7c44714

Browse files
authored
Merge pull request #220 from binance/products_18032026
regenerate product 18/03/2026
2 parents db90e91 + 2091898 commit 7c44714

176 files changed

Lines changed: 14699 additions & 330 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.

MIGRATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ For Spot (Spot package):
3737
<dependency>
3838
<groupId>io.github.binance</groupId>
3939
<artifactId>binance-spot</artifactId>
40-
<version>9.0.0</version>
40+
<version>10.0.0</version>
4141
</dependency>
4242
```
4343

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Each connector is published as a separate maven dependency. For example:
5454
<dependency>
5555
<groupId>io.github.binance</groupId>
5656
<artifactId>binance-spot</artifactId>
57-
<version>9.0.0</version>
57+
<version>10.0.0</version>
5858
</dependency>
5959
```
6060

clients/common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010

1111
<artifactId>binance-common</artifactId>
1212
<name>common</name>
13-
<version>2.3.1</version>
13+
<version>2.4.1</version>
1414
<packaging>jar</packaging>
1515
</project>

clients/common/src/main/java/com/binance/connector/client/common/websocket/adapter/ConnectionWrapper.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,11 @@ public void onWebSocketText(String message) {
447447
try {
448448
JsonElement root = JsonParser.parseString(message);
449449
JsonObject obj = root.getAsJsonObject();
450+
451+
if (handleShutdownMessage(obj)) {
452+
return;
453+
}
454+
450455
JsonElement idElem = obj.get("id");
451456
String id = idElem == null ? null : idElem.getAsString();
452457
RequestWrapperDTO requestWrapperDTO = null;
@@ -455,8 +460,8 @@ public void onWebSocketText(String message) {
455460
}
456461

457462
if (requestWrapperDTO == null) {
463+
JsonElement eventElem = obj.get("event");
458464
for (BlockingQueue<String> streamQueue : streamQueues) {
459-
JsonElement eventElem = obj.get("event");
460465
streamQueue.offer(eventElem != null ? eventElem.toString() : message);
461466
}
462467
return;
@@ -493,6 +498,23 @@ public boolean canReconnect() {
493498
return isReady && pendingRequest.isEmpty();
494499
}
495500

501+
protected boolean handleShutdownMessage(JsonObject jsonObj) {
502+
JsonElement eventElem = jsonObj.get("event");
503+
if (eventElem != null) {
504+
JsonObject eventElemObj = eventElem.getAsJsonObject();
505+
JsonElement eElement = eventElemObj.get("e");
506+
if (eElement != null && "serverShutdown".equals(eElement.getAsString())) {
507+
if (canReconnect()) {
508+
connect();
509+
} else {
510+
pendingReconnect = true;
511+
}
512+
return true;
513+
}
514+
}
515+
return false;
516+
}
517+
496518
protected void beforeConnect() {
497519
// session exists and is open, it's a reconnect
498520
if (this.session != null && this.session.isOpen()) {

clients/common/src/main/java/com/binance/connector/client/common/websocket/adapter/stream/StreamConnectionWrapper.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ public void onWebSocketText(String message) {
9595
try {
9696
JsonElement root = JsonParser.parseString(message);
9797
JsonObject obj = root.getAsJsonObject();
98+
99+
if (handleShutdownMessage(obj)) {
100+
return;
101+
}
102+
98103
// Response to subscribe
99104
JsonElement id = obj.get("id");
100105
if (id != null) {

clients/derivatives-trading-coin-futures/CHANGELOG.md

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

3+
## 7.0.0 - 2026-03-18
4+
5+
### Changed (1)
6+
7+
#### REST API
8+
9+
- Modified response for `exchangeInformation()` (`GET /dapi/v1/exchangeInfo`):
10+
- `symbols`.items: property `orderTypes` added
11+
- `symbols`.items: property `OrderType` deleted
12+
- `symbols`.items: item property `orderTypes` added
13+
- `symbols`.items: item property `OrderType` deleted
14+
315
## 6.0.0 - 2026-02-12
416

517
### Changed (2)

clients/derivatives-trading-coin-futures/docs/ExchangeInformationResponseSymbolsInner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
1010
|**filters** | [**List&lt;ExchangeInformationResponseSymbolsInnerFiltersInner&gt;**](ExchangeInformationResponseSymbolsInnerFiltersInner.md) | | [optional] |
11-
|**orderType** | **List&lt;String&gt;** | | [optional] |
11+
|**orderTypes** | **List&lt;String&gt;** | | [optional] |
1212
|**timeInForce** | **List&lt;String&gt;** | | [optional] |
1313
|**liquidationFee** | **String** | | [optional] |
1414
|**marketTakeBound** | **String** | | [optional] |

clients/derivatives-trading-coin-futures/docs/rest-api/migration-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ With the transition to a modularized structure, the Binance Connector has been s
2222
<dependency>
2323
<groupId>io.github.binance</groupId>
2424
<artifactId>binance-derivatives-trading-coin-futures</artifactId>
25-
<version>6.0.0</version>
25+
<version>7.0.0</version>
2626
</dependency>
2727
```
2828

@@ -91,7 +91,7 @@ by:
9191
<dependency>
9292
<groupId>io.github.binance</groupId>
9393
<artifactId>binance-derivatives-trading-coin-futures</artifactId>
94-
<version>6.0.0</version>
94+
<version>7.0.0</version>
9595
</dependency>
9696
```
9797

clients/derivatives-trading-coin-futures/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<artifactId>binance-derivatives-trading-coin-futures</artifactId>
77
<name>derivatives-trading-coin-futures</name>
8-
<version>6.0.0</version>
8+
<version>7.0.0</version>
99
<packaging>jar</packaging>
1010

1111
<parent>
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>io.github.binance</groupId>
3333
<artifactId>binance-common</artifactId>
34-
<version>2.3.1</version>
34+
<version>2.4.1</version>
3535
</dependency>
3636
</dependencies>
3737
</project>

clients/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/rest/api/AccountApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class AccountApi {
5454

5555
private static final String USER_AGENT =
5656
String.format(
57-
"binance-derivatives-trading-coin-futures/6.0.0 (Java/%s; %s; %s)",
57+
"binance-derivatives-trading-coin-futures/7.0.0 (Java/%s; %s; %s)",
5858
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
5959
private static final boolean HAS_TIME_UNIT = false;
6060

0 commit comments

Comments
 (0)