Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ For Futures (COIN-M Futures package):
</dependency>
```

### **Step 3: Update Imports**
### **Step 2: Update Imports**

Update your import paths:

Expand Down Expand Up @@ -79,7 +79,7 @@ import com.binance.connector.futures.client.impl.CMFuturesClientImpl;
import com.binance.connector.client.derivatives_trading_coin_futures.rest.api.DerivativesTradingCoinFuturesRestApi;
```

### **Step 4: Update Client Initialization**
### **Step 3: Update Client Initialization**

The new structure introduces a more modular approach to client initialization.

Expand Down Expand Up @@ -129,11 +129,11 @@ The new structure introduces a more modular approach to client initialization.
DerivativesTradingCoinFuturesRestApi api = new DerivativesTradingCoinFuturesRestApi(clientConfiguration);

Long recvWindow = 5000L;
ApiResponse<AccountInformationResponse> response = getApi().accountInformation(recvWindow);
ApiResponse<AccountInformationResponse> response = api.accountInformation(recvWindow);
System.out.println(response.getData());
```

### **Step 5: Check for API Differences**
### **Step 4: Check for API Differences**

Some function names or response structures may have changed. Refer to the modular connector's documentation for details.

Expand Down
46 changes: 0 additions & 46 deletions clients/convert/.openapi-generator/FILES

This file was deleted.

1 change: 0 additions & 1 deletion clients/convert/.openapi-generator/VERSION

This file was deleted.

17 changes: 17 additions & 0 deletions clients/derivatives-trading-usds-futures/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## 8.0.0 - 2026-01-06

### Changed (3)

#### WebSocket API

- Added parameter `activatePrice`
- affected methods:
- `newAlgoOrder()` (`algoOrder.place` method)
- Deleted parameter `activationPrice`
- affected methods:
- `newAlgoOrder()` (`algoOrder.place` method)
#### WebSocket Streams

- Modified response for `aggregateTradeStreams()` (`<symbol>@aggTrade` stream):
- property `nq` added

## 7.0.0 - 2025-12-16

### Added (14)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
|**aLowerCase** | **Long** | | [optional] |
|**pLowerCase** | **String** | | [optional] |
|**qLowerCase** | **String** | | [optional] |
|**nq** | **String** | | [optional] |
|**fLowerCase** | **Long** | | [optional] |
|**lLowerCase** | **Long** | | [optional] |
|**T** | **Long** | | [optional] |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
|**reduceOnly** | **String** | | [optional] |
|**price** | **String** | | [optional] |
|**newClientOrderId** | **String** | | [optional] |
|**stopPrice** | **String** | | [optional] |
|**activationPrice** | **String** | | [optional] |
|**callbackRate** | **String** | | [optional] |
|**workingType** | [**WorkingTypeEnum**](#WorkingTypeEnum) | | [optional] |
|**priceProtect** | **String** | | [optional] |
|**newOrderRespType** | [**NewOrderRespTypeEnum**](#NewOrderRespTypeEnum) | | [optional] |
|**priceMatch** | [**PriceMatchEnum**](#PriceMatchEnum) | | [optional] |
|**selfTradePreventionMode** | [**SelfTradePreventionModeEnum**](#SelfTradePreventionModeEnum) | | [optional] |
Expand Down Expand Up @@ -60,15 +55,6 @@



## Enum: WorkingTypeEnum

| Name | Value |
|---- | -----|
| MARK_PRICE | &quot;MARK_PRICE&quot; |
| CONTRACT_PRICE | &quot;CONTRACT_PRICE&quot; |



## Enum: NewOrderRespTypeEnum

| Name | Value |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,8 @@
|------------ | ------------- | ------------- | -------------|
|**algoId** | **Long** | | [optional] |
|**clientAlgoId** | **String** | | [optional] |
|**algoType** | **String** | | [optional] |
|**orderType** | **String** | | [optional] |
|**symbol** | **String** | | [optional] |
|**side** | **String** | | [optional] |
|**positionSide** | **String** | | [optional] |
|**timeInForce** | **String** | | [optional] |
|**quantity** | **String** | | [optional] |
|**algoStatus** | **String** | | [optional] |
|**triggerPrice** | **String** | | [optional] |
|**price** | **String** | | [optional] |
|**icebergQuantity** | **String** | | [optional] |
|**selfTradePreventionMode** | **String** | | [optional] |
|**workingType** | **String** | | [optional] |
|**priceMatch** | **String** | | [optional] |
|**closePosition** | **Boolean** | | [optional] |
|**priceProtect** | **Boolean** | | [optional] |
|**reduceOnly** | **Boolean** | | [optional] |
|**createTime** | **Long** | | [optional] |
|**updateTime** | **Long** | | [optional] |
|**triggerTime** | **Long** | | [optional] |
|**goodTillDate** | **Long** | | [optional] |
|**code** | **String** | | [optional] |
|**msg** | **String** | | [optional] |



Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
|**id** | **String** | | [optional] |
|**status** | **Long** | | [optional] |
|**result** | [**CancelOrderResponseResult**](CancelOrderResponseResult.md) | | [optional] |
|**rateLimits** | [**List&lt;CancelAlgoOrderResponseRateLimitsInner&gt;**](CancelAlgoOrderResponseRateLimitsInner.md) | | [optional] |
|**rateLimits** | [**List&lt;CancelOrderResponseRateLimitsInner&gt;**](CancelOrderResponseRateLimitsInner.md) | | [optional] |



Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


# CancelOrderResponseRateLimitsInner


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**rateLimitType** | **String** | | [optional] |
|**interval** | **String** | | [optional] |
|**intervalNum** | **Long** | | [optional] |
|**limit** | **Long** | | [optional] |
|**count** | **Long** | | [optional] |



Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
|**closePosition** | **String** | | [optional] |
|**priceProtect** | **String** | | [optional] |
|**reduceOnly** | **String** | | [optional] |
|**activationPrice** | **Double** | | [optional] |
|**activatePrice** | **Double** | | [optional] |
|**callbackRate** | **Double** | | [optional] |
|**clientAlgoId** | **String** | | [optional] |
|**selfTradePreventionMode** | **SelfTradePreventionMode** | | [optional] |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
|**id** | **String** | | [optional] |
|**status** | **Long** | | [optional] |
|**result** | [**NewAlgoOrderResponseResult**](NewAlgoOrderResponseResult.md) | | [optional] |
|**rateLimits** | [**List&lt;CancelAlgoOrderResponseRateLimitsInner&gt;**](CancelAlgoOrderResponseRateLimitsInner.md) | | [optional] |
|**rateLimits** | [**List&lt;CancelOrderResponseRateLimitsInner&gt;**](CancelOrderResponseRateLimitsInner.md) | | [optional] |



Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
|**timeInForce** | **String** | | [optional] |
|**type** | **String** | | [optional] |
|**origType** | **String** | | [optional] |
|**activatePrice** | **String** | | [optional] |
|**priceRate** | **String** | | [optional] |
|**updateTime** | **Long** | | [optional] |
|**workingType** | **String** | | [optional] |
|**priceProtect** | **Boolean** | | [optional] |
Expand Down
2 changes: 1 addition & 1 deletion clients/derivatives-trading-usds-futures/docs/TradeApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ No authorization required

New Algo Order(TRADE)

Send in a new algo order. * Condition orders will be triggered when: * If parameter&#x60;priceProtect&#x60;is sent as true: * when price reaches the &#x60;triggerPrice&#x60; ,the difference rate between \&quot;MARK_PRICE\&quot; and \&quot;CONTRACT_PRICE\&quot; cannot be larger than the \&quot;triggerProtect\&quot; of the symbol * \&quot;triggerProtect\&quot; of a symbol can be got from &#x60;GET /fapi/v1/exchangeInfo&#x60; * &#x60;STOP&#x60;, &#x60;STOP_MARKET&#x60;: * BUY: latest price (\&quot;MARK_PRICE\&quot; or \&quot;CONTRACT_PRICE\&quot;) &gt;&#x3D; &#x60;triggerPrice&#x60; * SELL: latest price (\&quot;MARK_PRICE\&quot; or \&quot;CONTRACT_PRICE\&quot;) &lt;&#x3D; &#x60;triggerPrice&#x60; * &#x60;TAKE_PROFIT&#x60;, &#x60;TAKE_PROFIT_MARKET&#x60;: * BUY: latest price (\&quot;MARK_PRICE\&quot; or \&quot;CONTRACT_PRICE\&quot;) &lt;&#x3D; &#x60;triggerPrice&#x60; * SELL: latest price (\&quot;MARK_PRICE\&quot; or \&quot;CONTRACT_PRICE\&quot;) &gt;&#x3D; &#x60;triggerPrice&#x60; * &#x60;TRAILING_STOP_MARKET&#x60;: * BUY: the lowest price after order placed &lt;&#x3D; &#x60;activationPrice&#x60;, and the latest price &gt;&#x3D; the lowest price * (1 + &#x60;callbackRate&#x60;) * SELL: the highest price after order placed &gt;&#x3D; &#x60;activationPrice&#x60;, and the latest price &lt;&#x3D; the highest price * (1 - &#x60;callbackRate&#x60;) * For &#x60;TRAILING_STOP_MARKET&#x60;, if you got such error code. &#x60;&#x60;{\&quot;code\&quot;: -2021, \&quot;msg\&quot;: \&quot;Order would immediately trigger.\&quot;}&#x60;&#x60; means that the parameters you send do not meet the following requirements: * BUY: &#x60;activationPrice&#x60; should be smaller than latest price. * SELL: &#x60;activationPrice&#x60; should be larger than latest price. * &#x60;STOP_MARKET&#x60;, &#x60;TAKE_PROFIT_MARKET&#x60; with &#x60;closePosition&#x60;&#x3D;&#x60;true&#x60;: * Follow the same rules for condition orders. * If triggered,**close all** current long position( if &#x60;SELL&#x60;) or current short position( if &#x60;BUY&#x60;). * Cannot be used with &#x60;quantity&#x60; paremeter * Cannot be used with &#x60;reduceOnly&#x60; parameter * In Hedge Mode,cannot be used with &#x60;BUY&#x60; orders in &#x60;LONG&#x60; position side. and cannot be used with &#x60;SELL&#x60; orders in &#x60;SHORT&#x60; position side * &#x60;selfTradePreventionMode&#x60; is only effective when &#x60;timeInForce&#x60; set to &#x60;IOC&#x60; or &#x60;GTC&#x60; or &#x60;GTD&#x60;. Weight: 0
Send in a new algo order. * Condition orders will be triggered when: * If parameter&#x60;priceProtect&#x60;is sent as true: * when price reaches the &#x60;triggerPrice&#x60; ,the difference rate between \&quot;MARK_PRICE\&quot; and \&quot;CONTRACT_PRICE\&quot; cannot be larger than the \&quot;triggerProtect\&quot; of the symbol * \&quot;triggerProtect\&quot; of a symbol can be got from &#x60;GET /fapi/v1/exchangeInfo&#x60; * &#x60;STOP&#x60;, &#x60;STOP_MARKET&#x60;: * BUY: latest price (\&quot;MARK_PRICE\&quot; or \&quot;CONTRACT_PRICE\&quot;) &gt;&#x3D; &#x60;triggerPrice&#x60; * SELL: latest price (\&quot;MARK_PRICE\&quot; or \&quot;CONTRACT_PRICE\&quot;) &lt;&#x3D; &#x60;triggerPrice&#x60; * &#x60;TAKE_PROFIT&#x60;, &#x60;TAKE_PROFIT_MARKET&#x60;: * BUY: latest price (\&quot;MARK_PRICE\&quot; or \&quot;CONTRACT_PRICE\&quot;) &lt;&#x3D; &#x60;triggerPrice&#x60; * SELL: latest price (\&quot;MARK_PRICE\&quot; or \&quot;CONTRACT_PRICE\&quot;) &gt;&#x3D; &#x60;triggerPrice&#x60; * &#x60;TRAILING_STOP_MARKET&#x60;: * BUY: the lowest price after order placed &lt;&#x3D; &#x60;activatePrice&#x60;, and the latest price &gt;&#x3D; the lowest price * (1 + &#x60;callbackRate&#x60;) * SELL: the highest price after order placed &gt;&#x3D; &#x60;activatePrice&#x60;, and the latest price &lt;&#x3D; the highest price * (1 - &#x60;callbackRate&#x60;) * For &#x60;TRAILING_STOP_MARKET&#x60;, if you got such error code. &#x60;&#x60;{\&quot;code\&quot;: -2021, \&quot;msg\&quot;: \&quot;Order would immediately trigger.\&quot;}&#x60;&#x60; means that the parameters you send do not meet the following requirements: * BUY: &#x60;activatePrice&#x60; should be smaller than latest price. * SELL: &#x60;activatePrice&#x60; should be larger than latest price. * &#x60;STOP_MARKET&#x60;, &#x60;TAKE_PROFIT_MARKET&#x60; with &#x60;closePosition&#x60;&#x3D;&#x60;true&#x60;: * Follow the same rules for condition orders. * If triggered,**close all** current long position( if &#x60;SELL&#x60;) or current short position( if &#x60;BUY&#x60;). * Cannot be used with &#x60;quantity&#x60; paremeter * Cannot be used with &#x60;reduceOnly&#x60; parameter * In Hedge Mode,cannot be used with &#x60;BUY&#x60; orders in &#x60;LONG&#x60; position side. and cannot be used with &#x60;SELL&#x60; orders in &#x60;SHORT&#x60; position side * &#x60;selfTradePreventionMode&#x60; is only effective when &#x60;timeInForce&#x60; set to &#x60;IOC&#x60; or &#x60;GTC&#x60; or &#x60;GTD&#x60;. Weight: 0

### Example
```java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ All URIs are relative to *http://localhost*

Aggregate Trade Streams

The Aggregate Trade Streams push market trade information that is aggregated for fills with same price and taking side every 100 milliseconds. Only market trades will be aggregated, which means the insurance fund trades and ADL trades won&#39;t be aggregated. Retail Price Improvement(RPI) orders are aggregated and without special tags to be distinguished. Update Speed: 100ms
The Aggregate Trade Streams push market trade information that is aggregated for fills with same price and taking side every 100 milliseconds. Only market trades will be aggregated, which means the insurance fund trades and ADL trades won&#39;t be aggregated. Retail Price Improvement(RPI) orders are aggregated into field &#x60;q&#x60; and without special tags to be distinguished. Update Speed: 100ms

### Example
```java
Expand Down Expand Up @@ -962,7 +962,7 @@ No authorization required

Mark Price Stream for All market

Mark price and funding rate for all symbols pushed every 3 seconds or every second. **Note**: This stream does not cover TradFi Perps. Update Speed: 3000ms or 1000ms
Mark price and funding rate for all symbols pushed every 3 seconds or every second. **Note**: TradFi symbols will be pushed through a seperate message. Update Speed: 3000ms or 1000ms

### Example
```java
Expand Down Expand Up @@ -1210,7 +1210,7 @@ No authorization required

Trading Session Stream

Trading session information of U.S. equity market and commodity market which updates every second. Trading session information of different markets is pushed in seperate messages. Session types of equity market include \&quot;PRE_MARKET\&quot;, \&quot;REGULAR\&quot;, \&quot;AFTER_MARKET\&quot;, \&quot;OVERNIGHT\&quot; and \&quot;NO_TRADING\&quot;. And session types of commodity market include \&quot;REGULAR\&quot; and \&quot;NO_TRADING\&quot;. Update Speed: 1s
Trading session information for the underlying assets of TradFi Perpetual contracts—covering the U.S. equity market and the commodity market—is updated every second. Trading session information for different underlying markets is pushed in separate messages. Session types for the equity market include \&quot;PRE_MARKET\&quot;, \&quot;REGULAR\&quot;, \&quot;AFTER_MARKET\&quot;, \&quot;OVERNIGHT\&quot;, and \&quot;NO_TRADING\&quot;. Session types for the commodity market include \&quot;REGULAR\&quot; and \&quot;NO_TRADING\&quot;. Update Speed: 1s

### Example
```java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ With the transition to a modularized structure, the Binance Connector has been s
<dependency>
<groupId>io.github.binance</groupId>
<artifactId>binance-derivatives-trading-usds-futures</artifactId>
<version>7.0.0</version>
<version>8.0.0</version>
</dependency>
```

Expand Down Expand Up @@ -91,7 +91,7 @@ by:
<dependency>
<groupId>io.github.binance</groupId>
<artifactId>binance-derivatives-trading-usds-futures</artifactId>
<version>7.0.0</version>
<version>8.0.0</version>
</dependency>
```

Expand Down
Loading
Loading