> getSchemas() {
/**
* Set the instance that matches the oneOf child schema, check the instance parameter is valid
- * against the oneOf child schemas: Risklevelchange
+ * against the oneOf child schemas: PmProAccountUpdate, Risklevelchange
*
* It could be an instance of the 'oneOf' schemas.
*/
@Override
public void setActualInstance(Object instance) {
+ if (instance instanceof PmProAccountUpdate) {
+ super.setActualInstance(instance);
+ return;
+ }
+
if (instance instanceof Risklevelchange) {
super.setActualInstance(instance);
return;
}
- throw new RuntimeException("Invalid instance type. Must be Risklevelchange");
+ throw new RuntimeException(
+ "Invalid instance type. Must be PmProAccountUpdate, Risklevelchange");
}
/**
- * Get the actual instance, which can be the following: Risklevelchange
+ * Get the actual instance, which can be the following: PmProAccountUpdate, Risklevelchange
*
- * @return The actual instance (Risklevelchange)
+ * @return The actual instance (PmProAccountUpdate, Risklevelchange)
*/
@SuppressWarnings("unchecked")
@Override
@@ -210,6 +262,17 @@ public Object getActualInstance() {
return super.getActualInstance();
}
+ /**
+ * Get the actual instance of `PmProAccountUpdate`. If the actual instance is not
+ * `PmProAccountUpdate`, the ClassCastException will be thrown.
+ *
+ * @return The actual instance of `PmProAccountUpdate`
+ * @throws ClassCastException if the instance is not `PmProAccountUpdate`
+ */
+ public PmProAccountUpdate getPmProAccountUpdate() throws ClassCastException {
+ return (PmProAccountUpdate) super.getActualInstance();
+ }
+
/**
* Get the actual instance of `Risklevelchange`. If the actual instance is not
* `Risklevelchange`, the ClassCastException will be thrown.
@@ -232,6 +295,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
// validate oneOf schemas one by one
int validCount = 0;
ArrayList errorMessages = new ArrayList<>();
+ // validate the json string with PmProAccountUpdate
+ try {
+ PmProAccountUpdate.validateJsonElement(jsonElement);
+ validCount++;
+ } catch (Exception e) {
+ errorMessages.add(
+ String.format(
+ "Deserialization for PmProAccountUpdate failed with `%s`.",
+ e.getMessage()));
+ // continue to the next one
+ }
// validate the json string with Risklevelchange
try {
Risklevelchange.validateJsonElement(jsonElement);
@@ -247,9 +321,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
throw new IOException(
String.format(
"The JSON string is invalid for UserDataStreamEventsResponse with oneOf"
- + " schemas: Risklevelchange. %d class(es) match the result,"
- + " expected 1. Detailed failure message for oneOf schemas: %s."
- + " JSON: %s",
+ + " schemas: PmProAccountUpdate, Risklevelchange. %d class(es)"
+ + " match the result, expected 1. Detailed failure message for"
+ + " oneOf schemas: %s. JSON: %s",
validCount, errorMessages, jsonElement.toString()));
}
}
diff --git a/clients/derivatives-trading-portfolio-margin/CHANGELOG.md b/clients/derivatives-trading-portfolio-margin/CHANGELOG.md
index c1b86053f..c225b8dad 100644
--- a/clients/derivatives-trading-portfolio-margin/CHANGELOG.md
+++ b/clients/derivatives-trading-portfolio-margin/CHANGELOG.md
@@ -1,6 +1,39 @@
# Changelog
+## 6.0.0 - 2026-05-04
+
+- Added stop method for WebSocket
+
+### Added (7)
+
+#### REST API
+
+- `cancelAllUmAlgoOpenOrders()` (`DELETE /papi/v1/um/algo/allOpenOrders`)
+- `cancelUmAlgoOrder()` (`DELETE /papi/v1/um/algo/order`)
+- `futuresTradfiPerpsContract()` (`POST /papi/v1/um/stock/contract`)
+- `newUmAlgoOrder()` (`POST /papi/v1/um/algo/order`)
+- `queryAllCurrentUmOpenAlgoOrders()` (`GET /papi/v1/um/algo/openAlgoOrders`)
+- `queryCurrentUmOpenAlgoOrder()` (`GET /papi/v1/um/algo/algoOrder`)
+- `queryUmAlgoOrderHistory()` (`GET /papi/v1/um/algo/allAlgoOrders`)
+
+### Changed (8)
+
+#### REST API
+
+- Modified response for `getUmIncomeHistory()` (`GET /papi/v1/um/income`):
+ - items.`tranId`: type `string` → `integer`
+ - items.`tranId`: type `string` → `integer`
+
+- Marked `cancelAllUmOpenConditionalOrders()` (`DELETE /papi/v1/um/conditional/allOpenOrders`) as deprecated.
+- Marked `cancelUmConditionalOrder()` (`DELETE /papi/v1/um/conditional/order`) as deprecated.
+- Marked `newUmConditionalOrder()` (`POST /papi/v1/um/conditional/order`) as deprecated.
+- Marked `queryAllCurrentUmOpenConditionalOrders()` (`GET /papi/v1/um/conditional/openOrders`) as deprecated.
+- Marked `queryAllUmConditionalOrders()` (`GET /papi/v1/um/conditional/allOrders`) as deprecated.
+- Marked `queryCurrentUmOpenConditionalOrder()` (`GET /papi/v1/um/conditional/openOrder`) as deprecated.
+- Marked `queryUmConditionalOrderHistory()` (`GET /papi/v1/um/conditional/orderHistory`) as deprecated.
+
## 5.0.1 - 2026-04-30
+
- Update `binance/common` module to version `2.4.2`.
## 5.0.0 - 2026-02-12
diff --git a/clients/derivatives-trading-portfolio-margin/docs/AccountApi.md b/clients/derivatives-trading-portfolio-margin/docs/AccountApi.md
index 11f9234c4..62fc74aec 100644
--- a/clients/derivatives-trading-portfolio-margin/docs/AccountApi.md
+++ b/clients/derivatives-trading-portfolio-margin/docs/AccountApi.md
@@ -1458,7 +1458,7 @@ No authorization required
Get UM Futures Order Download Link by Id(USER_DATA)
-Get UM futures order download link by Id * Download link expiration: 24h Weight: 10
+Get UM futures order download link by Id * Download link expiration: 7 days Weight: 10
### Example
```java
@@ -1522,7 +1522,7 @@ No authorization required
Get UM Futures Trade Download Link by Id(USER_DATA)
-Get UM futures trade download link by Id * Download link expiration: 24h Weight: 10
+Get UM futures trade download link by Id * Download link expiration: 7 days Weight: 10
### Example
```java
@@ -1586,7 +1586,7 @@ No authorization required
Get UM Futures Transaction Download Link by Id(USER_DATA)
-Get UM futures Transaction download link by Id * Download link expiration: 24h Weight: 10
+Get UM futures Transaction download link by Id * Download link expiration: 7 days Weight: 10
### Example
```java
diff --git a/clients/derivatives-trading-portfolio-margin/docs/AlgoUpdate.md b/clients/derivatives-trading-portfolio-margin/docs/AlgoUpdate.md
new file mode 100644
index 000000000..13642fb2a
--- /dev/null
+++ b/clients/derivatives-trading-portfolio-margin/docs/AlgoUpdate.md
@@ -0,0 +1,16 @@
+
+
+# AlgoUpdate
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**T** | **Long** | | [optional] |
+|**E** | **Long** | | [optional] |
+|**fs** | **String** | | [optional] |
+|**ao** | [**AlgoUpdateAo**](AlgoUpdateAo.md) | | [optional] |
+
+
+
diff --git a/clients/derivatives-trading-portfolio-margin/docs/AlgoUpdateAo.md b/clients/derivatives-trading-portfolio-margin/docs/AlgoUpdateAo.md
new file mode 100644
index 000000000..96b4f98e6
--- /dev/null
+++ b/clients/derivatives-trading-portfolio-margin/docs/AlgoUpdateAo.md
@@ -0,0 +1,37 @@
+
+
+# AlgoUpdateAo
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**caid** | **String** | | [optional] |
+|**aid** | **Long** | | [optional] |
+|**at** | **String** | | [optional] |
+|**oLowerCase** | **String** | | [optional] |
+|**sLowerCase** | **String** | | [optional] |
+|**S** | **String** | | [optional] |
+|**ps** | **String** | | [optional] |
+|**fLowerCase** | **String** | | [optional] |
+|**qLowerCase** | **String** | | [optional] |
+|**X** | **String** | | [optional] |
+|**ai** | **String** | | [optional] |
+|**ap** | **String** | | [optional] |
+|**aq** | **String** | | [optional] |
+|**act** | **String** | | [optional] |
+|**tp** | **String** | | [optional] |
+|**pLowerCase** | **String** | | [optional] |
+|**V** | **String** | | [optional] |
+|**wt** | **String** | | [optional] |
+|**pm** | **String** | | [optional] |
+|**cp** | **Boolean** | | [optional] |
+|**pP** | **Boolean** | | [optional] |
+|**R** | **Boolean** | | [optional] |
+|**tt** | **Long** | | [optional] |
+|**gtd** | **Long** | | [optional] |
+|**rm** | **String** | | [optional] |
+
+
+
diff --git a/clients/derivatives-trading-portfolio-margin/docs/CancelAllUmAlgoOpenOrdersResponse.md b/clients/derivatives-trading-portfolio-margin/docs/CancelAllUmAlgoOpenOrdersResponse.md
new file mode 100644
index 000000000..a8fa790e1
--- /dev/null
+++ b/clients/derivatives-trading-portfolio-margin/docs/CancelAllUmAlgoOpenOrdersResponse.md
@@ -0,0 +1,14 @@
+
+
+# CancelAllUmAlgoOpenOrdersResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**code** | **Long** | | [optional] |
+|**msg** | **String** | | [optional] |
+
+
+
diff --git a/clients/derivatives-trading-portfolio-margin/docs/CancelUmAlgoOrderResponse.md b/clients/derivatives-trading-portfolio-margin/docs/CancelUmAlgoOrderResponse.md
new file mode 100644
index 000000000..86196f30c
--- /dev/null
+++ b/clients/derivatives-trading-portfolio-margin/docs/CancelUmAlgoOrderResponse.md
@@ -0,0 +1,13 @@
+
+
+# CancelUmAlgoOrderResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**complete** | **Boolean** | | [optional] |
+
+
+
diff --git a/clients/derivatives-trading-portfolio-margin/docs/Executionreport.md b/clients/derivatives-trading-portfolio-margin/docs/Executionreport.md
index 2aa03c5f9..c26e1d3a2 100644
--- a/clients/derivatives-trading-portfolio-margin/docs/Executionreport.md
+++ b/clients/derivatives-trading-portfolio-margin/docs/Executionreport.md
@@ -48,6 +48,11 @@
|**U** | **Long** | | [optional] |
|**A** | **String** | | [optional] |
|**B** | **String** | | [optional] |
+|**cs** | **String** | | [optional] |
+|**pl** | **String** | | [optional] |
+|**pL** | **String** | | [optional] |
+|**pY** | **String** | | [optional] |
+|**eR** | **String** | | [optional] |
diff --git a/clients/derivatives-trading-portfolio-margin/docs/FuturesTradfiPerpsContractRequest.md b/clients/derivatives-trading-portfolio-margin/docs/FuturesTradfiPerpsContractRequest.md
new file mode 100644
index 000000000..b4754deb3
--- /dev/null
+++ b/clients/derivatives-trading-portfolio-margin/docs/FuturesTradfiPerpsContractRequest.md
@@ -0,0 +1,13 @@
+
+
+# FuturesTradfiPerpsContractRequest
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**recvWindow** | **Long** | | [optional] |
+
+
+
diff --git a/clients/derivatives-trading-usds-futures/docs/FuturesTradfiPerpsContractResponse.md b/clients/derivatives-trading-portfolio-margin/docs/FuturesTradfiPerpsContractResponse.md
similarity index 100%
rename from clients/derivatives-trading-usds-futures/docs/FuturesTradfiPerpsContractResponse.md
rename to clients/derivatives-trading-portfolio-margin/docs/FuturesTradfiPerpsContractResponse.md
diff --git a/clients/derivatives-trading-portfolio-margin/docs/GetUmIncomeHistoryResponseInner.md b/clients/derivatives-trading-portfolio-margin/docs/GetUmIncomeHistoryResponseInner.md
index 3ea3ca912..a5c7604e1 100644
--- a/clients/derivatives-trading-portfolio-margin/docs/GetUmIncomeHistoryResponseInner.md
+++ b/clients/derivatives-trading-portfolio-margin/docs/GetUmIncomeHistoryResponseInner.md
@@ -13,7 +13,7 @@
|**asset** | **String** | | [optional] |
|**info** | **String** | | [optional] |
|**time** | **Long** | | [optional] |
-|**tranId** | **String** | | [optional] |
+|**tranId** | **Long** | | [optional] |
|**tradeId** | **String** | | [optional] |
diff --git a/clients/derivatives-trading-portfolio-margin/docs/NewUmAlgoOrderRequest.md b/clients/derivatives-trading-portfolio-margin/docs/NewUmAlgoOrderRequest.md
new file mode 100644
index 000000000..390b9669c
--- /dev/null
+++ b/clients/derivatives-trading-portfolio-margin/docs/NewUmAlgoOrderRequest.md
@@ -0,0 +1,33 @@
+
+
+# NewUmAlgoOrderRequest
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**algoType** | **String** | | |
+|**symbol** | **String** | | |
+|**side** | **Side** | | |
+|**positionSide** | **PositionSide** | | [optional] |
+|**type** | **Type** | | |
+|**timeInForce** | **TimeInForce** | | [optional] |
+|**quantity** | **Double** | | [optional] |
+|**price** | **Double** | | [optional] |
+|**triggerPrice** | **Double** | | [optional] |
+|**workingType** | **WorkingType** | | [optional] |
+|**priceMatch** | **PriceMatch** | | [optional] |
+|**closePosition** | **String** | | [optional] |
+|**priceProtect** | **String** | | [optional] |
+|**reduceOnly** | **String** | | [optional] |
+|**activatePrice** | **Double** | | [optional] |
+|**callbackRate** | **Double** | | [optional] |
+|**clientAlgoId** | **String** | | [optional] |
+|**newOrderRespType** | **NewOrderRespType** | | [optional] |
+|**selfTradePreventionMode** | **SelfTradePreventionMode** | | [optional] |
+|**goodTillDate** | **Long** | | [optional] |
+|**recvWindow** | **Long** | | [optional] |
+
+
+
diff --git a/clients/derivatives-trading-portfolio-margin/docs/NewUmAlgoOrderResponse.md b/clients/derivatives-trading-portfolio-margin/docs/NewUmAlgoOrderResponse.md
new file mode 100644
index 000000000..6f62a5d8d
--- /dev/null
+++ b/clients/derivatives-trading-portfolio-margin/docs/NewUmAlgoOrderResponse.md
@@ -0,0 +1,37 @@
+
+
+# NewUmAlgoOrderResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**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] |
+|**activatePrice** | **String** | | [optional] |
+|**callbackRate** | **String** | | [optional] |
+|**createTime** | **Long** | | [optional] |
+|**updateTime** | **Long** | | [optional] |
+|**triggerTime** | **Long** | | [optional] |
+|**goodTillDate** | **Long** | | [optional] |
+
+
+
diff --git a/clients/derivatives-trading-portfolio-margin/docs/QueryAllCurrentUmOpenAlgoOrdersResponse.md b/clients/derivatives-trading-portfolio-margin/docs/QueryAllCurrentUmOpenAlgoOrdersResponse.md
new file mode 100644
index 000000000..44a7f846a
--- /dev/null
+++ b/clients/derivatives-trading-portfolio-margin/docs/QueryAllCurrentUmOpenAlgoOrdersResponse.md
@@ -0,0 +1,12 @@
+
+
+# QueryAllCurrentUmOpenAlgoOrdersResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+
+
+
diff --git a/clients/derivatives-trading-portfolio-margin/docs/QueryAllCurrentUmOpenAlgoOrdersResponseInner.md b/clients/derivatives-trading-portfolio-margin/docs/QueryAllCurrentUmOpenAlgoOrdersResponseInner.md
new file mode 100644
index 000000000..4e0ce07fb
--- /dev/null
+++ b/clients/derivatives-trading-portfolio-margin/docs/QueryAllCurrentUmOpenAlgoOrdersResponseInner.md
@@ -0,0 +1,42 @@
+
+
+# QueryAllCurrentUmOpenAlgoOrdersResponseInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**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] |
+|**actualOrderId** | **String** | | [optional] |
+|**actualPrice** | **String** | | [optional] |
+|**triggerPrice** | **String** | | [optional] |
+|**price** | **String** | | [optional] |
+|**icebergQuantity** | **String** | | [optional] |
+|**tpTriggerPrice** | **String** | | [optional] |
+|**tpPrice** | **String** | | [optional] |
+|**slTriggerPrice** | **String** | | [optional] |
+|**slPrice** | **String** | | [optional] |
+|**tpOrderType** | **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] |
+
+
+
diff --git a/clients/derivatives-trading-portfolio-margin/docs/QueryCurrentUmOpenAlgoOrderResponse.md b/clients/derivatives-trading-portfolio-margin/docs/QueryCurrentUmOpenAlgoOrderResponse.md
new file mode 100644
index 000000000..bcc5fc434
--- /dev/null
+++ b/clients/derivatives-trading-portfolio-margin/docs/QueryCurrentUmOpenAlgoOrderResponse.md
@@ -0,0 +1,42 @@
+
+
+# QueryCurrentUmOpenAlgoOrderResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**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] |
+|**actualOrderId** | **String** | | [optional] |
+|**actualPrice** | **String** | | [optional] |
+|**triggerPrice** | **String** | | [optional] |
+|**price** | **String** | | [optional] |
+|**icebergQuantity** | **String** | | [optional] |
+|**tpTriggerPrice** | **String** | | [optional] |
+|**tpPrice** | **String** | | [optional] |
+|**slTriggerPrice** | **String** | | [optional] |
+|**slPrice** | **String** | | [optional] |
+|**tpOrderType** | **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] |
+
+
+
diff --git a/clients/derivatives-trading-portfolio-margin/docs/QueryUmAlgoOrderHistoryResponse.md b/clients/derivatives-trading-portfolio-margin/docs/QueryUmAlgoOrderHistoryResponse.md
new file mode 100644
index 000000000..493da0caa
--- /dev/null
+++ b/clients/derivatives-trading-portfolio-margin/docs/QueryUmAlgoOrderHistoryResponse.md
@@ -0,0 +1,12 @@
+
+
+# QueryUmAlgoOrderHistoryResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+
+
+
diff --git a/clients/derivatives-trading-portfolio-margin/docs/QueryUmAlgoOrderHistoryResponseInner.md b/clients/derivatives-trading-portfolio-margin/docs/QueryUmAlgoOrderHistoryResponseInner.md
new file mode 100644
index 000000000..897481a41
--- /dev/null
+++ b/clients/derivatives-trading-portfolio-margin/docs/QueryUmAlgoOrderHistoryResponseInner.md
@@ -0,0 +1,42 @@
+
+
+# QueryUmAlgoOrderHistoryResponseInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**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] |
+|**actualOrderId** | **String** | | [optional] |
+|**actualPrice** | **String** | | [optional] |
+|**triggerPrice** | **String** | | [optional] |
+|**price** | **String** | | [optional] |
+|**icebergQuantity** | **String** | | [optional] |
+|**tpTriggerPrice** | **String** | | [optional] |
+|**tpPrice** | **String** | | [optional] |
+|**slTriggerPrice** | **String** | | [optional] |
+|**slPrice** | **String** | | [optional] |
+|**tpOrderType** | **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] |
+
+
+
diff --git a/clients/derivatives-trading-portfolio-margin/docs/TradeApi.md b/clients/derivatives-trading-portfolio-margin/docs/TradeApi.md
index 4163aa9ce..c599671ef 100644
--- a/clients/derivatives-trading-portfolio-margin/docs/TradeApi.md
+++ b/clients/derivatives-trading-portfolio-margin/docs/TradeApi.md
@@ -6,17 +6,20 @@ All URIs are relative to *https://papi.binance.com*
|------------- | ------------- | -------------|
| [**cancelAllCmOpenConditionalOrders**](TradeApi.md#cancelAllCmOpenConditionalOrders) | **DELETE** /papi/v1/cm/conditional/allOpenOrders | Cancel All CM Open Conditional Orders(TRADE) |
| [**cancelAllCmOpenOrders**](TradeApi.md#cancelAllCmOpenOrders) | **DELETE** /papi/v1/cm/allOpenOrders | Cancel All CM Open Orders(TRADE) |
-| [**cancelAllUmOpenConditionalOrders**](TradeApi.md#cancelAllUmOpenConditionalOrders) | **DELETE** /papi/v1/um/conditional/allOpenOrders | Cancel All UM Open Conditional Orders (TRADE) |
+| [**cancelAllUmAlgoOpenOrders**](TradeApi.md#cancelAllUmAlgoOpenOrders) | **DELETE** /papi/v1/um/algo/allOpenOrders | Cancel All UM Algo Open Orders (TRADE) |
+| [**cancelAllUmOpenConditionalOrders**](TradeApi.md#cancelAllUmOpenConditionalOrders) | **DELETE** /papi/v1/um/conditional/allOpenOrders | Cancel All UM Open Conditional Orders |
| [**cancelAllUmOpenOrders**](TradeApi.md#cancelAllUmOpenOrders) | **DELETE** /papi/v1/um/allOpenOrders | Cancel All UM Open Orders(TRADE) |
| [**cancelCmConditionalOrder**](TradeApi.md#cancelCmConditionalOrder) | **DELETE** /papi/v1/cm/conditional/order | Cancel CM Conditional Order(TRADE) |
| [**cancelCmOrder**](TradeApi.md#cancelCmOrder) | **DELETE** /papi/v1/cm/order | Cancel CM Order(TRADE) |
| [**cancelMarginAccountAllOpenOrdersOnASymbol**](TradeApi.md#cancelMarginAccountAllOpenOrdersOnASymbol) | **DELETE** /papi/v1/margin/allOpenOrders | Cancel Margin Account All Open Orders on a Symbol(TRADE) |
| [**cancelMarginAccountOcoOrders**](TradeApi.md#cancelMarginAccountOcoOrders) | **DELETE** /papi/v1/margin/orderList | Cancel Margin Account OCO Orders(TRADE) |
| [**cancelMarginAccountOrder**](TradeApi.md#cancelMarginAccountOrder) | **DELETE** /papi/v1/margin/order | Cancel Margin Account Order(TRADE) |
-| [**cancelUmConditionalOrder**](TradeApi.md#cancelUmConditionalOrder) | **DELETE** /papi/v1/um/conditional/order | Cancel UM Conditional Order(TRADE) |
+| [**cancelUmAlgoOrder**](TradeApi.md#cancelUmAlgoOrder) | **DELETE** /papi/v1/um/algo/order | Cancel UM Algo Order (TRADE) |
+| [**cancelUmConditionalOrder**](TradeApi.md#cancelUmConditionalOrder) | **DELETE** /papi/v1/um/conditional/order | Cancel UM Conditional Order |
| [**cancelUmOrder**](TradeApi.md#cancelUmOrder) | **DELETE** /papi/v1/um/order | Cancel UM Order(TRADE) |
| [**cmAccountTradeList**](TradeApi.md#cmAccountTradeList) | **GET** /papi/v1/cm/userTrades | CM Account Trade List(USER_DATA) |
| [**cmPositionAdlQuantileEstimation**](TradeApi.md#cmPositionAdlQuantileEstimation) | **GET** /papi/v1/cm/adlQuantile | CM Position ADL Quantile Estimation(USER_DATA) |
+| [**futuresTradfiPerpsContract**](TradeApi.md#futuresTradfiPerpsContract) | **POST** /papi/v1/um/stock/contract | Futures TradFi Perps Contract(USER_DATA) |
| [**getUmFuturesBnbBurnStatus**](TradeApi.md#getUmFuturesBnbBurnStatus) | **GET** /papi/v1/um/feeBurn | Get UM Futures BNB Burn Status (USER_DATA) |
| [**marginAccountBorrow**](TradeApi.md#marginAccountBorrow) | **POST** /papi/v1/marginLoan | Margin Account Borrow(MARGIN) |
| [**marginAccountNewOco**](TradeApi.md#marginAccountNewOco) | **POST** /papi/v1/margin/order/oco | Margin Account New OCO(TRADE) |
@@ -28,16 +31,18 @@ All URIs are relative to *https://papi.binance.com*
| [**newCmConditionalOrder**](TradeApi.md#newCmConditionalOrder) | **POST** /papi/v1/cm/conditional/order | New CM Conditional Order(TRADE) |
| [**newCmOrder**](TradeApi.md#newCmOrder) | **POST** /papi/v1/cm/order | New CM Order(TRADE) |
| [**newMarginOrder**](TradeApi.md#newMarginOrder) | **POST** /papi/v1/margin/order | New Margin Order(TRADE) |
-| [**newUmConditionalOrder**](TradeApi.md#newUmConditionalOrder) | **POST** /papi/v1/um/conditional/order | New UM Conditional Order (TRADE) |
+| [**newUmAlgoOrder**](TradeApi.md#newUmAlgoOrder) | **POST** /papi/v1/um/algo/order | New UM Algo Order (TRADE) |
+| [**newUmConditionalOrder**](TradeApi.md#newUmConditionalOrder) | **POST** /papi/v1/um/conditional/order | New UM Conditional Order |
| [**newUmOrder**](TradeApi.md#newUmOrder) | **POST** /papi/v1/um/order | New UM Order (TRADE) |
| [**queryAllCmConditionalOrders**](TradeApi.md#queryAllCmConditionalOrders) | **GET** /papi/v1/cm/conditional/allOrders | Query All CM Conditional Orders(USER_DATA) |
| [**queryAllCmOrders**](TradeApi.md#queryAllCmOrders) | **GET** /papi/v1/cm/allOrders | Query All CM Orders (USER_DATA) |
| [**queryAllCurrentCmOpenConditionalOrders**](TradeApi.md#queryAllCurrentCmOpenConditionalOrders) | **GET** /papi/v1/cm/conditional/openOrders | Query All Current CM Open Conditional Orders (USER_DATA) |
| [**queryAllCurrentCmOpenOrders**](TradeApi.md#queryAllCurrentCmOpenOrders) | **GET** /papi/v1/cm/openOrders | Query All Current CM Open Orders(USER_DATA) |
-| [**queryAllCurrentUmOpenConditionalOrders**](TradeApi.md#queryAllCurrentUmOpenConditionalOrders) | **GET** /papi/v1/um/conditional/openOrders | Query All Current UM Open Conditional Orders(USER_DATA) |
+| [**queryAllCurrentUmOpenAlgoOrders**](TradeApi.md#queryAllCurrentUmOpenAlgoOrders) | **GET** /papi/v1/um/algo/openAlgoOrders | Query All Current UM Open Algo Orders (USER_DATA) |
+| [**queryAllCurrentUmOpenConditionalOrders**](TradeApi.md#queryAllCurrentUmOpenConditionalOrders) | **GET** /papi/v1/um/conditional/openOrders | Query All Current UM Open Conditional Orders |
| [**queryAllCurrentUmOpenOrders**](TradeApi.md#queryAllCurrentUmOpenOrders) | **GET** /papi/v1/um/openOrders | Query All Current UM Open Orders(USER_DATA) |
| [**queryAllMarginAccountOrders**](TradeApi.md#queryAllMarginAccountOrders) | **GET** /papi/v1/margin/allOrders | Query All Margin Account Orders (USER_DATA) |
-| [**queryAllUmConditionalOrders**](TradeApi.md#queryAllUmConditionalOrders) | **GET** /papi/v1/um/conditional/allOrders | Query All UM Conditional Orders(USER_DATA) |
+| [**queryAllUmConditionalOrders**](TradeApi.md#queryAllUmConditionalOrders) | **GET** /papi/v1/um/conditional/allOrders | Query All UM Conditional Orders |
| [**queryAllUmOrders**](TradeApi.md#queryAllUmOrders) | **GET** /papi/v1/um/allOrders | Query All UM Orders(USER_DATA) |
| [**queryCmConditionalOrderHistory**](TradeApi.md#queryCmConditionalOrderHistory) | **GET** /papi/v1/cm/conditional/orderHistory | Query CM Conditional Order History(USER_DATA) |
| [**queryCmModifyOrderHistory**](TradeApi.md#queryCmModifyOrderHistory) | **GET** /papi/v1/cm/orderAmendment | Query CM Modify Order History(TRADE) |
@@ -45,13 +50,15 @@ All URIs are relative to *https://papi.binance.com*
| [**queryCurrentCmOpenConditionalOrder**](TradeApi.md#queryCurrentCmOpenConditionalOrder) | **GET** /papi/v1/cm/conditional/openOrder | Query Current CM Open Conditional Order(USER_DATA) |
| [**queryCurrentCmOpenOrder**](TradeApi.md#queryCurrentCmOpenOrder) | **GET** /papi/v1/cm/openOrder | Query Current CM Open Order (USER_DATA) |
| [**queryCurrentMarginOpenOrder**](TradeApi.md#queryCurrentMarginOpenOrder) | **GET** /papi/v1/margin/openOrders | Query Current Margin Open Order (USER_DATA) |
-| [**queryCurrentUmOpenConditionalOrder**](TradeApi.md#queryCurrentUmOpenConditionalOrder) | **GET** /papi/v1/um/conditional/openOrder | Query Current UM Open Conditional Order(USER_DATA) |
+| [**queryCurrentUmOpenAlgoOrder**](TradeApi.md#queryCurrentUmOpenAlgoOrder) | **GET** /papi/v1/um/algo/algoOrder | Query Current UM Open Algo Order (USER_DATA) |
+| [**queryCurrentUmOpenConditionalOrder**](TradeApi.md#queryCurrentUmOpenConditionalOrder) | **GET** /papi/v1/um/conditional/openOrder | Query Current UM Open Conditional Order |
| [**queryCurrentUmOpenOrder**](TradeApi.md#queryCurrentUmOpenOrder) | **GET** /papi/v1/um/openOrder | Query Current UM Open Order(USER_DATA) |
| [**queryMarginAccountOrder**](TradeApi.md#queryMarginAccountOrder) | **GET** /papi/v1/margin/order | Query Margin Account Order (USER_DATA) |
| [**queryMarginAccountsAllOco**](TradeApi.md#queryMarginAccountsAllOco) | **GET** /papi/v1/margin/allOrderList | Query Margin Account's all OCO (USER_DATA) |
| [**queryMarginAccountsOco**](TradeApi.md#queryMarginAccountsOco) | **GET** /papi/v1/margin/orderList | Query Margin Account's OCO (USER_DATA) |
| [**queryMarginAccountsOpenOco**](TradeApi.md#queryMarginAccountsOpenOco) | **GET** /papi/v1/margin/openOrderList | Query Margin Account's Open OCO (USER_DATA) |
-| [**queryUmConditionalOrderHistory**](TradeApi.md#queryUmConditionalOrderHistory) | **GET** /papi/v1/um/conditional/orderHistory | Query UM Conditional Order History(USER_DATA) |
+| [**queryUmAlgoOrderHistory**](TradeApi.md#queryUmAlgoOrderHistory) | **GET** /papi/v1/um/algo/allAlgoOrders | Query UM Algo Order History (USER_DATA) |
+| [**queryUmConditionalOrderHistory**](TradeApi.md#queryUmConditionalOrderHistory) | **GET** /papi/v1/um/conditional/orderHistory | Query UM Conditional Order History |
| [**queryUmModifyOrderHistory**](TradeApi.md#queryUmModifyOrderHistory) | **GET** /papi/v1/um/orderAmendment | Query UM Modify Order History(TRADE) |
| [**queryUmOrder**](TradeApi.md#queryUmOrder) | **GET** /papi/v1/um/order | Query UM Order (USER_DATA) |
| [**queryUsersCmForceOrders**](TradeApi.md#queryUsersCmForceOrders) | **GET** /papi/v1/cm/forceOrders | Query User's CM Force Orders(USER_DATA) |
@@ -190,11 +197,75 @@ No authorization required
|-------------|-------------|------------------|
| **200** | Cancel All CM Open Orders | - |
+
+# **cancelAllUmAlgoOpenOrders**
+> CancelAllUmAlgoOpenOrdersResponse cancelAllUmAlgoOpenOrders(symbol, recvWindow)
+
+Cancel All UM Algo Open Orders (TRADE)
+
+Cancel All UM Algo Open Orders Weight: 1
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiClient;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiException;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.Configuration;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.models.*;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.api.TradeApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://papi.binance.com");
+
+ TradeApi apiInstance = new TradeApi(defaultClient);
+ String symbol = "symbol_example"; // String |
+ Long recvWindow = 56L; // Long |
+ try {
+ CancelAllUmAlgoOpenOrdersResponse result = apiInstance.cancelAllUmAlgoOpenOrders(symbol, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling TradeApi#cancelAllUmAlgoOpenOrders");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **symbol** | **String**| | |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**CancelAllUmAlgoOpenOrdersResponse**](CancelAllUmAlgoOpenOrdersResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Cancel All UM Algo Open Orders | - |
+
# **cancelAllUmOpenConditionalOrders**
> CancelAllUmOpenConditionalOrdersResponse cancelAllUmOpenConditionalOrders(symbol, recvWindow)
-Cancel All UM Open Conditional Orders (TRADE)
+Cancel All UM Open Conditional Orders
Cancel All UM Open Conditional Orders Weight: 1
@@ -658,11 +729,77 @@ No authorization required
|-------------|-------------|------------------|
| **200** | Cancel Margin Account Order | - |
+
+# **cancelUmAlgoOrder**
+> CancelUmAlgoOrderResponse cancelUmAlgoOrder(algoId, clientAlgoId, recvWindow)
+
+Cancel UM Algo Order (TRADE)
+
+Cancel an active UM algo order. * Either `algoId` or `clientAlgoId` must be sent. Weight: 1
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiClient;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiException;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.Configuration;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.models.*;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.api.TradeApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://papi.binance.com");
+
+ TradeApi apiInstance = new TradeApi(defaultClient);
+ Long algoId = 56L; // Long |
+ String clientAlgoId = "clientAlgoId_example"; // String |
+ Long recvWindow = 56L; // Long |
+ try {
+ CancelUmAlgoOrderResponse result = apiInstance.cancelUmAlgoOrder(algoId, clientAlgoId, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling TradeApi#cancelUmAlgoOrder");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **algoId** | **Long**| | [optional] |
+| **clientAlgoId** | **String**| | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**CancelUmAlgoOrderResponse**](CancelUmAlgoOrderResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Cancel UM Algo Order | - |
+
# **cancelUmConditionalOrder**
> CancelUmConditionalOrderResponse cancelUmConditionalOrder(symbol, strategyId, newClientStrategyId, recvWindow)
-Cancel UM Conditional Order(TRADE)
+Cancel UM Conditional Order
Cancel UM Conditional Order * Either `strategyId` or `newClientStrategyId` must be sent. Weight: 1
@@ -932,6 +1069,68 @@ No authorization required
|-------------|-------------|------------------|
| **200** | CM Position ADL Quantile Estimation | - |
+
+# **futuresTradfiPerpsContract**
+> FuturesTradfiPerpsContractResponse futuresTradfiPerpsContract(futuresTradfiPerpsContractRequest)
+
+Futures TradFi Perps Contract(USER_DATA)
+
+Sign TradFi-Perps agreement contract Weight: 5
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiClient;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiException;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.Configuration;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.models.*;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.api.TradeApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://papi.binance.com");
+
+ TradeApi apiInstance = new TradeApi(defaultClient);
+ FuturesTradfiPerpsContractRequest futuresTradfiPerpsContractRequest = new FuturesTradfiPerpsContractRequest(); // FuturesTradfiPerpsContractRequest |
+ try {
+ FuturesTradfiPerpsContractResponse result = apiInstance.futuresTradfiPerpsContract(futuresTradfiPerpsContractRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling TradeApi#futuresTradfiPerpsContract");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **futuresTradfiPerpsContractRequest** | [**FuturesTradfiPerpsContractRequest**](FuturesTradfiPerpsContractRequest.md)| | |
+
+### Return type
+
+[**FuturesTradfiPerpsContractResponse**](FuturesTradfiPerpsContractResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Futures TradFi Perps Contract | - |
+
# **getUmFuturesBnbBurnStatus**
> GetUmFuturesBnbBurnStatusResponse getUmFuturesBnbBurnStatus(recvWindow)
@@ -1626,11 +1825,73 @@ No authorization required
|-------------|-------------|------------------|
| **200** | New Margin Order | - |
+
+# **newUmAlgoOrder**
+> NewUmAlgoOrderResponse newUmAlgoOrder(newUmAlgoOrderRequest)
+
+New UM Algo Order (TRADE)
+
+Place new UM conditional order * Algo order with type `STOP`, parameter `timeInForce` can be sent ( default `GTC`). * Algo order with type `TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`). * Condition orders will be triggered when: * If parameter`priceProtect`is sent as true: * when price reaches the `triggerPrice` , the difference rate between \"MARK_PRICE\" and \"CONTRACT_PRICE\" cannot be larger than the \"triggerProtect\" of the symbol * \"triggerProtect\" of a symbol can be got from `GET /fapi/v1/exchangeInfo` * `STOP`, `STOP_MARKET`: * BUY: latest price (\"MARK_PRICE\" or \"CONTRACT_PRICE\") >= `triggerPrice` * SELL: latest price (\"MARK_PRICE\" or \"CONTRACT_PRICE\") <= `triggerPrice` * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`: * BUY: latest price (\"MARK_PRICE\" or \"CONTRACT_PRICE\") <= `triggerPrice` * SELL: latest price (\"MARK_PRICE\" or \"CONTRACT_PRICE\") >= `triggerPrice` * `TRAILING_STOP_MARKET`: * BUY: the lowest price after order placed <= `activatePrice`, and the latest price >= the lowest price * (1 + `callbackRate`) * SELL: the highest price after order placed >= `activatePrice`, and the latest price <= the highest price * (1 - `callbackRate`) * For `TRAILING_STOP_MARKET`, if you got such error code. ``{\"code\": -2021, \"msg\": \"Order would immediately trigger.\"}`` means that the parameters you send do not meet the following requirements: * BUY: `activatePrice` should be smaller than latest price. * SELL: `activatePrice` should be larger than latest price. * `STOP_MARKET`, `TAKE_PROFIT_MARKET` with `closePosition`=`true`: * Follow the same rules for condition orders. * If triggered, **close all** current long position( if `SELL`) or current short position( if `BUY`). * Cannot be used with `quantity` paremeter * Cannot be used with `reduceOnly` parameter * In Hedge Mode,cannot be used with `BUY` orders in `LONG` position side. and cannot be used with `SELL` orders in `SHORT` position side * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`. Weight: 1
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiClient;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiException;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.Configuration;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.models.*;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.api.TradeApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://papi.binance.com");
+
+ TradeApi apiInstance = new TradeApi(defaultClient);
+ NewUmAlgoOrderRequest newUmAlgoOrderRequest = new NewUmAlgoOrderRequest(); // NewUmAlgoOrderRequest |
+ try {
+ NewUmAlgoOrderResponse result = apiInstance.newUmAlgoOrder(newUmAlgoOrderRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling TradeApi#newUmAlgoOrder");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **newUmAlgoOrderRequest** | [**NewUmAlgoOrderRequest**](NewUmAlgoOrderRequest.md)| | |
+
+### Return type
+
+[**NewUmAlgoOrderResponse**](NewUmAlgoOrderResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | New UM Algo Order | - |
+
# **newUmConditionalOrder**
> NewUmConditionalOrderResponse newUmConditionalOrder(newUmConditionalOrderRequest)
-New UM Conditional Order (TRADE)
+New UM Conditional Order
Place new UM conditional order * Order with type `STOP/TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`). * Condition orders will be triggered when: * `STOP`, `STOP_MARKET`: * BUY: \"MARK_PRICE\" >= `stopPrice` * SELL: \"MARK_PRICE\" <= `stopPrice` * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`: * BUY: \"MARK_PRICE\" <= `stopPrice` * SELL: \"MARK_PRICE\" >= `stopPrice` * `TRAILING_STOP_MARKET`: * BUY: the lowest mark price after order placed `<= `activationPrice`, and the latest mark price >`= the lowest mark price * (1 + `callbackRate`) * SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark price * (1 - `callbackRate`) * For `TRAILING_STOP_MARKET`, if you got such error code. `{\"code\": -2021, \"msg\": \"Order would immediately trigger.\"}` means that the parameters you send do not meet the following requirements: * BUY: `activationPrice` should be smaller than latest mark price. * SELL: `activationPrice` should be larger than latest mark price. * Condition orders will be triggered when: * If parameter`priceProtect`is sent as true: * when price reaches the `stopPrice` ,the difference rate between \"MARK_PRICE\" and \"CONTRACT_PRICE\" cannot be larger than the \"triggerProtect\" of the symbol * \"triggerProtect\" of a symbol can be got from `GET /fapi/v1/exchangeInfo` * `STOP`, `STOP_MARKET`: * BUY: latest price (\"MARK_PRICE\" or \"CONTRACT_PRICE\") >= `stopPrice` * SELL: latest price (\"MARK_PRICE\" or \"CONTRACT_PRICE\") <= `stopPrice` * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`: * BUY: latest price (\"MARK_PRICE\" or \"CONTRACT_PRICE\") <= `stopPrice` * SELL: latest price (\"MARK_PRICE\" or \"CONTRACT_PRICE\") >= `stopPrice` * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`. * In extreme market conditions, timeInForce `GTD` order auto cancel time might be delayed comparing to `goodTillDate` Weight: 1
@@ -2026,11 +2287,79 @@ No authorization required
|-------------|-------------|------------------|
| **200** | All Current CM Open Orders | - |
+
+# **queryAllCurrentUmOpenAlgoOrders**
+> QueryAllCurrentUmOpenAlgoOrdersResponse queryAllCurrentUmOpenAlgoOrders(algoType, symbol, algoId, recvWindow)
+
+Query All Current UM Open Algo Orders (USER_DATA)
+
+Get all UM open algo orders on a symbol. * If the symbol is not sent, orders for all symbols will be returned in an array. Weight: 1 for a single symbol; 40 when the symbol parameter is omitted Careful when accessing this with no symbol.
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiClient;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiException;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.Configuration;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.models.*;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.api.TradeApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://papi.binance.com");
+
+ TradeApi apiInstance = new TradeApi(defaultClient);
+ String algoType = "algoType_example"; // String |
+ String symbol = "symbol_example"; // String |
+ Long algoId = 56L; // Long |
+ Long recvWindow = 56L; // Long |
+ try {
+ QueryAllCurrentUmOpenAlgoOrdersResponse result = apiInstance.queryAllCurrentUmOpenAlgoOrders(algoType, symbol, algoId, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling TradeApi#queryAllCurrentUmOpenAlgoOrders");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **algoType** | **String**| | [optional] |
+| **symbol** | **String**| | [optional] |
+| **algoId** | **Long**| | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**QueryAllCurrentUmOpenAlgoOrdersResponse**](QueryAllCurrentUmOpenAlgoOrdersResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | All Current UM Open Algo Orders | - |
+
# **queryAllCurrentUmOpenConditionalOrders**
> QueryAllCurrentUmOpenConditionalOrdersResponse queryAllCurrentUmOpenConditionalOrders(symbol, recvWindow)
-Query All Current UM Open Conditional Orders(USER_DATA)
+Query All Current UM Open Conditional Orders
Get all open conditional orders on a symbol. * If the symbol is not sent, orders for all symbols will be returned in an array. Weight: 1 for a single symbol; 40 when the symbol parameter is omitted Careful when accessing this with no symbol.
@@ -2230,7 +2559,7 @@ No authorization required
# **queryAllUmConditionalOrders**
> QueryAllUmConditionalOrdersResponse queryAllUmConditionalOrders(symbol, strategyId, startTime, endTime, limit, recvWindow)
-Query All UM Conditional Orders(USER_DATA)
+Query All UM Conditional Orders
Query All UM Conditional Orders * These orders will not be found: * order strategyStatus is `CANCELED` or `EXPIRED`, **AND** * order has NO filled trade, **AND** * created time + 7 days < current time * The query time period must be less than 7 days( default as the recent 7 days). Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
@@ -2780,11 +3109,77 @@ No authorization required
|-------------|-------------|------------------|
| **200** | Current Margin Open Order | - |
+
+# **queryCurrentUmOpenAlgoOrder**
+> QueryCurrentUmOpenAlgoOrderResponse queryCurrentUmOpenAlgoOrder(algoId, clientAlgoId, recvWindow)
+
+Query Current UM Open Algo Order (USER_DATA)
+
+Check an UM algo order's status. * These orders will not be found: * order status is `CANCELED` or `EXPIRED` **AND** order has NO filled trade **AND** created time + 3 days < current time * order create time + 90 days < current time * Either `algoId` or `clientAlgoId` must be sent. * `algoId` is self-increment for each specific `symbol` Weight: 1
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiClient;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiException;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.Configuration;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.models.*;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.api.TradeApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://papi.binance.com");
+
+ TradeApi apiInstance = new TradeApi(defaultClient);
+ Long algoId = 56L; // Long |
+ String clientAlgoId = "clientAlgoId_example"; // String |
+ Long recvWindow = 56L; // Long |
+ try {
+ QueryCurrentUmOpenAlgoOrderResponse result = apiInstance.queryCurrentUmOpenAlgoOrder(algoId, clientAlgoId, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling TradeApi#queryCurrentUmOpenAlgoOrder");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **algoId** | **Long**| | [optional] |
+| **clientAlgoId** | **String**| | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**QueryCurrentUmOpenAlgoOrderResponse**](QueryCurrentUmOpenAlgoOrderResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Current UM Open Algo Order | - |
+
# **queryCurrentUmOpenConditionalOrder**
> QueryCurrentUmOpenConditionalOrderResponse queryCurrentUmOpenConditionalOrder(symbol, strategyId, newClientStrategyId, recvWindow)
-Query Current UM Open Conditional Order(USER_DATA)
+Query Current UM Open Conditional Order
Query Current UM Open Conditional Order * Either `strategyId` or `newClientStrategyId` must be sent. * If the queried order has been `CANCELED`, `TRIGGERED` or `EXPIRED`, the error message \"Order does not exist\" will be returned. Weight: 1
@@ -3182,11 +3577,83 @@ No authorization required
|-------------|-------------|------------------|
| **200** | Margin Account's Open OCO | - |
+
+# **queryUmAlgoOrderHistory**
+> QueryUmAlgoOrderHistoryResponse queryUmAlgoOrderHistory(symbol, algoId, startTime, endTime, limit, recvWindow)
+
+Query UM Algo Order History (USER_DATA)
+
+Get all algo orders; ACTIVE, CANCELED, TRIGGERED or FINISHED . * If `algoId` is set, it will get orders >= that `algoId`. Otherwise most recent orders are returned. * The query time period must be less then 7 days( default as the recent 7 days). Weight: 5
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiClient;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.ApiException;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.Configuration;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.models.*;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.api.TradeApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://papi.binance.com");
+
+ TradeApi apiInstance = new TradeApi(defaultClient);
+ String symbol = "symbol_example"; // String |
+ Long algoId = 56L; // Long |
+ Long startTime = 56L; // Long | Timestamp in ms to get funding from INCLUSIVE.
+ Long endTime = 56L; // Long | Timestamp in ms to get funding until INCLUSIVE.
+ Long limit = 56L; // Long | Default 100; max 1000
+ Long recvWindow = 56L; // Long |
+ try {
+ QueryUmAlgoOrderHistoryResponse result = apiInstance.queryUmAlgoOrderHistory(symbol, algoId, startTime, endTime, limit, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling TradeApi#queryUmAlgoOrderHistory");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **symbol** | **String**| | |
+| **algoId** | **Long**| | [optional] |
+| **startTime** | **Long**| Timestamp in ms to get funding from INCLUSIVE. | [optional] |
+| **endTime** | **Long**| Timestamp in ms to get funding until INCLUSIVE. | [optional] |
+| **limit** | **Long**| Default 100; max 1000 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**QueryUmAlgoOrderHistoryResponse**](QueryUmAlgoOrderHistoryResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | UM Algo Order History | - |
+
# **queryUmConditionalOrderHistory**
> QueryUmConditionalOrderHistoryResponse queryUmConditionalOrderHistory(symbol, strategyId, newClientStrategyId, recvWindow)
-Query UM Conditional Order History(USER_DATA)
+Query UM Conditional Order History
Query UM Conditional Order History * Either `strategyId` or `newClientStrategyId` must be sent. * `NEW` orders will not be found. * These orders will not be found: * order status is `CANCELED` or `EXPIRED`, **AND** * order has NO filled trade, **AND** * created time + 7 days < current time Weight: 1
@@ -3398,7 +3865,7 @@ No authorization required
Query User's CM Force Orders(USER_DATA)
-Query User's CM Force Orders * If \"autoCloseType\" is not sent, orders with both of the types will be returned * If \"startTime\" is not sent, data within 7 days before \"endTime\" can be queried Weight: 20 with symbol, 50 without symbol
+Query User's CM Force Orders * If \"autoCloseType\" is not sent, orders with both of the types will be returned * If \"startTime\" is not sent, data within 7 days before \"endTime\" can be queried * Only support querying data in the past 90 days Weight: 20 with symbol, 50 without symbol
### Example
```java
@@ -3540,7 +4007,7 @@ No authorization required
Query User's UM Force Orders (USER_DATA)
-Query User's UM Force Orders * If `autoCloseType` is not sent, orders with both of the types will be returned * If `startTime` is not sent, data within 7 days before `endTime` can be queried Weight: 20 with symbol, 50 without symbol
+Query User's UM Force Orders * If `autoCloseType` is not sent, orders with both of the types will be returned * If `startTime` is not sent, data within 7 days before `endTime` can be queried * Only support querying data in the past 90 days Weight: 20 with symbol, 50 without symbol
### Example
```java
diff --git a/clients/derivatives-trading-portfolio-margin/docs/UserDataStreamEventsResponse.md b/clients/derivatives-trading-portfolio-margin/docs/UserDataStreamEventsResponse.md
index d9b7f16f9..0564213b0 100644
--- a/clients/derivatives-trading-portfolio-margin/docs/UserDataStreamEventsResponse.md
+++ b/clients/derivatives-trading-portfolio-margin/docs/UserDataStreamEventsResponse.md
@@ -10,6 +10,7 @@
|**T** | **Long** | | [optional] |
|**E** | **Long** | | [optional] |
|**fs** | **String** | | [optional] |
+|**ao** | [**AlgoUpdateAo**](AlgoUpdateAo.md) | | [optional] |
|**so** | [**ConditionalOrderTradeUpdateSo**](ConditionalOrderTradeUpdateSo.md) | | [optional] |
|**ac** | [**AccountConfigUpdateAc**](AccountConfigUpdateAc.md) | | [optional] |
|**iLowerCase** | **Long** | | [optional] |
@@ -52,6 +53,11 @@
|**W** | **Long** | | [optional] |
|**V** | **String** | | [optional] |
|**A** | **String** | | [optional] |
+|**cs** | **String** | | [optional] |
+|**pl** | **String** | | [optional] |
+|**pL** | **String** | | [optional] |
+|**pY** | **String** | | [optional] |
+|**eR** | **String** | | [optional] |
|**eq** | **String** | | [optional] |
|**ae** | **String** | | [optional] |
diff --git a/clients/derivatives-trading-portfolio-margin/docs/rest-api/migration-guide.md b/clients/derivatives-trading-portfolio-margin/docs/rest-api/migration-guide.md
index 6f2ae7547..1ffdf921a 100644
--- a/clients/derivatives-trading-portfolio-margin/docs/rest-api/migration-guide.md
+++ b/clients/derivatives-trading-portfolio-margin/docs/rest-api/migration-guide.md
@@ -22,7 +22,7 @@ With the transition to a modularized structure, the Binance Connector has been s
io.github.binance
binance-derivatives-trading-portfolio-margin
- 5.0.0
+ 6.0.0
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-derivatives-trading-portfolio-margin
- 5.0.0
+ 6.0.0
```
diff --git a/clients/derivatives-trading-portfolio-margin/example_rest.md b/clients/derivatives-trading-portfolio-margin/example_rest.md
index 7c7a21032..225062f51 100644
--- a/clients/derivatives-trading-portfolio-margin/example_rest.md
+++ b/clients/derivatives-trading-portfolio-margin/example_rest.md
@@ -48,7 +48,7 @@
[GET /papi/v1/um/trade/asyn/id](https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Trade-Download-Link-by-Id) - getUmFuturesTradeDownloadLinkById - [GetUmFuturesTradeDownloadLinkByIdExample.java:47](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/account/GetUmFuturesTradeDownloadLinkByIdExample.java#L47)
-[GET /papi/v1/um/income/asyn/id](https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Transaction-Download-Link-by-Id) - getUmFuturesTransactionDownloadLinkById - [GetUmFuturesTransactionDownloadLinkByIdExample.java:47](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/account/GetUmFuturesTransactionDownloadLinkByIdExample.java#L47)
+[GET /papi/v1/um/income/asyn/id](https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Transaction-Download-Link-by-Id) - getUmFuturesTransactionDownloadLinkById - [GetUmFuturesTransactionDownloadLinkByIdExample.java:48](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/account/GetUmFuturesTransactionDownloadLinkByIdExample.java#L48)
[GET /papi/v1/um/income](https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History) - getUmIncomeHistory - [GetUmIncomeHistoryExample.java:50](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/account/GetUmIncomeHistoryExample.java#L50)
@@ -94,6 +94,8 @@
[DELETE /papi/v1/cm/allOpenOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Orders) - cancelAllCmOpenOrders - [CancelAllCmOpenOrdersExample.java:47](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/CancelAllCmOpenOrdersExample.java#L47)
+[DELETE /papi/v1/um/algo/allOpenOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Algo-Open-Orders) - cancelAllUmAlgoOpenOrders - [CancelAllUmAlgoOpenOrdersExample.java:47](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/CancelAllUmAlgoOpenOrdersExample.java#L47)
+
[DELETE /papi/v1/um/conditional/allOpenOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Conditional-Orders) - cancelAllUmOpenConditionalOrders - [CancelAllUmOpenConditionalOrdersExample.java:47](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/CancelAllUmOpenConditionalOrdersExample.java#L47)
[DELETE /papi/v1/um/allOpenOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders) - cancelAllUmOpenOrders - [CancelAllUmOpenOrdersExample.java:47](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/CancelAllUmOpenOrdersExample.java#L47)
@@ -108,6 +110,8 @@
[DELETE /papi/v1/margin/order](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-Order) - cancelMarginAccountOrder - [CancelMarginAccountOrderExample.java:48](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/CancelMarginAccountOrderExample.java#L48)
+[DELETE /papi/v1/um/algo/order](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Algo-Order) - cancelUmAlgoOrder - [CancelUmAlgoOrderExample.java:48](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/CancelUmAlgoOrderExample.java#L48)
+
[DELETE /papi/v1/um/conditional/order](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Conditional-Order) - cancelUmConditionalOrder - [CancelUmConditionalOrderExample.java:48](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/CancelUmConditionalOrderExample.java#L48)
[DELETE /papi/v1/um/order](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order) - cancelUmOrder - [CancelUmOrderExample.java:48](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/CancelUmOrderExample.java#L48)
@@ -116,6 +120,8 @@
[GET /papi/v1/cm/adlQuantile](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/CM-Position-ADL-Quantile-Estimation) - cmPositionAdlQuantileEstimation - [CmPositionAdlQuantileEstimationExample.java:55](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/CmPositionAdlQuantileEstimationExample.java#L55)
+[POST /papi/v1/um/stock/contract](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Futures-TradFi-Perps-Contract) - futuresTradfiPerpsContract - [FuturesTradfiPerpsContractExample.java:48](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/FuturesTradfiPerpsContractExample.java#L48)
+
[GET /papi/v1/um/feeBurn](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Get-UM-Futures-BNB-Burn-Status) - getUmFuturesBnbBurnStatus - [GetUmFuturesBnbBurnStatusExample.java:48](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/GetUmFuturesBnbBurnStatusExample.java#L48)
[POST /papi/v1/marginLoan](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Borrow) - marginAccountBorrow - [MarginAccountBorrowExample.java:48](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/MarginAccountBorrowExample.java#L48)
@@ -138,6 +144,8 @@
[POST /papi/v1/margin/order](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order) - newMarginOrder - [NewMarginOrderExample.java:50](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/NewMarginOrderExample.java#L50)
+[POST /papi/v1/um/algo/order](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Algo-Order) - newUmAlgoOrder - [NewUmAlgoOrderExample.java:82](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/NewUmAlgoOrderExample.java#L82)
+
[POST /papi/v1/um/conditional/order](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Conditional-Order) - newUmConditionalOrder - [NewUmConditionalOrderExample.java:80](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/NewUmConditionalOrderExample.java#L80)
[POST /papi/v1/um/order](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Order) - newUmOrder - [NewUmOrderExample.java:56](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/NewUmOrderExample.java#L56)
@@ -150,6 +158,8 @@
[GET /papi/v1/cm/openOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Orders) - queryAllCurrentCmOpenOrders - [QueryAllCurrentCmOpenOrdersExample.java:49](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryAllCurrentCmOpenOrdersExample.java#L49)
+[GET /papi/v1/um/algo/openAlgoOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Algo-Orders) - queryAllCurrentUmOpenAlgoOrders - [QueryAllCurrentUmOpenAlgoOrdersExample.java:49](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryAllCurrentUmOpenAlgoOrdersExample.java#L49)
+
[GET /papi/v1/um/conditional/openOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Conditional-Orders) - queryAllCurrentUmOpenConditionalOrders - [QueryAllCurrentUmOpenConditionalOrdersExample.java:49](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryAllCurrentUmOpenConditionalOrdersExample.java#L49)
[GET /papi/v1/um/openOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders) - queryAllCurrentUmOpenOrders - [QueryAllCurrentUmOpenOrdersExample.java:49](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryAllCurrentUmOpenOrdersExample.java#L49)
@@ -172,6 +182,8 @@
[GET /papi/v1/margin/openOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-Margin-Open-Order) - queryCurrentMarginOpenOrder - [QueryCurrentMarginOpenOrderExample.java:47](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryCurrentMarginOpenOrderExample.java#L47)
+[GET /papi/v1/um/algo/algoOrder](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Algo-Order) - queryCurrentUmOpenAlgoOrder - [QueryCurrentUmOpenAlgoOrderExample.java:51](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryCurrentUmOpenAlgoOrderExample.java#L51)
+
[GET /papi/v1/um/conditional/openOrder](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditional-Order) - queryCurrentUmOpenConditionalOrder - [QueryCurrentUmOpenConditionalOrderExample.java:50](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryCurrentUmOpenConditionalOrderExample.java#L50)
[GET /papi/v1/um/openOrder](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order) - queryCurrentUmOpenOrder - [QueryCurrentUmOpenOrderExample.java:49](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryCurrentUmOpenOrderExample.java#L49)
@@ -184,17 +196,19 @@
[GET /papi/v1/margin/openOrderList](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-Open-OCO) - queryMarginAccountsOpenOco - [QueryMarginAccountsOpenOcoExample.java:47](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryMarginAccountsOpenOcoExample.java#L47)
+[GET /papi/v1/um/algo/allAlgoOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Algo-Order-History) - queryUmAlgoOrderHistory - [QueryUmAlgoOrderHistoryExample.java:50](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryUmAlgoOrderHistoryExample.java#L50)
+
[GET /papi/v1/um/conditional/orderHistory](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Conditional-Order-History) - queryUmConditionalOrderHistory - [QueryUmConditionalOrderHistoryExample.java:51](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryUmConditionalOrderHistoryExample.java#L51)
[GET /papi/v1/um/orderAmendment](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Modify-Order-History) - queryUmModifyOrderHistory - [QueryUmModifyOrderHistoryExample.java:49](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryUmModifyOrderHistoryExample.java#L49)
[GET /papi/v1/um/order](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order) - queryUmOrder - [QueryUmOrderExample.java:50](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryUmOrderExample.java#L50)
-[GET /papi/v1/cm/forceOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders) - queryUsersCmForceOrders - [QueryUsersCmForceOrdersExample.java:50](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryUsersCmForceOrdersExample.java#L50)
+[GET /papi/v1/cm/forceOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders) - queryUsersCmForceOrders - [QueryUsersCmForceOrdersExample.java:51](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryUsersCmForceOrdersExample.java#L51)
[GET /papi/v1/margin/forceOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-Margin-Force-Orders) - queryUsersMarginForceOrders - [QueryUsersMarginForceOrdersExample.java:47](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryUsersMarginForceOrdersExample.java#L47)
-[GET /papi/v1/um/forceOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders) - queryUsersUmForceOrders - [QueryUsersUmForceOrdersExample.java:50](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryUsersUmForceOrdersExample.java#L50)
+[GET /papi/v1/um/forceOrders](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders) - queryUsersUmForceOrders - [QueryUsersUmForceOrdersExample.java:51](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/QueryUsersUmForceOrdersExample.java#L51)
[POST /papi/v1/um/feeBurn](https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Toggle-BNB-Burn-On-UM-Futures-Trade) - toggleBnbBurnOnUmFuturesTrade - [ToggleBnbBurnOnUmFuturesTradeExample.java:50](/examples/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/trade/ToggleBnbBurnOnUmFuturesTradeExample.java#L50)
diff --git a/clients/derivatives-trading-portfolio-margin/pom.xml b/clients/derivatives-trading-portfolio-margin/pom.xml
index c9822cbb9..41d46e62f 100644
--- a/clients/derivatives-trading-portfolio-margin/pom.xml
+++ b/clients/derivatives-trading-portfolio-margin/pom.xml
@@ -5,7 +5,7 @@
4.0.0
binance-derivatives-trading-portfolio-margin
derivatives-trading-portfolio-margin
- 5.0.1
+ 6.0.0
jar
diff --git a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/JSON.java b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/JSON.java
index 5164dd27b..ac1fca2c1 100644
--- a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/JSON.java
+++ b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/JSON.java
@@ -135,6 +135,9 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.CancelAllCmOpenOrdersResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
+ .CancelAllUmAlgoOpenOrdersResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.CancelAllUmOpenConditionalOrdersResponse.CustomTypeAdapterFactory());
@@ -177,6 +180,9 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.CancelMarginAccountOrderResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
+ .CancelUmAlgoOrderResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.CancelUmConditionalOrderResponse.CustomTypeAdapterFactory());
@@ -251,6 +257,12 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.FundCollectionByAssetResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
+ .FuturesTradfiPerpsContractRequest.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
+ .FuturesTradfiPerpsContractResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.GetAutoRepayFuturesStatusResponse.CustomTypeAdapterFactory());
@@ -404,6 +416,12 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.NewMarginOrderResponseFillsInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
+ .NewUmAlgoOrderRequest.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
+ .NewUmAlgoOrderResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.NewUmConditionalOrderRequest.CustomTypeAdapterFactory());
@@ -454,6 +472,12 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.QueryAllCurrentCmOpenOrdersResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
+ .QueryAllCurrentUmOpenAlgoOrdersResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
+ .QueryAllCurrentUmOpenAlgoOrdersResponseInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.QueryAllCurrentUmOpenConditionalOrdersResponse.CustomTypeAdapterFactory());
@@ -524,6 +548,9 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.QueryCurrentMarginOpenOrderResponseInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
+ .QueryCurrentUmOpenAlgoOrderResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.QueryCurrentUmOpenConditionalOrderResponse.CustomTypeAdapterFactory());
@@ -582,6 +609,12 @@ private static Class getClassByDiscriminator(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner
.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
+ .QueryUmAlgoOrderHistoryResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
+ .QueryUmAlgoOrderHistoryResponseInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model
.QueryUmConditionalOrderHistoryResponse.CustomTypeAdapterFactory());
diff --git a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/AccountApi.java b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/AccountApi.java
index 7027c10bb..6063ef9ad 100644
--- a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/AccountApi.java
+++ b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/AccountApi.java
@@ -94,7 +94,7 @@ public class AccountApi {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-portfolio-margin/5.0.0 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-portfolio-margin/6.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = false;
@@ -3542,7 +3542,7 @@ private okhttp3.Call getUmFuturesOrderDownloadLinkByIdValidateBeforeCall(
/**
* Get UM Futures Order Download Link by Id(USER_DATA) Get UM futures order download link by Id
- * * Download link expiration: 24h Weight: 10
+ * * Download link expiration: 7 days Weight: 10
*
* @param downloadId get by download id api (required)
* @param recvWindow (optional)
@@ -3687,7 +3687,7 @@ private okhttp3.Call getUmFuturesTradeDownloadLinkByIdValidateBeforeCall(
/**
* Get UM Futures Trade Download Link by Id(USER_DATA) Get UM futures trade download link by Id
- * * Download link expiration: 24h Weight: 10
+ * * Download link expiration: 7 days Weight: 10
*
* @param downloadId get by download id api (required)
* @param recvWindow (optional)
@@ -3834,7 +3834,7 @@ private okhttp3.Call getUmFuturesTransactionDownloadLinkByIdValidateBeforeCall(
/**
* Get UM Futures Transaction Download Link by Id(USER_DATA) Get UM futures Transaction download
- * link by Id * Download link expiration: 24h Weight: 10
+ * link by Id * Download link expiration: 7 days Weight: 10
*
* @param downloadId get by download id api (required)
* @param recvWindow (optional)
diff --git a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/DerivativesTradingPortfolioMarginRestApi.java b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/DerivativesTradingPortfolioMarginRestApi.java
index ce267f705..31f4ab679 100644
--- a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/DerivativesTradingPortfolioMarginRestApi.java
+++ b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/DerivativesTradingPortfolioMarginRestApi.java
@@ -12,6 +12,7 @@
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.BnbTransferResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelAllCmOpenConditionalOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelAllCmOpenOrdersResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelAllUmAlgoOpenOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelAllUmOpenConditionalOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelAllUmOpenOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelCmConditionalOrderResponse;
@@ -19,6 +20,7 @@
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelMarginAccountAllOpenOrdersOnASymbolResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelMarginAccountOcoOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelMarginAccountOrderResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelUmAlgoOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelUmConditionalOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelUmOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.ChangeAutoRepayFuturesStatusRequest;
@@ -38,6 +40,8 @@
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.FundAutoCollectionResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.FundCollectionByAssetRequest;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.FundCollectionByAssetResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.FuturesTradfiPerpsContractRequest;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.FuturesTradfiPerpsContractResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.GetAutoRepayFuturesStatusResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.GetCmAccountDetailResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.GetCmCurrentPositionModeResponse;
@@ -76,6 +80,8 @@
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewCmOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewMarginOrderRequest;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewMarginOrderResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewUmAlgoOrderRequest;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewUmAlgoOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewUmConditionalOrderRequest;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewUmConditionalOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewUmOrderRequest;
@@ -85,6 +91,7 @@
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllCmOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllCurrentCmOpenConditionalOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllCurrentCmOpenOrdersResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllCurrentUmOpenAlgoOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllCurrentUmOpenConditionalOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllCurrentUmOpenOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllMarginAccountOrdersResponse;
@@ -97,6 +104,7 @@
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryCurrentCmOpenConditionalOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryCurrentCmOpenOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryCurrentMarginOpenOrderResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryCurrentUmOpenAlgoOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryCurrentUmOpenConditionalOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryCurrentUmOpenOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryMarginAccountOrderResponse;
@@ -107,6 +115,7 @@
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryMarginMaxWithdrawResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryMarginRepayRecordResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryPortfolioMarginNegativeBalanceInterestHistoryResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryUmAlgoOrderHistoryResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryUmConditionalOrderHistoryResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryUmModifyOrderHistoryResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryUmOrderResponse;
@@ -739,7 +748,7 @@ public ApiResponse getUmCurrentPositionMode(Lo
/**
* Get UM Futures Order Download Link by Id(USER_DATA) Get UM futures order download link by Id
- * * Download link expiration: 24h Weight: 10
+ * * Download link expiration: 7 days Weight: 10
*
* @param downloadId get by download id api (required)
* @param recvWindow (optional)
@@ -764,7 +773,7 @@ public ApiResponse getUmFuturesOrderD
/**
* Get UM Futures Trade Download Link by Id(USER_DATA) Get UM futures trade download link by Id
- * * Download link expiration: 24h Weight: 10
+ * * Download link expiration: 7 days Weight: 10
*
* @param downloadId get by download id api (required)
* @param recvWindow (optional)
@@ -789,7 +798,7 @@ public ApiResponse getUmFuturesTradeD
/**
* Get UM Futures Transaction Download Link by Id(USER_DATA) Get UM futures Transaction download
- * link by Id * Download link expiration: 24h Weight: 10
+ * link by Id * Download link expiration: 7 days Weight: 10
*
* @param downloadId get by download id api (required)
* @param recvWindow (optional)
@@ -1384,7 +1393,31 @@ public ApiResponse cancelAllCmOpenOrders(
}
/**
- * Cancel All UM Open Conditional Orders (TRADE) Cancel All UM Open Conditional Orders Weight: 1
+ * Cancel All UM Algo Open Orders (TRADE) Cancel All UM Algo Open Orders Weight: 1
+ *
+ * @param symbol (required)
+ * @param recvWindow (optional)
+ * @return ApiResponse<CancelAllUmAlgoOpenOrdersResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | Cancel All UM Algo Open Orders | - |
+ *
+ *
+ * @see Cancel
+ * All UM Algo Open Orders (TRADE) Documentation
+ */
+ public ApiResponse cancelAllUmAlgoOpenOrders(
+ String symbol, Long recvWindow) throws ApiException {
+ return tradeApi.cancelAllUmAlgoOpenOrders(symbol, recvWindow);
+ }
+
+ /**
+ * Cancel All UM Open Conditional Orders Cancel All UM Open Conditional Orders Weight: 1
*
* @param symbol (required)
* @param recvWindow (optional)
@@ -1398,9 +1431,10 @@ public ApiResponse cancelAllCmOpenOrders(
* | 200 | Cancel All UM Open Conditional Orders | - |
*
*
+ * @deprecated
* @see Cancel
- * All UM Open Conditional Orders (TRADE) Documentation
+ * All UM Open Conditional Orders Documentation
*/
public ApiResponse cancelAllUmOpenConditionalOrders(
String symbol, Long recvWindow) throws ApiException {
@@ -1587,8 +1621,34 @@ public ApiResponse cancelMarginAccountOrder(
}
/**
- * Cancel UM Conditional Order(TRADE) Cancel UM Conditional Order * Either
- * `strategyId` or `newClientStrategyId` must be sent. Weight: 1
+ * Cancel UM Algo Order (TRADE) Cancel an active UM algo order. * Either `algoId` or
+ * `clientAlgoId` must be sent. Weight: 1
+ *
+ * @param algoId (optional)
+ * @param clientAlgoId (optional)
+ * @param recvWindow (optional)
+ * @return ApiResponse<CancelUmAlgoOrderResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | Cancel UM Algo Order | - |
+ *
+ *
+ * @see Cancel
+ * UM Algo Order (TRADE) Documentation
+ */
+ public ApiResponse cancelUmAlgoOrder(
+ Long algoId, String clientAlgoId, Long recvWindow) throws ApiException {
+ return tradeApi.cancelUmAlgoOrder(algoId, clientAlgoId, recvWindow);
+ }
+
+ /**
+ * Cancel UM Conditional Order Cancel UM Conditional Order * Either `strategyId` or
+ * `newClientStrategyId` must be sent. Weight: 1
*
* @param symbol (required)
* @param strategyId (optional)
@@ -1604,9 +1664,10 @@ public ApiResponse cancelMarginAccountOrder(
* | 200 | Cancel UM Conditional Order | - |
*
*
+ * @deprecated
* @see Cancel
- * UM Conditional Order(TRADE) Documentation
+ * UM Conditional Order Documentation
*/
public ApiResponse cancelUmConditionalOrder(
String symbol, Long strategyId, String newClientStrategyId, Long recvWindow)
@@ -1720,6 +1781,30 @@ public ApiResponse cmPositionAdlQuantil
return tradeApi.cmPositionAdlQuantileEstimation(symbol, recvWindow);
}
+ /**
+ * Futures TradFi Perps Contract(USER_DATA) Sign TradFi-Perps agreement contract Weight: 5
+ *
+ * @param futuresTradfiPerpsContractRequest (required)
+ * @return ApiResponse<FuturesTradfiPerpsContractResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | Futures TradFi Perps Contract | - |
+ *
+ *
+ * @see Futures
+ * TradFi Perps Contract(USER_DATA) Documentation
+ */
+ public ApiResponse futuresTradfiPerpsContract(
+ FuturesTradfiPerpsContractRequest futuresTradfiPerpsContractRequest)
+ throws ApiException {
+ return tradeApi.futuresTradfiPerpsContract(futuresTradfiPerpsContractRequest);
+ }
+
/**
* Get UM Futures BNB Burn Status (USER_DATA) Get user's BNB Fee Discount for UM Futures
* (Fee Discount On or Fee Discount Off ) Weight: 30
@@ -2045,7 +2130,62 @@ public ApiResponse newMarginOrder(
}
/**
- * New UM Conditional Order (TRADE) Place new UM conditional order * Order with type
+ * New UM Algo Order (TRADE) Place new UM conditional order * Algo order with type
+ * `STOP`, parameter `timeInForce` can be sent ( default `GTC`). *
+ * Algo order with type `TAKE_PROFIT`, parameter `timeInForce` can be sent (
+ * default `GTC`). * Condition orders will be triggered when: * If
+ * parameter`priceProtect`is sent as true: * when price reaches the
+ * `triggerPrice` , the difference rate between \"MARK_PRICE\" and
+ * \"CONTRACT_PRICE\" cannot be larger than the \"triggerProtect\" of the
+ * symbol * \"triggerProtect\" of a symbol can be got from `GET
+ * /fapi/v1/exchangeInfo` * `STOP`, `STOP_MARKET`: * BUY: latest price
+ * (\"MARK_PRICE\" or \"CONTRACT_PRICE\") >=
+ * `triggerPrice` * SELL: latest price (\"MARK_PRICE\" or
+ * \"CONTRACT_PRICE\") <= `triggerPrice` * `TAKE_PROFIT`,
+ * `TAKE_PROFIT_MARKET`: * BUY: latest price (\"MARK_PRICE\" or
+ * \"CONTRACT_PRICE\") <= `triggerPrice` * SELL: latest price
+ * (\"MARK_PRICE\" or \"CONTRACT_PRICE\") >=
+ * `triggerPrice` * `TRAILING_STOP_MARKET`: * BUY: the lowest price after
+ * order placed <= `activatePrice`, and the latest price >= the lowest
+ * price * (1 + `callbackRate`) * SELL: the highest price after order placed
+ * >= `activatePrice`, and the latest price <= the highest price * (1
+ * - `callbackRate`) * For `TRAILING_STOP_MARKET`, if you got such error
+ * code. ``{\"code\": -2021, \"msg\": \"Order would
+ * immediately trigger.\"}`` means that the parameters you send do not meet the
+ * following requirements: * BUY: `activatePrice` should be smaller than latest price.
+ * * SELL: `activatePrice` should be larger than latest price. *
+ * `STOP_MARKET`, `TAKE_PROFIT_MARKET` with
+ * `closePosition`=`true`: * Follow the same rules for condition
+ * orders. * If triggered, **close all** current long position( if `SELL`) or current
+ * short position( if `BUY`). * Cannot be used with `quantity` paremeter *
+ * Cannot be used with `reduceOnly` parameter * In Hedge Mode,cannot be used with
+ * `BUY` orders in `LONG` position side. and cannot be used with
+ * `SELL` orders in `SHORT` position side *
+ * `selfTradePreventionMode` is only effective when `timeInForce` set to
+ * `IOC` or `GTC` or `GTD`. Weight: 1
+ *
+ * @param newUmAlgoOrderRequest (required)
+ * @return ApiResponse<NewUmAlgoOrderResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | New UM Algo Order | - |
+ *
+ *
+ * @see New
+ * UM Algo Order (TRADE) Documentation
+ */
+ public ApiResponse newUmAlgoOrder(
+ NewUmAlgoOrderRequest newUmAlgoOrderRequest) throws ApiException {
+ return tradeApi.newUmAlgoOrder(newUmAlgoOrderRequest);
+ }
+
+ /**
+ * New UM Conditional Order Place new UM conditional order * Order with type
* `STOP/TAKE_PROFIT`, parameter `timeInForce` can be sent ( default
* `GTC`). * Condition orders will be triggered when: * `STOP`,
* `STOP_MARKET`: * BUY: \"MARK_PRICE\" >= `stopPrice` *
@@ -2088,9 +2228,10 @@ public ApiResponse newMarginOrder(
* | 200 | New UM Conditional Order | - |
*
*
+ * @deprecated
* @see New
- * UM Conditional Order (TRADE) Documentation
+ * UM Conditional Order Documentation
*/
public ApiResponse newUmConditionalOrder(
NewUmConditionalOrderRequest newUmConditionalOrderRequest) throws ApiException {
@@ -2264,10 +2405,39 @@ public ApiResponse queryAllCurrentCmOpenOrd
}
/**
- * Query All Current UM Open Conditional Orders(USER_DATA) Get all open conditional orders on a
- * symbol. * If the symbol is not sent, orders for all symbols will be returned in an array.
- * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted Careful when accessing
- * this with no symbol.
+ * Query All Current UM Open Algo Orders (USER_DATA) Get all UM open algo orders on a symbol. *
+ * If the symbol is not sent, orders for all symbols will be returned in an array. Weight: 1 for
+ * a single symbol; 40 when the symbol parameter is omitted Careful when accessing this with no
+ * symbol.
+ *
+ * @param algoType (optional)
+ * @param symbol (optional)
+ * @param algoId (optional)
+ * @param recvWindow (optional)
+ * @return ApiResponse<QueryAllCurrentUmOpenAlgoOrdersResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | All Current UM Open Algo Orders | - |
+ *
+ *
+ * @see Query
+ * All Current UM Open Algo Orders (USER_DATA) Documentation
+ */
+ public ApiResponse queryAllCurrentUmOpenAlgoOrders(
+ String algoType, String symbol, Long algoId, Long recvWindow) throws ApiException {
+ return tradeApi.queryAllCurrentUmOpenAlgoOrders(algoType, symbol, algoId, recvWindow);
+ }
+
+ /**
+ * Query All Current UM Open Conditional Orders Get all open conditional orders on a symbol. *
+ * If the symbol is not sent, orders for all symbols will be returned in an array. Weight: 1 for
+ * a single symbol; 40 when the symbol parameter is omitted Careful when accessing this with no
+ * symbol.
*
* @param symbol (optional)
* @param recvWindow (optional)
@@ -2281,9 +2451,10 @@ public ApiResponse queryAllCurrentCmOpenOrd
* | 200 | All Current UM Open Conditional Orders | - |
*
*
+ * @deprecated
* @see Query
- * All Current UM Open Conditional Orders(USER_DATA) Documentation
+ * All Current UM Open Conditional Orders Documentation
*/
public ApiResponse
queryAllCurrentUmOpenConditionalOrders(String symbol, Long recvWindow)
@@ -2348,11 +2519,11 @@ public ApiResponse queryAllMarginAccountOrd
}
/**
- * Query All UM Conditional Orders(USER_DATA) Query All UM Conditional Orders * These orders
- * will not be found: * order strategyStatus is `CANCELED` or `EXPIRED`,
- * **AND** * order has NO filled trade, **AND** * created time + 7 days < current time * The
- * query time period must be less than 7 days( default as the recent 7 days). Weight: 1 for a
- * single symbol; 40 when the symbol parameter is omitted
+ * Query All UM Conditional Orders Query All UM Conditional Orders * These orders will not be
+ * found: * order strategyStatus is `CANCELED` or `EXPIRED`, **AND** * order
+ * has NO filled trade, **AND** * created time + 7 days < current time * The query time
+ * period must be less than 7 days( default as the recent 7 days). Weight: 1 for a single
+ * symbol; 40 when the symbol parameter is omitted
*
* @param symbol (optional)
* @param strategyId (optional)
@@ -2370,9 +2541,10 @@ public ApiResponse queryAllMarginAccountOrd
* | 200 | All UM Conditional Orders | - |
*
*
+ * @deprecated
* @see Query
- * All UM Conditional Orders(USER_DATA) Documentation
+ * All UM Conditional Orders Documentation
*/
public ApiResponse queryAllUmConditionalOrders(
String symbol,
@@ -2608,10 +2780,40 @@ public ApiResponse queryCurrentMarginOpenOr
}
/**
- * Query Current UM Open Conditional Order(USER_DATA) Query Current UM Open Conditional Order *
- * Either `strategyId` or `newClientStrategyId` must be sent. * If the
- * queried order has been `CANCELED`, `TRIGGERED` or `EXPIRED`,
- * the error message \"Order does not exist\" will be returned. Weight: 1
+ * Query Current UM Open Algo Order (USER_DATA) Check an UM algo order's status. * These
+ * orders will not be found: * order status is `CANCELED` or `EXPIRED`
+ * **AND** order has NO filled trade **AND** created time + 3 days < current time * order
+ * create time + 90 days < current time * Either `algoId` or
+ * `clientAlgoId` must be sent. * `algoId` is self-increment for each
+ * specific `symbol` Weight: 1
+ *
+ * @param algoId (optional)
+ * @param clientAlgoId (optional)
+ * @param recvWindow (optional)
+ * @return ApiResponse<QueryCurrentUmOpenAlgoOrderResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | Current UM Open Algo Order | - |
+ *
+ *
+ * @see Query
+ * Current UM Open Algo Order (USER_DATA) Documentation
+ */
+ public ApiResponse queryCurrentUmOpenAlgoOrder(
+ Long algoId, String clientAlgoId, Long recvWindow) throws ApiException {
+ return tradeApi.queryCurrentUmOpenAlgoOrder(algoId, clientAlgoId, recvWindow);
+ }
+
+ /**
+ * Query Current UM Open Conditional Order Query Current UM Open Conditional Order * Either
+ * `strategyId` or `newClientStrategyId` must be sent. * If the queried
+ * order has been `CANCELED`, `TRIGGERED` or `EXPIRED`, the error
+ * message \"Order does not exist\" will be returned. Weight: 1
*
* @param symbol (required)
* @param strategyId (optional)
@@ -2627,9 +2829,10 @@ public ApiResponse queryCurrentMarginOpenOr
* | 200 | Current UM Open Conditional Order | - |
*
*
+ * @deprecated
* @see Query
- * Current UM Open Conditional Order(USER_DATA) Documentation
+ * Current UM Open Conditional Order Documentation
*/
public ApiResponse
queryCurrentUmOpenConditionalOrder(
@@ -2776,7 +2979,40 @@ public ApiResponse queryMarginAccountsOpenOc
}
/**
- * Query UM Conditional Order History(USER_DATA) Query UM Conditional Order History * Either
+ * Query UM Algo Order History (USER_DATA) Get all algo orders; ACTIVE, CANCELED, TRIGGERED or
+ * FINISHED . * If `algoId` is set, it will get orders >= that
+ * `algoId`. Otherwise most recent orders are returned. * The query time period must
+ * be less then 7 days( default as the recent 7 days). Weight: 5
+ *
+ * @param symbol (required)
+ * @param algoId (optional)
+ * @param startTime Timestamp in ms to get funding from INCLUSIVE. (optional)
+ * @param endTime Timestamp in ms to get funding until INCLUSIVE. (optional)
+ * @param limit Default 100; max 1000 (optional)
+ * @param recvWindow (optional)
+ * @return ApiResponse<QueryUmAlgoOrderHistoryResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | UM Algo Order History | - |
+ *
+ *
+ * @see Query
+ * UM Algo Order History (USER_DATA) Documentation
+ */
+ public ApiResponse queryUmAlgoOrderHistory(
+ String symbol, Long algoId, Long startTime, Long endTime, Long limit, Long recvWindow)
+ throws ApiException {
+ return tradeApi.queryUmAlgoOrderHistory(
+ symbol, algoId, startTime, endTime, limit, recvWindow);
+ }
+
+ /**
+ * Query UM Conditional Order History Query UM Conditional Order History * Either
* `strategyId` or `newClientStrategyId` must be sent. * `NEW`
* orders will not be found. * These orders will not be found: * order status is
* `CANCELED` or `EXPIRED`, **AND** * order has NO filled trade, **AND** *
@@ -2796,9 +3032,10 @@ public ApiResponse queryMarginAccountsOpenOc
* | 200 | UM Conditional Order History | - |
*
*
+ * @deprecated
* @see Query
- * UM Conditional Order History(USER_DATA) Documentation
+ * UM Conditional Order History Documentation
*/
public ApiResponse queryUmConditionalOrderHistory(
String symbol, Long strategyId, String newClientStrategyId, Long recvWindow)
@@ -2880,7 +3117,8 @@ public ApiResponse queryUmOrder(
* Query User's CM Force Orders(USER_DATA) Query User's CM Force Orders * If
* \"autoCloseType\" is not sent, orders with both of the types will be returned * If
* \"startTime\" is not sent, data within 7 days before \"endTime\" can be
- * queried Weight: 20 with symbol, 50 without symbol
+ * queried * Only support querying data in the past 90 days Weight: 20 with symbol, 50 without
+ * symbol
*
* @param symbol (optional)
* @param autoCloseType `LIQUIDATION` for liquidation orders, `ADL` for ADL
@@ -2948,7 +3186,8 @@ public ApiResponse queryUsersMarginForceOrd
* Query User's UM Force Orders (USER_DATA) Query User's UM Force Orders * If
* `autoCloseType` is not sent, orders with both of the types will be returned * If
* `startTime` is not sent, data within 7 days before `endTime` can be
- * queried Weight: 20 with symbol, 50 without symbol
+ * queried * Only support querying data in the past 90 days Weight: 20 with symbol, 50 without
+ * symbol
*
* @param symbol (optional)
* @param autoCloseType `LIQUIDATION` for liquidation orders, `ADL` for ADL
diff --git a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/MarketDataApi.java b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/MarketDataApi.java
index 11117ab70..ae2175602 100644
--- a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/MarketDataApi.java
+++ b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/MarketDataApi.java
@@ -40,7 +40,7 @@ public class MarketDataApi {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-portfolio-margin/5.0.0 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-portfolio-margin/6.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = false;
diff --git a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/TradeApi.java b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/TradeApi.java
index 9600decf6..3f1ce669b 100644
--- a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/TradeApi.java
+++ b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/TradeApi.java
@@ -23,6 +23,7 @@
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.AutoCloseType;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelAllCmOpenConditionalOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelAllCmOpenOrdersResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelAllUmAlgoOpenOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelAllUmOpenConditionalOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelAllUmOpenOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelCmConditionalOrderResponse;
@@ -30,10 +31,13 @@
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelMarginAccountAllOpenOrdersOnASymbolResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelMarginAccountOcoOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelMarginAccountOrderResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelUmAlgoOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelUmConditionalOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CancelUmOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CmAccountTradeListResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.CmPositionAdlQuantileEstimationResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.FuturesTradfiPerpsContractRequest;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.FuturesTradfiPerpsContractResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.GetUmFuturesBnbBurnStatusResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.MarginAccountBorrowRequest;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.MarginAccountBorrowResponse;
@@ -54,6 +58,8 @@
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewCmOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewMarginOrderRequest;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewMarginOrderResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewUmAlgoOrderRequest;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewUmAlgoOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewUmConditionalOrderRequest;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewUmConditionalOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.NewUmOrderRequest;
@@ -62,6 +68,7 @@
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllCmOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllCurrentCmOpenConditionalOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllCurrentCmOpenOrdersResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllCurrentUmOpenAlgoOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllCurrentUmOpenConditionalOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllCurrentUmOpenOrdersResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryAllMarginAccountOrdersResponse;
@@ -73,12 +80,14 @@
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryCurrentCmOpenConditionalOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryCurrentCmOpenOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryCurrentMarginOpenOrderResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryCurrentUmOpenAlgoOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryCurrentUmOpenConditionalOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryCurrentUmOpenOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryMarginAccountOrderResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryMarginAccountsAllOcoResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryMarginAccountsOcoResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryMarginAccountsOpenOcoResponse;
+import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryUmAlgoOrderHistoryResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryUmConditionalOrderHistoryResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryUmModifyOrderHistoryResponse;
import com.binance.connector.client.derivatives_trading_portfolio_margin.rest.model.QueryUmOrderResponse;
@@ -112,7 +121,7 @@ public class TradeApi {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-portfolio-margin/5.0.0 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-portfolio-margin/6.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = false;
@@ -434,6 +443,148 @@ public ApiResponse cancelAllCmOpenOrders(
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
+ /**
+ * Build call for cancelAllUmAlgoOpenOrders
+ *
+ * @param symbol (required)
+ * @param recvWindow (optional)
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | Cancel All UM Algo Open Orders | - |
+ *
+ *
+ * @see Cancel
+ * All UM Algo Open Orders (TRADE) Documentation
+ */
+ private okhttp3.Call cancelAllUmAlgoOpenOrdersCall(String symbol, Long recvWindow)
+ throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/papi/v1/um/algo/allOpenOrders";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (symbol != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol));
+ }
+
+ if (recvWindow != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("recvWindow", recvWindow));
+ }
+
+ final String[] localVarAccepts = {"application/json"};
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {"application/x-www-form-urlencoded"};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (!localVarFormParams.isEmpty() && localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+ Set localVarAuthNames = new HashSet<>();
+ localVarAuthNames.add("binanceSignature");
+ if (HAS_TIME_UNIT) {
+ localVarAuthNames.add("timeUnit");
+ }
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "DELETE",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call cancelAllUmAlgoOpenOrdersValidateBeforeCall(String symbol, Long recvWindow)
+ throws ApiException {
+ try {
+ Validator validator =
+ Validation.byDefaultProvider()
+ .configure()
+ .messageInterpolator(new ParameterMessageInterpolator())
+ .buildValidatorFactory()
+ .getValidator();
+ ExecutableValidator executableValidator = validator.forExecutables();
+
+ Object[] parameterValues = {symbol, recvWindow};
+ Method method =
+ this.getClass()
+ .getMethod("cancelAllUmAlgoOpenOrders", String.class, Long.class);
+ Set> violations =
+ executableValidator.validateParameters(this, method, parameterValues);
+
+ if (violations.size() == 0) {
+ return cancelAllUmAlgoOpenOrdersCall(symbol, recvWindow);
+ } else {
+ throw new ConstraintViolationException((Set) violations);
+ }
+ } catch (NoSuchMethodException e) {
+ e.printStackTrace();
+ throw new ApiException(e.getMessage());
+ } catch (SecurityException e) {
+ e.printStackTrace();
+ throw new ApiException(e.getMessage());
+ }
+ }
+
+ /**
+ * Cancel All UM Algo Open Orders (TRADE) Cancel All UM Algo Open Orders Weight: 1
+ *
+ * @param symbol (required)
+ * @param recvWindow (optional)
+ * @return ApiResponse<CancelAllUmAlgoOpenOrdersResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | Cancel All UM Algo Open Orders | - |
+ *
+ *
+ * @see Cancel
+ * All UM Algo Open Orders (TRADE) Documentation
+ */
+ public ApiResponse cancelAllUmAlgoOpenOrders(
+ @NotNull String symbol, Long recvWindow) throws ApiException {
+ okhttp3.Call localVarCall = cancelAllUmAlgoOpenOrdersValidateBeforeCall(symbol, recvWindow);
+ java.lang.reflect.Type localVarReturnType =
+ new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
/**
* Build call for cancelAllUmOpenConditionalOrders
*
@@ -448,10 +599,12 @@ public ApiResponse cancelAllCmOpenOrders(
* | 200 | Cancel All UM Open Conditional Orders | - |
*
*
+ * @deprecated
* @see Cancel
- * All UM Open Conditional Orders (TRADE) Documentation
+ * All UM Open Conditional Orders Documentation
*/
+ @Deprecated
private okhttp3.Call cancelAllUmOpenConditionalOrdersCall(String symbol, Long recvWindow)
throws ApiException {
String basePath = null;
@@ -516,6 +669,7 @@ private okhttp3.Call cancelAllUmOpenConditionalOrdersCall(String symbol, Long re
localVarAuthNames);
}
+ @Deprecated
@SuppressWarnings("rawtypes")
private okhttp3.Call cancelAllUmOpenConditionalOrdersValidateBeforeCall(
String symbol, Long recvWindow) throws ApiException {
@@ -551,7 +705,7 @@ private okhttp3.Call cancelAllUmOpenConditionalOrdersValidateBeforeCall(
}
/**
- * Cancel All UM Open Conditional Orders (TRADE) Cancel All UM Open Conditional Orders Weight: 1
+ * Cancel All UM Open Conditional Orders Cancel All UM Open Conditional Orders Weight: 1
*
* @param symbol (required)
* @param recvWindow (optional)
@@ -565,10 +719,12 @@ private okhttp3.Call cancelAllUmOpenConditionalOrdersValidateBeforeCall(
* | 200 | Cancel All UM Open Conditional Orders | - |
*
*
+ * @deprecated
* @see Cancel
- * All UM Open Conditional Orders (TRADE) Documentation
+ * All UM Open Conditional Orders Documentation
*/
+ @Deprecated
public ApiResponse cancelAllUmOpenConditionalOrders(
@NotNull String symbol, Long recvWindow) throws ApiException {
okhttp3.Call localVarCall =
@@ -1586,6 +1742,157 @@ public ApiResponse cancelMarginAccountOrder(
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
+ /**
+ * Build call for cancelUmAlgoOrder
+ *
+ * @param algoId (optional)
+ * @param clientAlgoId (optional)
+ * @param recvWindow (optional)
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | Cancel UM Algo Order | - |
+ *
+ *
+ * @see Cancel
+ * UM Algo Order (TRADE) Documentation
+ */
+ private okhttp3.Call cancelUmAlgoOrderCall(Long algoId, String clientAlgoId, Long recvWindow)
+ throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/papi/v1/um/algo/order";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (algoId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("algoId", algoId));
+ }
+
+ if (clientAlgoId != null) {
+ localVarQueryParams.addAll(
+ localVarApiClient.parameterToPair("clientAlgoId", clientAlgoId));
+ }
+
+ if (recvWindow != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("recvWindow", recvWindow));
+ }
+
+ final String[] localVarAccepts = {"application/json"};
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {"application/x-www-form-urlencoded"};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (!localVarFormParams.isEmpty() && localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+ Set localVarAuthNames = new HashSet<>();
+ localVarAuthNames.add("binanceSignature");
+ if (HAS_TIME_UNIT) {
+ localVarAuthNames.add("timeUnit");
+ }
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "DELETE",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call cancelUmAlgoOrderValidateBeforeCall(
+ Long algoId, String clientAlgoId, Long recvWindow) throws ApiException {
+ try {
+ Validator validator =
+ Validation.byDefaultProvider()
+ .configure()
+ .messageInterpolator(new ParameterMessageInterpolator())
+ .buildValidatorFactory()
+ .getValidator();
+ ExecutableValidator executableValidator = validator.forExecutables();
+
+ Object[] parameterValues = {algoId, clientAlgoId, recvWindow};
+ Method method =
+ this.getClass()
+ .getMethod("cancelUmAlgoOrder", Long.class, String.class, Long.class);
+ Set> violations =
+ executableValidator.validateParameters(this, method, parameterValues);
+
+ if (violations.size() == 0) {
+ return cancelUmAlgoOrderCall(algoId, clientAlgoId, recvWindow);
+ } else {
+ throw new ConstraintViolationException((Set) violations);
+ }
+ } catch (NoSuchMethodException e) {
+ e.printStackTrace();
+ throw new ApiException(e.getMessage());
+ } catch (SecurityException e) {
+ e.printStackTrace();
+ throw new ApiException(e.getMessage());
+ }
+ }
+
+ /**
+ * Cancel UM Algo Order (TRADE) Cancel an active UM algo order. * Either `algoId` or
+ * `clientAlgoId` must be sent. Weight: 1
+ *
+ * @param algoId (optional)
+ * @param clientAlgoId (optional)
+ * @param recvWindow (optional)
+ * @return ApiResponse<CancelUmAlgoOrderResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | Cancel UM Algo Order | - |
+ *
+ *
+ * @see Cancel
+ * UM Algo Order (TRADE) Documentation
+ */
+ public ApiResponse cancelUmAlgoOrder(
+ Long algoId, String clientAlgoId, Long recvWindow) throws ApiException {
+ okhttp3.Call localVarCall =
+ cancelUmAlgoOrderValidateBeforeCall(algoId, clientAlgoId, recvWindow);
+ java.lang.reflect.Type localVarReturnType =
+ new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
/**
* Build call for cancelUmConditionalOrder
*
@@ -1602,10 +1909,12 @@ public ApiResponse cancelMarginAccountOrder(
* | 200 | Cancel UM Conditional Order | - |
*
*
+ * @deprecated
* @see Cancel
- * UM Conditional Order(TRADE) Documentation
+ * UM Conditional Order Documentation
*/
+ @Deprecated
private okhttp3.Call cancelUmConditionalOrderCall(
String symbol, Long strategyId, String newClientStrategyId, Long recvWindow)
throws ApiException {
@@ -1680,6 +1989,7 @@ private okhttp3.Call cancelUmConditionalOrderCall(
localVarAuthNames);
}
+ @Deprecated
@SuppressWarnings("rawtypes")
private okhttp3.Call cancelUmConditionalOrderValidateBeforeCall(
String symbol, Long strategyId, String newClientStrategyId, Long recvWindow)
@@ -1721,8 +2031,8 @@ private okhttp3.Call cancelUmConditionalOrderValidateBeforeCall(
}
/**
- * Cancel UM Conditional Order(TRADE) Cancel UM Conditional Order * Either
- * `strategyId` or `newClientStrategyId` must be sent. Weight: 1
+ * Cancel UM Conditional Order Cancel UM Conditional Order * Either `strategyId` or
+ * `newClientStrategyId` must be sent. Weight: 1
*
* @param symbol (required)
* @param strategyId (optional)
@@ -1738,10 +2048,12 @@ private okhttp3.Call cancelUmConditionalOrderValidateBeforeCall(
* | 200 | Cancel UM Conditional Order | - |
*
*
+ * @deprecated
* @see Cancel
- * UM Conditional Order(TRADE) Documentation
+ * UM Conditional Order Documentation
*/
+ @Deprecated
public ApiResponse cancelUmConditionalOrder(
@NotNull String symbol, Long strategyId, String newClientStrategyId, Long recvWindow)
throws ApiException {
@@ -2284,23 +2596,25 @@ public ApiResponse cmPositionAdlQuantil
}
/**
- * Build call for getUmFuturesBnbBurnStatus
+ * Build call for futuresTradfiPerpsContract
*
- * @param recvWindow (optional)
+ * @param futuresTradfiPerpsContractRequest (required)
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 200 | Get UM Futures BNB Burn Status | - |
+ * | 200 | Futures TradFi Perps Contract | - |
*
*
* @see Get
- * UM Futures BNB Burn Status (USER_DATA) Documentation
+ * href="https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Futures-TradFi-Perps-Contract">Futures
+ * TradFi Perps Contract(USER_DATA) Documentation
*/
- private okhttp3.Call getUmFuturesBnbBurnStatusCall(Long recvWindow) throws ApiException {
+ private okhttp3.Call futuresTradfiPerpsContractCall(
+ FuturesTradfiPerpsContractRequest futuresTradfiPerpsContractRequest)
+ throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] {};
@@ -2317,7 +2631,147 @@ private okhttp3.Call getUmFuturesBnbBurnStatusCall(Long recvWindow) throws ApiEx
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/papi/v1/um/feeBurn";
+ String localVarPath = "/papi/v1/um/stock/contract";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (futuresTradfiPerpsContractRequest.getRecvWindow() != null) {
+ localVarFormParams.put("recvWindow", futuresTradfiPerpsContractRequest.getRecvWindow());
+ }
+
+ final String[] localVarAccepts = {"application/json"};
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {"application/x-www-form-urlencoded"};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (!localVarFormParams.isEmpty() && localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+ Set localVarAuthNames = new HashSet<>();
+ localVarAuthNames.add("binanceSignature");
+ if (HAS_TIME_UNIT) {
+ localVarAuthNames.add("timeUnit");
+ }
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "POST",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call futuresTradfiPerpsContractValidateBeforeCall(
+ FuturesTradfiPerpsContractRequest futuresTradfiPerpsContractRequest)
+ throws ApiException {
+ try {
+ Validator validator =
+ Validation.byDefaultProvider()
+ .configure()
+ .messageInterpolator(new ParameterMessageInterpolator())
+ .buildValidatorFactory()
+ .getValidator();
+ ExecutableValidator executableValidator = validator.forExecutables();
+
+ Object[] parameterValues = {futuresTradfiPerpsContractRequest};
+ Method method =
+ this.getClass()
+ .getMethod(
+ "futuresTradfiPerpsContract",
+ FuturesTradfiPerpsContractRequest.class);
+ Set> violations =
+ executableValidator.validateParameters(this, method, parameterValues);
+
+ if (violations.size() == 0) {
+ return futuresTradfiPerpsContractCall(futuresTradfiPerpsContractRequest);
+ } else {
+ throw new ConstraintViolationException((Set) violations);
+ }
+ } catch (NoSuchMethodException e) {
+ e.printStackTrace();
+ throw new ApiException(e.getMessage());
+ } catch (SecurityException e) {
+ e.printStackTrace();
+ throw new ApiException(e.getMessage());
+ }
+ }
+
+ /**
+ * Futures TradFi Perps Contract(USER_DATA) Sign TradFi-Perps agreement contract Weight: 5
+ *
+ * @param futuresTradfiPerpsContractRequest (required)
+ * @return ApiResponse<FuturesTradfiPerpsContractResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | Futures TradFi Perps Contract | - |
+ *
+ *
+ * @see Futures
+ * TradFi Perps Contract(USER_DATA) Documentation
+ */
+ public ApiResponse futuresTradfiPerpsContract(
+ @Valid @NotNull FuturesTradfiPerpsContractRequest futuresTradfiPerpsContractRequest)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ futuresTradfiPerpsContractValidateBeforeCall(futuresTradfiPerpsContractRequest);
+ java.lang.reflect.Type localVarReturnType =
+ new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Build call for getUmFuturesBnbBurnStatus
+ *
+ * @param recvWindow (optional)
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | Get UM Futures BNB Burn Status | - |
+ *
+ *
+ * @see Get
+ * UM Futures BNB Burn Status (USER_DATA) Documentation
+ */
+ private okhttp3.Call getUmFuturesBnbBurnStatusCall(Long recvWindow) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/papi/v1/um/feeBurn";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -4275,24 +4729,24 @@ public ApiResponse newMarginOrder(
}
/**
- * Build call for newUmConditionalOrder
+ * Build call for newUmAlgoOrder
*
- * @param newUmConditionalOrderRequest (required)
+ * @param newUmAlgoOrderRequest (required)
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 200 | New UM Conditional Order | - |
+ * | 200 | New UM Algo Order | - |
*
*
* @see New
- * UM Conditional Order (TRADE) Documentation
+ * href="https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Algo-Order">New
+ * UM Algo Order (TRADE) Documentation
*/
- private okhttp3.Call newUmConditionalOrderCall(
- NewUmConditionalOrderRequest newUmConditionalOrderRequest) throws ApiException {
+ private okhttp3.Call newUmAlgoOrderCall(NewUmAlgoOrderRequest newUmAlgoOrderRequest)
+ throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] {};
@@ -4309,7 +4763,7 @@ private okhttp3.Call newUmConditionalOrderCall(
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/papi/v1/um/conditional/order";
+ String localVarPath = "/papi/v1/um/algo/order";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -4317,94 +4771,102 @@ private okhttp3.Call newUmConditionalOrderCall(
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
- if (newUmConditionalOrderRequest.getSymbol() != null) {
- localVarFormParams.put("symbol", newUmConditionalOrderRequest.getSymbol());
+ if (newUmAlgoOrderRequest.getAlgoType() != null) {
+ localVarFormParams.put("algoType", newUmAlgoOrderRequest.getAlgoType());
}
- if (newUmConditionalOrderRequest.getSide() != null) {
- localVarFormParams.put("side", newUmConditionalOrderRequest.getSide());
+ if (newUmAlgoOrderRequest.getSymbol() != null) {
+ localVarFormParams.put("symbol", newUmAlgoOrderRequest.getSymbol());
}
- if (newUmConditionalOrderRequest.getPositionSide() != null) {
- localVarFormParams.put("positionSide", newUmConditionalOrderRequest.getPositionSide());
+ if (newUmAlgoOrderRequest.getSide() != null) {
+ localVarFormParams.put("side", newUmAlgoOrderRequest.getSide());
}
- if (newUmConditionalOrderRequest.getStrategyType() != null) {
- localVarFormParams.put("strategyType", newUmConditionalOrderRequest.getStrategyType());
+ if (newUmAlgoOrderRequest.getPositionSide() != null) {
+ localVarFormParams.put("positionSide", newUmAlgoOrderRequest.getPositionSide());
}
- if (newUmConditionalOrderRequest.getTimeInForce() != null) {
- localVarFormParams.put("timeInForce", newUmConditionalOrderRequest.getTimeInForce());
+ if (newUmAlgoOrderRequest.getType() != null) {
+ localVarFormParams.put("type", newUmAlgoOrderRequest.getType());
}
- if (newUmConditionalOrderRequest.getQuantity() != null) {
+ if (newUmAlgoOrderRequest.getTimeInForce() != null) {
+ localVarFormParams.put("timeInForce", newUmAlgoOrderRequest.getTimeInForce());
+ }
+
+ if (newUmAlgoOrderRequest.getQuantity() != null) {
localVarFormParams.put(
"quantity",
- DecimalFormatter.getFormatter()
- .format(newUmConditionalOrderRequest.getQuantity()));
+ DecimalFormatter.getFormatter().format(newUmAlgoOrderRequest.getQuantity()));
}
- if (newUmConditionalOrderRequest.getReduceOnly() != null) {
- localVarFormParams.put("reduceOnly", newUmConditionalOrderRequest.getReduceOnly());
+ if (newUmAlgoOrderRequest.getPrice() != null) {
+ localVarFormParams.put(
+ "price",
+ DecimalFormatter.getFormatter().format(newUmAlgoOrderRequest.getPrice()));
}
- if (newUmConditionalOrderRequest.getPrice() != null) {
+ if (newUmAlgoOrderRequest.getTriggerPrice() != null) {
localVarFormParams.put(
- "price",
+ "triggerPrice",
DecimalFormatter.getFormatter()
- .format(newUmConditionalOrderRequest.getPrice()));
+ .format(newUmAlgoOrderRequest.getTriggerPrice()));
}
- if (newUmConditionalOrderRequest.getWorkingType() != null) {
- localVarFormParams.put("workingType", newUmConditionalOrderRequest.getWorkingType());
+ if (newUmAlgoOrderRequest.getWorkingType() != null) {
+ localVarFormParams.put("workingType", newUmAlgoOrderRequest.getWorkingType());
}
- if (newUmConditionalOrderRequest.getPriceProtect() != null) {
- localVarFormParams.put("priceProtect", newUmConditionalOrderRequest.getPriceProtect());
+ if (newUmAlgoOrderRequest.getPriceMatch() != null) {
+ localVarFormParams.put("priceMatch", newUmAlgoOrderRequest.getPriceMatch());
}
- if (newUmConditionalOrderRequest.getNewClientStrategyId() != null) {
- localVarFormParams.put(
- "newClientStrategyId", newUmConditionalOrderRequest.getNewClientStrategyId());
+ if (newUmAlgoOrderRequest.getClosePosition() != null) {
+ localVarFormParams.put("closePosition", newUmAlgoOrderRequest.getClosePosition());
}
- if (newUmConditionalOrderRequest.getStopPrice() != null) {
- localVarFormParams.put(
- "stopPrice",
- DecimalFormatter.getFormatter()
- .format(newUmConditionalOrderRequest.getStopPrice()));
+ if (newUmAlgoOrderRequest.getPriceProtect() != null) {
+ localVarFormParams.put("priceProtect", newUmAlgoOrderRequest.getPriceProtect());
}
- if (newUmConditionalOrderRequest.getActivationPrice() != null) {
+ if (newUmAlgoOrderRequest.getReduceOnly() != null) {
+ localVarFormParams.put("reduceOnly", newUmAlgoOrderRequest.getReduceOnly());
+ }
+
+ if (newUmAlgoOrderRequest.getActivatePrice() != null) {
localVarFormParams.put(
- "activationPrice",
+ "activatePrice",
DecimalFormatter.getFormatter()
- .format(newUmConditionalOrderRequest.getActivationPrice()));
+ .format(newUmAlgoOrderRequest.getActivatePrice()));
}
- if (newUmConditionalOrderRequest.getCallbackRate() != null) {
+ if (newUmAlgoOrderRequest.getCallbackRate() != null) {
localVarFormParams.put(
"callbackRate",
DecimalFormatter.getFormatter()
- .format(newUmConditionalOrderRequest.getCallbackRate()));
+ .format(newUmAlgoOrderRequest.getCallbackRate()));
}
- if (newUmConditionalOrderRequest.getPriceMatch() != null) {
- localVarFormParams.put("priceMatch", newUmConditionalOrderRequest.getPriceMatch());
+ if (newUmAlgoOrderRequest.getClientAlgoId() != null) {
+ localVarFormParams.put("clientAlgoId", newUmAlgoOrderRequest.getClientAlgoId());
}
- if (newUmConditionalOrderRequest.getSelfTradePreventionMode() != null) {
+ if (newUmAlgoOrderRequest.getNewOrderRespType() != null) {
+ localVarFormParams.put("newOrderRespType", newUmAlgoOrderRequest.getNewOrderRespType());
+ }
+
+ if (newUmAlgoOrderRequest.getSelfTradePreventionMode() != null) {
localVarFormParams.put(
- "selfTradePreventionMode",
- newUmConditionalOrderRequest.getSelfTradePreventionMode());
+ "selfTradePreventionMode", newUmAlgoOrderRequest.getSelfTradePreventionMode());
}
- if (newUmConditionalOrderRequest.getGoodTillDate() != null) {
- localVarFormParams.put("goodTillDate", newUmConditionalOrderRequest.getGoodTillDate());
+ if (newUmAlgoOrderRequest.getGoodTillDate() != null) {
+ localVarFormParams.put("goodTillDate", newUmAlgoOrderRequest.getGoodTillDate());
}
- if (newUmConditionalOrderRequest.getRecvWindow() != null) {
- localVarFormParams.put("recvWindow", newUmConditionalOrderRequest.getRecvWindow());
+ if (newUmAlgoOrderRequest.getRecvWindow() != null) {
+ localVarFormParams.put("recvWindow", newUmAlgoOrderRequest.getRecvWindow());
}
final String[] localVarAccepts = {"application/json"};
@@ -4438,8 +4900,8 @@ private okhttp3.Call newUmConditionalOrderCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call newUmConditionalOrderValidateBeforeCall(
- NewUmConditionalOrderRequest newUmConditionalOrderRequest) throws ApiException {
+ private okhttp3.Call newUmAlgoOrderValidateBeforeCall(
+ NewUmAlgoOrderRequest newUmAlgoOrderRequest) throws ApiException {
try {
Validator validator =
Validation.byDefaultProvider()
@@ -4449,15 +4911,14 @@ private okhttp3.Call newUmConditionalOrderValidateBeforeCall(
.getValidator();
ExecutableValidator executableValidator = validator.forExecutables();
- Object[] parameterValues = {newUmConditionalOrderRequest};
+ Object[] parameterValues = {newUmAlgoOrderRequest};
Method method =
- this.getClass()
- .getMethod("newUmConditionalOrder", NewUmConditionalOrderRequest.class);
+ this.getClass().getMethod("newUmAlgoOrder", NewUmAlgoOrderRequest.class);
Set