();
@@ -461,13 +462,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
+ " string but got `%s`",
jsonObj.get("unrealizedPNL").toString()));
}
- if ((jsonObj.get("lpProfit") != null && !jsonObj.get("lpProfit").isJsonNull())
- && !jsonObj.get("lpProfit").isJsonPrimitive()) {
+ if ((jsonObj.get("adjustedEquity") != null && !jsonObj.get("adjustedEquity").isJsonNull())
+ && !jsonObj.get("adjustedEquity").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
- "Expected the field `lpProfit` to be a primitive type in the JSON"
+ "Expected the field `adjustedEquity` to be a primitive type in the JSON"
+ " string but got `%s`",
- jsonObj.get("lpProfit").toString()));
+ jsonObj.get("adjustedEquity").toString()));
}
}
diff --git a/clients/derivatives-trading-options/src/main/java/com/binance/connector/client/derivatives_trading_options/websocket/stream/api/DerivativesTradingOptionsWebSocketStreams.java b/clients/derivatives-trading-options/src/main/java/com/binance/connector/client/derivatives_trading_options/websocket/stream/api/DerivativesTradingOptionsWebSocketStreams.java
index 894b469b2..1401cc401 100644
--- a/clients/derivatives-trading-options/src/main/java/com/binance/connector/client/derivatives_trading_options/websocket/stream/api/DerivativesTradingOptionsWebSocketStreams.java
+++ b/clients/derivatives-trading-options/src/main/java/com/binance/connector/client/derivatives_trading_options/websocket/stream/api/DerivativesTradingOptionsWebSocketStreams.java
@@ -38,7 +38,7 @@
public class DerivativesTradingOptionsWebSocketStreams {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-options/2.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-options/3.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private final StreamConnectionInterface connection;
diff --git a/clients/derivatives-trading-options/src/test/java/com/binance/connector/client/derivatives_trading_options/rest/api/AccountApiTest.java b/clients/derivatives-trading-options/src/test/java/com/binance/connector/client/derivatives_trading_options/rest/api/AccountApiTest.java
index 9cf270a37..cb8a495d3 100644
--- a/clients/derivatives-trading-options/src/test/java/com/binance/connector/client/derivatives_trading_options/rest/api/AccountApiTest.java
+++ b/clients/derivatives-trading-options/src/test/java/com/binance/connector/client/derivatives_trading_options/rest/api/AccountApiTest.java
@@ -27,6 +27,7 @@
import com.binance.connector.client.derivatives_trading_options.rest.model.GetDownloadIdForOptionTransactionHistoryResponse;
import com.binance.connector.client.derivatives_trading_options.rest.model.GetOptionTransactionHistoryDownloadLinkByIdResponse;
import com.binance.connector.client.derivatives_trading_options.rest.model.OptionAccountInformationResponse;
+import com.binance.connector.client.derivatives_trading_options.rest.model.OptionMarginAccountInformationResponse;
import jakarta.validation.constraints.*;
import okhttp3.Call;
import okhttp3.Request;
@@ -215,4 +216,34 @@ public void optionAccountInformationTest() throws ApiException, CryptoException
actualRequest.url().queryParameter("signature"));
assertEquals("/eapi/v1/account", actualRequest.url().encodedPath());
}
+
+ /**
+ * Option Margin Account Information (USER_DATA)
+ *
+ * Get current account information. Weight: 3
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void optionMarginAccountInformationTest() throws ApiException, CryptoException {
+ Long recvWindow = 5000L;
+ ApiResponse response =
+ api.optionMarginAccountInformation(recvWindow);
+
+ ArgumentCaptor callArgumentCaptor = ArgumentCaptor.forClass(Call.class);
+ Mockito.verify(apiClientSpy)
+ .execute(callArgumentCaptor.capture(), Mockito.any(java.lang.reflect.Type.class));
+
+ ArgumentCaptor signInputCaptor = ArgumentCaptor.forClass(String.class);
+ Mockito.verify(signatureGeneratorSpy).signAsString(signInputCaptor.capture());
+
+ Call captorValue = callArgumentCaptor.getValue();
+ Request actualRequest = captorValue.request();
+
+ assertEquals("recvWindow=5000×tamp=1736393892000", signInputCaptor.getValue());
+ assertEquals(
+ "2cdd1e484bce80021437bee6b762e6a276b1954c3a0c011a16f6f2f6a47aba75",
+ actualRequest.url().queryParameter("signature"));
+ assertEquals("/eapi/v1/marginAccount", actualRequest.url().encodedPath());
+ }
}
diff --git a/clients/derivatives-trading-options/src/test/java/com/binance/connector/client/derivatives_trading_options/rest/api/MarketMakerEndpointsApiTest.java b/clients/derivatives-trading-options/src/test/java/com/binance/connector/client/derivatives_trading_options/rest/api/MarketMakerEndpointsApiTest.java
index 124601aaf..942731443 100644
--- a/clients/derivatives-trading-options/src/test/java/com/binance/connector/client/derivatives_trading_options/rest/api/MarketMakerEndpointsApiTest.java
+++ b/clients/derivatives-trading-options/src/test/java/com/binance/connector/client/derivatives_trading_options/rest/api/MarketMakerEndpointsApiTest.java
@@ -191,36 +191,6 @@ public void getMarketMakerProtectionConfigTest() throws ApiException, CryptoExce
assertEquals("/eapi/v1/mmp", actualRequest.url().encodedPath());
}
- /**
- * Option Margin Account Information (USER_DATA)
- *
- * Get current account information. Weight: 3
- *
- * @throws ApiException if the Api call fails
- */
- @Test
- public void optionMarginAccountInformationTest() throws ApiException, CryptoException {
- Long recvWindow = 5000L;
- ApiResponse response =
- api.optionMarginAccountInformation(recvWindow);
-
- ArgumentCaptor callArgumentCaptor = ArgumentCaptor.forClass(Call.class);
- Mockito.verify(apiClientSpy)
- .execute(callArgumentCaptor.capture(), Mockito.any(java.lang.reflect.Type.class));
-
- ArgumentCaptor signInputCaptor = ArgumentCaptor.forClass(String.class);
- Mockito.verify(signatureGeneratorSpy).signAsString(signInputCaptor.capture());
-
- Call captorValue = callArgumentCaptor.getValue();
- Request actualRequest = captorValue.request();
-
- assertEquals("recvWindow=5000×tamp=1736393892000", signInputCaptor.getValue());
- assertEquals(
- "2cdd1e484bce80021437bee6b762e6a276b1954c3a0c011a16f6f2f6a47aba75",
- actualRequest.url().queryParameter("signature"));
- assertEquals("/eapi/v1/marginAccount", actualRequest.url().encodedPath());
- }
-
/**
* Reset Market Maker Protection Config (TRADE)
*
diff --git a/clients/derivatives-trading-portfolio-margin-pro/docs/rest-api/migration-guide.md b/clients/derivatives-trading-portfolio-margin-pro/docs/rest-api/migration-guide.md
index 474a95af0..11b8536ae 100644
--- a/clients/derivatives-trading-portfolio-margin-pro/docs/rest-api/migration-guide.md
+++ b/clients/derivatives-trading-portfolio-margin-pro/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-pro
- 2.1.0
+ 3.0.1
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-derivatives-trading-portfolio-margin-pro
- 2.1.0
+ 3.0.1
```
diff --git a/clients/derivatives-trading-portfolio-margin/CHANGELOG.md b/clients/derivatives-trading-portfolio-margin/CHANGELOG.md
index 801394a99..d8fc853e2 100644
--- a/clients/derivatives-trading-portfolio-margin/CHANGELOG.md
+++ b/clients/derivatives-trading-portfolio-margin/CHANGELOG.md
@@ -1,10 +1,24 @@
# Changelog
+## 3.0.0 - 2025-09-22
+
+### Changed (2)
+
+#### REST API
+
+- Modified response for `marginMaxBorrow()` (`GET /papi/v1/margin/maxBorrowable`):
+ - `amount`: type `number` → `string`
+ - `borrowLimit`: type `integer` → `string`
+
+- Modified response for `newMarginOrder()` (`POST /papi/v1/margin/order`):
+ - `marginBuyBorrowAmount`: type `integer` → `string`
+
## 2.0.1 - 2025-08-07
+
- Update `binance/common` module to version `2.0.0`.
- Add `Content-Type` header only if there is a body.
-## 3.0.0 - 2025-07-16
+## 2.0.0 - 2025-07-16
### Added (1)
diff --git a/clients/derivatives-trading-portfolio-margin/docs/MarginMaxBorrowResponse.md b/clients/derivatives-trading-portfolio-margin/docs/MarginMaxBorrowResponse.md
index 16cf0b410..9d092f6a1 100644
--- a/clients/derivatives-trading-portfolio-margin/docs/MarginMaxBorrowResponse.md
+++ b/clients/derivatives-trading-portfolio-margin/docs/MarginMaxBorrowResponse.md
@@ -7,8 +7,8 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-|**amount** | **Double** | | [optional] |
-|**borrowLimit** | **Long** | | [optional] |
+|**amount** | **String** | | [optional] |
+|**borrowLimit** | **String** | | [optional] |
diff --git a/clients/derivatives-trading-portfolio-margin/docs/NewMarginOrderResponse.md b/clients/derivatives-trading-portfolio-margin/docs/NewMarginOrderResponse.md
index ff189723c..348344535 100644
--- a/clients/derivatives-trading-portfolio-margin/docs/NewMarginOrderResponse.md
+++ b/clients/derivatives-trading-portfolio-margin/docs/NewMarginOrderResponse.md
@@ -19,7 +19,7 @@
|**timeInForce** | **String** | | [optional] |
|**type** | **String** | | [optional] |
|**side** | **String** | | [optional] |
-|**marginBuyBorrowAmount** | **Long** | | [optional] |
+|**marginBuyBorrowAmount** | **String** | | [optional] |
|**marginBuyBorrowAsset** | **String** | | [optional] |
|**fills** | [**List<NewMarginOrderResponseFillsInner>**](NewMarginOrderResponseFillsInner.md) | | [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 0de3a84fb..edfc715ab 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
- 1.3.0
+ 3.0.0
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-derivatives-trading-portfolio-margin
- 1.3.0
+ 3.0.0
```
diff --git a/clients/derivatives-trading-portfolio-margin/pom.xml b/clients/derivatives-trading-portfolio-margin/pom.xml
index 93990c1d6..d502e8bc9 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
- 2.0.1
+ 3.0.0
jar
@@ -31,7 +31,7 @@
io.github.binance
binance-common
- 2.0.0
+ 2.0.1
\ No newline at end of file
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 1bf3a2fd3..b3778a54a 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/2.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-portfolio-margin/3.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/MarketDataApi.java b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/MarketDataApi.java
index 92ccf91b3..d658cc274 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/2.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-portfolio-margin/3.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 94afcfc84..3216e3dc4 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
@@ -112,7 +112,7 @@ public class TradeApi {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-portfolio-margin/2.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-portfolio-margin/3.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/UserDataStreamsApi.java b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/UserDataStreamsApi.java
index b62a4e0ee..10dd885b9 100644
--- a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/UserDataStreamsApi.java
+++ b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/api/UserDataStreamsApi.java
@@ -42,7 +42,7 @@ public class UserDataStreamsApi {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-portfolio-margin/2.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-portfolio-margin/3.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/model/MarginMaxBorrowResponse.java b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/model/MarginMaxBorrowResponse.java
index 99da5df46..e40c23a43 100644
--- a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/model/MarginMaxBorrowResponse.java
+++ b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/model/MarginMaxBorrowResponse.java
@@ -22,7 +22,6 @@
import com.google.gson.reflect.TypeToken;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
-import jakarta.validation.Valid;
import jakarta.validation.constraints.*;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
@@ -41,17 +40,17 @@ public class MarginMaxBorrowResponse {
@SerializedName(SERIALIZED_NAME_AMOUNT)
@jakarta.annotation.Nullable
- private Double amount;
+ private String amount;
public static final String SERIALIZED_NAME_BORROW_LIMIT = "borrowLimit";
@SerializedName(SERIALIZED_NAME_BORROW_LIMIT)
@jakarta.annotation.Nullable
- private Long borrowLimit;
+ private String borrowLimit;
public MarginMaxBorrowResponse() {}
- public MarginMaxBorrowResponse amount(@jakarta.annotation.Nullable Double amount) {
+ public MarginMaxBorrowResponse amount(@jakarta.annotation.Nullable String amount) {
this.amount = amount;
return this;
}
@@ -62,16 +61,15 @@ public MarginMaxBorrowResponse amount(@jakarta.annotation.Nullable Double amount
* @return amount
*/
@jakarta.annotation.Nullable
- @Valid
- public Double getAmount() {
+ public String getAmount() {
return amount;
}
- public void setAmount(@jakarta.annotation.Nullable Double amount) {
+ public void setAmount(@jakarta.annotation.Nullable String amount) {
this.amount = amount;
}
- public MarginMaxBorrowResponse borrowLimit(@jakarta.annotation.Nullable Long borrowLimit) {
+ public MarginMaxBorrowResponse borrowLimit(@jakarta.annotation.Nullable String borrowLimit) {
this.borrowLimit = borrowLimit;
return this;
}
@@ -82,11 +80,11 @@ public MarginMaxBorrowResponse borrowLimit(@jakarta.annotation.Nullable Long bor
* @return borrowLimit
*/
@jakarta.annotation.Nullable
- public Long getBorrowLimit() {
+ public String getBorrowLimit() {
return borrowLimit;
}
- public void setBorrowLimit(@jakarta.annotation.Nullable Long borrowLimit) {
+ public void setBorrowLimit(@jakarta.annotation.Nullable String borrowLimit) {
this.borrowLimit = borrowLimit;
}
@@ -182,6 +180,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("amount") != null && !jsonObj.get("amount").isJsonNull())
+ && !jsonObj.get("amount").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `amount` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("amount").toString()));
+ }
+ if ((jsonObj.get("borrowLimit") != null && !jsonObj.get("borrowLimit").isJsonNull())
+ && !jsonObj.get("borrowLimit").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `borrowLimit` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("borrowLimit").toString()));
+ }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
diff --git a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/model/NewMarginOrderResponse.java b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/model/NewMarginOrderResponse.java
index 507808ca3..836ca37a0 100644
--- a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/model/NewMarginOrderResponse.java
+++ b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/rest/model/NewMarginOrderResponse.java
@@ -118,7 +118,7 @@ public class NewMarginOrderResponse {
@SerializedName(SERIALIZED_NAME_MARGIN_BUY_BORROW_AMOUNT)
@jakarta.annotation.Nullable
- private Long marginBuyBorrowAmount;
+ private String marginBuyBorrowAmount;
public static final String SERIALIZED_NAME_MARGIN_BUY_BORROW_ASSET = "marginBuyBorrowAsset";
@@ -364,7 +364,7 @@ public void setSide(@jakarta.annotation.Nullable String side) {
}
public NewMarginOrderResponse marginBuyBorrowAmount(
- @jakarta.annotation.Nullable Long marginBuyBorrowAmount) {
+ @jakarta.annotation.Nullable String marginBuyBorrowAmount) {
this.marginBuyBorrowAmount = marginBuyBorrowAmount;
return this;
}
@@ -375,11 +375,12 @@ public NewMarginOrderResponse marginBuyBorrowAmount(
* @return marginBuyBorrowAmount
*/
@jakarta.annotation.Nullable
- public Long getMarginBuyBorrowAmount() {
+ public String getMarginBuyBorrowAmount() {
return marginBuyBorrowAmount;
}
- public void setMarginBuyBorrowAmount(@jakarta.annotation.Nullable Long marginBuyBorrowAmount) {
+ public void setMarginBuyBorrowAmount(
+ @jakarta.annotation.Nullable String marginBuyBorrowAmount) {
this.marginBuyBorrowAmount = marginBuyBorrowAmount;
}
@@ -730,6 +731,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
+ " but got `%s`",
jsonObj.get("side").toString()));
}
+ if ((jsonObj.get("marginBuyBorrowAmount") != null
+ && !jsonObj.get("marginBuyBorrowAmount").isJsonNull())
+ && !jsonObj.get("marginBuyBorrowAmount").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `marginBuyBorrowAmount` to be a primitive type in"
+ + " the JSON string but got `%s`",
+ jsonObj.get("marginBuyBorrowAmount").toString()));
+ }
if ((jsonObj.get("marginBuyBorrowAsset") != null
&& !jsonObj.get("marginBuyBorrowAsset").isJsonNull())
&& !jsonObj.get("marginBuyBorrowAsset").isJsonPrimitive()) {
diff --git a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/websocket/stream/api/DerivativesTradingPortfolioMarginWebSocketStreams.java b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/websocket/stream/api/DerivativesTradingPortfolioMarginWebSocketStreams.java
index b1d1e21fb..6588ca37e 100644
--- a/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/websocket/stream/api/DerivativesTradingPortfolioMarginWebSocketStreams.java
+++ b/clients/derivatives-trading-portfolio-margin/src/main/java/com/binance/connector/client/derivatives_trading_portfolio_margin/websocket/stream/api/DerivativesTradingPortfolioMarginWebSocketStreams.java
@@ -19,7 +19,7 @@
public class DerivativesTradingPortfolioMarginWebSocketStreams {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-portfolio-margin/2.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-portfolio-margin/3.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private final StreamConnectionInterface connection;
diff --git a/clients/derivatives-trading-usds-futures/CHANGELOG.md b/clients/derivatives-trading-usds-futures/CHANGELOG.md
index 3025b88eb..4cd09bc86 100644
--- a/clients/derivatives-trading-usds-futures/CHANGELOG.md
+++ b/clients/derivatives-trading-usds-futures/CHANGELOG.md
@@ -1,5 +1,14 @@
# Changelog
+## 5.0.0 - 2025-09-22
+
+### Changed (1)
+
+#### REST API
+
+- Modified response for `accountInformationV3()` method (`GET /fapi/v3/account`):
+ - `assets`: item property `marginAvailable` deleted
+
## 4.0.1 - 2025-08-07
- Update `binance/common` module to version `2.0.0`.
- Add `Content-Type` header only if there is a body.
diff --git a/clients/derivatives-trading-usds-futures/docs/AccountInformationV3ResponseAssetsInner.md b/clients/derivatives-trading-usds-futures/docs/AccountInformationV3ResponseAssetsInner.md
index 6fd3293c2..dd8238d16 100644
--- a/clients/derivatives-trading-usds-futures/docs/AccountInformationV3ResponseAssetsInner.md
+++ b/clients/derivatives-trading-usds-futures/docs/AccountInformationV3ResponseAssetsInner.md
@@ -20,7 +20,6 @@
|**availableBalance** | **String** | | [optional] |
|**maxWithdrawAmount** | **String** | | [optional] |
|**updateTime** | **Long** | | [optional] |
-|**marginAvailable** | **Boolean** | | [optional] |
diff --git a/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse.md b/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse.md
index 9cd25df7a..91d401101 100644
--- a/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse.md
+++ b/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse.md
@@ -9,7 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**symbol** | **String** | | [optional] |
|**notionalCoef** | **Double** | | [optional] |
-|**brackets** | [**List<NotionalAndLeverageBracketsResponse1InnerBracketsInner>**](NotionalAndLeverageBracketsResponse1InnerBracketsInner.md) | | [optional] |
+|**brackets** | [**List<NotionalAndLeverageBracketsResponse2BracketsInner>**](NotionalAndLeverageBracketsResponse2BracketsInner.md) | | [optional] |
diff --git a/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse1InnerBracketsInner.md b/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse1InnerBracketsInner.md
index eb00eb934..5bb51622f 100644
--- a/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse1InnerBracketsInner.md
+++ b/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse1InnerBracketsInner.md
@@ -12,7 +12,7 @@
|**notionalCap** | **Long** | | [optional] |
|**notionalFloor** | **Long** | | [optional] |
|**maintMarginRatio** | **Double** | | [optional] |
-|**cum** | **Long** | | [optional] |
+|**cum** | **Double** | | [optional] |
diff --git a/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse2.md b/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse2.md
index bb20bcab3..859456eff 100644
--- a/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse2.md
+++ b/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse2.md
@@ -9,7 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**symbol** | **String** | | [optional] |
|**notionalCoef** | **Double** | | [optional] |
-|**brackets** | [**List<NotionalAndLeverageBracketsResponse1InnerBracketsInner>**](NotionalAndLeverageBracketsResponse1InnerBracketsInner.md) | | [optional] |
+|**brackets** | [**List<NotionalAndLeverageBracketsResponse2BracketsInner>**](NotionalAndLeverageBracketsResponse2BracketsInner.md) | | [optional] |
diff --git a/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse2BracketsInner.md b/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse2BracketsInner.md
new file mode 100644
index 000000000..27745fc70
--- /dev/null
+++ b/clients/derivatives-trading-usds-futures/docs/NotionalAndLeverageBracketsResponse2BracketsInner.md
@@ -0,0 +1,18 @@
+
+
+# NotionalAndLeverageBracketsResponse2BracketsInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**bracket** | **Long** | | [optional] |
+|**initialLeverage** | **Long** | | [optional] |
+|**notionalCap** | **Long** | | [optional] |
+|**notionalFloor** | **Long** | | [optional] |
+|**maintMarginRatio** | **Double** | | [optional] |
+|**cum** | **Long** | | [optional] |
+
+
+
diff --git a/clients/derivatives-trading-usds-futures/docs/rest-api/migration-guide.md b/clients/derivatives-trading-usds-futures/docs/rest-api/migration-guide.md
index d8a405ec8..a3ec9e9ee 100644
--- a/clients/derivatives-trading-usds-futures/docs/rest-api/migration-guide.md
+++ b/clients/derivatives-trading-usds-futures/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-usds-futures
- 3.1.0
+ 5.0.0
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-derivatives-trading-usds-futures
- 3.1.0
+ 5.0.0
```
diff --git a/clients/derivatives-trading-usds-futures/pom.xml b/clients/derivatives-trading-usds-futures/pom.xml
index 1c015b3df..97ebdb9c1 100644
--- a/clients/derivatives-trading-usds-futures/pom.xml
+++ b/clients/derivatives-trading-usds-futures/pom.xml
@@ -5,7 +5,7 @@
4.0.0
binance-derivatives-trading-usds-futures
derivatives-trading-usds-futures
- 4.0.1
+ 5.0.0
jar
@@ -31,7 +31,7 @@
io.github.binance
binance-common
- 2.0.0
+ 2.0.1
\ No newline at end of file
diff --git a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/JSON.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/JSON.java
index 7286b9262..8f6608ced 100644
--- a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/JSON.java
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/JSON.java
@@ -465,6 +465,10 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_usds_futures.rest.model
.NotionalAndLeverageBracketsResponse2.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.derivatives_trading_usds_futures.rest.model
+ .NotionalAndLeverageBracketsResponse2BracketsInner
+ .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.derivatives_trading_usds_futures.rest.model
.OldTradesLookupResponse.CustomTypeAdapterFactory());
diff --git a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/AccountApi.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/AccountApi.java
index 136b2b9af..d513bba1b 100644
--- a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/AccountApi.java
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/AccountApi.java
@@ -64,7 +64,7 @@ public class AccountApi {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-usds-futures/4.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-usds-futures/5.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-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/ConvertApi.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/ConvertApi.java
index 4d79f8a16..524002002 100644
--- a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/ConvertApi.java
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/ConvertApi.java
@@ -49,7 +49,7 @@ public class ConvertApi {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-usds-futures/4.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-usds-futures/5.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-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/DerivativesTradingUsdsFuturesRestApi.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/DerivativesTradingUsdsFuturesRestApi.java
index abd72c723..7dfc15d4f 100644
--- a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/DerivativesTradingUsdsFuturesRestApi.java
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/DerivativesTradingUsdsFuturesRestApi.java
@@ -965,8 +965,8 @@ public ApiResponse exchangeInformation() throws Api
/**
* Get Funding Rate History Get Funding Rate History * If `startTime` and
- * `endTime` are not sent, the most recent `limit` datas are returned. * If
- * the number of data between `startTime` and `endTime` is larger than
+ * `endTime` are not sent, the most recent 200 records are returned. * If the number
+ * of data between `startTime` and `endTime` is larger than
* `limit`, return as `startTime` + `limit`. * In ascending order.
* Weight: share 500/5min/IP rate limit with GET /fapi/v1/fundingInfo
*
@@ -1450,9 +1450,9 @@ public ApiResponse symbolOrderBookTicker(String s
}
/**
- * Symbol Price Ticker Latest price for a symbol or symbols. * If the symbol is not sent, prices
- * for all symbols will be returned in an array. Weight: 1 for a single symbol; 2 when the
- * symbol parameter is omitted
+ * Symbol Price Ticker(Deprecated) Latest price for a symbol or symbols. * If the symbol is not
+ * sent, prices for all symbols will be returned in an array. Weight: 1 for a single symbol; 2
+ * when the symbol parameter is omitted
*
* @param symbol (optional)
* @return ApiResponse<SymbolPriceTickerResponse>
@@ -1467,7 +1467,7 @@ public ApiResponse symbolOrderBookTicker(String s
*
* @see Symbol
- * Price Ticker Documentation
+ * Price Ticker(Deprecated) Documentation
*/
public ApiResponse symbolPriceTicker(String symbol)
throws ApiException {
diff --git a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/MarketDataApi.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/MarketDataApi.java
index 059045bcd..50271bd9f 100644
--- a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/MarketDataApi.java
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/MarketDataApi.java
@@ -74,7 +74,7 @@ public class MarketDataApi {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-usds-futures/4.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-usds-futures/5.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = false;
@@ -1200,8 +1200,8 @@ private okhttp3.Call getFundingRateHistoryValidateBeforeCall(
/**
* Get Funding Rate History Get Funding Rate History * If `startTime` and
- * `endTime` are not sent, the most recent `limit` datas are returned. * If
- * the number of data between `startTime` and `endTime` is larger than
+ * `endTime` are not sent, the most recent 200 records are returned. * If the number
+ * of data between `startTime` and `endTime` is larger than
* `limit`, return as `startTime` + `limit`. * In ascending order.
* Weight: share 500/5min/IP rate limit with GET /fapi/v1/fundingInfo
*
@@ -3796,7 +3796,7 @@ public ApiResponse symbolOrderBookTicker(String s
*
* @see Symbol
- * Price Ticker Documentation
+ * Price Ticker(Deprecated) Documentation
*/
private okhttp3.Call symbolPriceTickerCall(String symbol) throws ApiException {
String basePath = null;
@@ -3887,9 +3887,9 @@ private okhttp3.Call symbolPriceTickerValidateBeforeCall(String symbol) throws A
}
/**
- * Symbol Price Ticker Latest price for a symbol or symbols. * If the symbol is not sent, prices
- * for all symbols will be returned in an array. Weight: 1 for a single symbol; 2 when the
- * symbol parameter is omitted
+ * Symbol Price Ticker(Deprecated) Latest price for a symbol or symbols. * If the symbol is not
+ * sent, prices for all symbols will be returned in an array. Weight: 1 for a single symbol; 2
+ * when the symbol parameter is omitted
*
* @param symbol (optional)
* @return ApiResponse<SymbolPriceTickerResponse>
@@ -3904,7 +3904,7 @@ private okhttp3.Call symbolPriceTickerValidateBeforeCall(String symbol) throws A
*
* @see Symbol
- * Price Ticker Documentation
+ * Price Ticker(Deprecated) Documentation
*/
public ApiResponse symbolPriceTicker(String symbol)
throws ApiException {
diff --git a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/PortfolioMarginEndpointsApi.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/PortfolioMarginEndpointsApi.java
index 84bbd999e..87ea852c8 100644
--- a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/PortfolioMarginEndpointsApi.java
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/PortfolioMarginEndpointsApi.java
@@ -42,7 +42,7 @@ public class PortfolioMarginEndpointsApi {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-usds-futures/4.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-usds-futures/5.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-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/TradeApi.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/TradeApi.java
index 213cfcd6d..ed5e2b461 100644
--- a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/TradeApi.java
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/TradeApi.java
@@ -83,7 +83,7 @@ public class TradeApi {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-usds-futures/4.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-usds-futures/5.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-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/UserDataStreamsApi.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/UserDataStreamsApi.java
index e82ff8de0..22abbc407 100644
--- a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/UserDataStreamsApi.java
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/api/UserDataStreamsApi.java
@@ -43,7 +43,7 @@ public class UserDataStreamsApi {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-usds-futures/4.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-usds-futures/5.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-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/AccountInformationV3ResponseAssetsInner.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/AccountInformationV3ResponseAssetsInner.java
index 58284f145..08c9ffc9f 100644
--- a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/AccountInformationV3ResponseAssetsInner.java
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/AccountInformationV3ResponseAssetsInner.java
@@ -114,12 +114,6 @@ public class AccountInformationV3ResponseAssetsInner {
@jakarta.annotation.Nullable
private Long updateTime;
- public static final String SERIALIZED_NAME_MARGIN_AVAILABLE = "marginAvailable";
-
- @SerializedName(SERIALIZED_NAME_MARGIN_AVAILABLE)
- @jakarta.annotation.Nullable
- private Boolean marginAvailable;
-
public AccountInformationV3ResponseAssetsInner() {}
public AccountInformationV3ResponseAssetsInner asset(
@@ -384,26 +378,6 @@ public void setUpdateTime(@jakarta.annotation.Nullable Long updateTime) {
this.updateTime = updateTime;
}
- public AccountInformationV3ResponseAssetsInner marginAvailable(
- @jakarta.annotation.Nullable Boolean marginAvailable) {
- this.marginAvailable = marginAvailable;
- return this;
- }
-
- /**
- * Get marginAvailable
- *
- * @return marginAvailable
- */
- @jakarta.annotation.Nullable
- public Boolean getMarginAvailable() {
- return marginAvailable;
- }
-
- public void setMarginAvailable(@jakarta.annotation.Nullable Boolean marginAvailable) {
- this.marginAvailable = marginAvailable;
- }
-
@Override
public boolean equals(Object o) {
if (this == o) {
@@ -444,10 +418,7 @@ public boolean equals(Object o) {
this.maxWithdrawAmount,
accountInformationV3ResponseAssetsInner.maxWithdrawAmount)
&& Objects.equals(
- this.updateTime, accountInformationV3ResponseAssetsInner.updateTime)
- && Objects.equals(
- this.marginAvailable,
- accountInformationV3ResponseAssetsInner.marginAvailable);
+ this.updateTime, accountInformationV3ResponseAssetsInner.updateTime);
}
@Override
@@ -465,8 +436,7 @@ public int hashCode() {
crossUnPnl,
availableBalance,
maxWithdrawAmount,
- updateTime,
- marginAvailable);
+ updateTime);
}
@Override
@@ -492,7 +462,6 @@ public String toString() {
sb.append(" availableBalance: ").append(toIndentedString(availableBalance)).append("\n");
sb.append(" maxWithdrawAmount: ").append(toIndentedString(maxWithdrawAmount)).append("\n");
sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n");
- sb.append(" marginAvailable: ").append(toIndentedString(marginAvailable)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -560,10 +529,6 @@ public String toUrlQueryString() {
String updateTimeValueAsString = "";
updateTimeValueAsString = updateTimeValue.toString();
sb.append("updateTime=").append(urlEncode(updateTimeValueAsString)).append("");
- Object marginAvailableValue = getMarginAvailable();
- String marginAvailableValueAsString = "";
- marginAvailableValueAsString = marginAvailableValue.toString();
- sb.append("marginAvailable=").append(urlEncode(marginAvailableValueAsString)).append("");
return sb.toString();
}
@@ -605,7 +570,6 @@ private String toIndentedString(Object o) {
openapiFields.add("availableBalance");
openapiFields.add("maxWithdrawAmount");
openapiFields.add("updateTime");
- openapiFields.add("marginAvailable");
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet();
diff --git a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/NotionalAndLeverageBracketsResponse1InnerBracketsInner.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/NotionalAndLeverageBracketsResponse1InnerBracketsInner.java
index eee49592b..59d10b1ef 100644
--- a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/NotionalAndLeverageBracketsResponse1InnerBracketsInner.java
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/NotionalAndLeverageBracketsResponse1InnerBracketsInner.java
@@ -71,7 +71,7 @@ public class NotionalAndLeverageBracketsResponse1InnerBracketsInner {
@SerializedName(SERIALIZED_NAME_CUM)
@jakarta.annotation.Nullable
- private Long cum;
+ private Double cum;
public NotionalAndLeverageBracketsResponse1InnerBracketsInner() {}
@@ -177,7 +177,7 @@ public void setMaintMarginRatio(@jakarta.annotation.Nullable Double maintMarginR
}
public NotionalAndLeverageBracketsResponse1InnerBracketsInner cum(
- @jakarta.annotation.Nullable Long cum) {
+ @jakarta.annotation.Nullable Double cum) {
this.cum = cum;
return this;
}
@@ -188,11 +188,12 @@ public NotionalAndLeverageBracketsResponse1InnerBracketsInner cum(
* @return cum
*/
@jakarta.annotation.Nullable
- public Long getCum() {
+ @Valid
+ public Double getCum() {
return cum;
}
- public void setCum(@jakarta.annotation.Nullable Long cum) {
+ public void setCum(@jakarta.annotation.Nullable Double cum) {
this.cum = cum;
}
diff --git a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/NotionalAndLeverageBracketsResponse2.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/NotionalAndLeverageBracketsResponse2.java
index 03038f134..3162888a7 100644
--- a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/NotionalAndLeverageBracketsResponse2.java
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/NotionalAndLeverageBracketsResponse2.java
@@ -58,7 +58,7 @@ public class NotionalAndLeverageBracketsResponse2 {
@SerializedName(SERIALIZED_NAME_BRACKETS)
@jakarta.annotation.Nullable
- private List<@Valid NotionalAndLeverageBracketsResponse1InnerBracketsInner> brackets;
+ private List<@Valid NotionalAndLeverageBracketsResponse2BracketsInner> brackets;
public NotionalAndLeverageBracketsResponse2() {}
@@ -104,13 +104,13 @@ public void setNotionalCoef(@jakarta.annotation.Nullable Double notionalCoef) {
public NotionalAndLeverageBracketsResponse2 brackets(
@jakarta.annotation.Nullable
- List<@Valid NotionalAndLeverageBracketsResponse1InnerBracketsInner> brackets) {
+ List<@Valid NotionalAndLeverageBracketsResponse2BracketsInner> brackets) {
this.brackets = brackets;
return this;
}
public NotionalAndLeverageBracketsResponse2 addBracketsItem(
- NotionalAndLeverageBracketsResponse1InnerBracketsInner bracketsItem) {
+ NotionalAndLeverageBracketsResponse2BracketsInner bracketsItem) {
if (this.brackets == null) {
this.brackets = new ArrayList<>();
}
@@ -125,13 +125,13 @@ public NotionalAndLeverageBracketsResponse2 addBracketsItem(
*/
@jakarta.annotation.Nullable
@Valid
- public List<@Valid NotionalAndLeverageBracketsResponse1InnerBracketsInner> getBrackets() {
+ public List<@Valid NotionalAndLeverageBracketsResponse2BracketsInner> getBrackets() {
return brackets;
}
public void setBrackets(
@jakarta.annotation.Nullable
- List<@Valid NotionalAndLeverageBracketsResponse1InnerBracketsInner> brackets) {
+ List<@Valid NotionalAndLeverageBracketsResponse2BracketsInner> brackets) {
this.brackets = brackets;
}
@@ -263,7 +263,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
// validate the optional field `brackets` (array)
for (int i = 0; i < jsonArraybrackets.size(); i++) {
- NotionalAndLeverageBracketsResponse1InnerBracketsInner.validateJsonElement(
+ NotionalAndLeverageBracketsResponse2BracketsInner.validateJsonElement(
jsonArraybrackets.get(i));
}
;
diff --git a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/NotionalAndLeverageBracketsResponse2BracketsInner.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/NotionalAndLeverageBracketsResponse2BracketsInner.java
new file mode 100644
index 000000000..a3ac44d81
--- /dev/null
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/rest/model/NotionalAndLeverageBracketsResponse2BracketsInner.java
@@ -0,0 +1,396 @@
+/*
+ * Binance Derivatives Trading USDS Futures REST API
+ * OpenAPI Specification for the Binance Derivatives Trading USDS Futures REST API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.binance.connector.client.derivatives_trading_usds_futures.rest.model;
+
+import com.binance.connector.client.derivatives_trading_usds_futures.rest.JSON;
+import com.google.gson.Gson;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.TypeAdapter;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.*;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
+import java.util.HashSet;
+import java.util.Objects;
+import org.hibernate.validator.constraints.*;
+
+/** NotionalAndLeverageBracketsResponse2BracketsInner */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class NotionalAndLeverageBracketsResponse2BracketsInner {
+ public static final String SERIALIZED_NAME_BRACKET = "bracket";
+
+ @SerializedName(SERIALIZED_NAME_BRACKET)
+ @jakarta.annotation.Nullable
+ private Long bracket;
+
+ public static final String SERIALIZED_NAME_INITIAL_LEVERAGE = "initialLeverage";
+
+ @SerializedName(SERIALIZED_NAME_INITIAL_LEVERAGE)
+ @jakarta.annotation.Nullable
+ private Long initialLeverage;
+
+ public static final String SERIALIZED_NAME_NOTIONAL_CAP = "notionalCap";
+
+ @SerializedName(SERIALIZED_NAME_NOTIONAL_CAP)
+ @jakarta.annotation.Nullable
+ private Long notionalCap;
+
+ public static final String SERIALIZED_NAME_NOTIONAL_FLOOR = "notionalFloor";
+
+ @SerializedName(SERIALIZED_NAME_NOTIONAL_FLOOR)
+ @jakarta.annotation.Nullable
+ private Long notionalFloor;
+
+ public static final String SERIALIZED_NAME_MAINT_MARGIN_RATIO = "maintMarginRatio";
+
+ @SerializedName(SERIALIZED_NAME_MAINT_MARGIN_RATIO)
+ @jakarta.annotation.Nullable
+ private Double maintMarginRatio;
+
+ public static final String SERIALIZED_NAME_CUM = "cum";
+
+ @SerializedName(SERIALIZED_NAME_CUM)
+ @jakarta.annotation.Nullable
+ private Long cum;
+
+ public NotionalAndLeverageBracketsResponse2BracketsInner() {}
+
+ public NotionalAndLeverageBracketsResponse2BracketsInner bracket(
+ @jakarta.annotation.Nullable Long bracket) {
+ this.bracket = bracket;
+ return this;
+ }
+
+ /**
+ * Get bracket
+ *
+ * @return bracket
+ */
+ @jakarta.annotation.Nullable
+ public Long getBracket() {
+ return bracket;
+ }
+
+ public void setBracket(@jakarta.annotation.Nullable Long bracket) {
+ this.bracket = bracket;
+ }
+
+ public NotionalAndLeverageBracketsResponse2BracketsInner initialLeverage(
+ @jakarta.annotation.Nullable Long initialLeverage) {
+ this.initialLeverage = initialLeverage;
+ return this;
+ }
+
+ /**
+ * Get initialLeverage
+ *
+ * @return initialLeverage
+ */
+ @jakarta.annotation.Nullable
+ public Long getInitialLeverage() {
+ return initialLeverage;
+ }
+
+ public void setInitialLeverage(@jakarta.annotation.Nullable Long initialLeverage) {
+ this.initialLeverage = initialLeverage;
+ }
+
+ public NotionalAndLeverageBracketsResponse2BracketsInner notionalCap(
+ @jakarta.annotation.Nullable Long notionalCap) {
+ this.notionalCap = notionalCap;
+ return this;
+ }
+
+ /**
+ * Get notionalCap
+ *
+ * @return notionalCap
+ */
+ @jakarta.annotation.Nullable
+ public Long getNotionalCap() {
+ return notionalCap;
+ }
+
+ public void setNotionalCap(@jakarta.annotation.Nullable Long notionalCap) {
+ this.notionalCap = notionalCap;
+ }
+
+ public NotionalAndLeverageBracketsResponse2BracketsInner notionalFloor(
+ @jakarta.annotation.Nullable Long notionalFloor) {
+ this.notionalFloor = notionalFloor;
+ return this;
+ }
+
+ /**
+ * Get notionalFloor
+ *
+ * @return notionalFloor
+ */
+ @jakarta.annotation.Nullable
+ public Long getNotionalFloor() {
+ return notionalFloor;
+ }
+
+ public void setNotionalFloor(@jakarta.annotation.Nullable Long notionalFloor) {
+ this.notionalFloor = notionalFloor;
+ }
+
+ public NotionalAndLeverageBracketsResponse2BracketsInner maintMarginRatio(
+ @jakarta.annotation.Nullable Double maintMarginRatio) {
+ this.maintMarginRatio = maintMarginRatio;
+ return this;
+ }
+
+ /**
+ * Get maintMarginRatio
+ *
+ * @return maintMarginRatio
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getMaintMarginRatio() {
+ return maintMarginRatio;
+ }
+
+ public void setMaintMarginRatio(@jakarta.annotation.Nullable Double maintMarginRatio) {
+ this.maintMarginRatio = maintMarginRatio;
+ }
+
+ public NotionalAndLeverageBracketsResponse2BracketsInner cum(
+ @jakarta.annotation.Nullable Long cum) {
+ this.cum = cum;
+ return this;
+ }
+
+ /**
+ * Get cum
+ *
+ * @return cum
+ */
+ @jakarta.annotation.Nullable
+ public Long getCum() {
+ return cum;
+ }
+
+ public void setCum(@jakarta.annotation.Nullable Long cum) {
+ this.cum = cum;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ NotionalAndLeverageBracketsResponse2BracketsInner
+ notionalAndLeverageBracketsResponse2BracketsInner =
+ (NotionalAndLeverageBracketsResponse2BracketsInner) o;
+ return Objects.equals(
+ this.bracket, notionalAndLeverageBracketsResponse2BracketsInner.bracket)
+ && Objects.equals(
+ this.initialLeverage,
+ notionalAndLeverageBracketsResponse2BracketsInner.initialLeverage)
+ && Objects.equals(
+ this.notionalCap,
+ notionalAndLeverageBracketsResponse2BracketsInner.notionalCap)
+ && Objects.equals(
+ this.notionalFloor,
+ notionalAndLeverageBracketsResponse2BracketsInner.notionalFloor)
+ && Objects.equals(
+ this.maintMarginRatio,
+ notionalAndLeverageBracketsResponse2BracketsInner.maintMarginRatio)
+ && Objects.equals(this.cum, notionalAndLeverageBracketsResponse2BracketsInner.cum);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ bracket, initialLeverage, notionalCap, notionalFloor, maintMarginRatio, cum);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class NotionalAndLeverageBracketsResponse2BracketsInner {\n");
+ sb.append(" bracket: ").append(toIndentedString(bracket)).append("\n");
+ sb.append(" initialLeverage: ").append(toIndentedString(initialLeverage)).append("\n");
+ sb.append(" notionalCap: ").append(toIndentedString(notionalCap)).append("\n");
+ sb.append(" notionalFloor: ").append(toIndentedString(notionalFloor)).append("\n");
+ sb.append(" maintMarginRatio: ").append(toIndentedString(maintMarginRatio)).append("\n");
+ sb.append(" cum: ").append(toIndentedString(cum)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object bracketValue = getBracket();
+ String bracketValueAsString = "";
+ bracketValueAsString = bracketValue.toString();
+ sb.append("bracket=").append(urlEncode(bracketValueAsString)).append("");
+ Object initialLeverageValue = getInitialLeverage();
+ String initialLeverageValueAsString = "";
+ initialLeverageValueAsString = initialLeverageValue.toString();
+ sb.append("initialLeverage=").append(urlEncode(initialLeverageValueAsString)).append("");
+ Object notionalCapValue = getNotionalCap();
+ String notionalCapValueAsString = "";
+ notionalCapValueAsString = notionalCapValue.toString();
+ sb.append("notionalCap=").append(urlEncode(notionalCapValueAsString)).append("");
+ Object notionalFloorValue = getNotionalFloor();
+ String notionalFloorValueAsString = "";
+ notionalFloorValueAsString = notionalFloorValue.toString();
+ sb.append("notionalFloor=").append(urlEncode(notionalFloorValueAsString)).append("");
+ Object maintMarginRatioValue = getMaintMarginRatio();
+ String maintMarginRatioValueAsString = "";
+ maintMarginRatioValueAsString = maintMarginRatioValue.toString();
+ sb.append("maintMarginRatio=").append(urlEncode(maintMarginRatioValueAsString)).append("");
+ Object cumValue = getCum();
+ String cumValueAsString = "";
+ cumValueAsString = cumValue.toString();
+ sb.append("cum=").append(urlEncode(cumValueAsString)).append("");
+ return sb.toString();
+ }
+
+ public static String urlEncode(String s) {
+ try {
+ return URLEncoder.encode(s, StandardCharsets.UTF_8.name());
+ } catch (UnsupportedEncodingException e) {
+ throw new RuntimeException(StandardCharsets.UTF_8.name() + " is unsupported", e);
+ }
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first
+ * line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("bracket");
+ openapiFields.add("initialLeverage");
+ openapiFields.add("notionalCap");
+ openapiFields.add("notionalFloor");
+ openapiFields.add("maintMarginRatio");
+ openapiFields.add("cum");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to
+ * NotionalAndLeverageBracketsResponse2BracketsInner
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!NotionalAndLeverageBracketsResponse2BracketsInner.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in"
+ + " NotionalAndLeverageBracketsResponse2BracketsInner is not"
+ + " found in the empty JSON string",
+ NotionalAndLeverageBracketsResponse2BracketsInner
+ .openapiRequiredFields
+ .toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!NotionalAndLeverageBracketsResponse2BracketsInner.class.isAssignableFrom(
+ type.getRawType())) {
+ return null; // this class only serializes
+ // 'NotionalAndLeverageBracketsResponse2BracketsInner' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(
+ this,
+ TypeToken.get(NotionalAndLeverageBracketsResponse2BracketsInner.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(
+ JsonWriter out,
+ NotionalAndLeverageBracketsResponse2BracketsInner value)
+ throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public NotionalAndLeverageBracketsResponse2BracketsInner read(JsonReader in)
+ throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of NotionalAndLeverageBracketsResponse2BracketsInner given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of NotionalAndLeverageBracketsResponse2BracketsInner
+ * @throws IOException if the JSON string is invalid with respect to
+ * NotionalAndLeverageBracketsResponse2BracketsInner
+ */
+ public static NotionalAndLeverageBracketsResponse2BracketsInner fromJson(String jsonString)
+ throws IOException {
+ return JSON.getGson()
+ .fromJson(jsonString, NotionalAndLeverageBracketsResponse2BracketsInner.class);
+ }
+
+ /**
+ * Convert an instance of NotionalAndLeverageBracketsResponse2BracketsInner to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/api/api/DerivativesTradingUsdsFuturesWebSocketApi.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/api/api/DerivativesTradingUsdsFuturesWebSocketApi.java
index ba1f83af7..f5b1a9431 100644
--- a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/api/api/DerivativesTradingUsdsFuturesWebSocketApi.java
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/api/api/DerivativesTradingUsdsFuturesWebSocketApi.java
@@ -39,12 +39,14 @@
import com.binance.connector.client.derivatives_trading_usds_futures.websocket.api.model.SymbolOrderBookTickerResponse;
import com.binance.connector.client.derivatives_trading_usds_futures.websocket.api.model.SymbolPriceTickerRequest;
import com.binance.connector.client.derivatives_trading_usds_futures.websocket.api.model.SymbolPriceTickerResponse;
+import java.util.ArrayList;
+import java.util.List;
import java.util.concurrent.CompletableFuture;
public class DerivativesTradingUsdsFuturesWebSocketApi {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-usds-futures/4.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-usds-futures/5.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private AccountApi accountApi;
@@ -61,6 +63,11 @@ public DerivativesTradingUsdsFuturesWebSocketApi(WebSocketClientConfiguration co
public DerivativesTradingUsdsFuturesWebSocketApi(ConnectionInterface connection) {
connection.setUserAgent(USER_AGENT);
+ List logonMethods = new ArrayList<>();
+ List logoutMethods = new ArrayList<>();
+
+ connection.setLogonMethods(logonMethods);
+ connection.setLogoutMethods(logoutMethods);
if (!connection.isConnected()) {
connection.connect();
}
diff --git a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/api/DerivativesTradingUsdsFuturesWebSocketStreams.java b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/api/DerivativesTradingUsdsFuturesWebSocketStreams.java
index bf70d0d74..119db05c8 100644
--- a/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/api/DerivativesTradingUsdsFuturesWebSocketStreams.java
+++ b/clients/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/api/DerivativesTradingUsdsFuturesWebSocketStreams.java
@@ -56,7 +56,7 @@
public class DerivativesTradingUsdsFuturesWebSocketStreams {
private static final String USER_AGENT =
String.format(
- "binance-derivatives-trading-usds-futures/4.0.1 (Java/%s; %s; %s)",
+ "binance-derivatives-trading-usds-futures/5.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private final StreamConnectionInterface connection;
diff --git a/clients/dual-investment/docs/rest-api/migration-guide.md b/clients/dual-investment/docs/rest-api/migration-guide.md
index 82afe1592..2e0d2e95b 100644
--- a/clients/dual-investment/docs/rest-api/migration-guide.md
+++ b/clients/dual-investment/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-dual-investment
- 2.1.0
+ 2.1.1
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-dual-investment
- 2.1.0
+ 2.1.1
```
diff --git a/clients/fiat/docs/rest-api/migration-guide.md b/clients/fiat/docs/rest-api/migration-guide.md
index 3f1c035f0..adbb3cda4 100644
--- a/clients/fiat/docs/rest-api/migration-guide.md
+++ b/clients/fiat/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-fiat
- 1.2.0
+ 1.2.1
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-fiat
- 1.2.0
+ 1.2.1
```
diff --git a/clients/gift-card/docs/rest-api/migration-guide.md b/clients/gift-card/docs/rest-api/migration-guide.md
index 5e1ebd097..7c6cd5c5d 100644
--- a/clients/gift-card/docs/rest-api/migration-guide.md
+++ b/clients/gift-card/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-gift-card
- 1.2.0
+ 1.2.1
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-gift-card
- 1.2.0
+ 1.2.1
```
diff --git a/clients/margin-trading/CHANGELOG.md b/clients/margin-trading/CHANGELOG.md
index 63c48ac45..f8d82311f 100644
--- a/clients/margin-trading/CHANGELOG.md
+++ b/clients/margin-trading/CHANGELOG.md
@@ -1,6 +1,15 @@
# Changelog
+## 4.0.0 - 2025-09-22
+
+### Added (1)
+
+#### REST API
+
+- `getLimitPricePairs()` (`GET /sapi/v1/margin/limit-price-pairs`)
+
## 3.0.1 - 2025-08-07
+
- Update `binance/common` module to version `2.0.0`.
- Add `Content-Type` header only if there is a body.
diff --git a/clients/margin-trading/docs/GetLimitPricePairsResponse.md b/clients/margin-trading/docs/GetLimitPricePairsResponse.md
new file mode 100644
index 000000000..6982e35c5
--- /dev/null
+++ b/clients/margin-trading/docs/GetLimitPricePairsResponse.md
@@ -0,0 +1,13 @@
+
+
+# GetLimitPricePairsResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**crossMarginSymbols** | **List<String>** | | [optional] |
+
+
+
diff --git a/clients/margin-trading/docs/MarketDataApi.md b/clients/margin-trading/docs/MarketDataApi.md
index 74a6d60fe..9ccf3acbf 100644
--- a/clients/margin-trading/docs/MarketDataApi.md
+++ b/clients/margin-trading/docs/MarketDataApi.md
@@ -9,6 +9,7 @@ All URIs are relative to *https://api.binance.com*
| [**getAllIsolatedMarginSymbol**](MarketDataApi.md#getAllIsolatedMarginSymbol) | **GET** /sapi/v1/margin/isolated/allPairs | Get All Isolated Margin Symbol(MARKET_DATA) |
| [**getAllMarginAssets**](MarketDataApi.md#getAllMarginAssets) | **GET** /sapi/v1/margin/allAssets | Get All Margin Assets (MARKET_DATA) |
| [**getDelistSchedule**](MarketDataApi.md#getDelistSchedule) | **GET** /sapi/v1/margin/delist-schedule | Get Delist Schedule (MARKET_DATA) |
+| [**getLimitPricePairs**](MarketDataApi.md#getLimitPricePairs) | **GET** /sapi/v1/margin/limit-price-pairs | Get Limit Price Pairs(MARKET_DATA) |
| [**getListSchedule**](MarketDataApi.md#getListSchedule) | **GET** /sapi/v1/margin/list-schedule | Get list Schedule (MARKET_DATA) |
| [**queryIsolatedMarginTierData**](MarketDataApi.md#queryIsolatedMarginTierData) | **GET** /sapi/v1/margin/isolatedMarginTier | Query Isolated Margin Tier Data (USER_DATA) |
| [**queryLiabilityCoinLeverageBracketInCrossMarginProMode**](MarketDataApi.md#queryLiabilityCoinLeverageBracketInCrossMarginProMode) | **GET** /sapi/v1/margin/leverageBracket | Query Liability Coin Leverage Bracket in Cross Margin Pro Mode(MARKET_DATA) |
@@ -324,6 +325,64 @@ No authorization required
|-------------|-------------|------------------|
| **200** | Get Delist Schedule | - |
+
+# **getLimitPricePairs**
+> GetLimitPricePairsResponse getLimitPricePairs()
+
+Get Limit Price Pairs(MARKET_DATA)
+
+Query trading pairs with restriction on limit price range. In margin trading, you can place orders with limit price. Limit price should be within (-15%, 15%) of current index price for a list of margin trading pairs. This rule only impacts limit sell orders with limit price that is lower than current index price and limit buy orders with limit price that is higher than current index price. - Buy order: Your order will be rejected with an error message notification if the limit price is 15% above the index price. - Sell order: Your order will be rejected with an error message notification if the limit price is 15% below the index price. Please review the limit price order placing strategy, backtest and calibrate the planned order size with the trading volume and order book depth to prevent trading loss. Weight: 1
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.margin_trading.ApiClient;
+import com.binance.connector.client.margin_trading.ApiException;
+import com.binance.connector.client.margin_trading.Configuration;
+import com.binance.connector.client.margin_trading.models.*;
+import com.binance.connector.client.margin_trading.rest.api.MarketDataApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ MarketDataApi apiInstance = new MarketDataApi(defaultClient);
+ try {
+ GetLimitPricePairsResponse result = apiInstance.getLimitPricePairs();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling MarketDataApi#getLimitPricePairs");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**GetLimitPricePairsResponse**](GetLimitPricePairsResponse.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** | Get Limit Price Pairs | - |
+
# **getListSchedule**
> GetListScheduleResponse getListSchedule(recvWindow)
diff --git a/clients/margin-trading/docs/rest-api/migration-guide.md b/clients/margin-trading/docs/rest-api/migration-guide.md
index c5291cbe2..ab9323162 100644
--- a/clients/margin-trading/docs/rest-api/migration-guide.md
+++ b/clients/margin-trading/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-margin-trading
- 2.0.0
+ 4.0.0
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-margin-trading
- 2.0.0
+ 4.0.0
```
diff --git a/clients/margin-trading/pom.xml b/clients/margin-trading/pom.xml
index 1b387392e..79a1728eb 100644
--- a/clients/margin-trading/pom.xml
+++ b/clients/margin-trading/pom.xml
@@ -5,7 +5,7 @@
4.0.0
binance-margin-trading
margin-trading
- 3.0.1
+ 4.0.0
jar
@@ -31,7 +31,7 @@
io.github.binance
binance-common
- 2.0.0
+ 2.0.1
\ No newline at end of file
diff --git a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/JSON.java b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/JSON.java
index 1e592b9d9..11722ebb6 100644
--- a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/JSON.java
+++ b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/JSON.java
@@ -196,6 +196,9 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.margin_trading.rest.model
.GetInterestHistoryResponseRowsInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.margin_trading.rest.model
+ .GetLimitPricePairsResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.margin_trading.rest.model.GetListScheduleResponse
.CustomTypeAdapterFactory());
diff --git a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/AccountApi.java b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/AccountApi.java
index a7033bda1..d40412349 100644
--- a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/AccountApi.java
+++ b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/AccountApi.java
@@ -55,7 +55,7 @@ public class AccountApi {
private static final String USER_AGENT =
String.format(
- "binance-margin-trading/3.0.1 (Java/%s; %s; %s)",
+ "binance-margin-trading/4.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = false;
diff --git a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/BorrowRepayApi.java b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/BorrowRepayApi.java
index 0eb803f70..3906d04df 100644
--- a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/BorrowRepayApi.java
+++ b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/BorrowRepayApi.java
@@ -49,7 +49,7 @@ public class BorrowRepayApi {
private static final String USER_AGENT =
String.format(
- "binance-margin-trading/3.0.1 (Java/%s; %s; %s)",
+ "binance-margin-trading/4.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = false;
diff --git a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/MarginTradingRestApi.java b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/MarginTradingRestApi.java
index 01e5c5dd6..c398cc0b6 100644
--- a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/MarginTradingRestApi.java
+++ b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/MarginTradingRestApi.java
@@ -23,6 +23,7 @@
import com.binance.connector.client.margin_trading.rest.model.GetForceLiquidationRecordResponse;
import com.binance.connector.client.margin_trading.rest.model.GetFutureHourlyInterestRateResponse;
import com.binance.connector.client.margin_trading.rest.model.GetInterestHistoryResponse;
+import com.binance.connector.client.margin_trading.rest.model.GetLimitPricePairsResponse;
import com.binance.connector.client.margin_trading.rest.model.GetListScheduleResponse;
import com.binance.connector.client.margin_trading.rest.model.GetSmallLiabilityExchangeCoinListResponse;
import com.binance.connector.client.margin_trading.rest.model.GetSmallLiabilityExchangeHistoryResponse;
@@ -717,6 +718,36 @@ public ApiResponse getDelistSchedule(Long recvWindow)
return marketDataApi.getDelistSchedule(recvWindow);
}
+ /**
+ * Get Limit Price Pairs(MARKET_DATA) Query trading pairs with restriction on limit price range.
+ * In margin trading, you can place orders with limit price. Limit price should be within (-15%,
+ * 15%) of current index price for a list of margin trading pairs. This rule only impacts limit
+ * sell orders with limit price that is lower than current index price and limit buy orders with
+ * limit price that is higher than current index price. - Buy order: Your order will be rejected
+ * with an error message notification if the limit price is 15% above the index price. - Sell
+ * order: Your order will be rejected with an error message notification if the limit price is
+ * 15% below the index price. Please review the limit price order placing strategy, backtest and
+ * calibrate the planned order size with the trading volume and order book depth to prevent
+ * trading loss. Weight: 1
+ *
+ * @return ApiResponse<GetLimitPricePairsResponse>
+ * @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 | Get Limit Price Pairs | - |
+ *
+ *
+ * @see Get
+ * Limit Price Pairs(MARKET_DATA) Documentation
+ */
+ public ApiResponse getLimitPricePairs() throws ApiException {
+ return marketDataApi.getLimitPricePairs();
+ }
+
/**
* Get list Schedule (MARKET_DATA) Get the upcoming tokens or symbols listing schedule for Cross
* Margin and Isolated Margin. Weight: 100
diff --git a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/MarketDataApi.java b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/MarketDataApi.java
index 8cd99d3fe..b730e67d9 100644
--- a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/MarketDataApi.java
+++ b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/MarketDataApi.java
@@ -24,6 +24,7 @@
import com.binance.connector.client.margin_trading.rest.model.GetAllIsolatedMarginSymbolResponse;
import com.binance.connector.client.margin_trading.rest.model.GetAllMarginAssetsResponse;
import com.binance.connector.client.margin_trading.rest.model.GetDelistScheduleResponse;
+import com.binance.connector.client.margin_trading.rest.model.GetLimitPricePairsResponse;
import com.binance.connector.client.margin_trading.rest.model.GetListScheduleResponse;
import com.binance.connector.client.margin_trading.rest.model.QueryIsolatedMarginTierDataResponse;
import com.binance.connector.client.margin_trading.rest.model.QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponse;
@@ -51,7 +52,7 @@ public class MarketDataApi {
private static final String USER_AGENT =
String.format(
- "binance-margin-trading/3.0.1 (Java/%s; %s; %s)",
+ "binance-margin-trading/4.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = false;
@@ -750,6 +751,139 @@ public ApiResponse getDelistSchedule(Long recvWindow)
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
+ /**
+ * Build call for getLimitPricePairs
+ *
+ * @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 Limit Price Pairs | - |
+ *
+ *
+ * @see Get
+ * Limit Price Pairs(MARKET_DATA) Documentation
+ */
+ private okhttp3.Call getLimitPricePairsCall() 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 = "/sapi/v1/margin/limit-price-pairs";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ 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<>();
+ if (HAS_TIME_UNIT) {
+ localVarAuthNames.add("timeUnit");
+ }
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "GET",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call getLimitPricePairsValidateBeforeCall() throws ApiException {
+ try {
+ Validator validator =
+ Validation.byDefaultProvider()
+ .configure()
+ .messageInterpolator(new ParameterMessageInterpolator())
+ .buildValidatorFactory()
+ .getValidator();
+ ExecutableValidator executableValidator = validator.forExecutables();
+
+ Object[] parameterValues = {};
+ Method method = this.getClass().getMethod("getLimitPricePairs");
+ Set> violations =
+ executableValidator.validateParameters(this, method, parameterValues);
+
+ if (violations.size() == 0) {
+ return getLimitPricePairsCall();
+ } 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());
+ }
+ }
+
+ /**
+ * Get Limit Price Pairs(MARKET_DATA) Query trading pairs with restriction on limit price range.
+ * In margin trading, you can place orders with limit price. Limit price should be within (-15%,
+ * 15%) of current index price for a list of margin trading pairs. This rule only impacts limit
+ * sell orders with limit price that is lower than current index price and limit buy orders with
+ * limit price that is higher than current index price. - Buy order: Your order will be rejected
+ * with an error message notification if the limit price is 15% above the index price. - Sell
+ * order: Your order will be rejected with an error message notification if the limit price is
+ * 15% below the index price. Please review the limit price order placing strategy, backtest and
+ * calibrate the planned order size with the trading volume and order book depth to prevent
+ * trading loss. Weight: 1
+ *
+ * @return ApiResponse<GetLimitPricePairsResponse>
+ * @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 | Get Limit Price Pairs | - |
+ *
+ *
+ * @see Get
+ * Limit Price Pairs(MARKET_DATA) Documentation
+ */
+ public ApiResponse getLimitPricePairs() throws ApiException {
+ okhttp3.Call localVarCall = getLimitPricePairsValidateBeforeCall();
+ java.lang.reflect.Type localVarReturnType =
+ new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
/**
* Build call for getListSchedule
*
diff --git a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/RiskDataStreamApi.java b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/RiskDataStreamApi.java
index 72321a938..4853fbf2f 100644
--- a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/RiskDataStreamApi.java
+++ b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/RiskDataStreamApi.java
@@ -44,7 +44,7 @@ public class RiskDataStreamApi {
private static final String USER_AGENT =
String.format(
- "binance-margin-trading/3.0.1 (Java/%s; %s; %s)",
+ "binance-margin-trading/4.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = false;
diff --git a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/TradeApi.java b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/TradeApi.java
index dea5dcde5..64449e2dd 100644
--- a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/TradeApi.java
+++ b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/TradeApi.java
@@ -74,7 +74,7 @@ public class TradeApi {
private static final String USER_AGENT =
String.format(
- "binance-margin-trading/3.0.1 (Java/%s; %s; %s)",
+ "binance-margin-trading/4.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = false;
diff --git a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/TradeDataStreamApi.java b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/TradeDataStreamApi.java
index 6992ae3bc..7aeea1177 100644
--- a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/TradeDataStreamApi.java
+++ b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/TradeDataStreamApi.java
@@ -47,7 +47,7 @@ public class TradeDataStreamApi {
private static final String USER_AGENT =
String.format(
- "binance-margin-trading/3.0.1 (Java/%s; %s; %s)",
+ "binance-margin-trading/4.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = false;
diff --git a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/TransferApi.java b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/TransferApi.java
index 678f465c1..1a55cb7c0 100644
--- a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/TransferApi.java
+++ b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/api/TransferApi.java
@@ -43,7 +43,7 @@ public class TransferApi {
private static final String USER_AGENT =
String.format(
- "binance-margin-trading/3.0.1 (Java/%s; %s; %s)",
+ "binance-margin-trading/4.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = false;
diff --git a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/model/GetLimitPricePairsResponse.java b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/model/GetLimitPricePairsResponse.java
new file mode 100644
index 000000000..7c75633ab
--- /dev/null
+++ b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/rest/model/GetLimitPricePairsResponse.java
@@ -0,0 +1,235 @@
+/*
+ * Binance Margin Trading REST API
+ * OpenAPI Specification for the Binance Margin Trading REST API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.binance.connector.client.margin_trading.rest.model;
+
+import com.binance.connector.client.margin_trading.rest.JSON;
+import com.google.gson.Gson;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.TypeAdapter;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import jakarta.validation.constraints.*;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+import org.hibernate.validator.constraints.*;
+
+/** GetLimitPricePairsResponse */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class GetLimitPricePairsResponse {
+ public static final String SERIALIZED_NAME_CROSS_MARGIN_SYMBOLS = "crossMarginSymbols";
+
+ @SerializedName(SERIALIZED_NAME_CROSS_MARGIN_SYMBOLS)
+ @jakarta.annotation.Nullable
+ private List crossMarginSymbols;
+
+ public GetLimitPricePairsResponse() {}
+
+ public GetLimitPricePairsResponse crossMarginSymbols(
+ @jakarta.annotation.Nullable List crossMarginSymbols) {
+ this.crossMarginSymbols = crossMarginSymbols;
+ return this;
+ }
+
+ public GetLimitPricePairsResponse addCrossMarginSymbolsItem(String crossMarginSymbolsItem) {
+ if (this.crossMarginSymbols == null) {
+ this.crossMarginSymbols = new ArrayList<>();
+ }
+ this.crossMarginSymbols.add(crossMarginSymbolsItem);
+ return this;
+ }
+
+ /**
+ * Get crossMarginSymbols
+ *
+ * @return crossMarginSymbols
+ */
+ @jakarta.annotation.Nullable
+ public List getCrossMarginSymbols() {
+ return crossMarginSymbols;
+ }
+
+ public void setCrossMarginSymbols(
+ @jakarta.annotation.Nullable List crossMarginSymbols) {
+ this.crossMarginSymbols = crossMarginSymbols;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ GetLimitPricePairsResponse getLimitPricePairsResponse = (GetLimitPricePairsResponse) o;
+ return Objects.equals(
+ this.crossMarginSymbols, getLimitPricePairsResponse.crossMarginSymbols);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(crossMarginSymbols);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class GetLimitPricePairsResponse {\n");
+ sb.append(" crossMarginSymbols: ")
+ .append(toIndentedString(crossMarginSymbols))
+ .append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object crossMarginSymbolsValue = getCrossMarginSymbols();
+ String crossMarginSymbolsValueAsString = "";
+ crossMarginSymbolsValueAsString =
+ (String)
+ ((Collection) crossMarginSymbolsValue)
+ .stream().map(Object::toString).collect(Collectors.joining(","));
+ sb.append("crossMarginSymbols=")
+ .append(urlEncode(crossMarginSymbolsValueAsString))
+ .append("");
+ return sb.toString();
+ }
+
+ public static String urlEncode(String s) {
+ try {
+ return URLEncoder.encode(s, StandardCharsets.UTF_8.name());
+ } catch (UnsupportedEncodingException e) {
+ throw new RuntimeException(StandardCharsets.UTF_8.name() + " is unsupported", e);
+ }
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first
+ * line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("crossMarginSymbols");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to GetLimitPricePairsResponse
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!GetLimitPricePairsResponse.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in GetLimitPricePairsResponse is not"
+ + " found in the empty JSON string",
+ GetLimitPricePairsResponse.openapiRequiredFields.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ // ensure the optional json data is an array if present
+ if (jsonObj.get("crossMarginSymbols") != null
+ && !jsonObj.get("crossMarginSymbols").isJsonNull()
+ && !jsonObj.get("crossMarginSymbols").isJsonArray()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `crossMarginSymbols` to be an array in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("crossMarginSymbols").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!GetLimitPricePairsResponse.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'GetLimitPricePairsResponse' and its
+ // subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(this, TypeToken.get(GetLimitPricePairsResponse.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, GetLimitPricePairsResponse value)
+ throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public GetLimitPricePairsResponse read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of GetLimitPricePairsResponse given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of GetLimitPricePairsResponse
+ * @throws IOException if the JSON string is invalid with respect to GetLimitPricePairsResponse
+ */
+ public static GetLimitPricePairsResponse fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, GetLimitPricePairsResponse.class);
+ }
+
+ /**
+ * Convert an instance of GetLimitPricePairsResponse to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/websocket/stream/api/MarginTradingWebSocketStreams.java b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/websocket/stream/api/MarginTradingWebSocketStreams.java
index c02a2be0f..3b47db89f 100644
--- a/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/websocket/stream/api/MarginTradingWebSocketStreams.java
+++ b/clients/margin-trading/src/main/java/com/binance/connector/client/margin_trading/websocket/stream/api/MarginTradingWebSocketStreams.java
@@ -20,7 +20,7 @@
public class MarginTradingWebSocketStreams {
private static final String USER_AGENT =
String.format(
- "binance-margin-trading/3.0.1 (Java/%s; %s; %s)",
+ "binance-margin-trading/4.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private final StreamConnectionInterface connection;
diff --git a/clients/mining/docs/rest-api/migration-guide.md b/clients/mining/docs/rest-api/migration-guide.md
index eed88fbfe..8a4bf5aa5 100644
--- a/clients/mining/docs/rest-api/migration-guide.md
+++ b/clients/mining/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-mining
- 2.1.0
+ 2.1.1
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-mining
- 2.1.0
+ 2.1.1
```
diff --git a/clients/nft/docs/rest-api/migration-guide.md b/clients/nft/docs/rest-api/migration-guide.md
index 8dfcea9b3..bc3837234 100644
--- a/clients/nft/docs/rest-api/migration-guide.md
+++ b/clients/nft/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-nft
- 1.2.0
+ 1.2.1
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-nft
- 1.2.0
+ 1.2.1
```
diff --git a/clients/pay/CHANGELOG.md b/clients/pay/CHANGELOG.md
index b3a923ee8..42f6f64cd 100644
--- a/clients/pay/CHANGELOG.md
+++ b/clients/pay/CHANGELOG.md
@@ -1,6 +1,14 @@
# Changelog
+## 3.0.0 - 2025-09-22
+
+### Changed (1)
+
+- Modified response for `getPayTradeHistory()` (`GET /sapi/v1/pay/transactions`):
+ - `data`.`payerInfo`: property `accountId` deleted
+
## 2.1.1 - 2025-08-07
+
- Update `binance/common` module to version `2.0.0`.
- Add `Content-Type` header only if there is a body.
diff --git a/clients/pay/docs/GetPayTradeHistoryResponseDataInnerPayerInfo.md b/clients/pay/docs/GetPayTradeHistoryResponseDataInnerPayerInfo.md
index 41592206a..00aff2087 100644
--- a/clients/pay/docs/GetPayTradeHistoryResponseDataInnerPayerInfo.md
+++ b/clients/pay/docs/GetPayTradeHistoryResponseDataInnerPayerInfo.md
@@ -10,7 +10,6 @@
|**name** | **String** | | [optional] |
|**type** | **String** | | [optional] |
|**binanceId** | **String** | | [optional] |
-|**accountId** | **String** | | [optional] |
diff --git a/clients/pay/docs/PayApi.md b/clients/pay/docs/PayApi.md
index e44005fa1..1d2a4ffed 100644
--- a/clients/pay/docs/PayApi.md
+++ b/clients/pay/docs/PayApi.md
@@ -13,7 +13,7 @@ All URIs are relative to *https://api.binance.com*
Get Pay Trade History
-Get Pay Trade History * If startTime and endTime are not sent, the recent 90 days' data will be returned. * The max interval between startTime and endTime is 90 days. * Support for querying orders within the last 18 months. * For payerInfo and receiverInfo,there are different return values in different orderTypes. * Sender's perspective when orderType is C2C * payerInfo : binanceId * receiverInfo : name, binanceId/accountId/email/countryCode/phoneNumber/mobileCode (based on user input) * Receiver's perspective when orderType is C2C * payerInfo : name, accountId * receiverInfo : binanceId * Sender's perspective when orderType is CRYPTO_BOX * payerInfo : binanceId * receiverInfo : name(the value is always \"Crypto Box\") * Receiver's perspective when orderType is CRYPTO_BOX * payerInfo : name, accountId * receiverInfo : binanceId * Sender's perspective when orderType is PAY * payerInfo : binanceId * receiverInfo : name * Receiver's perspective when orderType is PAY * payerInfo : name, accountId * receiverInfo : binanceId, name * Sender's perspective when orderType is PAY_REFUND * payerInfo : binanceId, name * receiverInfo : name, accountId * Receiver's perspective when orderType is PAY_REFUND * payerInfo : name * receiverInfo : binanceId * Sender's perspective when orderType is PAYOUT * payerInfo : binanceId, name * receiverInfo : name, accountId * Receiver's perspective when orderType is PAYOUT * payerInfo : name * receiverInfo : binanceId * Receiver's perspective when orderType is CRYPTO_BOX_RF * payerInfo : name(the value is always \"Crypto Box\") * receiverInfo : binanceId * Sender's perspective when orderType is REMITTANCE * payerInfo : binanceId * receiverInfo : name, institutionName, cardNumber, digitalWalletId Weight: 3000
+Get Pay Trade History * If startTime and endTime are not sent, the recent 90 days' data will be returned. * The max interval between startTime and endTime is 90 days. * Support for querying orders within the last 18 months. * For payerInfo and receiverInfo,there are different return values in different orderTypes. * Sender's perspective when orderType is C2C * payerInfo : binanceId * receiverInfo : name, binanceId/accountId/email/countryCode/phoneNumber/mobileCode (based on user input) * Receiver's perspective when orderType is C2C * payerInfo : name * receiverInfo : binanceId * Sender's perspective when orderType is CRYPTO_BOX * payerInfo : binanceId * receiverInfo : name(the value is always \"Crypto Box\") * Receiver's perspective when orderType is CRYPTO_BOX * payerInfo : name * receiverInfo : binanceId * Sender's perspective when orderType is PAY * payerInfo : binanceId * receiverInfo : name * Receiver's perspective when orderType is PAY * payerInfo : name * receiverInfo : binanceId, name * Sender's perspective when orderType is PAY_REFUND * payerInfo : binanceId, name * receiverInfo : name, accountId * Receiver's perspective when orderType is PAY_REFUND * payerInfo : name * receiverInfo : binanceId * Sender's perspective when orderType is PAYOUT * payerInfo : binanceId, name * receiverInfo : name, accountId * Receiver's perspective when orderType is PAYOUT * payerInfo : name * receiverInfo : binanceId * Receiver's perspective when orderType is CRYPTO_BOX_RF * payerInfo : name(the value is always \"Crypto Box\") * receiverInfo : binanceId * Sender's perspective when orderType is REMITTANCE * payerInfo : binanceId * receiverInfo : name, institutionName, cardNumber, digitalWalletId Weight: 3000
### Example
```java
diff --git a/clients/pay/docs/rest-api/migration-guide.md b/clients/pay/docs/rest-api/migration-guide.md
index c93905235..8d940dd81 100644
--- a/clients/pay/docs/rest-api/migration-guide.md
+++ b/clients/pay/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-pay
- 2.1.0
+ 3.0.0
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-pay
- 2.1.0
+ 3.0.0
```
diff --git a/clients/pay/pom.xml b/clients/pay/pom.xml
index 53edd8f75..d102d8a30 100644
--- a/clients/pay/pom.xml
+++ b/clients/pay/pom.xml
@@ -5,7 +5,7 @@
4.0.0
binance-pay
pay
- 2.1.1
+ 3.0.0
jar
@@ -31,7 +31,7 @@
io.github.binance
binance-common
- 2.0.0
+ 2.0.1
\ No newline at end of file
diff --git a/clients/pay/src/main/java/com/binance/connector/client/pay/rest/api/PayApi.java b/clients/pay/src/main/java/com/binance/connector/client/pay/rest/api/PayApi.java
index 630ea5e9e..adc406824 100644
--- a/clients/pay/src/main/java/com/binance/connector/client/pay/rest/api/PayApi.java
+++ b/clients/pay/src/main/java/com/binance/connector/client/pay/rest/api/PayApi.java
@@ -42,7 +42,7 @@ public class PayApi {
private static final String USER_AGENT =
String.format(
- "binance-pay/2.1.1 (Java/%s; %s; %s)",
+ "binance-pay/3.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = false;
@@ -215,21 +215,21 @@ private okhttp3.Call getPayTradeHistoryValidateBeforeCall(
* receiverInfo,there are different return values in different orderTypes. * Sender's
* perspective when orderType is C2C * payerInfo : binanceId * receiverInfo : name,
* binanceId/accountId/email/countryCode/phoneNumber/mobileCode (based on user input) *
- * Receiver's perspective when orderType is C2C * payerInfo : name, accountId * receiverInfo
- * : binanceId * Sender's perspective when orderType is CRYPTO_BOX * payerInfo : binanceId *
+ * Receiver's perspective when orderType is C2C * payerInfo : name * receiverInfo :
+ * binanceId * Sender's perspective when orderType is CRYPTO_BOX * payerInfo : binanceId *
* receiverInfo : name(the value is always \"Crypto Box\") * Receiver's
- * perspective when orderType is CRYPTO_BOX * payerInfo : name, accountId * receiverInfo :
- * binanceId * Sender's perspective when orderType is PAY * payerInfo : binanceId *
- * receiverInfo : name * Receiver's perspective when orderType is PAY * payerInfo : name,
- * accountId * receiverInfo : binanceId, name * Sender's perspective when orderType is
- * PAY_REFUND * payerInfo : binanceId, name * receiverInfo : name, accountId * Receiver's
- * perspective when orderType is PAY_REFUND * payerInfo : name * receiverInfo : binanceId *
- * Sender's perspective when orderType is PAYOUT * payerInfo : binanceId, name *
- * receiverInfo : name, accountId * Receiver's perspective when orderType is PAYOUT *
- * payerInfo : name * receiverInfo : binanceId * Receiver's perspective when orderType is
- * CRYPTO_BOX_RF * payerInfo : name(the value is always \"Crypto Box\") * receiverInfo
- * : binanceId * Sender's perspective when orderType is REMITTANCE * payerInfo : binanceId *
- * receiverInfo : name, institutionName, cardNumber, digitalWalletId Weight: 3000
+ * perspective when orderType is CRYPTO_BOX * payerInfo : name * receiverInfo : binanceId *
+ * Sender's perspective when orderType is PAY * payerInfo : binanceId * receiverInfo : name
+ * * Receiver's perspective when orderType is PAY * payerInfo : name * receiverInfo :
+ * binanceId, name * Sender's perspective when orderType is PAY_REFUND * payerInfo :
+ * binanceId, name * receiverInfo : name, accountId * Receiver's perspective when orderType
+ * is PAY_REFUND * payerInfo : name * receiverInfo : binanceId * Sender's perspective when
+ * orderType is PAYOUT * payerInfo : binanceId, name * receiverInfo : name, accountId *
+ * Receiver's perspective when orderType is PAYOUT * payerInfo : name * receiverInfo :
+ * binanceId * Receiver's perspective when orderType is CRYPTO_BOX_RF * payerInfo : name(the
+ * value is always \"Crypto Box\") * receiverInfo : binanceId * Sender's
+ * perspective when orderType is REMITTANCE * payerInfo : binanceId * receiverInfo : name,
+ * institutionName, cardNumber, digitalWalletId Weight: 3000
*
* @param startTime (optional)
* @param endTime (optional)
diff --git a/clients/pay/src/main/java/com/binance/connector/client/pay/rest/api/PayRestApi.java b/clients/pay/src/main/java/com/binance/connector/client/pay/rest/api/PayRestApi.java
index 153829850..a4c7378a0 100644
--- a/clients/pay/src/main/java/com/binance/connector/client/pay/rest/api/PayRestApi.java
+++ b/clients/pay/src/main/java/com/binance/connector/client/pay/rest/api/PayRestApi.java
@@ -26,21 +26,21 @@ public PayRestApi(ApiClient apiClient) {
* receiverInfo,there are different return values in different orderTypes. * Sender's
* perspective when orderType is C2C * payerInfo : binanceId * receiverInfo : name,
* binanceId/accountId/email/countryCode/phoneNumber/mobileCode (based on user input) *
- * Receiver's perspective when orderType is C2C * payerInfo : name, accountId * receiverInfo
- * : binanceId * Sender's perspective when orderType is CRYPTO_BOX * payerInfo : binanceId *
+ * Receiver's perspective when orderType is C2C * payerInfo : name * receiverInfo :
+ * binanceId * Sender's perspective when orderType is CRYPTO_BOX * payerInfo : binanceId *
* receiverInfo : name(the value is always \"Crypto Box\") * Receiver's
- * perspective when orderType is CRYPTO_BOX * payerInfo : name, accountId * receiverInfo :
- * binanceId * Sender's perspective when orderType is PAY * payerInfo : binanceId *
- * receiverInfo : name * Receiver's perspective when orderType is PAY * payerInfo : name,
- * accountId * receiverInfo : binanceId, name * Sender's perspective when orderType is
- * PAY_REFUND * payerInfo : binanceId, name * receiverInfo : name, accountId * Receiver's
- * perspective when orderType is PAY_REFUND * payerInfo : name * receiverInfo : binanceId *
- * Sender's perspective when orderType is PAYOUT * payerInfo : binanceId, name *
- * receiverInfo : name, accountId * Receiver's perspective when orderType is PAYOUT *
- * payerInfo : name * receiverInfo : binanceId * Receiver's perspective when orderType is
- * CRYPTO_BOX_RF * payerInfo : name(the value is always \"Crypto Box\") * receiverInfo
- * : binanceId * Sender's perspective when orderType is REMITTANCE * payerInfo : binanceId *
- * receiverInfo : name, institutionName, cardNumber, digitalWalletId Weight: 3000
+ * perspective when orderType is CRYPTO_BOX * payerInfo : name * receiverInfo : binanceId *
+ * Sender's perspective when orderType is PAY * payerInfo : binanceId * receiverInfo : name
+ * * Receiver's perspective when orderType is PAY * payerInfo : name * receiverInfo :
+ * binanceId, name * Sender's perspective when orderType is PAY_REFUND * payerInfo :
+ * binanceId, name * receiverInfo : name, accountId * Receiver's perspective when orderType
+ * is PAY_REFUND * payerInfo : name * receiverInfo : binanceId * Sender's perspective when
+ * orderType is PAYOUT * payerInfo : binanceId, name * receiverInfo : name, accountId *
+ * Receiver's perspective when orderType is PAYOUT * payerInfo : name * receiverInfo :
+ * binanceId * Receiver's perspective when orderType is CRYPTO_BOX_RF * payerInfo : name(the
+ * value is always \"Crypto Box\") * receiverInfo : binanceId * Sender's
+ * perspective when orderType is REMITTANCE * payerInfo : binanceId * receiverInfo : name,
+ * institutionName, cardNumber, digitalWalletId Weight: 3000
*
* @param startTime (optional)
* @param endTime (optional)
diff --git a/clients/pay/src/main/java/com/binance/connector/client/pay/rest/model/GetPayTradeHistoryResponseDataInnerPayerInfo.java b/clients/pay/src/main/java/com/binance/connector/client/pay/rest/model/GetPayTradeHistoryResponseDataInnerPayerInfo.java
index 1d0afeb15..0c4e15681 100644
--- a/clients/pay/src/main/java/com/binance/connector/client/pay/rest/model/GetPayTradeHistoryResponseDataInnerPayerInfo.java
+++ b/clients/pay/src/main/java/com/binance/connector/client/pay/rest/model/GetPayTradeHistoryResponseDataInnerPayerInfo.java
@@ -54,12 +54,6 @@ public class GetPayTradeHistoryResponseDataInnerPayerInfo {
@jakarta.annotation.Nullable
private String binanceId;
- public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId";
-
- @SerializedName(SERIALIZED_NAME_ACCOUNT_ID)
- @jakarta.annotation.Nullable
- private String accountId;
-
public GetPayTradeHistoryResponseDataInnerPayerInfo() {}
public GetPayTradeHistoryResponseDataInnerPayerInfo name(
@@ -122,26 +116,6 @@ public void setBinanceId(@jakarta.annotation.Nullable String binanceId) {
this.binanceId = binanceId;
}
- public GetPayTradeHistoryResponseDataInnerPayerInfo accountId(
- @jakarta.annotation.Nullable String accountId) {
- this.accountId = accountId;
- return this;
- }
-
- /**
- * Get accountId
- *
- * @return accountId
- */
- @jakarta.annotation.Nullable
- public String getAccountId() {
- return accountId;
- }
-
- public void setAccountId(@jakarta.annotation.Nullable String accountId) {
- this.accountId = accountId;
- }
-
@Override
public boolean equals(Object o) {
if (this == o) {
@@ -155,14 +129,12 @@ public boolean equals(Object o) {
return Objects.equals(this.name, getPayTradeHistoryResponseDataInnerPayerInfo.name)
&& Objects.equals(this.type, getPayTradeHistoryResponseDataInnerPayerInfo.type)
&& Objects.equals(
- this.binanceId, getPayTradeHistoryResponseDataInnerPayerInfo.binanceId)
- && Objects.equals(
- this.accountId, getPayTradeHistoryResponseDataInnerPayerInfo.accountId);
+ this.binanceId, getPayTradeHistoryResponseDataInnerPayerInfo.binanceId);
}
@Override
public int hashCode() {
- return Objects.hash(name, type, binanceId, accountId);
+ return Objects.hash(name, type, binanceId);
}
@Override
@@ -172,7 +144,6 @@ public String toString() {
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" binanceId: ").append(toIndentedString(binanceId)).append("\n");
- sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -192,10 +163,6 @@ public String toUrlQueryString() {
String binanceIdValueAsString = "";
binanceIdValueAsString = binanceIdValue.toString();
sb.append("binanceId=").append(urlEncode(binanceIdValueAsString)).append("");
- Object accountIdValue = getAccountId();
- String accountIdValueAsString = "";
- accountIdValueAsString = accountIdValue.toString();
- sb.append("accountId=").append(urlEncode(accountIdValueAsString)).append("");
return sb.toString();
}
@@ -227,7 +194,6 @@ private String toIndentedString(Object o) {
openapiFields.add("name");
openapiFields.add("type");
openapiFields.add("binanceId");
- openapiFields.add("accountId");
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet();
@@ -278,14 +244,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
+ " string but got `%s`",
jsonObj.get("binanceId").toString()));
}
- if ((jsonObj.get("accountId") != null && !jsonObj.get("accountId").isJsonNull())
- && !jsonObj.get("accountId").isJsonPrimitive()) {
- throw new IllegalArgumentException(
- String.format(
- "Expected the field `accountId` to be a primitive type in the JSON"
- + " string but got `%s`",
- jsonObj.get("accountId").toString()));
- }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
diff --git a/clients/rebate/docs/rest-api/migration-guide.md b/clients/rebate/docs/rest-api/migration-guide.md
index ae03e2b60..e08a1349b 100644
--- a/clients/rebate/docs/rest-api/migration-guide.md
+++ b/clients/rebate/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-rebate
- 1.2.0
+ 1.2.1
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-rebate
- 1.2.0
+ 1.2.1
```
diff --git a/clients/simple-earn/CHANGELOG.md b/clients/simple-earn/CHANGELOG.md
index 0bf614ad6..da007d898 100644
--- a/clients/simple-earn/CHANGELOG.md
+++ b/clients/simple-earn/CHANGELOG.md
@@ -1,5 +1,42 @@
# Changelog
+## 3.0.0 - 2025-09-22
+
+### Added (8)
+
+- `getRwusdAccount()` (`GET /sapi/v1/rwusd/account`)
+- `getRwusdQuotaDetails()` (`GET /sapi/v1/rwusd/quota`)
+- `getRwusdRateHistory()` (`GET /sapi/v1/rwusd/history/rateHistory`)
+- `getRwusdRedemptionHistory()` (`GET /sapi/v1/rwusd/history/redemptionHistory`)
+- `getRwusdRewardsHistory()` (`GET /sapi/v1/rwusd/history/rewardsHistory`)
+- `getRwusdSubscriptionHistory()` (`GET /sapi/v1/rwusd/history/subscriptionHistory`)
+- `redeemRwusd()` (`POST /sapi/v1/rwusd/redeem`)
+- `subscribeRwusd()` (`POST /sapi/v1/rwusd/subscribe`)
+
+### Changed (3)
+
+- Modified parameter `amount`:
+ - affected methods:
+ - `subscribeFlexibleProduct()` (`POST /sapi/v1/simple-earn/flexible/subscribe`)
+ - `getFlexibleSubscriptionPreview()` (`GET /sapi/v1/simple-earn/flexible/subscriptionPreview`)
+ - `subscribeLockedProduct()` (`POST /sapi/v1/simple-earn/locked/subscribe`)
+ - `getLockedSubscriptionPreview()` (`GET /sapi/v1/simple-earn/locked/subscriptionPreview`)
+- Modified parameter `asset`:
+ - affected methods:
+ - `getFlexibleRedemptionRecord()` (`GET /sapi/v1/simple-earn/flexible/history/redemptionRecord`)
+ - `getFlexibleRewardsHistory()` (`GET /sapi/v1/simple-earn/flexible/history/rewardsRecord`)
+ - `getFlexibleSubscriptionRecord()` (`GET /sapi/v1/simple-earn/flexible/history/subscriptionRecord`)
+ - `getSimpleEarnFlexibleProductList()` (`GET /sapi/v1/simple-earn/flexible/list`)
+ - `getFlexibleProductPosition()` (`GET /sapi/v1/simple-earn/flexible/position`)
+ - `getLockedRedemptionRecord()` (`GET /sapi/v1/simple-earn/locked/history/redemptionRecord`)
+ - `getLockedRewardsHistory()` (`GET /sapi/v1/simple-earn/locked/history/rewardsRecord`)
+ - `getLockedSubscriptionRecord()` (`GET /sapi/v1/simple-earn/locked/history/subscriptionRecord`)
+ - `getSimpleEarnLockedProductList()` (`GET /sapi/v1/simple-earn/locked/list`)
+ - `getLockedProductPosition()` (`GET /sapi/v1/simple-earn/locked/position`)
+- Modified parameter `type`:
+ - affected methods:
+ - `getFlexibleRewardsHistory()` (`GET /sapi/v1/simple-earn/flexible/history/rewardsRecord`)
+
## 2.1.1 - 2025-08-07
- Update `binance/common` module to version `2.0.0`.
- Add `Content-Type` header only if there is a body.
diff --git a/clients/simple-earn/docs/AccountApi.md b/clients/simple-earn/docs/AccountApi.md
deleted file mode 100644
index 1b1ee9a82..000000000
--- a/clients/simple-earn/docs/AccountApi.md
+++ /dev/null
@@ -1,483 +0,0 @@
-# AccountApi
-
-All URIs are relative to *https://api.binance.com*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**getFlexiblePersonalLeftQuota**](AccountApi.md#getFlexiblePersonalLeftQuota) | **GET** /sapi/v1/simple-earn/flexible/personalLeftQuota | Get Flexible Personal Left Quota(USER_DATA) |
-| [**getFlexibleProductPosition**](AccountApi.md#getFlexibleProductPosition) | **GET** /sapi/v1/simple-earn/flexible/position | Get Flexible Product Position(USER_DATA) |
-| [**getLockedPersonalLeftQuota**](AccountApi.md#getLockedPersonalLeftQuota) | **GET** /sapi/v1/simple-earn/locked/personalLeftQuota | Get Locked Personal Left Quota(USER_DATA) |
-| [**getLockedProductPosition**](AccountApi.md#getLockedProductPosition) | **GET** /sapi/v1/simple-earn/locked/position | Get Locked Product Position |
-| [**getSimpleEarnFlexibleProductList**](AccountApi.md#getSimpleEarnFlexibleProductList) | **GET** /sapi/v1/simple-earn/flexible/list | Get Simple Earn Flexible Product List(USER_DATA) |
-| [**getSimpleEarnLockedProductList**](AccountApi.md#getSimpleEarnLockedProductList) | **GET** /sapi/v1/simple-earn/locked/list | Get Simple Earn Locked Product List(USER_DATA) |
-| [**simpleAccount**](AccountApi.md#simpleAccount) | **GET** /sapi/v1/simple-earn/account | Simple Account(USER_DATA) |
-
-
-
-# **getFlexiblePersonalLeftQuota**
-> GetFlexiblePersonalLeftQuotaResponse getFlexiblePersonalLeftQuota(productId, recvWindow)
-
-Get Flexible Personal Left Quota(USER_DATA)
-
-Get Flexible Personal Left Quota Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.AccountApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- AccountApi apiInstance = new AccountApi(defaultClient);
- String productId = "productId_example"; // String |
- Long recvWindow = 56L; // Long |
- try {
- GetFlexiblePersonalLeftQuotaResponse result = apiInstance.getFlexiblePersonalLeftQuota(productId, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling AccountApi#getFlexiblePersonalLeftQuota");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **productId** | **String**| | |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetFlexiblePersonalLeftQuotaResponse**](GetFlexiblePersonalLeftQuotaResponse.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** | Get Flexible Personal Left Quota | - |
-
-
-# **getFlexibleProductPosition**
-> GetFlexibleProductPositionResponse getFlexibleProductPosition(asset, productId, current, size, recvWindow)
-
-Get Flexible Product Position(USER_DATA)
-
-Get Flexible Product Position Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.AccountApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- AccountApi apiInstance = new AccountApi(defaultClient);
- String asset = "asset_example"; // String |
- String productId = "productId_example"; // String |
- Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
- Long size = 56L; // Long | Default:10, Max:100
- Long recvWindow = 56L; // Long |
- try {
- GetFlexibleProductPositionResponse result = apiInstance.getFlexibleProductPosition(asset, productId, current, size, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling AccountApi#getFlexibleProductPosition");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **asset** | **String**| | [optional] |
-| **productId** | **String**| | [optional] |
-| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
-| **size** | **Long**| Default:10, Max:100 | [optional] |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetFlexibleProductPositionResponse**](GetFlexibleProductPositionResponse.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** | Get Flexible Product Position | - |
-
-
-# **getLockedPersonalLeftQuota**
-> GetLockedPersonalLeftQuotaResponse getLockedPersonalLeftQuota(projectId, recvWindow)
-
-Get Locked Personal Left Quota(USER_DATA)
-
-Get Locked Personal Left Quota Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.AccountApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- AccountApi apiInstance = new AccountApi(defaultClient);
- String projectId = "projectId_example"; // String |
- Long recvWindow = 56L; // Long |
- try {
- GetLockedPersonalLeftQuotaResponse result = apiInstance.getLockedPersonalLeftQuota(projectId, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling AccountApi#getLockedPersonalLeftQuota");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **projectId** | **String**| | |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetLockedPersonalLeftQuotaResponse**](GetLockedPersonalLeftQuotaResponse.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** | Get Locked Personal Left Quota | - |
-
-
-# **getLockedProductPosition**
-> GetLockedProductPositionResponse getLockedProductPosition(asset, positionId, projectId, current, size, recvWindow)
-
-Get Locked Product Position
-
-Get Locked Product Position Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.AccountApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- AccountApi apiInstance = new AccountApi(defaultClient);
- String asset = "asset_example"; // String |
- String positionId = "positionId_example"; // String |
- String projectId = "projectId_example"; // String |
- Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
- Long size = 56L; // Long | Default:10, Max:100
- Long recvWindow = 56L; // Long |
- try {
- GetLockedProductPositionResponse result = apiInstance.getLockedProductPosition(asset, positionId, projectId, current, size, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling AccountApi#getLockedProductPosition");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **asset** | **String**| | [optional] |
-| **positionId** | **String**| | [optional] |
-| **projectId** | **String**| | [optional] |
-| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
-| **size** | **Long**| Default:10, Max:100 | [optional] |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetLockedProductPositionResponse**](GetLockedProductPositionResponse.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** | Get Locked Product Position | - |
-
-
-# **getSimpleEarnFlexibleProductList**
-> GetSimpleEarnFlexibleProductListResponse getSimpleEarnFlexibleProductList(asset, current, size, recvWindow)
-
-Get Simple Earn Flexible Product List(USER_DATA)
-
-Get available Simple Earn flexible product list Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.AccountApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- AccountApi apiInstance = new AccountApi(defaultClient);
- String asset = "asset_example"; // String |
- Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
- Long size = 56L; // Long | Default:10, Max:100
- Long recvWindow = 56L; // Long |
- try {
- GetSimpleEarnFlexibleProductListResponse result = apiInstance.getSimpleEarnFlexibleProductList(asset, current, size, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling AccountApi#getSimpleEarnFlexibleProductList");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **asset** | **String**| | [optional] |
-| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
-| **size** | **Long**| Default:10, Max:100 | [optional] |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetSimpleEarnFlexibleProductListResponse**](GetSimpleEarnFlexibleProductListResponse.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** | Get Simple Earn Flexible Product List | - |
-
-
-# **getSimpleEarnLockedProductList**
-> GetSimpleEarnLockedProductListResponse getSimpleEarnLockedProductList(asset, current, size, recvWindow)
-
-Get Simple Earn Locked Product List(USER_DATA)
-
-Get Simple Earn Locked Product List * Get available Simple Earn locked product list Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.AccountApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- AccountApi apiInstance = new AccountApi(defaultClient);
- String asset = "asset_example"; // String |
- Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
- Long size = 56L; // Long | Default:10, Max:100
- Long recvWindow = 56L; // Long |
- try {
- GetSimpleEarnLockedProductListResponse result = apiInstance.getSimpleEarnLockedProductList(asset, current, size, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling AccountApi#getSimpleEarnLockedProductList");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **asset** | **String**| | [optional] |
-| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
-| **size** | **Long**| Default:10, Max:100 | [optional] |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetSimpleEarnLockedProductListResponse**](GetSimpleEarnLockedProductListResponse.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** | Get Simple Earn Locked Product List | - |
-
-
-# **simpleAccount**
-> SimpleAccountResponse simpleAccount(recvWindow)
-
-Simple Account(USER_DATA)
-
-Simple Account query Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.AccountApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- AccountApi apiInstance = new AccountApi(defaultClient);
- Long recvWindow = 56L; // Long |
- try {
- SimpleAccountResponse result = apiInstance.simpleAccount(recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling AccountApi#simpleAccount");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**SimpleAccountResponse**](SimpleAccountResponse.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** | Simple Account | - |
-
diff --git a/clients/simple-earn/docs/EarnApi.md b/clients/simple-earn/docs/EarnApi.md
deleted file mode 100644
index 28c6467af..000000000
--- a/clients/simple-earn/docs/EarnApi.md
+++ /dev/null
@@ -1,585 +0,0 @@
-# EarnApi
-
-All URIs are relative to *https://api.binance.com*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**getFlexibleSubscriptionPreview**](EarnApi.md#getFlexibleSubscriptionPreview) | **GET** /sapi/v1/simple-earn/flexible/subscriptionPreview | Get Flexible Subscription Preview(USER_DATA) |
-| [**getLockedSubscriptionPreview**](EarnApi.md#getLockedSubscriptionPreview) | **GET** /sapi/v1/simple-earn/locked/subscriptionPreview | Get Locked Subscription Preview(USER_DATA) |
-| [**redeemFlexibleProduct**](EarnApi.md#redeemFlexibleProduct) | **POST** /sapi/v1/simple-earn/flexible/redeem | Redeem Flexible Product(TRADE) |
-| [**redeemLockedProduct**](EarnApi.md#redeemLockedProduct) | **POST** /sapi/v1/simple-earn/locked/redeem | Redeem Locked Product(TRADE) |
-| [**setFlexibleAutoSubscribe**](EarnApi.md#setFlexibleAutoSubscribe) | **POST** /sapi/v1/simple-earn/flexible/setAutoSubscribe | Set Flexible Auto Subscribe(USER_DATA) |
-| [**setLockedAutoSubscribe**](EarnApi.md#setLockedAutoSubscribe) | **POST** /sapi/v1/simple-earn/locked/setAutoSubscribe | Set Locked Auto Subscribe(USER_DATA) |
-| [**setLockedProductRedeemOption**](EarnApi.md#setLockedProductRedeemOption) | **POST** /sapi/v1/simple-earn/locked/setRedeemOption | Set Locked Product Redeem Option(USER_DATA) |
-| [**subscribeFlexibleProduct**](EarnApi.md#subscribeFlexibleProduct) | **POST** /sapi/v1/simple-earn/flexible/subscribe | Subscribe Flexible Product(TRADE) |
-| [**subscribeLockedProduct**](EarnApi.md#subscribeLockedProduct) | **POST** /sapi/v1/simple-earn/locked/subscribe | Subscribe Locked Product(TRADE) |
-
-
-
-# **getFlexibleSubscriptionPreview**
-> GetFlexibleSubscriptionPreviewResponse getFlexibleSubscriptionPreview(productId, amount, recvWindow)
-
-Get Flexible Subscription Preview(USER_DATA)
-
-Get Flexible Subscription Preview Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.EarnApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- EarnApi apiInstance = new EarnApi(defaultClient);
- String productId = "productId_example"; // String |
- Double amount = 3.4D; // Double |
- Long recvWindow = 56L; // Long |
- try {
- GetFlexibleSubscriptionPreviewResponse result = apiInstance.getFlexibleSubscriptionPreview(productId, amount, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling EarnApi#getFlexibleSubscriptionPreview");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **productId** | **String**| | |
-| **amount** | **Double**| | |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetFlexibleSubscriptionPreviewResponse**](GetFlexibleSubscriptionPreviewResponse.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** | Get Flexible Subscription Preview | - |
-
-
-# **getLockedSubscriptionPreview**
-> GetLockedSubscriptionPreviewResponse getLockedSubscriptionPreview(projectId, amount, autoSubscribe, recvWindow)
-
-Get Locked Subscription Preview(USER_DATA)
-
-Get Locked Subscription Preview Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.EarnApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- EarnApi apiInstance = new EarnApi(defaultClient);
- String projectId = "projectId_example"; // String |
- Double amount = 3.4D; // Double |
- Boolean autoSubscribe = true; // Boolean | true or false, default true.
- Long recvWindow = 56L; // Long |
- try {
- GetLockedSubscriptionPreviewResponse result = apiInstance.getLockedSubscriptionPreview(projectId, amount, autoSubscribe, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling EarnApi#getLockedSubscriptionPreview");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **projectId** | **String**| | |
-| **amount** | **Double**| | |
-| **autoSubscribe** | **Boolean**| true or false, default true. | [optional] |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetLockedSubscriptionPreviewResponse**](GetLockedSubscriptionPreviewResponse.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** | Get Locked Subscription Preview | - |
-
-
-# **redeemFlexibleProduct**
-> RedeemFlexibleProductResponse redeemFlexibleProduct(redeemFlexibleProductRequest)
-
-Redeem Flexible Product(TRADE)
-
-Redeem Flexible Product * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint. Weight: 1
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.EarnApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- EarnApi apiInstance = new EarnApi(defaultClient);
- RedeemFlexibleProductRequest redeemFlexibleProductRequest = new RedeemFlexibleProductRequest(); // RedeemFlexibleProductRequest |
- try {
- RedeemFlexibleProductResponse result = apiInstance.redeemFlexibleProduct(redeemFlexibleProductRequest);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling EarnApi#redeemFlexibleProduct");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **redeemFlexibleProductRequest** | [**RedeemFlexibleProductRequest**](RedeemFlexibleProductRequest.md)| | |
-
-### Return type
-
-[**RedeemFlexibleProductResponse**](RedeemFlexibleProductResponse.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** | Redeem Flexible Product | - |
-
-
-# **redeemLockedProduct**
-> RedeemLockedProductResponse redeemLockedProduct(redeemLockedProductRequest)
-
-Redeem Locked Product(TRADE)
-
-Redeem Locked Product * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint. Weight: 1/3s per account
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.EarnApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- EarnApi apiInstance = new EarnApi(defaultClient);
- RedeemLockedProductRequest redeemLockedProductRequest = new RedeemLockedProductRequest(); // RedeemLockedProductRequest |
- try {
- RedeemLockedProductResponse result = apiInstance.redeemLockedProduct(redeemLockedProductRequest);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling EarnApi#redeemLockedProduct");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **redeemLockedProductRequest** | [**RedeemLockedProductRequest**](RedeemLockedProductRequest.md)| | |
-
-### Return type
-
-[**RedeemLockedProductResponse**](RedeemLockedProductResponse.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** | Redeem Locked Product | - |
-
-
-# **setFlexibleAutoSubscribe**
-> SetFlexibleAutoSubscribeResponse setFlexibleAutoSubscribe(setFlexibleAutoSubscribeRequest)
-
-Set Flexible Auto Subscribe(USER_DATA)
-
-Set Flexible Auto Subscribe Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.EarnApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- EarnApi apiInstance = new EarnApi(defaultClient);
- SetFlexibleAutoSubscribeRequest setFlexibleAutoSubscribeRequest = new SetFlexibleAutoSubscribeRequest(); // SetFlexibleAutoSubscribeRequest |
- try {
- SetFlexibleAutoSubscribeResponse result = apiInstance.setFlexibleAutoSubscribe(setFlexibleAutoSubscribeRequest);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling EarnApi#setFlexibleAutoSubscribe");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **setFlexibleAutoSubscribeRequest** | [**SetFlexibleAutoSubscribeRequest**](SetFlexibleAutoSubscribeRequest.md)| | |
-
-### Return type
-
-[**SetFlexibleAutoSubscribeResponse**](SetFlexibleAutoSubscribeResponse.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** | Set Flexible Auto Subscribe | - |
-
-
-# **setLockedAutoSubscribe**
-> SetLockedAutoSubscribeResponse setLockedAutoSubscribe(setLockedAutoSubscribeRequest)
-
-Set Locked Auto Subscribe(USER_DATA)
-
-Set locked auto subscribe Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.EarnApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- EarnApi apiInstance = new EarnApi(defaultClient);
- SetLockedAutoSubscribeRequest setLockedAutoSubscribeRequest = new SetLockedAutoSubscribeRequest(); // SetLockedAutoSubscribeRequest |
- try {
- SetLockedAutoSubscribeResponse result = apiInstance.setLockedAutoSubscribe(setLockedAutoSubscribeRequest);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling EarnApi#setLockedAutoSubscribe");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **setLockedAutoSubscribeRequest** | [**SetLockedAutoSubscribeRequest**](SetLockedAutoSubscribeRequest.md)| | |
-
-### Return type
-
-[**SetLockedAutoSubscribeResponse**](SetLockedAutoSubscribeResponse.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** | Set Locked Auto Subscribe | - |
-
-
-# **setLockedProductRedeemOption**
-> SetLockedProductRedeemOptionResponse setLockedProductRedeemOption(setLockedProductRedeemOptionRequest)
-
-Set Locked Product Redeem Option(USER_DATA)
-
-Set redeem option for Locked product Weight: 50
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.EarnApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- EarnApi apiInstance = new EarnApi(defaultClient);
- SetLockedProductRedeemOptionRequest setLockedProductRedeemOptionRequest = new SetLockedProductRedeemOptionRequest(); // SetLockedProductRedeemOptionRequest |
- try {
- SetLockedProductRedeemOptionResponse result = apiInstance.setLockedProductRedeemOption(setLockedProductRedeemOptionRequest);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling EarnApi#setLockedProductRedeemOption");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **setLockedProductRedeemOptionRequest** | [**SetLockedProductRedeemOptionRequest**](SetLockedProductRedeemOptionRequest.md)| | |
-
-### Return type
-
-[**SetLockedProductRedeemOptionResponse**](SetLockedProductRedeemOptionResponse.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** | Set Locked Product Redeem Option | - |
-
-
-# **subscribeFlexibleProduct**
-> SubscribeFlexibleProductResponse subscribeFlexibleProduct(subscribeFlexibleProductRequest)
-
-Subscribe Flexible Product(TRADE)
-
-Subscribe Flexible Product * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint. Weight: 1
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.EarnApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- EarnApi apiInstance = new EarnApi(defaultClient);
- SubscribeFlexibleProductRequest subscribeFlexibleProductRequest = new SubscribeFlexibleProductRequest(); // SubscribeFlexibleProductRequest |
- try {
- SubscribeFlexibleProductResponse result = apiInstance.subscribeFlexibleProduct(subscribeFlexibleProductRequest);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling EarnApi#subscribeFlexibleProduct");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **subscribeFlexibleProductRequest** | [**SubscribeFlexibleProductRequest**](SubscribeFlexibleProductRequest.md)| | |
-
-### Return type
-
-[**SubscribeFlexibleProductResponse**](SubscribeFlexibleProductResponse.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** | Subscribe Flexible Product | - |
-
-
-# **subscribeLockedProduct**
-> SubscribeLockedProductResponse subscribeLockedProduct(subscribeLockedProductRequest)
-
-Subscribe Locked Product(TRADE)
-
-Subscribe Locked Product * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint. Weight: 1
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.EarnApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- EarnApi apiInstance = new EarnApi(defaultClient);
- SubscribeLockedProductRequest subscribeLockedProductRequest = new SubscribeLockedProductRequest(); // SubscribeLockedProductRequest |
- try {
- SubscribeLockedProductResponse result = apiInstance.subscribeLockedProduct(subscribeLockedProductRequest);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling EarnApi#subscribeLockedProduct");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **subscribeLockedProductRequest** | [**SubscribeLockedProductRequest**](SubscribeLockedProductRequest.md)| | |
-
-### Return type
-
-[**SubscribeLockedProductResponse**](SubscribeLockedProductResponse.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** | Subscribe Locked Product | - |
-
diff --git a/clients/simple-earn/docs/FlexibleLockedApi.md b/clients/simple-earn/docs/FlexibleLockedApi.md
new file mode 100644
index 000000000..c2226b1a8
--- /dev/null
+++ b/clients/simple-earn/docs/FlexibleLockedApi.md
@@ -0,0 +1,1666 @@
+# FlexibleLockedApi
+
+All URIs are relative to *https://api.binance.com*
+
+| Method | HTTP request | Description |
+|------------- | ------------- | -------------|
+| [**getCollateralRecord**](FlexibleLockedApi.md#getCollateralRecord) | **GET** /sapi/v1/simple-earn/flexible/history/collateralRecord | Get Collateral Record(USER_DATA) |
+| [**getFlexiblePersonalLeftQuota**](FlexibleLockedApi.md#getFlexiblePersonalLeftQuota) | **GET** /sapi/v1/simple-earn/flexible/personalLeftQuota | Get Flexible Personal Left Quota(USER_DATA) |
+| [**getFlexibleProductPosition**](FlexibleLockedApi.md#getFlexibleProductPosition) | **GET** /sapi/v1/simple-earn/flexible/position | Get Flexible Product Position(USER_DATA) |
+| [**getFlexibleRedemptionRecord**](FlexibleLockedApi.md#getFlexibleRedemptionRecord) | **GET** /sapi/v1/simple-earn/flexible/history/redemptionRecord | Get Flexible Redemption Record(USER_DATA) |
+| [**getFlexibleRewardsHistory**](FlexibleLockedApi.md#getFlexibleRewardsHistory) | **GET** /sapi/v1/simple-earn/flexible/history/rewardsRecord | Get Flexible Rewards History(USER_DATA) |
+| [**getFlexibleSubscriptionPreview**](FlexibleLockedApi.md#getFlexibleSubscriptionPreview) | **GET** /sapi/v1/simple-earn/flexible/subscriptionPreview | Get Flexible Subscription Preview(USER_DATA) |
+| [**getFlexibleSubscriptionRecord**](FlexibleLockedApi.md#getFlexibleSubscriptionRecord) | **GET** /sapi/v1/simple-earn/flexible/history/subscriptionRecord | Get Flexible Subscription Record(USER_DATA) |
+| [**getLockedPersonalLeftQuota**](FlexibleLockedApi.md#getLockedPersonalLeftQuota) | **GET** /sapi/v1/simple-earn/locked/personalLeftQuota | Get Locked Personal Left Quota(USER_DATA) |
+| [**getLockedProductPosition**](FlexibleLockedApi.md#getLockedProductPosition) | **GET** /sapi/v1/simple-earn/locked/position | Get Locked Product Position |
+| [**getLockedRedemptionRecord**](FlexibleLockedApi.md#getLockedRedemptionRecord) | **GET** /sapi/v1/simple-earn/locked/history/redemptionRecord | Get Locked Redemption Record(USER_DATA) |
+| [**getLockedRewardsHistory**](FlexibleLockedApi.md#getLockedRewardsHistory) | **GET** /sapi/v1/simple-earn/locked/history/rewardsRecord | Get Locked Rewards History(USER_DATA) |
+| [**getLockedSubscriptionPreview**](FlexibleLockedApi.md#getLockedSubscriptionPreview) | **GET** /sapi/v1/simple-earn/locked/subscriptionPreview | Get Locked Subscription Preview(USER_DATA) |
+| [**getLockedSubscriptionRecord**](FlexibleLockedApi.md#getLockedSubscriptionRecord) | **GET** /sapi/v1/simple-earn/locked/history/subscriptionRecord | Get Locked Subscription Record(USER_DATA) |
+| [**getRateHistory**](FlexibleLockedApi.md#getRateHistory) | **GET** /sapi/v1/simple-earn/flexible/history/rateHistory | Get Rate History(USER_DATA) |
+| [**getSimpleEarnFlexibleProductList**](FlexibleLockedApi.md#getSimpleEarnFlexibleProductList) | **GET** /sapi/v1/simple-earn/flexible/list | Get Simple Earn Flexible Product List(USER_DATA) |
+| [**getSimpleEarnLockedProductList**](FlexibleLockedApi.md#getSimpleEarnLockedProductList) | **GET** /sapi/v1/simple-earn/locked/list | Get Simple Earn Locked Product List(USER_DATA) |
+| [**redeemFlexibleProduct**](FlexibleLockedApi.md#redeemFlexibleProduct) | **POST** /sapi/v1/simple-earn/flexible/redeem | Redeem Flexible Product(TRADE) |
+| [**redeemLockedProduct**](FlexibleLockedApi.md#redeemLockedProduct) | **POST** /sapi/v1/simple-earn/locked/redeem | Redeem Locked Product(TRADE) |
+| [**setFlexibleAutoSubscribe**](FlexibleLockedApi.md#setFlexibleAutoSubscribe) | **POST** /sapi/v1/simple-earn/flexible/setAutoSubscribe | Set Flexible Auto Subscribe(USER_DATA) |
+| [**setLockedAutoSubscribe**](FlexibleLockedApi.md#setLockedAutoSubscribe) | **POST** /sapi/v1/simple-earn/locked/setAutoSubscribe | Set Locked Auto Subscribe(USER_DATA) |
+| [**setLockedProductRedeemOption**](FlexibleLockedApi.md#setLockedProductRedeemOption) | **POST** /sapi/v1/simple-earn/locked/setRedeemOption | Set Locked Product Redeem Option(USER_DATA) |
+| [**simpleAccount**](FlexibleLockedApi.md#simpleAccount) | **GET** /sapi/v1/simple-earn/account | Simple Account(USER_DATA) |
+| [**subscribeFlexibleProduct**](FlexibleLockedApi.md#subscribeFlexibleProduct) | **POST** /sapi/v1/simple-earn/flexible/subscribe | Subscribe Flexible Product(TRADE) |
+| [**subscribeLockedProduct**](FlexibleLockedApi.md#subscribeLockedProduct) | **POST** /sapi/v1/simple-earn/locked/subscribe | Subscribe Locked Product(TRADE) |
+
+
+
+# **getCollateralRecord**
+> GetCollateralRecordResponse getCollateralRecord(productId, startTime, endTime, current, size, recvWindow)
+
+Get Collateral Record(USER_DATA)
+
+Get Collateral Record * The time between `startTime` and `endTime` cannot be longer than 30 days. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 1
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String productId = "productId_example"; // String |
+ Long startTime = 56L; // Long |
+ Long endTime = 56L; // Long |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetCollateralRecordResponse result = apiInstance.getCollateralRecord(productId, startTime, endTime, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getCollateralRecord");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **productId** | **String**| | [optional] |
+| **startTime** | **Long**| | [optional] |
+| **endTime** | **Long**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetCollateralRecordResponse**](GetCollateralRecordResponse.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** | Get Collateral Record | - |
+
+
+# **getFlexiblePersonalLeftQuota**
+> GetFlexiblePersonalLeftQuotaResponse getFlexiblePersonalLeftQuota(productId, recvWindow)
+
+Get Flexible Personal Left Quota(USER_DATA)
+
+Get Flexible Personal Left Quota Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String productId = "productId_example"; // String |
+ Long recvWindow = 56L; // Long |
+ try {
+ GetFlexiblePersonalLeftQuotaResponse result = apiInstance.getFlexiblePersonalLeftQuota(productId, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getFlexiblePersonalLeftQuota");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **productId** | **String**| | |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetFlexiblePersonalLeftQuotaResponse**](GetFlexiblePersonalLeftQuotaResponse.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** | Get Flexible Personal Left Quota | - |
+
+
+# **getFlexibleProductPosition**
+> GetFlexibleProductPositionResponse getFlexibleProductPosition(asset, productId, current, size, recvWindow)
+
+Get Flexible Product Position(USER_DATA)
+
+Get Flexible Product Position Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String asset = "asset_example"; // String | USDC or USDT
+ String productId = "productId_example"; // String |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetFlexibleProductPositionResponse result = apiInstance.getFlexibleProductPosition(asset, productId, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getFlexibleProductPosition");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **asset** | **String**| USDC or USDT | [optional] |
+| **productId** | **String**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetFlexibleProductPositionResponse**](GetFlexibleProductPositionResponse.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** | Get Flexible Product Position | - |
+
+
+# **getFlexibleRedemptionRecord**
+> GetFlexibleRedemptionRecordResponse getFlexibleRedemptionRecord(productId, redeemId, asset, startTime, endTime, current, size, recvWindow)
+
+Get Flexible Redemption Record(USER_DATA)
+
+Get Flexible Redemption Record * The time between `startTime` and `endTime` cannot be longer than 3 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String productId = "productId_example"; // String |
+ String redeemId = "redeemId_example"; // String |
+ String asset = "asset_example"; // String | USDC or USDT
+ Long startTime = 56L; // Long |
+ Long endTime = 56L; // Long |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetFlexibleRedemptionRecordResponse result = apiInstance.getFlexibleRedemptionRecord(productId, redeemId, asset, startTime, endTime, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getFlexibleRedemptionRecord");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **productId** | **String**| | [optional] |
+| **redeemId** | **String**| | [optional] |
+| **asset** | **String**| USDC or USDT | [optional] |
+| **startTime** | **Long**| | [optional] |
+| **endTime** | **Long**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetFlexibleRedemptionRecordResponse**](GetFlexibleRedemptionRecordResponse.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** | Get Flexible Redemption Record | - |
+
+
+# **getFlexibleRewardsHistory**
+> GetFlexibleRewardsHistoryResponse getFlexibleRewardsHistory(type, productId, asset, startTime, endTime, current, size, recvWindow)
+
+Get Flexible Rewards History(USER_DATA)
+
+Get Flexible Rewards History * The time between `startTime` and `endTime` cannot be longer than 3 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String type = "type_example"; // String | `BONUS` - Bonus tiered APR, `REALTIME` Real-time APR, `REWARDS` Historical rewards,`ALL`(set to default)
+ String productId = "productId_example"; // String |
+ String asset = "asset_example"; // String | USDC or USDT
+ Long startTime = 56L; // Long |
+ Long endTime = 56L; // Long |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetFlexibleRewardsHistoryResponse result = apiInstance.getFlexibleRewardsHistory(type, productId, asset, startTime, endTime, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getFlexibleRewardsHistory");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **type** | **String**| `BONUS` - Bonus tiered APR, `REALTIME` Real-time APR, `REWARDS` Historical rewards,`ALL`(set to default) | |
+| **productId** | **String**| | [optional] |
+| **asset** | **String**| USDC or USDT | [optional] |
+| **startTime** | **Long**| | [optional] |
+| **endTime** | **Long**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetFlexibleRewardsHistoryResponse**](GetFlexibleRewardsHistoryResponse.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** | Get Flexible Rewards History | - |
+
+
+# **getFlexibleSubscriptionPreview**
+> GetFlexibleSubscriptionPreviewResponse getFlexibleSubscriptionPreview(productId, amount, recvWindow)
+
+Get Flexible Subscription Preview(USER_DATA)
+
+Get Flexible Subscription Preview Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String productId = "productId_example"; // String |
+ Double amount = 3.4D; // Double |
+ Long recvWindow = 56L; // Long |
+ try {
+ GetFlexibleSubscriptionPreviewResponse result = apiInstance.getFlexibleSubscriptionPreview(productId, amount, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getFlexibleSubscriptionPreview");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **productId** | **String**| | |
+| **amount** | **Double**| | |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetFlexibleSubscriptionPreviewResponse**](GetFlexibleSubscriptionPreviewResponse.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** | Get Flexible Subscription Preview | - |
+
+
+# **getFlexibleSubscriptionRecord**
+> GetFlexibleSubscriptionRecordResponse getFlexibleSubscriptionRecord(productId, purchaseId, asset, startTime, endTime, current, size, recvWindow)
+
+Get Flexible Subscription Record(USER_DATA)
+
+Get Flexible Subscription Record * The time between `startTime` and `endTime` cannot be longer than 3 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String productId = "productId_example"; // String |
+ String purchaseId = "purchaseId_example"; // String |
+ String asset = "asset_example"; // String | USDC or USDT
+ Long startTime = 56L; // Long |
+ Long endTime = 56L; // Long |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetFlexibleSubscriptionRecordResponse result = apiInstance.getFlexibleSubscriptionRecord(productId, purchaseId, asset, startTime, endTime, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getFlexibleSubscriptionRecord");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **productId** | **String**| | [optional] |
+| **purchaseId** | **String**| | [optional] |
+| **asset** | **String**| USDC or USDT | [optional] |
+| **startTime** | **Long**| | [optional] |
+| **endTime** | **Long**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetFlexibleSubscriptionRecordResponse**](GetFlexibleSubscriptionRecordResponse.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** | Get Flexible Subscription Record | - |
+
+
+# **getLockedPersonalLeftQuota**
+> GetLockedPersonalLeftQuotaResponse getLockedPersonalLeftQuota(projectId, recvWindow)
+
+Get Locked Personal Left Quota(USER_DATA)
+
+Get Locked Personal Left Quota Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String projectId = "projectId_example"; // String |
+ Long recvWindow = 56L; // Long |
+ try {
+ GetLockedPersonalLeftQuotaResponse result = apiInstance.getLockedPersonalLeftQuota(projectId, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getLockedPersonalLeftQuota");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **projectId** | **String**| | |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetLockedPersonalLeftQuotaResponse**](GetLockedPersonalLeftQuotaResponse.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** | Get Locked Personal Left Quota | - |
+
+
+# **getLockedProductPosition**
+> GetLockedProductPositionResponse getLockedProductPosition(asset, positionId, projectId, current, size, recvWindow)
+
+Get Locked Product Position
+
+Get Locked Product Position Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String asset = "asset_example"; // String | USDC or USDT
+ String positionId = "positionId_example"; // String |
+ String projectId = "projectId_example"; // String |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetLockedProductPositionResponse result = apiInstance.getLockedProductPosition(asset, positionId, projectId, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getLockedProductPosition");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **asset** | **String**| USDC or USDT | [optional] |
+| **positionId** | **String**| | [optional] |
+| **projectId** | **String**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetLockedProductPositionResponse**](GetLockedProductPositionResponse.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** | Get Locked Product Position | - |
+
+
+# **getLockedRedemptionRecord**
+> GetLockedRedemptionRecordResponse getLockedRedemptionRecord(positionId, redeemId, asset, startTime, endTime, current, size, recvWindow)
+
+Get Locked Redemption Record(USER_DATA)
+
+Get Locked Redemption Record * The time between `startTime` and `endTime` cannot be longer than 3 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String positionId = "positionId_example"; // String |
+ String redeemId = "redeemId_example"; // String |
+ String asset = "asset_example"; // String | USDC or USDT
+ Long startTime = 56L; // Long |
+ Long endTime = 56L; // Long |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetLockedRedemptionRecordResponse result = apiInstance.getLockedRedemptionRecord(positionId, redeemId, asset, startTime, endTime, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getLockedRedemptionRecord");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **positionId** | **String**| | [optional] |
+| **redeemId** | **String**| | [optional] |
+| **asset** | **String**| USDC or USDT | [optional] |
+| **startTime** | **Long**| | [optional] |
+| **endTime** | **Long**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetLockedRedemptionRecordResponse**](GetLockedRedemptionRecordResponse.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** | Get Locked Redemption Record | - |
+
+
+# **getLockedRewardsHistory**
+> GetLockedRewardsHistoryResponse getLockedRewardsHistory(positionId, asset, startTime, endTime, current, size, recvWindow)
+
+Get Locked Rewards History(USER_DATA)
+
+Get Locked Rewards History * The time between `startTime` and `endTime` cannot be longer than 3 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String positionId = "positionId_example"; // String |
+ String asset = "asset_example"; // String | USDC or USDT
+ Long startTime = 56L; // Long |
+ Long endTime = 56L; // Long |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetLockedRewardsHistoryResponse result = apiInstance.getLockedRewardsHistory(positionId, asset, startTime, endTime, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getLockedRewardsHistory");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **positionId** | **String**| | [optional] |
+| **asset** | **String**| USDC or USDT | [optional] |
+| **startTime** | **Long**| | [optional] |
+| **endTime** | **Long**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetLockedRewardsHistoryResponse**](GetLockedRewardsHistoryResponse.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** | Get Locked Rewards History | - |
+
+
+# **getLockedSubscriptionPreview**
+> GetLockedSubscriptionPreviewResponse getLockedSubscriptionPreview(projectId, amount, autoSubscribe, recvWindow)
+
+Get Locked Subscription Preview(USER_DATA)
+
+Get Locked Subscription Preview Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String projectId = "projectId_example"; // String |
+ Double amount = 3.4D; // Double |
+ Boolean autoSubscribe = true; // Boolean | true or false, default true.
+ Long recvWindow = 56L; // Long |
+ try {
+ GetLockedSubscriptionPreviewResponse result = apiInstance.getLockedSubscriptionPreview(projectId, amount, autoSubscribe, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getLockedSubscriptionPreview");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **projectId** | **String**| | |
+| **amount** | **Double**| | |
+| **autoSubscribe** | **Boolean**| true or false, default true. | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetLockedSubscriptionPreviewResponse**](GetLockedSubscriptionPreviewResponse.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** | Get Locked Subscription Preview | - |
+
+
+# **getLockedSubscriptionRecord**
+> GetLockedSubscriptionRecordResponse getLockedSubscriptionRecord(purchaseId, asset, startTime, endTime, current, size, recvWindow)
+
+Get Locked Subscription Record(USER_DATA)
+
+Get Locked Subscription Record * The time between `startTime` and `endTime` cannot be longer than 3 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String purchaseId = "purchaseId_example"; // String |
+ String asset = "asset_example"; // String | USDC or USDT
+ Long startTime = 56L; // Long |
+ Long endTime = 56L; // Long |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetLockedSubscriptionRecordResponse result = apiInstance.getLockedSubscriptionRecord(purchaseId, asset, startTime, endTime, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getLockedSubscriptionRecord");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **purchaseId** | **String**| | [optional] |
+| **asset** | **String**| USDC or USDT | [optional] |
+| **startTime** | **Long**| | [optional] |
+| **endTime** | **Long**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetLockedSubscriptionRecordResponse**](GetLockedSubscriptionRecordResponse.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** | Get Locked Subscription Record | - |
+
+
+# **getRateHistory**
+> GetRateHistoryResponse getRateHistory(productId, aprPeriod, startTime, endTime, current, size, recvWindow)
+
+Get Rate History(USER_DATA)
+
+Get Rate History * The time between startTime and endTime cannot be longer than 1 year. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String productId = "productId_example"; // String |
+ String aprPeriod = "aprPeriod_example"; // String | \"DAY\",\"YEAR\",default\"DAY\"
+ Long startTime = 56L; // Long |
+ Long endTime = 56L; // Long |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetRateHistoryResponse result = apiInstance.getRateHistory(productId, aprPeriod, startTime, endTime, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getRateHistory");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **productId** | **String**| | |
+| **aprPeriod** | **String**| \"DAY\",\"YEAR\",default\"DAY\" | [optional] |
+| **startTime** | **Long**| | [optional] |
+| **endTime** | **Long**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetRateHistoryResponse**](GetRateHistoryResponse.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** | Get Rate History | - |
+
+
+# **getSimpleEarnFlexibleProductList**
+> GetSimpleEarnFlexibleProductListResponse getSimpleEarnFlexibleProductList(asset, current, size, recvWindow)
+
+Get Simple Earn Flexible Product List(USER_DATA)
+
+Get available Simple Earn flexible product list Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String asset = "asset_example"; // String | USDC or USDT
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetSimpleEarnFlexibleProductListResponse result = apiInstance.getSimpleEarnFlexibleProductList(asset, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getSimpleEarnFlexibleProductList");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **asset** | **String**| USDC or USDT | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetSimpleEarnFlexibleProductListResponse**](GetSimpleEarnFlexibleProductListResponse.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** | Get Simple Earn Flexible Product List | - |
+
+
+# **getSimpleEarnLockedProductList**
+> GetSimpleEarnLockedProductListResponse getSimpleEarnLockedProductList(asset, current, size, recvWindow)
+
+Get Simple Earn Locked Product List(USER_DATA)
+
+Get Simple Earn Locked Product List * Get available Simple Earn locked product list Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ String asset = "asset_example"; // String | USDC or USDT
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetSimpleEarnLockedProductListResponse result = apiInstance.getSimpleEarnLockedProductList(asset, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#getSimpleEarnLockedProductList");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **asset** | **String**| USDC or USDT | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetSimpleEarnLockedProductListResponse**](GetSimpleEarnLockedProductListResponse.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** | Get Simple Earn Locked Product List | - |
+
+
+# **redeemFlexibleProduct**
+> RedeemFlexibleProductResponse redeemFlexibleProduct(redeemFlexibleProductRequest)
+
+Redeem Flexible Product(TRADE)
+
+Redeem Flexible Product * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint. Weight: 1
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ RedeemFlexibleProductRequest redeemFlexibleProductRequest = new RedeemFlexibleProductRequest(); // RedeemFlexibleProductRequest |
+ try {
+ RedeemFlexibleProductResponse result = apiInstance.redeemFlexibleProduct(redeemFlexibleProductRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#redeemFlexibleProduct");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **redeemFlexibleProductRequest** | [**RedeemFlexibleProductRequest**](RedeemFlexibleProductRequest.md)| | |
+
+### Return type
+
+[**RedeemFlexibleProductResponse**](RedeemFlexibleProductResponse.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** | Redeem Flexible Product | - |
+
+
+# **redeemLockedProduct**
+> RedeemLockedProductResponse redeemLockedProduct(redeemLockedProductRequest)
+
+Redeem Locked Product(TRADE)
+
+Redeem Locked Product * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint. Weight: 1/3s per account
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ RedeemLockedProductRequest redeemLockedProductRequest = new RedeemLockedProductRequest(); // RedeemLockedProductRequest |
+ try {
+ RedeemLockedProductResponse result = apiInstance.redeemLockedProduct(redeemLockedProductRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#redeemLockedProduct");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **redeemLockedProductRequest** | [**RedeemLockedProductRequest**](RedeemLockedProductRequest.md)| | |
+
+### Return type
+
+[**RedeemLockedProductResponse**](RedeemLockedProductResponse.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** | Redeem Locked Product | - |
+
+
+# **setFlexibleAutoSubscribe**
+> SetFlexibleAutoSubscribeResponse setFlexibleAutoSubscribe(setFlexibleAutoSubscribeRequest)
+
+Set Flexible Auto Subscribe(USER_DATA)
+
+Set Flexible Auto Subscribe Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ SetFlexibleAutoSubscribeRequest setFlexibleAutoSubscribeRequest = new SetFlexibleAutoSubscribeRequest(); // SetFlexibleAutoSubscribeRequest |
+ try {
+ SetFlexibleAutoSubscribeResponse result = apiInstance.setFlexibleAutoSubscribe(setFlexibleAutoSubscribeRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#setFlexibleAutoSubscribe");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **setFlexibleAutoSubscribeRequest** | [**SetFlexibleAutoSubscribeRequest**](SetFlexibleAutoSubscribeRequest.md)| | |
+
+### Return type
+
+[**SetFlexibleAutoSubscribeResponse**](SetFlexibleAutoSubscribeResponse.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** | Set Flexible Auto Subscribe | - |
+
+
+# **setLockedAutoSubscribe**
+> SetLockedAutoSubscribeResponse setLockedAutoSubscribe(setLockedAutoSubscribeRequest)
+
+Set Locked Auto Subscribe(USER_DATA)
+
+Set locked auto subscribe Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ SetLockedAutoSubscribeRequest setLockedAutoSubscribeRequest = new SetLockedAutoSubscribeRequest(); // SetLockedAutoSubscribeRequest |
+ try {
+ SetLockedAutoSubscribeResponse result = apiInstance.setLockedAutoSubscribe(setLockedAutoSubscribeRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#setLockedAutoSubscribe");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **setLockedAutoSubscribeRequest** | [**SetLockedAutoSubscribeRequest**](SetLockedAutoSubscribeRequest.md)| | |
+
+### Return type
+
+[**SetLockedAutoSubscribeResponse**](SetLockedAutoSubscribeResponse.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** | Set Locked Auto Subscribe | - |
+
+
+# **setLockedProductRedeemOption**
+> SetLockedProductRedeemOptionResponse setLockedProductRedeemOption(setLockedProductRedeemOptionRequest)
+
+Set Locked Product Redeem Option(USER_DATA)
+
+Set redeem option for Locked product Weight: 50
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ SetLockedProductRedeemOptionRequest setLockedProductRedeemOptionRequest = new SetLockedProductRedeemOptionRequest(); // SetLockedProductRedeemOptionRequest |
+ try {
+ SetLockedProductRedeemOptionResponse result = apiInstance.setLockedProductRedeemOption(setLockedProductRedeemOptionRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#setLockedProductRedeemOption");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **setLockedProductRedeemOptionRequest** | [**SetLockedProductRedeemOptionRequest**](SetLockedProductRedeemOptionRequest.md)| | |
+
+### Return type
+
+[**SetLockedProductRedeemOptionResponse**](SetLockedProductRedeemOptionResponse.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** | Set Locked Product Redeem Option | - |
+
+
+# **simpleAccount**
+> SimpleAccountResponse simpleAccount(recvWindow)
+
+Simple Account(USER_DATA)
+
+Simple Account query Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ Long recvWindow = 56L; // Long |
+ try {
+ SimpleAccountResponse result = apiInstance.simpleAccount(recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#simpleAccount");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**SimpleAccountResponse**](SimpleAccountResponse.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** | Simple Account | - |
+
+
+# **subscribeFlexibleProduct**
+> SubscribeFlexibleProductResponse subscribeFlexibleProduct(subscribeFlexibleProductRequest)
+
+Subscribe Flexible Product(TRADE)
+
+Subscribe Flexible Product * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint. Weight: 1
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ SubscribeFlexibleProductRequest subscribeFlexibleProductRequest = new SubscribeFlexibleProductRequest(); // SubscribeFlexibleProductRequest |
+ try {
+ SubscribeFlexibleProductResponse result = apiInstance.subscribeFlexibleProduct(subscribeFlexibleProductRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#subscribeFlexibleProduct");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **subscribeFlexibleProductRequest** | [**SubscribeFlexibleProductRequest**](SubscribeFlexibleProductRequest.md)| | |
+
+### Return type
+
+[**SubscribeFlexibleProductResponse**](SubscribeFlexibleProductResponse.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** | Subscribe Flexible Product | - |
+
+
+# **subscribeLockedProduct**
+> SubscribeLockedProductResponse subscribeLockedProduct(subscribeLockedProductRequest)
+
+Subscribe Locked Product(TRADE)
+
+Subscribe Locked Product * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint. Weight: 1
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.FlexibleLockedApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ FlexibleLockedApi apiInstance = new FlexibleLockedApi(defaultClient);
+ SubscribeLockedProductRequest subscribeLockedProductRequest = new SubscribeLockedProductRequest(); // SubscribeLockedProductRequest |
+ try {
+ SubscribeLockedProductResponse result = apiInstance.subscribeLockedProduct(subscribeLockedProductRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FlexibleLockedApi#subscribeLockedProduct");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **subscribeLockedProductRequest** | [**SubscribeLockedProductRequest**](SubscribeLockedProductRequest.md)| | |
+
+### Return type
+
+[**SubscribeLockedProductResponse**](SubscribeLockedProductResponse.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** | Subscribe Locked Product | - |
+
diff --git a/clients/simple-earn/docs/GetRwusdAccountResponse.md b/clients/simple-earn/docs/GetRwusdAccountResponse.md
new file mode 100644
index 000000000..6cbb52c25
--- /dev/null
+++ b/clients/simple-earn/docs/GetRwusdAccountResponse.md
@@ -0,0 +1,14 @@
+
+
+# GetRwusdAccountResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**rwusdAmount** | **String** | | [optional] |
+|**totalProfit** | **String** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/GetRwusdQuotaDetailsResponse.md b/clients/simple-earn/docs/GetRwusdQuotaDetailsResponse.md
new file mode 100644
index 000000000..5d7386661
--- /dev/null
+++ b/clients/simple-earn/docs/GetRwusdQuotaDetailsResponse.md
@@ -0,0 +1,17 @@
+
+
+# GetRwusdQuotaDetailsResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**subscriptionQuota** | [**GetRwusdQuotaDetailsResponseSubscriptionQuota**](GetRwusdQuotaDetailsResponseSubscriptionQuota.md) | | [optional] |
+|**fastRedemptionQuota** | [**GetRwusdQuotaDetailsResponseFastRedemptionQuota**](GetRwusdQuotaDetailsResponseFastRedemptionQuota.md) | | [optional] |
+|**standardRedemptionQuota** | [**GetRwusdQuotaDetailsResponseStandardRedemptionQuota**](GetRwusdQuotaDetailsResponseStandardRedemptionQuota.md) | | [optional] |
+|**subscribeEnable** | **Boolean** | | [optional] |
+|**redeemEnable** | **Boolean** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/GetRwusdQuotaDetailsResponseFastRedemptionQuota.md b/clients/simple-earn/docs/GetRwusdQuotaDetailsResponseFastRedemptionQuota.md
new file mode 100644
index 000000000..373c210c3
--- /dev/null
+++ b/clients/simple-earn/docs/GetRwusdQuotaDetailsResponseFastRedemptionQuota.md
@@ -0,0 +1,16 @@
+
+
+# GetRwusdQuotaDetailsResponseFastRedemptionQuota
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**leftQuota** | **String** | | [optional] |
+|**minimum** | **String** | | [optional] |
+|**fee** | **String** | | [optional] |
+|**freeQuota** | **String** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/GetRwusdQuotaDetailsResponseStandardRedemptionQuota.md b/clients/simple-earn/docs/GetRwusdQuotaDetailsResponseStandardRedemptionQuota.md
new file mode 100644
index 000000000..a87d21550
--- /dev/null
+++ b/clients/simple-earn/docs/GetRwusdQuotaDetailsResponseStandardRedemptionQuota.md
@@ -0,0 +1,16 @@
+
+
+# GetRwusdQuotaDetailsResponseStandardRedemptionQuota
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**leftQuota** | **String** | | [optional] |
+|**minimum** | **String** | | [optional] |
+|**fee** | **String** | | [optional] |
+|**redeemPeriod** | **Long** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/GetRwusdQuotaDetailsResponseSubscriptionQuota.md b/clients/simple-earn/docs/GetRwusdQuotaDetailsResponseSubscriptionQuota.md
new file mode 100644
index 000000000..9a806ad10
--- /dev/null
+++ b/clients/simple-earn/docs/GetRwusdQuotaDetailsResponseSubscriptionQuota.md
@@ -0,0 +1,15 @@
+
+
+# GetRwusdQuotaDetailsResponseSubscriptionQuota
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**assets** | **List<String>** | | [optional] |
+|**leftQuota** | **String** | | [optional] |
+|**minimum** | **String** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/GetRwusdRateHistoryResponse.md b/clients/simple-earn/docs/GetRwusdRateHistoryResponse.md
new file mode 100644
index 000000000..078a547a4
--- /dev/null
+++ b/clients/simple-earn/docs/GetRwusdRateHistoryResponse.md
@@ -0,0 +1,14 @@
+
+
+# GetRwusdRateHistoryResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**rows** | [**List<GetRwusdRateHistoryResponseRowsInner>**](GetRwusdRateHistoryResponseRowsInner.md) | | [optional] |
+|**total** | **String** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/GetRwusdRateHistoryResponseRowsInner.md b/clients/simple-earn/docs/GetRwusdRateHistoryResponseRowsInner.md
new file mode 100644
index 000000000..d015a4e4f
--- /dev/null
+++ b/clients/simple-earn/docs/GetRwusdRateHistoryResponseRowsInner.md
@@ -0,0 +1,14 @@
+
+
+# GetRwusdRateHistoryResponseRowsInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**annualPercentageRate** | **String** | | [optional] |
+|**time** | **Long** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/GetRwusdRedemptionHistoryResponse.md b/clients/simple-earn/docs/GetRwusdRedemptionHistoryResponse.md
new file mode 100644
index 000000000..7996ddf7c
--- /dev/null
+++ b/clients/simple-earn/docs/GetRwusdRedemptionHistoryResponse.md
@@ -0,0 +1,14 @@
+
+
+# GetRwusdRedemptionHistoryResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**rows** | [**List<GetRwusdRedemptionHistoryResponseRowsInner>**](GetRwusdRedemptionHistoryResponseRowsInner.md) | | [optional] |
+|**total** | **Long** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/GetRwusdRedemptionHistoryResponseRowsInner.md b/clients/simple-earn/docs/GetRwusdRedemptionHistoryResponseRowsInner.md
new file mode 100644
index 000000000..5a1a547ea
--- /dev/null
+++ b/clients/simple-earn/docs/GetRwusdRedemptionHistoryResponseRowsInner.md
@@ -0,0 +1,20 @@
+
+
+# GetRwusdRedemptionHistoryResponseRowsInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**time** | **Long** | | [optional] |
+|**asset** | **String** | | [optional] |
+|**amount** | **String** | | [optional] |
+|**receiveAsset** | **String** | | [optional] |
+|**receiveAmount** | **String** | | [optional] |
+|**fee** | **String** | | [optional] |
+|**arrivalTime** | **Long** | | [optional] |
+|**status** | **String** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/GetRwusdRewardsHistoryResponse.md b/clients/simple-earn/docs/GetRwusdRewardsHistoryResponse.md
new file mode 100644
index 000000000..3e689bb31
--- /dev/null
+++ b/clients/simple-earn/docs/GetRwusdRewardsHistoryResponse.md
@@ -0,0 +1,14 @@
+
+
+# GetRwusdRewardsHistoryResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**rows** | [**List<GetRwusdRewardsHistoryResponseRowsInner>**](GetRwusdRewardsHistoryResponseRowsInner.md) | | [optional] |
+|**total** | **Long** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/GetRwusdRewardsHistoryResponseRowsInner.md b/clients/simple-earn/docs/GetRwusdRewardsHistoryResponseRowsInner.md
new file mode 100644
index 000000000..768f2c70b
--- /dev/null
+++ b/clients/simple-earn/docs/GetRwusdRewardsHistoryResponseRowsInner.md
@@ -0,0 +1,16 @@
+
+
+# GetRwusdRewardsHistoryResponseRowsInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**time** | **Long** | | [optional] |
+|**rewardsAmount** | **String** | | [optional] |
+|**rwusdPosition** | **String** | | [optional] |
+|**annualPercentageRate** | **String** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/GetRwusdSubscriptionHistoryResponse.md b/clients/simple-earn/docs/GetRwusdSubscriptionHistoryResponse.md
new file mode 100644
index 000000000..65cd6092f
--- /dev/null
+++ b/clients/simple-earn/docs/GetRwusdSubscriptionHistoryResponse.md
@@ -0,0 +1,14 @@
+
+
+# GetRwusdSubscriptionHistoryResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**rows** | [**List<GetRwusdSubscriptionHistoryResponseRowsInner>**](GetRwusdSubscriptionHistoryResponseRowsInner.md) | | [optional] |
+|**total** | **Long** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/GetRwusdSubscriptionHistoryResponseRowsInner.md b/clients/simple-earn/docs/GetRwusdSubscriptionHistoryResponseRowsInner.md
new file mode 100644
index 000000000..9e6cc8fd2
--- /dev/null
+++ b/clients/simple-earn/docs/GetRwusdSubscriptionHistoryResponseRowsInner.md
@@ -0,0 +1,18 @@
+
+
+# GetRwusdSubscriptionHistoryResponseRowsInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**time** | **Long** | | [optional] |
+|**asset** | **String** | | [optional] |
+|**amount** | **String** | | [optional] |
+|**receiveAsset** | **String** | | [optional] |
+|**receiveAmount** | **String** | | [optional] |
+|**status** | **String** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/GetSimpleEarnFlexibleProductListResponseRowsInner.md b/clients/simple-earn/docs/GetSimpleEarnFlexibleProductListResponseRowsInner.md
index 7533d741a..a75364f07 100644
--- a/clients/simple-earn/docs/GetSimpleEarnFlexibleProductListResponseRowsInner.md
+++ b/clients/simple-earn/docs/GetSimpleEarnFlexibleProductListResponseRowsInner.md
@@ -17,7 +17,7 @@
|**hot** | **Boolean** | | [optional] |
|**minPurchaseAmount** | **String** | | [optional] |
|**productId** | **String** | | [optional] |
-|**subscriptionStartTime** | **String** | | [optional] |
+|**subscriptionStartTime** | **Long** | | [optional] |
|**status** | **String** | | [optional] |
diff --git a/clients/simple-earn/docs/GetSimpleEarnLockedProductListResponseRowsInnerDetail.md b/clients/simple-earn/docs/GetSimpleEarnLockedProductListResponseRowsInnerDetail.md
index f6e31ea5d..115ad6c04 100644
--- a/clients/simple-earn/docs/GetSimpleEarnLockedProductListResponseRowsInnerDetail.md
+++ b/clients/simple-earn/docs/GetSimpleEarnLockedProductListResponseRowsInnerDetail.md
@@ -14,12 +14,12 @@
|**isSoldOut** | **Boolean** | | [optional] |
|**apr** | **String** | | [optional] |
|**status** | **String** | | [optional] |
-|**subscriptionStartTime** | **String** | | [optional] |
+|**subscriptionStartTime** | **Long** | | [optional] |
|**extraRewardAsset** | **String** | | [optional] |
|**extraRewardAPR** | **String** | | [optional] |
|**boostRewardAsset** | **String** | | [optional] |
|**boostApr** | **String** | | [optional] |
-|**boostEndTime** | **String** | | [optional] |
+|**boostEndTime** | **Long** | | [optional] |
diff --git a/clients/simple-earn/docs/HistoryApi.md b/clients/simple-earn/docs/HistoryApi.md
deleted file mode 100644
index cf308db66..000000000
--- a/clients/simple-earn/docs/HistoryApi.md
+++ /dev/null
@@ -1,614 +0,0 @@
-# HistoryApi
-
-All URIs are relative to *https://api.binance.com*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**getCollateralRecord**](HistoryApi.md#getCollateralRecord) | **GET** /sapi/v1/simple-earn/flexible/history/collateralRecord | Get Collateral Record(USER_DATA) |
-| [**getFlexibleRedemptionRecord**](HistoryApi.md#getFlexibleRedemptionRecord) | **GET** /sapi/v1/simple-earn/flexible/history/redemptionRecord | Get Flexible Redemption Record(USER_DATA) |
-| [**getFlexibleRewardsHistory**](HistoryApi.md#getFlexibleRewardsHistory) | **GET** /sapi/v1/simple-earn/flexible/history/rewardsRecord | Get Flexible Rewards History(USER_DATA) |
-| [**getFlexibleSubscriptionRecord**](HistoryApi.md#getFlexibleSubscriptionRecord) | **GET** /sapi/v1/simple-earn/flexible/history/subscriptionRecord | Get Flexible Subscription Record(USER_DATA) |
-| [**getLockedRedemptionRecord**](HistoryApi.md#getLockedRedemptionRecord) | **GET** /sapi/v1/simple-earn/locked/history/redemptionRecord | Get Locked Redemption Record(USER_DATA) |
-| [**getLockedRewardsHistory**](HistoryApi.md#getLockedRewardsHistory) | **GET** /sapi/v1/simple-earn/locked/history/rewardsRecord | Get Locked Rewards History(USER_DATA) |
-| [**getLockedSubscriptionRecord**](HistoryApi.md#getLockedSubscriptionRecord) | **GET** /sapi/v1/simple-earn/locked/history/subscriptionRecord | Get Locked Subscription Record(USER_DATA) |
-| [**getRateHistory**](HistoryApi.md#getRateHistory) | **GET** /sapi/v1/simple-earn/flexible/history/rateHistory | Get Rate History(USER_DATA) |
-
-
-
-# **getCollateralRecord**
-> GetCollateralRecordResponse getCollateralRecord(productId, startTime, endTime, current, size, recvWindow)
-
-Get Collateral Record(USER_DATA)
-
-Get Collateral Record * The time between `startTime` and `endTime` cannot be longer than 30 days. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 1
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.HistoryApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- HistoryApi apiInstance = new HistoryApi(defaultClient);
- String productId = "productId_example"; // String |
- Long startTime = 56L; // Long |
- Long endTime = 56L; // Long |
- Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
- Long size = 56L; // Long | Default:10, Max:100
- Long recvWindow = 56L; // Long |
- try {
- GetCollateralRecordResponse result = apiInstance.getCollateralRecord(productId, startTime, endTime, current, size, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling HistoryApi#getCollateralRecord");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **productId** | **String**| | [optional] |
-| **startTime** | **Long**| | [optional] |
-| **endTime** | **Long**| | [optional] |
-| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
-| **size** | **Long**| Default:10, Max:100 | [optional] |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetCollateralRecordResponse**](GetCollateralRecordResponse.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** | Get Collateral Record | - |
-
-
-# **getFlexibleRedemptionRecord**
-> GetFlexibleRedemptionRecordResponse getFlexibleRedemptionRecord(productId, redeemId, asset, startTime, endTime, current, size, recvWindow)
-
-Get Flexible Redemption Record(USER_DATA)
-
-Get Flexible Redemption Record * The time between `startTime` and `endTime` cannot be longer than 3 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.HistoryApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- HistoryApi apiInstance = new HistoryApi(defaultClient);
- String productId = "productId_example"; // String |
- String redeemId = "redeemId_example"; // String |
- String asset = "asset_example"; // String |
- Long startTime = 56L; // Long |
- Long endTime = 56L; // Long |
- Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
- Long size = 56L; // Long | Default:10, Max:100
- Long recvWindow = 56L; // Long |
- try {
- GetFlexibleRedemptionRecordResponse result = apiInstance.getFlexibleRedemptionRecord(productId, redeemId, asset, startTime, endTime, current, size, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling HistoryApi#getFlexibleRedemptionRecord");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **productId** | **String**| | [optional] |
-| **redeemId** | **String**| | [optional] |
-| **asset** | **String**| | [optional] |
-| **startTime** | **Long**| | [optional] |
-| **endTime** | **Long**| | [optional] |
-| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
-| **size** | **Long**| Default:10, Max:100 | [optional] |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetFlexibleRedemptionRecordResponse**](GetFlexibleRedemptionRecordResponse.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** | Get Flexible Redemption Record | - |
-
-
-# **getFlexibleRewardsHistory**
-> GetFlexibleRewardsHistoryResponse getFlexibleRewardsHistory(type, productId, asset, startTime, endTime, current, size, recvWindow)
-
-Get Flexible Rewards History(USER_DATA)
-
-Get Flexible Rewards History * The time between `startTime` and `endTime` cannot be longer than 3 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.HistoryApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- HistoryApi apiInstance = new HistoryApi(defaultClient);
- String type = "type_example"; // String | `Bonus` - Bonus tiered APR, `REALTIME` Real-time APR, `REWARDS` Historical rewards,`ALL`(set to default)
- String productId = "productId_example"; // String |
- String asset = "asset_example"; // String |
- Long startTime = 56L; // Long |
- Long endTime = 56L; // Long |
- Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
- Long size = 56L; // Long | Default:10, Max:100
- Long recvWindow = 56L; // Long |
- try {
- GetFlexibleRewardsHistoryResponse result = apiInstance.getFlexibleRewardsHistory(type, productId, asset, startTime, endTime, current, size, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling HistoryApi#getFlexibleRewardsHistory");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **type** | **String**| `Bonus` - Bonus tiered APR, `REALTIME` Real-time APR, `REWARDS` Historical rewards,`ALL`(set to default) | |
-| **productId** | **String**| | [optional] |
-| **asset** | **String**| | [optional] |
-| **startTime** | **Long**| | [optional] |
-| **endTime** | **Long**| | [optional] |
-| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
-| **size** | **Long**| Default:10, Max:100 | [optional] |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetFlexibleRewardsHistoryResponse**](GetFlexibleRewardsHistoryResponse.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** | Get Flexible Rewards History | - |
-
-
-# **getFlexibleSubscriptionRecord**
-> GetFlexibleSubscriptionRecordResponse getFlexibleSubscriptionRecord(productId, purchaseId, asset, startTime, endTime, current, size, recvWindow)
-
-Get Flexible Subscription Record(USER_DATA)
-
-Get Flexible Subscription Record * The time between `startTime` and `endTime` cannot be longer than 3 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.HistoryApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- HistoryApi apiInstance = new HistoryApi(defaultClient);
- String productId = "productId_example"; // String |
- String purchaseId = "purchaseId_example"; // String |
- String asset = "asset_example"; // String |
- Long startTime = 56L; // Long |
- Long endTime = 56L; // Long |
- Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
- Long size = 56L; // Long | Default:10, Max:100
- Long recvWindow = 56L; // Long |
- try {
- GetFlexibleSubscriptionRecordResponse result = apiInstance.getFlexibleSubscriptionRecord(productId, purchaseId, asset, startTime, endTime, current, size, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling HistoryApi#getFlexibleSubscriptionRecord");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **productId** | **String**| | [optional] |
-| **purchaseId** | **String**| | [optional] |
-| **asset** | **String**| | [optional] |
-| **startTime** | **Long**| | [optional] |
-| **endTime** | **Long**| | [optional] |
-| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
-| **size** | **Long**| Default:10, Max:100 | [optional] |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetFlexibleSubscriptionRecordResponse**](GetFlexibleSubscriptionRecordResponse.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** | Get Flexible Subscription Record | - |
-
-
-# **getLockedRedemptionRecord**
-> GetLockedRedemptionRecordResponse getLockedRedemptionRecord(positionId, redeemId, asset, startTime, endTime, current, size, recvWindow)
-
-Get Locked Redemption Record(USER_DATA)
-
-Get Locked Redemption Record * The time between `startTime` and `endTime` cannot be longer than 3 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.HistoryApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- HistoryApi apiInstance = new HistoryApi(defaultClient);
- String positionId = "positionId_example"; // String |
- String redeemId = "redeemId_example"; // String |
- String asset = "asset_example"; // String |
- Long startTime = 56L; // Long |
- Long endTime = 56L; // Long |
- Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
- Long size = 56L; // Long | Default:10, Max:100
- Long recvWindow = 56L; // Long |
- try {
- GetLockedRedemptionRecordResponse result = apiInstance.getLockedRedemptionRecord(positionId, redeemId, asset, startTime, endTime, current, size, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling HistoryApi#getLockedRedemptionRecord");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **positionId** | **String**| | [optional] |
-| **redeemId** | **String**| | [optional] |
-| **asset** | **String**| | [optional] |
-| **startTime** | **Long**| | [optional] |
-| **endTime** | **Long**| | [optional] |
-| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
-| **size** | **Long**| Default:10, Max:100 | [optional] |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetLockedRedemptionRecordResponse**](GetLockedRedemptionRecordResponse.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** | Get Locked Redemption Record | - |
-
-
-# **getLockedRewardsHistory**
-> GetLockedRewardsHistoryResponse getLockedRewardsHistory(positionId, asset, startTime, endTime, current, size, recvWindow)
-
-Get Locked Rewards History(USER_DATA)
-
-Get Locked Rewards History * The time between `startTime` and `endTime` cannot be longer than 3 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.HistoryApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- HistoryApi apiInstance = new HistoryApi(defaultClient);
- String positionId = "positionId_example"; // String |
- String asset = "asset_example"; // String |
- Long startTime = 56L; // Long |
- Long endTime = 56L; // Long |
- Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
- Long size = 56L; // Long | Default:10, Max:100
- Long recvWindow = 56L; // Long |
- try {
- GetLockedRewardsHistoryResponse result = apiInstance.getLockedRewardsHistory(positionId, asset, startTime, endTime, current, size, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling HistoryApi#getLockedRewardsHistory");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **positionId** | **String**| | [optional] |
-| **asset** | **String**| | [optional] |
-| **startTime** | **Long**| | [optional] |
-| **endTime** | **Long**| | [optional] |
-| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
-| **size** | **Long**| Default:10, Max:100 | [optional] |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetLockedRewardsHistoryResponse**](GetLockedRewardsHistoryResponse.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** | Get Locked Rewards History | - |
-
-
-# **getLockedSubscriptionRecord**
-> GetLockedSubscriptionRecordResponse getLockedSubscriptionRecord(purchaseId, asset, startTime, endTime, current, size, recvWindow)
-
-Get Locked Subscription Record(USER_DATA)
-
-Get Locked Subscription Record * The time between `startTime` and `endTime` cannot be longer than 3 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.HistoryApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- HistoryApi apiInstance = new HistoryApi(defaultClient);
- String purchaseId = "purchaseId_example"; // String |
- String asset = "asset_example"; // String |
- Long startTime = 56L; // Long |
- Long endTime = 56L; // Long |
- Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
- Long size = 56L; // Long | Default:10, Max:100
- Long recvWindow = 56L; // Long |
- try {
- GetLockedSubscriptionRecordResponse result = apiInstance.getLockedSubscriptionRecord(purchaseId, asset, startTime, endTime, current, size, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling HistoryApi#getLockedSubscriptionRecord");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **purchaseId** | **String**| | [optional] |
-| **asset** | **String**| | [optional] |
-| **startTime** | **Long**| | [optional] |
-| **endTime** | **Long**| | [optional] |
-| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
-| **size** | **Long**| Default:10, Max:100 | [optional] |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetLockedSubscriptionRecordResponse**](GetLockedSubscriptionRecordResponse.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** | Get Locked Subscription Record | - |
-
-
-# **getRateHistory**
-> GetRateHistoryResponse getRateHistory(productId, aprPeriod, startTime, endTime, current, size, recvWindow)
-
-Get Rate History(USER_DATA)
-
-Get Rate History * The time between startTime and endTime cannot be longer than 1 year. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned. * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned. Weight: 150
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.simple_earn.ApiClient;
-import com.binance.connector.client.simple_earn.ApiException;
-import com.binance.connector.client.simple_earn.Configuration;
-import com.binance.connector.client.simple_earn.models.*;
-import com.binance.connector.client.simple_earn.rest.api.HistoryApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.binance.com");
-
- HistoryApi apiInstance = new HistoryApi(defaultClient);
- String productId = "productId_example"; // String |
- String aprPeriod = "aprPeriod_example"; // String | \"DAY\",\"YEAR\",default\"DAY\"
- Long startTime = 56L; // Long |
- Long endTime = 56L; // Long |
- Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
- Long size = 56L; // Long | Default:10, Max:100
- Long recvWindow = 56L; // Long |
- try {
- GetRateHistoryResponse result = apiInstance.getRateHistory(productId, aprPeriod, startTime, endTime, current, size, recvWindow);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling HistoryApi#getRateHistory");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **productId** | **String**| | |
-| **aprPeriod** | **String**| \"DAY\",\"YEAR\",default\"DAY\" | [optional] |
-| **startTime** | **Long**| | [optional] |
-| **endTime** | **Long**| | [optional] |
-| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
-| **size** | **Long**| Default:10, Max:100 | [optional] |
-| **recvWindow** | **Long**| | [optional] |
-
-### Return type
-
-[**GetRateHistoryResponse**](GetRateHistoryResponse.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** | Get Rate History | - |
-
diff --git a/clients/crypto-loan/docs/CryptoLoanAdjustLtvRequest.md b/clients/simple-earn/docs/RedeemRwusdRequest.md
similarity index 67%
rename from clients/crypto-loan/docs/CryptoLoanAdjustLtvRequest.md
rename to clients/simple-earn/docs/RedeemRwusdRequest.md
index 620e26a5a..fe2ee820e 100644
--- a/clients/crypto-loan/docs/CryptoLoanAdjustLtvRequest.md
+++ b/clients/simple-earn/docs/RedeemRwusdRequest.md
@@ -1,15 +1,14 @@
-# CryptoLoanAdjustLtvRequest
+# RedeemRwusdRequest
## Properties
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-|**orderId** | **Long** | | |
|**amount** | **Double** | | |
-|**direction** | **String** | | |
+|**type** | **String** | | |
|**recvWindow** | **Long** | | [optional] |
diff --git a/clients/simple-earn/docs/RedeemRwusdResponse.md b/clients/simple-earn/docs/RedeemRwusdResponse.md
new file mode 100644
index 000000000..da6307f51
--- /dev/null
+++ b/clients/simple-earn/docs/RedeemRwusdResponse.md
@@ -0,0 +1,16 @@
+
+
+# RedeemRwusdResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**success** | **Boolean** | | [optional] |
+|**receiveAmount** | **String** | | [optional] |
+|**fee** | **String** | | [optional] |
+|**arrivalTime** | **Long** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/RwusdApi.md b/clients/simple-earn/docs/RwusdApi.md
new file mode 100644
index 000000000..5bdb3bffd
--- /dev/null
+++ b/clients/simple-earn/docs/RwusdApi.md
@@ -0,0 +1,546 @@
+# RwusdApi
+
+All URIs are relative to *https://api.binance.com*
+
+| Method | HTTP request | Description |
+|------------- | ------------- | -------------|
+| [**getRwusdAccount**](RwusdApi.md#getRwusdAccount) | **GET** /sapi/v1/rwusd/account | Get RWUSD Account (USER_DATA) |
+| [**getRwusdQuotaDetails**](RwusdApi.md#getRwusdQuotaDetails) | **GET** /sapi/v1/rwusd/quota | Get RWUSD Quota Details (USER_DATA) |
+| [**getRwusdRateHistory**](RwusdApi.md#getRwusdRateHistory) | **GET** /sapi/v1/rwusd/history/rateHistory | Get RWUSD Rate History (USER_DATA) |
+| [**getRwusdRedemptionHistory**](RwusdApi.md#getRwusdRedemptionHistory) | **GET** /sapi/v1/rwusd/history/redemptionHistory | Get RWUSD Redemption History (USER_DATA) |
+| [**getRwusdRewardsHistory**](RwusdApi.md#getRwusdRewardsHistory) | **GET** /sapi/v1/rwusd/history/rewardsHistory | Get RWUSD Rewards History (USER_DATA) |
+| [**getRwusdSubscriptionHistory**](RwusdApi.md#getRwusdSubscriptionHistory) | **GET** /sapi/v1/rwusd/history/subscriptionHistory | Get RWUSD subscription history(USER_DATA) |
+| [**redeemRwusd**](RwusdApi.md#redeemRwusd) | **POST** /sapi/v1/rwusd/redeem | Redeem RWUSD(TRADE) |
+| [**subscribeRwusd**](RwusdApi.md#subscribeRwusd) | **POST** /sapi/v1/rwusd/subscribe | Subscribe RWUSD(TRADE) |
+
+
+
+# **getRwusdAccount**
+> GetRwusdAccountResponse getRwusdAccount(recvWindow)
+
+Get RWUSD Account (USER_DATA)
+
+Get RWUSD account information. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.RwusdApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ RwusdApi apiInstance = new RwusdApi(defaultClient);
+ Long recvWindow = 56L; // Long |
+ try {
+ GetRwusdAccountResponse result = apiInstance.getRwusdAccount(recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling RwusdApi#getRwusdAccount");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetRwusdAccountResponse**](GetRwusdAccountResponse.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** | Get RWUSD Account | - |
+
+
+# **getRwusdQuotaDetails**
+> GetRwusdQuotaDetailsResponse getRwusdQuotaDetails(recvWindow)
+
+Get RWUSD Quota Details (USER_DATA)
+
+Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.RwusdApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ RwusdApi apiInstance = new RwusdApi(defaultClient);
+ Long recvWindow = 56L; // Long |
+ try {
+ GetRwusdQuotaDetailsResponse result = apiInstance.getRwusdQuotaDetails(recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling RwusdApi#getRwusdQuotaDetails");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetRwusdQuotaDetailsResponse**](GetRwusdQuotaDetailsResponse.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** | Get RWUSD Quota Details | - |
+
+
+# **getRwusdRateHistory**
+> GetRwusdRateHistoryResponse getRwusdRateHistory(startTime, endTime, current, size, recvWindow)
+
+Get RWUSD Rate History (USER_DATA)
+
+Get RWUSD rate history sorted by descending order. * The time between `startTime` and `endTime` cannot be longer than 6 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned. * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.RwusdApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ RwusdApi apiInstance = new RwusdApi(defaultClient);
+ Long startTime = 56L; // Long |
+ Long endTime = 56L; // Long |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetRwusdRateHistoryResponse result = apiInstance.getRwusdRateHistory(startTime, endTime, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling RwusdApi#getRwusdRateHistory");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **startTime** | **Long**| | [optional] |
+| **endTime** | **Long**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetRwusdRateHistoryResponse**](GetRwusdRateHistoryResponse.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** | Get RWUSD Rate History | - |
+
+
+# **getRwusdRedemptionHistory**
+> GetRwusdRedemptionHistoryResponse getRwusdRedemptionHistory(startTime, endTime, current, size, recvWindow)
+
+Get RWUSD Redemption History (USER_DATA)
+
+Get RWUSD redemption history. * The time between `startTime` and `endTime` cannot be longer than 6 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned. * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.RwusdApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ RwusdApi apiInstance = new RwusdApi(defaultClient);
+ Long startTime = 56L; // Long |
+ Long endTime = 56L; // Long |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetRwusdRedemptionHistoryResponse result = apiInstance.getRwusdRedemptionHistory(startTime, endTime, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling RwusdApi#getRwusdRedemptionHistory");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **startTime** | **Long**| | [optional] |
+| **endTime** | **Long**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetRwusdRedemptionHistoryResponse**](GetRwusdRedemptionHistoryResponse.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** | Get RWUSD Redemption History | - |
+
+
+# **getRwusdRewardsHistory**
+> GetRwusdRewardsHistoryResponse getRwusdRewardsHistory(startTime, endTime, current, size, recvWindow)
+
+Get RWUSD Rewards History (USER_DATA)
+
+Get RWUSD rewards history. * The time between `startTime` and `endTime` cannot be longer than 6 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned. * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.RwusdApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ RwusdApi apiInstance = new RwusdApi(defaultClient);
+ Long startTime = 56L; // Long |
+ Long endTime = 56L; // Long |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetRwusdRewardsHistoryResponse result = apiInstance.getRwusdRewardsHistory(startTime, endTime, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling RwusdApi#getRwusdRewardsHistory");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **startTime** | **Long**| | [optional] |
+| **endTime** | **Long**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetRwusdRewardsHistoryResponse**](GetRwusdRewardsHistoryResponse.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** | Get RWUSD Rewards History | - |
+
+
+# **getRwusdSubscriptionHistory**
+> GetRwusdSubscriptionHistoryResponse getRwusdSubscriptionHistory(asset, startTime, endTime, current, size, recvWindow)
+
+Get RWUSD subscription history(USER_DATA)
+
+Get RWUSD subscription history * The time between `startTime` and `endTime` cannot be longer than 6 months. * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned. * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned. * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.RwusdApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ RwusdApi apiInstance = new RwusdApi(defaultClient);
+ String asset = "asset_example"; // String | USDC or USDT
+ Long startTime = 56L; // Long |
+ Long endTime = 56L; // Long |
+ Long current = 56L; // Long | Currently querying the page. Start from 1. Default:1
+ Long size = 56L; // Long | Default:10, Max:100
+ Long recvWindow = 56L; // Long |
+ try {
+ GetRwusdSubscriptionHistoryResponse result = apiInstance.getRwusdSubscriptionHistory(asset, startTime, endTime, current, size, recvWindow);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling RwusdApi#getRwusdSubscriptionHistory");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **asset** | **String**| USDC or USDT | [optional] |
+| **startTime** | **Long**| | [optional] |
+| **endTime** | **Long**| | [optional] |
+| **current** | **Long**| Currently querying the page. Start from 1. Default:1 | [optional] |
+| **size** | **Long**| Default:10, Max:100 | [optional] |
+| **recvWindow** | **Long**| | [optional] |
+
+### Return type
+
+[**GetRwusdSubscriptionHistoryResponse**](GetRwusdSubscriptionHistoryResponse.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** | Get RWUSD subscription history | - |
+
+
+# **redeemRwusd**
+> RedeemRwusdResponse redeemRwusd(redeemRwusdRequest)
+
+Redeem RWUSD(TRADE)
+
+Redeem RWUSD to USDC * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.RwusdApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ RwusdApi apiInstance = new RwusdApi(defaultClient);
+ RedeemRwusdRequest redeemRwusdRequest = new RedeemRwusdRequest(); // RedeemRwusdRequest |
+ try {
+ RedeemRwusdResponse result = apiInstance.redeemRwusd(redeemRwusdRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling RwusdApi#redeemRwusd");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **redeemRwusdRequest** | [**RedeemRwusdRequest**](RedeemRwusdRequest.md)| | |
+
+### Return type
+
+[**RedeemRwusdResponse**](RedeemRwusdResponse.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** | Redeem RWUSD | - |
+
+
+# **subscribeRwusd**
+> SubscribeRwusdResponse subscribeRwusd(subscribeRwusdRequest)
+
+Subscribe RWUSD(TRADE)
+
+Subscribe RWUSD * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint. Weight: 150
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.simple_earn.ApiClient;
+import com.binance.connector.client.simple_earn.ApiException;
+import com.binance.connector.client.simple_earn.Configuration;
+import com.binance.connector.client.simple_earn.models.*;
+import com.binance.connector.client.simple_earn.rest.api.RwusdApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.binance.com");
+
+ RwusdApi apiInstance = new RwusdApi(defaultClient);
+ SubscribeRwusdRequest subscribeRwusdRequest = new SubscribeRwusdRequest(); // SubscribeRwusdRequest |
+ try {
+ SubscribeRwusdResponse result = apiInstance.subscribeRwusd(subscribeRwusdRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling RwusdApi#subscribeRwusd");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **subscribeRwusdRequest** | [**SubscribeRwusdRequest**](SubscribeRwusdRequest.md)| | |
+
+### Return type
+
+[**SubscribeRwusdResponse**](SubscribeRwusdResponse.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** | Subscribe RWUSD | - |
+
diff --git a/clients/crypto-loan/docs/CryptoLoanCustomizeMarginCallRequest.md b/clients/simple-earn/docs/SubscribeRwusdRequest.md
similarity index 65%
rename from clients/crypto-loan/docs/CryptoLoanCustomizeMarginCallRequest.md
rename to clients/simple-earn/docs/SubscribeRwusdRequest.md
index 4016a4bc6..e742fc7ea 100644
--- a/clients/crypto-loan/docs/CryptoLoanCustomizeMarginCallRequest.md
+++ b/clients/simple-earn/docs/SubscribeRwusdRequest.md
@@ -1,13 +1,14 @@
-# CryptoLoanCustomizeMarginCallRequest
+# SubscribeRwusdRequest
## Properties
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-|**marginCall** | **Double** | | |
+|**asset** | **String** | | |
+|**amount** | **Double** | | |
|**recvWindow** | **Long** | | [optional] |
diff --git a/clients/simple-earn/docs/SubscribeRwusdResponse.md b/clients/simple-earn/docs/SubscribeRwusdResponse.md
new file mode 100644
index 000000000..62ff7ba8a
--- /dev/null
+++ b/clients/simple-earn/docs/SubscribeRwusdResponse.md
@@ -0,0 +1,14 @@
+
+
+# SubscribeRwusdResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**success** | **Boolean** | | [optional] |
+|**rwusdAmount** | **String** | | [optional] |
+
+
+
diff --git a/clients/simple-earn/docs/rest-api/migration-guide.md b/clients/simple-earn/docs/rest-api/migration-guide.md
index c028e9a19..0357605ee 100644
--- a/clients/simple-earn/docs/rest-api/migration-guide.md
+++ b/clients/simple-earn/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-simple-earn
- 2.1.0
+ 3.0.0
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-simple-earn
- 2.1.0
+ 3.0.0
```
diff --git a/clients/simple-earn/pom.xml b/clients/simple-earn/pom.xml
index 5d77eb5bc..214c28f6e 100644
--- a/clients/simple-earn/pom.xml
+++ b/clients/simple-earn/pom.xml
@@ -5,7 +5,7 @@
4.0.0
binance-simple-earn
simple-earn
- 2.1.1
+ 3.0.0
jar
@@ -31,7 +31,7 @@
io.github.binance
binance-common
- 2.0.0
+ 2.0.1
\ No newline at end of file
diff --git a/clients/simple-earn/src/main/java/com/binance/connector/client/simple_earn/rest/JSON.java b/clients/simple-earn/src/main/java/com/binance/connector/client/simple_earn/rest/JSON.java
index 1669c7308..580082eea 100644
--- a/clients/simple-earn/src/main/java/com/binance/connector/client/simple_earn/rest/JSON.java
+++ b/clients/simple-earn/src/main/java/com/binance/connector/client/simple_earn/rest/JSON.java
@@ -187,6 +187,47 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.simple_earn.rest.model
.GetRateHistoryResponseRowsInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model.GetRwusdAccountResponse
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model.GetRwusdQuotaDetailsResponse
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model
+ .GetRwusdQuotaDetailsResponseFastRedemptionQuota
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model
+ .GetRwusdQuotaDetailsResponseStandardRedemptionQuota
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model
+ .GetRwusdQuotaDetailsResponseSubscriptionQuota.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model.GetRwusdRateHistoryResponse
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model
+ .GetRwusdRateHistoryResponseRowsInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model
+ .GetRwusdRedemptionHistoryResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model
+ .GetRwusdRedemptionHistoryResponseRowsInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model
+ .GetRwusdRewardsHistoryResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model
+ .GetRwusdRewardsHistoryResponseRowsInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model
+ .GetRwusdSubscriptionHistoryResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model
+ .GetRwusdSubscriptionHistoryResponseRowsInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.simple_earn.rest.model
.GetSimpleEarnFlexibleProductListResponse.CustomTypeAdapterFactory());
@@ -221,6 +262,12 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.simple_earn.rest.model.RedeemLockedProductResponse
.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model.RedeemRwusdRequest
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model.RedeemRwusdResponse
+ .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.simple_earn.rest.model
.SetFlexibleAutoSubscribeRequest.CustomTypeAdapterFactory());
@@ -254,6 +301,12 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.simple_earn.rest.model
.SubscribeLockedProductResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model.SubscribeRwusdRequest
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.simple_earn.rest.model.SubscribeRwusdResponse
+ .CustomTypeAdapterFactory());
gson = gsonBuilder.create();
}
diff --git a/clients/simple-earn/src/main/java/com/binance/connector/client/simple_earn/rest/api/EarnApi.java b/clients/simple-earn/src/main/java/com/binance/connector/client/simple_earn/rest/api/EarnApi.java
deleted file mode 100644
index 1a83da0a1..000000000
--- a/clients/simple-earn/src/main/java/com/binance/connector/client/simple_earn/rest/api/EarnApi.java
+++ /dev/null
@@ -1,1504 +0,0 @@
-/*
- * Binance Simple Earn REST API
- * OpenAPI Specification for the Binance Simple Earn REST API
- *
- * The version of the OpenAPI document: 1.0.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.binance.connector.client.simple_earn.rest.api;
-
-import com.binance.connector.client.common.ApiClient;
-import com.binance.connector.client.common.ApiException;
-import com.binance.connector.client.common.ApiResponse;
-import com.binance.connector.client.common.DecimalFormatter;
-import com.binance.connector.client.common.Pair;
-import com.binance.connector.client.common.SystemUtil;
-import com.binance.connector.client.common.configuration.ClientConfiguration;
-import com.binance.connector.client.common.exception.ConstraintViolationException;
-import com.binance.connector.client.simple_earn.rest.model.GetFlexibleSubscriptionPreviewResponse;
-import com.binance.connector.client.simple_earn.rest.model.GetLockedSubscriptionPreviewResponse;
-import com.binance.connector.client.simple_earn.rest.model.RedeemFlexibleProductRequest;
-import com.binance.connector.client.simple_earn.rest.model.RedeemFlexibleProductResponse;
-import com.binance.connector.client.simple_earn.rest.model.RedeemLockedProductRequest;
-import com.binance.connector.client.simple_earn.rest.model.RedeemLockedProductResponse;
-import com.binance.connector.client.simple_earn.rest.model.SetFlexibleAutoSubscribeRequest;
-import com.binance.connector.client.simple_earn.rest.model.SetFlexibleAutoSubscribeResponse;
-import com.binance.connector.client.simple_earn.rest.model.SetLockedAutoSubscribeRequest;
-import com.binance.connector.client.simple_earn.rest.model.SetLockedAutoSubscribeResponse;
-import com.binance.connector.client.simple_earn.rest.model.SetLockedProductRedeemOptionRequest;
-import com.binance.connector.client.simple_earn.rest.model.SetLockedProductRedeemOptionResponse;
-import com.binance.connector.client.simple_earn.rest.model.SubscribeFlexibleProductRequest;
-import com.binance.connector.client.simple_earn.rest.model.SubscribeFlexibleProductResponse;
-import com.binance.connector.client.simple_earn.rest.model.SubscribeLockedProductRequest;
-import com.binance.connector.client.simple_earn.rest.model.SubscribeLockedProductResponse;
-import com.google.gson.reflect.TypeToken;
-import jakarta.validation.ConstraintViolation;
-import jakarta.validation.Valid;
-import jakarta.validation.Validation;
-import jakarta.validation.Validator;
-import jakarta.validation.constraints.*;
-import jakarta.validation.executable.ExecutableValidator;
-import java.lang.reflect.Method;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator;
-
-public class EarnApi {
- private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
-
- private static final String USER_AGENT =
- String.format(
- "binance-simple-earn/2.1.1 (Java/%s; %s; %s)",
- SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
- private static final boolean HAS_TIME_UNIT = false;
-
- public EarnApi(ClientConfiguration clientConfiguration) {
- this(new ApiClient(clientConfiguration));
- }
-
- public EarnApi(ApiClient apiClient) {
- apiClient.setUserAgent(USER_AGENT);
- this.localVarApiClient = apiClient;
- }
-
- public ApiClient getApiClient() {
- return localVarApiClient;
- }
-
- public void setApiClient(ApiClient apiClient) {
- this.localVarApiClient = apiClient;
- }
-
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
- /**
- * Build call for getFlexibleSubscriptionPreview
- *
- * @param productId (required)
- * @param amount (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 | Get Flexible Subscription Preview | - |
- *
- *
- * @see Get
- * Flexible Subscription Preview(USER_DATA) Documentation
- */
- private okhttp3.Call getFlexibleSubscriptionPreviewCall(
- String productId, Double amount, 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 = "/sapi/v1/simple-earn/flexible/subscriptionPreview";
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (productId != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("productId", productId));
- }
-
- if (amount != null) {
- localVarQueryParams.addAll(
- localVarApiClient.parameterToPair(
- "amount", DecimalFormatter.getFormatter().format(amount)));
- }
-
- 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,
- "GET",
- localVarQueryParams,
- localVarCollectionQueryParams,
- localVarPostBody,
- localVarHeaderParams,
- localVarCookieParams,
- localVarFormParams,
- localVarAuthNames);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call getFlexibleSubscriptionPreviewValidateBeforeCall(
- String productId, Double amount, Long recvWindow) throws ApiException {
- try {
- Validator validator =
- Validation.byDefaultProvider()
- .configure()
- .messageInterpolator(new ParameterMessageInterpolator())
- .buildValidatorFactory()
- .getValidator();
- ExecutableValidator executableValidator = validator.forExecutables();
-
- Object[] parameterValues = {productId, amount, recvWindow};
- Method method =
- this.getClass()
- .getMethod(
- "getFlexibleSubscriptionPreview",
- String.class,
- Double.class,
- Long.class);
- Set> violations =
- executableValidator.validateParameters(this, method, parameterValues);
-
- if (violations.size() == 0) {
- return getFlexibleSubscriptionPreviewCall(productId, amount, 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());
- }
- }
-
- /**
- * Get Flexible Subscription Preview(USER_DATA) Get Flexible Subscription Preview Weight: 150
- *
- * @param productId (required)
- * @param amount (required)
- * @param recvWindow (optional)
- * @return ApiResponse<GetFlexibleSubscriptionPreviewResponse>
- * @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 | Get Flexible Subscription Preview | - |
- *
- *
- * @see Get
- * Flexible Subscription Preview(USER_DATA) Documentation
- */
- public ApiResponse getFlexibleSubscriptionPreview(
- @NotNull String productId, @NotNull Double amount, Long recvWindow)
- throws ApiException {
- okhttp3.Call localVarCall =
- getFlexibleSubscriptionPreviewValidateBeforeCall(productId, amount, recvWindow);
- java.lang.reflect.Type localVarReturnType =
- new TypeToken() {}.getType();
- return localVarApiClient.execute(localVarCall, localVarReturnType);
- }
-
- /**
- * Build call for getLockedSubscriptionPreview
- *
- * @param projectId (required)
- * @param amount (required)
- * @param autoSubscribe true or false, default true. (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 | Get Locked Subscription Preview | - |
- *
- *
- * @see Get
- * Locked Subscription Preview(USER_DATA) Documentation
- */
- private okhttp3.Call getLockedSubscriptionPreviewCall(
- String projectId, Double amount, Boolean autoSubscribe, 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 = "/sapi/v1/simple-earn/locked/subscriptionPreview";
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (projectId != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("projectId", projectId));
- }
-
- if (amount != null) {
- localVarQueryParams.addAll(
- localVarApiClient.parameterToPair(
- "amount", DecimalFormatter.getFormatter().format(amount)));
- }
-
- if (autoSubscribe != null) {
- localVarQueryParams.addAll(
- localVarApiClient.parameterToPair("autoSubscribe", autoSubscribe));
- }
-
- 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,
- "GET",
- localVarQueryParams,
- localVarCollectionQueryParams,
- localVarPostBody,
- localVarHeaderParams,
- localVarCookieParams,
- localVarFormParams,
- localVarAuthNames);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call getLockedSubscriptionPreviewValidateBeforeCall(
- String projectId, Double amount, Boolean autoSubscribe, Long recvWindow)
- throws ApiException {
- try {
- Validator validator =
- Validation.byDefaultProvider()
- .configure()
- .messageInterpolator(new ParameterMessageInterpolator())
- .buildValidatorFactory()
- .getValidator();
- ExecutableValidator executableValidator = validator.forExecutables();
-
- Object[] parameterValues = {projectId, amount, autoSubscribe, recvWindow};
- Method method =
- this.getClass()
- .getMethod(
- "getLockedSubscriptionPreview",
- String.class,
- Double.class,
- Boolean.class,
- Long.class);
- Set> violations =
- executableValidator.validateParameters(this, method, parameterValues);
-
- if (violations.size() == 0) {
- return getLockedSubscriptionPreviewCall(
- projectId, amount, autoSubscribe, 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());
- }
- }
-
- /**
- * Get Locked Subscription Preview(USER_DATA) Get Locked Subscription Preview Weight: 150
- *
- * @param projectId (required)
- * @param amount (required)
- * @param autoSubscribe true or false, default true. (optional)
- * @param recvWindow (optional)
- * @return ApiResponse<GetLockedSubscriptionPreviewResponse>
- * @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 | Get Locked Subscription Preview | - |
- *
- *
- * @see Get
- * Locked Subscription Preview(USER_DATA) Documentation
- */
- public ApiResponse getLockedSubscriptionPreview(
- @NotNull String projectId,
- @NotNull Double amount,
- Boolean autoSubscribe,
- Long recvWindow)
- throws ApiException {
- okhttp3.Call localVarCall =
- getLockedSubscriptionPreviewValidateBeforeCall(
- projectId, amount, autoSubscribe, recvWindow);
- java.lang.reflect.Type localVarReturnType =
- new TypeToken() {}.getType();
- return localVarApiClient.execute(localVarCall, localVarReturnType);
- }
-
- /**
- * Build call for redeemFlexibleProduct
- *
- * @param redeemFlexibleProductRequest (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 | Redeem Flexible Product | - |
- *
- *
- * @see Redeem
- * Flexible Product(TRADE) Documentation
- */
- private okhttp3.Call redeemFlexibleProductCall(
- RedeemFlexibleProductRequest redeemFlexibleProductRequest) 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 = "/sapi/v1/simple-earn/flexible/redeem";
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (redeemFlexibleProductRequest.getProductId() != null) {
- localVarFormParams.put("productId", redeemFlexibleProductRequest.getProductId());
- }
-
- if (redeemFlexibleProductRequest.getRedeemAll() != null) {
- localVarFormParams.put("redeemAll", redeemFlexibleProductRequest.getRedeemAll());
- }
-
- if (redeemFlexibleProductRequest.getAmount() != null) {
- localVarFormParams.put(
- "amount",
- DecimalFormatter.getFormatter()
- .format(redeemFlexibleProductRequest.getAmount()));
- }
-
- if (redeemFlexibleProductRequest.getDestAccount() != null) {
- localVarFormParams.put("destAccount", redeemFlexibleProductRequest.getDestAccount());
- }
-
- if (redeemFlexibleProductRequest.getRecvWindow() != null) {
- localVarFormParams.put("recvWindow", redeemFlexibleProductRequest.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 redeemFlexibleProductValidateBeforeCall(
- RedeemFlexibleProductRequest redeemFlexibleProductRequest) throws ApiException {
- try {
- Validator validator =
- Validation.byDefaultProvider()
- .configure()
- .messageInterpolator(new ParameterMessageInterpolator())
- .buildValidatorFactory()
- .getValidator();
- ExecutableValidator executableValidator = validator.forExecutables();
-
- Object[] parameterValues = {redeemFlexibleProductRequest};
- Method method =
- this.getClass()
- .getMethod("redeemFlexibleProduct", RedeemFlexibleProductRequest.class);
- Set> violations =
- executableValidator.validateParameters(this, method, parameterValues);
-
- if (violations.size() == 0) {
- return redeemFlexibleProductCall(redeemFlexibleProductRequest);
- } 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());
- }
- }
-
- /**
- * Redeem Flexible Product(TRADE) Redeem Flexible Product * You need to open `Enable Spot
- * & Margin Trading` permission for the API Key which requests this endpoint. Weight: 1
- *
- * @param redeemFlexibleProductRequest (required)
- * @return ApiResponse<RedeemFlexibleProductResponse>
- * @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 | Redeem Flexible Product | - |
- *
- *
- * @see Redeem
- * Flexible Product(TRADE) Documentation
- */
- public ApiResponse redeemFlexibleProduct(
- @Valid @NotNull RedeemFlexibleProductRequest redeemFlexibleProductRequest)
- throws ApiException {
- okhttp3.Call localVarCall =
- redeemFlexibleProductValidateBeforeCall(redeemFlexibleProductRequest);
- java.lang.reflect.Type localVarReturnType =
- new TypeToken() {}.getType();
- return localVarApiClient.execute(localVarCall, localVarReturnType);
- }
-
- /**
- * Build call for redeemLockedProduct
- *
- * @param redeemLockedProductRequest (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 | Redeem Locked Product | - |
- *
- *
- * @see Redeem
- * Locked Product(TRADE) Documentation
- */
- private okhttp3.Call redeemLockedProductCall(
- RedeemLockedProductRequest redeemLockedProductRequest) 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 = "/sapi/v1/simple-earn/locked/redeem";
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (redeemLockedProductRequest.getPositionId() != null) {
- localVarFormParams.put("positionId", redeemLockedProductRequest.getPositionId());
- }
-
- if (redeemLockedProductRequest.getRecvWindow() != null) {
- localVarFormParams.put("recvWindow", redeemLockedProductRequest.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 redeemLockedProductValidateBeforeCall(
- RedeemLockedProductRequest redeemLockedProductRequest) throws ApiException {
- try {
- Validator validator =
- Validation.byDefaultProvider()
- .configure()
- .messageInterpolator(new ParameterMessageInterpolator())
- .buildValidatorFactory()
- .getValidator();
- ExecutableValidator executableValidator = validator.forExecutables();
-
- Object[] parameterValues = {redeemLockedProductRequest};
- Method method =
- this.getClass()
- .getMethod("redeemLockedProduct", RedeemLockedProductRequest.class);
- Set> violations =
- executableValidator.validateParameters(this, method, parameterValues);
-
- if (violations.size() == 0) {
- return redeemLockedProductCall(redeemLockedProductRequest);
- } 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());
- }
- }
-
- /**
- * Redeem Locked Product(TRADE) Redeem Locked Product * You need to open `Enable Spot &
- * Margin Trading` permission for the API Key which requests this endpoint. Weight: 1/3s
- * per account
- *
- * @param redeemLockedProductRequest (required)
- * @return ApiResponse<RedeemLockedProductResponse>
- * @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 | Redeem Locked Product | - |
- *
- *
- * @see Redeem
- * Locked Product(TRADE) Documentation
- */
- public ApiResponse redeemLockedProduct(
- @Valid @NotNull RedeemLockedProductRequest redeemLockedProductRequest)
- throws ApiException {
- okhttp3.Call localVarCall =
- redeemLockedProductValidateBeforeCall(redeemLockedProductRequest);
- java.lang.reflect.Type localVarReturnType =
- new TypeToken() {}.getType();
- return localVarApiClient.execute(localVarCall, localVarReturnType);
- }
-
- /**
- * Build call for setFlexibleAutoSubscribe
- *
- * @param setFlexibleAutoSubscribeRequest (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 | Set Flexible Auto Subscribe | - |
- *
- *
- * @see Set
- * Flexible Auto Subscribe(USER_DATA) Documentation
- */
- private okhttp3.Call setFlexibleAutoSubscribeCall(
- SetFlexibleAutoSubscribeRequest setFlexibleAutoSubscribeRequest) 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 = "/sapi/v1/simple-earn/flexible/setAutoSubscribe";
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (setFlexibleAutoSubscribeRequest.getProductId() != null) {
- localVarFormParams.put("productId", setFlexibleAutoSubscribeRequest.getProductId());
- }
-
- if (setFlexibleAutoSubscribeRequest.getAutoSubscribe() != null) {
- localVarFormParams.put(
- "autoSubscribe", setFlexibleAutoSubscribeRequest.getAutoSubscribe());
- }
-
- if (setFlexibleAutoSubscribeRequest.getRecvWindow() != null) {
- localVarFormParams.put("recvWindow", setFlexibleAutoSubscribeRequest.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 setFlexibleAutoSubscribeValidateBeforeCall(
- SetFlexibleAutoSubscribeRequest setFlexibleAutoSubscribeRequest) throws ApiException {
- try {
- Validator validator =
- Validation.byDefaultProvider()
- .configure()
- .messageInterpolator(new ParameterMessageInterpolator())
- .buildValidatorFactory()
- .getValidator();
- ExecutableValidator executableValidator = validator.forExecutables();
-
- Object[] parameterValues = {setFlexibleAutoSubscribeRequest};
- Method method =
- this.getClass()
- .getMethod(
- "setFlexibleAutoSubscribe",
- SetFlexibleAutoSubscribeRequest.class);
- Set> violations =
- executableValidator.validateParameters(this, method, parameterValues);
-
- if (violations.size() == 0) {
- return setFlexibleAutoSubscribeCall(setFlexibleAutoSubscribeRequest);
- } 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());
- }
- }
-
- /**
- * Set Flexible Auto Subscribe(USER_DATA) Set Flexible Auto Subscribe Weight: 150
- *
- * @param setFlexibleAutoSubscribeRequest (required)
- * @return ApiResponse<SetFlexibleAutoSubscribeResponse>
- * @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 | Set Flexible Auto Subscribe | - |
- *
- *
- * @see Set
- * Flexible Auto Subscribe(USER_DATA) Documentation
- */
- public ApiResponse setFlexibleAutoSubscribe(
- @Valid @NotNull SetFlexibleAutoSubscribeRequest setFlexibleAutoSubscribeRequest)
- throws ApiException {
- okhttp3.Call localVarCall =
- setFlexibleAutoSubscribeValidateBeforeCall(setFlexibleAutoSubscribeRequest);
- java.lang.reflect.Type localVarReturnType =
- new TypeToken() {}.getType();
- return localVarApiClient.execute(localVarCall, localVarReturnType);
- }
-
- /**
- * Build call for setLockedAutoSubscribe
- *
- * @param setLockedAutoSubscribeRequest (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 | Set Locked Auto Subscribe | - |
- *
- *
- * @see Set
- * Locked Auto Subscribe(USER_DATA) Documentation
- */
- private okhttp3.Call setLockedAutoSubscribeCall(
- SetLockedAutoSubscribeRequest setLockedAutoSubscribeRequest) 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 = "/sapi/v1/simple-earn/locked/setAutoSubscribe";
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (setLockedAutoSubscribeRequest.getPositionId() != null) {
- localVarFormParams.put("positionId", setLockedAutoSubscribeRequest.getPositionId());
- }
-
- if (setLockedAutoSubscribeRequest.getAutoSubscribe() != null) {
- localVarFormParams.put(
- "autoSubscribe", setLockedAutoSubscribeRequest.getAutoSubscribe());
- }
-
- if (setLockedAutoSubscribeRequest.getRecvWindow() != null) {
- localVarFormParams.put("recvWindow", setLockedAutoSubscribeRequest.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 setLockedAutoSubscribeValidateBeforeCall(
- SetLockedAutoSubscribeRequest setLockedAutoSubscribeRequest) throws ApiException {
- try {
- Validator validator =
- Validation.byDefaultProvider()
- .configure()
- .messageInterpolator(new ParameterMessageInterpolator())
- .buildValidatorFactory()
- .getValidator();
- ExecutableValidator executableValidator = validator.forExecutables();
-
- Object[] parameterValues = {setLockedAutoSubscribeRequest};
- Method method =
- this.getClass()
- .getMethod(
- "setLockedAutoSubscribe", SetLockedAutoSubscribeRequest.class);
- Set> violations =
- executableValidator.validateParameters(this, method, parameterValues);
-
- if (violations.size() == 0) {
- return setLockedAutoSubscribeCall(setLockedAutoSubscribeRequest);
- } 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());
- }
- }
-
- /**
- * Set Locked Auto Subscribe(USER_DATA) Set locked auto subscribe Weight: 150
- *
- * @param setLockedAutoSubscribeRequest (required)
- * @return ApiResponse<SetLockedAutoSubscribeResponse>
- * @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 | Set Locked Auto Subscribe | - |
- *
- *
- * @see Set
- * Locked Auto Subscribe(USER_DATA) Documentation
- */
- public ApiResponse setLockedAutoSubscribe(
- @Valid @NotNull SetLockedAutoSubscribeRequest setLockedAutoSubscribeRequest)
- throws ApiException {
- okhttp3.Call localVarCall =
- setLockedAutoSubscribeValidateBeforeCall(setLockedAutoSubscribeRequest);
- java.lang.reflect.Type localVarReturnType =
- new TypeToken() {}.getType();
- return localVarApiClient.execute(localVarCall, localVarReturnType);
- }
-
- /**
- * Build call for setLockedProductRedeemOption
- *
- * @param setLockedProductRedeemOptionRequest (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 | Set Locked Product Redeem Option | - |
- *
- *
- * @see Set
- * Locked Product Redeem Option(USER_DATA) Documentation
- */
- private okhttp3.Call setLockedProductRedeemOptionCall(
- SetLockedProductRedeemOptionRequest setLockedProductRedeemOptionRequest)
- 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 = "/sapi/v1/simple-earn/locked/setRedeemOption";
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (setLockedProductRedeemOptionRequest.getPositionId() != null) {
- localVarFormParams.put(
- "positionId", setLockedProductRedeemOptionRequest.getPositionId());
- }
-
- if (setLockedProductRedeemOptionRequest.getRedeemTo() != null) {
- localVarFormParams.put("redeemTo", setLockedProductRedeemOptionRequest.getRedeemTo());
- }
-
- if (setLockedProductRedeemOptionRequest.getRecvWindow() != null) {
- localVarFormParams.put(
- "recvWindow", setLockedProductRedeemOptionRequest.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 setLockedProductRedeemOptionValidateBeforeCall(
- SetLockedProductRedeemOptionRequest setLockedProductRedeemOptionRequest)
- throws ApiException {
- try {
- Validator validator =
- Validation.byDefaultProvider()
- .configure()
- .messageInterpolator(new ParameterMessageInterpolator())
- .buildValidatorFactory()
- .getValidator();
- ExecutableValidator executableValidator = validator.forExecutables();
-
- Object[] parameterValues = {setLockedProductRedeemOptionRequest};
- Method method =
- this.getClass()
- .getMethod(
- "setLockedProductRedeemOption",
- SetLockedProductRedeemOptionRequest.class);
- Set> violations =
- executableValidator.validateParameters(this, method, parameterValues);
-
- if (violations.size() == 0) {
- return setLockedProductRedeemOptionCall(setLockedProductRedeemOptionRequest);
- } 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());
- }
- }
-
- /**
- * Set Locked Product Redeem Option(USER_DATA) Set redeem option for Locked product Weight: 50
- *
- * @param setLockedProductRedeemOptionRequest (required)
- * @return ApiResponse<SetLockedProductRedeemOptionResponse>
- * @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 | Set Locked Product Redeem Option | - |
- *
- *
- * @see Set
- * Locked Product Redeem Option(USER_DATA) Documentation
- */
- public ApiResponse setLockedProductRedeemOption(
- @Valid @NotNull SetLockedProductRedeemOptionRequest setLockedProductRedeemOptionRequest)
- throws ApiException {
- okhttp3.Call localVarCall =
- setLockedProductRedeemOptionValidateBeforeCall(setLockedProductRedeemOptionRequest);
- java.lang.reflect.Type localVarReturnType =
- new TypeToken() {}.getType();
- return localVarApiClient.execute(localVarCall, localVarReturnType);
- }
-
- /**
- * Build call for subscribeFlexibleProduct
- *
- * @param subscribeFlexibleProductRequest (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 | Subscribe Flexible Product | - |
- *
- *
- * @see Subscribe
- * Flexible Product(TRADE) Documentation
- */
- private okhttp3.Call subscribeFlexibleProductCall(
- SubscribeFlexibleProductRequest subscribeFlexibleProductRequest) 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 = "/sapi/v1/simple-earn/flexible/subscribe";
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (subscribeFlexibleProductRequest.getProductId() != null) {
- localVarFormParams.put("productId", subscribeFlexibleProductRequest.getProductId());
- }
-
- if (subscribeFlexibleProductRequest.getAmount() != null) {
- localVarFormParams.put(
- "amount",
- DecimalFormatter.getFormatter()
- .format(subscribeFlexibleProductRequest.getAmount()));
- }
-
- if (subscribeFlexibleProductRequest.getAutoSubscribe() != null) {
- localVarFormParams.put(
- "autoSubscribe", subscribeFlexibleProductRequest.getAutoSubscribe());
- }
-
- if (subscribeFlexibleProductRequest.getSourceAccount() != null) {
- localVarFormParams.put(
- "sourceAccount", subscribeFlexibleProductRequest.getSourceAccount());
- }
-
- if (subscribeFlexibleProductRequest.getRecvWindow() != null) {
- localVarFormParams.put("recvWindow", subscribeFlexibleProductRequest.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 subscribeFlexibleProductValidateBeforeCall(
- SubscribeFlexibleProductRequest subscribeFlexibleProductRequest) throws ApiException {
- try {
- Validator validator =
- Validation.byDefaultProvider()
- .configure()
- .messageInterpolator(new ParameterMessageInterpolator())
- .buildValidatorFactory()
- .getValidator();
- ExecutableValidator executableValidator = validator.forExecutables();
-
- Object[] parameterValues = {subscribeFlexibleProductRequest};
- Method method =
- this.getClass()
- .getMethod(
- "subscribeFlexibleProduct",
- SubscribeFlexibleProductRequest.class);
- Set> violations =
- executableValidator.validateParameters(this, method, parameterValues);
-
- if (violations.size() == 0) {
- return subscribeFlexibleProductCall(subscribeFlexibleProductRequest);
- } 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());
- }
- }
-
- /**
- * Subscribe Flexible Product(TRADE) Subscribe Flexible Product * You need to open `Enable
- * Spot & Margin Trading` permission for the API Key which requests this endpoint.
- * Weight: 1
- *
- * @param subscribeFlexibleProductRequest (required)
- * @return ApiResponse<SubscribeFlexibleProductResponse>
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
- * response body
- * @http.response.details
- *