diff --git a/MIGRATION.md b/MIGRATION.md
index 3b26f8ea..bc3e2aed 100644
--- a/MIGRATION.md
+++ b/MIGRATION.md
@@ -37,7 +37,7 @@ For Spot (Spot package):
io.github.binance
binance-spot
- 6.0.0
+ 8.0.0
```
diff --git a/README.md b/README.md
index e1784859..5053f80c 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ Each connector is published as a separate maven dependency. For example:
io.github.binance
binance-spot
- 6.0.0
+ 8.0.0
```
diff --git a/clients/spot/CHANGELOG.md b/clients/spot/CHANGELOG.md
index 22c265a4..c75fbc7f 100644
--- a/clients/spot/CHANGELOG.md
+++ b/clients/spot/CHANGELOG.md
@@ -1,5 +1,71 @@
# Changelog
+## 8.0.0 - 2025-12-31
+
+### Added (4)
+
+#### REST API
+
+- `orderListOpo()` (`POST /api/v3/orderList/opo`)
+- `orderListOpoco()` (`POST /api/v3/orderList/opoco`)
+
+#### WebSocket API
+
+- `orderListPlaceOpo()` (`orderList.place.opo` method)
+- `orderListPlaceOpoco()` (`orderList.place.opoco` method)
+
+### Changed (6)
+
+#### REST API
+
+- Added parameter `symbolStatus`
+ - affected methods:
+ - `depth()` (`GET /api/v3/depth`)
+ - `ticker()` (`GET /api/v3/ticker`)
+ - `ticker24hr()` (`GET /api/v3/ticker/24hr`)
+ - `tickerBookTicker()` (`GET /api/v3/ticker/bookTicker`)
+ - `tickerPrice()` (`GET /api/v3/ticker/price`)
+ - `tickerTradingDay()` (`GET /api/v3/ticker/tradingDay`)
+- Modified response for `exchangeInfo()` (`GET /api/v3/exchangeInfo`):
+ - `symbols`.items: property `opoAllowed` added
+ - `symbols`.items: item property `opoAllowed` added
+
+- Marked `orderOco()` (`POST /api/v3/order/oco`) as deprecated.
+
+#### WebSocket API
+
+- Added parameter `symbolStatus`
+ - affected methods:
+ - `depth()` (`depth` method)
+ - `ticker()` (`ticker` method)
+ - `ticker24hr()` (`ticker.24hr` method)
+ - `tickerBook()` (`ticker.book` method)
+ - `tickerPrice()` (`ticker.price` method)
+ - `tickerTradingDay()` (`ticker.tradingDay` method)
+- Modified response for `exchangeInfo()` (`exchangeInfo` method):
+ - `result`.`symbols`.items: property `opoAllowed` added
+ - `result`.`symbols`.items: item property `opoAllowed` added
+
+- Marked `orderListPlace()` (`orderList.place` method) as deprecated.
+
+### Removed (7)
+
+#### REST API
+
+- `deleteUserDataStream()` (`DELETE /api/v3/userDataStream`)
+- `newUserDataStream()` (`POST /api/v3/userDataStream`)
+- `putUserDataStream()` (`PUT /api/v3/userDataStream`)
+
+#### WebSocket API
+
+- `/userDataStream.ping()` (`userDataStream.ping` method)
+- `/userDataStream.start()` (`userDataStream.start` method)
+- `/userDataStream.stop()` (`userDataStream.stop` method)
+
+#### WebSocket Streams
+
+- `/!ticker@arr()` (`!ticker@arr` stream)
+
## 7.0.0 - 2025-10-21
### Added (2)
diff --git a/clients/spot/docs/AccountApi.md b/clients/spot/docs/AccountApi.md
index d3130654..9eb5b1d2 100644
--- a/clients/spot/docs/AccountApi.md
+++ b/clients/spot/docs/AccountApi.md
@@ -398,7 +398,7 @@ No authorization required
WebSocket Query Relevant Filters
-Retrieves the list of [filters](filters.md) relevant to an account on a given symbol. This is the only endpoint that shows if an account has `MAX_ASSET` filters applied to it. Weight: 40
+Retrieves the list of [filters](filters.md) relevant to an account on a given symbol. This is the only method that shows if an account has `MAX_ASSET` filters applied to it. Weight: 40
### Example
```java
diff --git a/clients/spot/docs/AllTickerResponse.md b/clients/spot/docs/AllTickerResponse.md
deleted file mode 100644
index 2ce43cf2..00000000
--- a/clients/spot/docs/AllTickerResponse.md
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-# AllTickerResponse
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-
-
-
diff --git a/clients/spot/docs/AllTickerResponseInner.md b/clients/spot/docs/AllTickerResponseInner.md
deleted file mode 100644
index ab28f31a..00000000
--- a/clients/spot/docs/AllTickerResponseInner.md
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-# AllTickerResponseInner
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**eLowerCase** | **String** | | [optional] |
-|**E** | **Long** | | [optional] |
-|**sLowerCase** | **String** | | [optional] |
-|**pLowerCase** | **String** | | [optional] |
-|**P** | **String** | | [optional] |
-|**wLowerCase** | **String** | | [optional] |
-|**xLowerCase** | **String** | | [optional] |
-|**cLowerCase** | **String** | | [optional] |
-|**Q** | **String** | | [optional] |
-|**bLowerCase** | **String** | | [optional] |
-|**B** | **String** | | [optional] |
-|**aLowerCase** | **String** | | [optional] |
-|**A** | **String** | | [optional] |
-|**oLowerCase** | **String** | | [optional] |
-|**hLowerCase** | **String** | | [optional] |
-|**lLowerCase** | **String** | | [optional] |
-|**vLowerCase** | **String** | | [optional] |
-|**qLowerCase** | **String** | | [optional] |
-|**O** | **Long** | | [optional] |
-|**C** | **Long** | | [optional] |
-|**F** | **Long** | | [optional] |
-|**L** | **Long** | | [optional] |
-|**nLowerCase** | **Long** | | [optional] |
-
-
-
diff --git a/clients/spot/docs/DepthRequest.md b/clients/spot/docs/DepthRequest.md
index d6144a1e..667da1b0 100644
--- a/clients/spot/docs/DepthRequest.md
+++ b/clients/spot/docs/DepthRequest.md
@@ -9,6 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**symbol** | **String** | | |
|**limit** | **Integer** | | [optional] |
+|**symbolStatus** | **SymbolStatus** | | [optional] |
diff --git a/clients/spot/docs/ExchangeInfoResponseResultSymbolsInner.md b/clients/spot/docs/ExchangeInfoResponseResultSymbolsInner.md
index 47a68bef..25a5f62f 100644
--- a/clients/spot/docs/ExchangeInfoResponseResultSymbolsInner.md
+++ b/clients/spot/docs/ExchangeInfoResponseResultSymbolsInner.md
@@ -20,6 +20,7 @@
|**icebergAllowed** | **Boolean** | | [optional] |
|**ocoAllowed** | **Boolean** | | [optional] |
|**otoAllowed** | **Boolean** | | [optional] |
+|**opoAllowed** | **Boolean** | | [optional] |
|**quoteOrderQtyMarketAllowed** | **Boolean** | | [optional] |
|**allowTrailingStop** | **Boolean** | | [optional] |
|**cancelReplaceAllowed** | **Boolean** | | [optional] |
diff --git a/clients/spot/docs/ExchangeInfoResponseSymbolsInner.md b/clients/spot/docs/ExchangeInfoResponseSymbolsInner.md
index 9c440158..e1a14c0d 100644
--- a/clients/spot/docs/ExchangeInfoResponseSymbolsInner.md
+++ b/clients/spot/docs/ExchangeInfoResponseSymbolsInner.md
@@ -20,6 +20,7 @@
|**icebergAllowed** | **Boolean** | | [optional] |
|**ocoAllowed** | **Boolean** | | [optional] |
|**otoAllowed** | **Boolean** | | [optional] |
+|**opoAllowed** | **Boolean** | | [optional] |
|**quoteOrderQtyMarketAllowed** | **Boolean** | | [optional] |
|**allowTrailingStop** | **Boolean** | | [optional] |
|**cancelReplaceAllowed** | **Boolean** | | [optional] |
diff --git a/clients/spot/docs/ListenKeyExpired.md b/clients/spot/docs/ListenKeyExpired.md
deleted file mode 100644
index ce30d5a4..00000000
--- a/clients/spot/docs/ListenKeyExpired.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# ListenKeyExpired
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**E** | **Long** | | [optional] |
-|**listenKey** | **String** | | [optional] |
-
-
-
diff --git a/clients/spot/docs/NewUserDataStreamResponse.md b/clients/spot/docs/NewUserDataStreamResponse.md
deleted file mode 100644
index d8751bc8..00000000
--- a/clients/spot/docs/NewUserDataStreamResponse.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# NewUserDataStreamResponse
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**listenKey** | **String** | | [optional] |
-
-
-
diff --git a/clients/spot/docs/OrderListOpoRequest.md b/clients/spot/docs/OrderListOpoRequest.md
new file mode 100644
index 00000000..1eba62d6
--- /dev/null
+++ b/clients/spot/docs/OrderListOpoRequest.md
@@ -0,0 +1,42 @@
+
+
+# OrderListOpoRequest
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**symbol** | **String** | | |
+|**listClientOrderId** | **String** | | [optional] |
+|**newOrderRespType** | **NewOrderRespType** | | [optional] |
+|**selfTradePreventionMode** | **SelfTradePreventionMode** | | [optional] |
+|**workingType** | **WorkingType** | | |
+|**workingSide** | **WorkingSide** | | |
+|**workingClientOrderId** | **String** | | [optional] |
+|**workingPrice** | **Double** | | |
+|**workingQuantity** | **Double** | | |
+|**workingIcebergQty** | **Double** | | [optional] |
+|**workingTimeInForce** | **WorkingTimeInForce** | | [optional] |
+|**workingStrategyId** | **Long** | | [optional] |
+|**workingStrategyType** | **Integer** | | [optional] |
+|**workingPegPriceType** | **WorkingPegPriceType** | | [optional] |
+|**workingPegOffsetType** | **WorkingPegOffsetType** | | [optional] |
+|**workingPegOffsetValue** | **Integer** | | [optional] |
+|**pendingType** | **PendingType** | | |
+|**pendingSide** | **PendingSide** | | |
+|**pendingClientOrderId** | **String** | | [optional] |
+|**pendingPrice** | **Double** | | [optional] |
+|**pendingStopPrice** | **Double** | | [optional] |
+|**pendingTrailingDelta** | **Double** | | [optional] |
+|**pendingIcebergQty** | **Double** | | [optional] |
+|**pendingTimeInForce** | **PendingTimeInForce** | | [optional] |
+|**pendingStrategyId** | **Long** | | [optional] |
+|**pendingStrategyType** | **Integer** | | [optional] |
+|**pendingPegPriceType** | **PendingPegPriceType** | | [optional] |
+|**pendingPegOffsetType** | **PendingPegOffsetType** | | [optional] |
+|**pendingPegOffsetValue** | **Integer** | | [optional] |
+|**recvWindow** | **Double** | | [optional] |
+
+
+
diff --git a/clients/spot/docs/OrderListOpoResponse.md b/clients/spot/docs/OrderListOpoResponse.md
new file mode 100644
index 00000000..40a1ff00
--- /dev/null
+++ b/clients/spot/docs/OrderListOpoResponse.md
@@ -0,0 +1,21 @@
+
+
+# OrderListOpoResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**orderListId** | **Long** | | [optional] |
+|**contingencyType** | **String** | | [optional] |
+|**listStatusType** | **String** | | [optional] |
+|**listOrderStatus** | **String** | | [optional] |
+|**listClientOrderId** | **String** | | [optional] |
+|**transactionTime** | **Long** | | [optional] |
+|**symbol** | **String** | | [optional] |
+|**orders** | [**List<OrderListOpoResponseOrdersInner>**](OrderListOpoResponseOrdersInner.md) | | [optional] |
+|**orderReports** | [**List<OrderListOpoResponseOrderReportsInner>**](OrderListOpoResponseOrderReportsInner.md) | | [optional] |
+
+
+
diff --git a/clients/spot/docs/OrderListOpoResponseOrderReportsInner.md b/clients/spot/docs/OrderListOpoResponseOrderReportsInner.md
new file mode 100644
index 00000000..c316d178
--- /dev/null
+++ b/clients/spot/docs/OrderListOpoResponseOrderReportsInner.md
@@ -0,0 +1,28 @@
+
+
+# OrderListOpoResponseOrderReportsInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**symbol** | **String** | | [optional] |
+|**orderId** | **Long** | | [optional] |
+|**orderListId** | **Long** | | [optional] |
+|**clientOrderId** | **String** | | [optional] |
+|**transactTime** | **Long** | | [optional] |
+|**price** | **String** | | [optional] |
+|**executedQty** | **String** | | [optional] |
+|**origQuoteOrderQty** | **String** | | [optional] |
+|**cummulativeQuoteQty** | **String** | | [optional] |
+|**status** | **String** | | [optional] |
+|**timeInForce** | **String** | | [optional] |
+|**type** | **String** | | [optional] |
+|**side** | **String** | | [optional] |
+|**workingTime** | **Long** | | [optional] |
+|**selfTradePreventionMode** | **String** | | [optional] |
+|**origQty** | **String** | | [optional] |
+
+
+
diff --git a/clients/spot/docs/OrderListOpoResponseOrdersInner.md b/clients/spot/docs/OrderListOpoResponseOrdersInner.md
new file mode 100644
index 00000000..98a5188b
--- /dev/null
+++ b/clients/spot/docs/OrderListOpoResponseOrdersInner.md
@@ -0,0 +1,15 @@
+
+
+# OrderListOpoResponseOrdersInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**symbol** | **String** | | [optional] |
+|**orderId** | **Long** | | [optional] |
+|**clientOrderId** | **String** | | [optional] |
+
+
+
diff --git a/clients/spot/docs/OrderListOpocoRequest.md b/clients/spot/docs/OrderListOpocoRequest.md
new file mode 100644
index 00000000..0c93b25c
--- /dev/null
+++ b/clients/spot/docs/OrderListOpocoRequest.md
@@ -0,0 +1,54 @@
+
+
+# OrderListOpocoRequest
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**symbol** | **String** | | |
+|**listClientOrderId** | **String** | | [optional] |
+|**newOrderRespType** | **NewOrderRespType** | | [optional] |
+|**selfTradePreventionMode** | **SelfTradePreventionMode** | | [optional] |
+|**workingType** | **WorkingType** | | |
+|**workingSide** | **WorkingSide** | | |
+|**workingClientOrderId** | **String** | | [optional] |
+|**workingPrice** | **Double** | | |
+|**workingQuantity** | **Double** | | |
+|**workingIcebergQty** | **Double** | | [optional] |
+|**workingTimeInForce** | **WorkingTimeInForce** | | [optional] |
+|**workingStrategyId** | **Long** | | [optional] |
+|**workingStrategyType** | **Integer** | | [optional] |
+|**workingPegPriceType** | **WorkingPegPriceType** | | [optional] |
+|**workingPegOffsetType** | **WorkingPegOffsetType** | | [optional] |
+|**workingPegOffsetValue** | **Integer** | | [optional] |
+|**pendingSide** | **PendingSide** | | |
+|**pendingAboveType** | **PendingAboveType** | | |
+|**pendingAboveClientOrderId** | **String** | | [optional] |
+|**pendingAbovePrice** | **Double** | | [optional] |
+|**pendingAboveStopPrice** | **Double** | | [optional] |
+|**pendingAboveTrailingDelta** | **Double** | | [optional] |
+|**pendingAboveIcebergQty** | **Double** | | [optional] |
+|**pendingAboveTimeInForce** | **PendingAboveTimeInForce** | | [optional] |
+|**pendingAboveStrategyId** | **Long** | | [optional] |
+|**pendingAboveStrategyType** | **Integer** | | [optional] |
+|**pendingAbovePegPriceType** | **PendingAbovePegPriceType** | | [optional] |
+|**pendingAbovePegOffsetType** | **PendingAbovePegOffsetType** | | [optional] |
+|**pendingAbovePegOffsetValue** | **Integer** | | [optional] |
+|**pendingBelowType** | **PendingBelowType** | | [optional] |
+|**pendingBelowClientOrderId** | **String** | | [optional] |
+|**pendingBelowPrice** | **Double** | | [optional] |
+|**pendingBelowStopPrice** | **Double** | | [optional] |
+|**pendingBelowTrailingDelta** | **Double** | | [optional] |
+|**pendingBelowIcebergQty** | **Double** | | [optional] |
+|**pendingBelowTimeInForce** | **PendingBelowTimeInForce** | | [optional] |
+|**pendingBelowStrategyId** | **Long** | | [optional] |
+|**pendingBelowStrategyType** | **Integer** | | [optional] |
+|**pendingBelowPegPriceType** | **PendingBelowPegPriceType** | | [optional] |
+|**pendingBelowPegOffsetType** | **PendingBelowPegOffsetType** | | [optional] |
+|**pendingBelowPegOffsetValue** | **Integer** | | [optional] |
+|**recvWindow** | **Double** | | [optional] |
+
+
+
diff --git a/clients/spot/docs/OrderListOpocoResponse.md b/clients/spot/docs/OrderListOpocoResponse.md
new file mode 100644
index 00000000..956e3e86
--- /dev/null
+++ b/clients/spot/docs/OrderListOpocoResponse.md
@@ -0,0 +1,21 @@
+
+
+# OrderListOpocoResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**orderListId** | **Long** | | [optional] |
+|**contingencyType** | **String** | | [optional] |
+|**listStatusType** | **String** | | [optional] |
+|**listOrderStatus** | **String** | | [optional] |
+|**listClientOrderId** | **String** | | [optional] |
+|**transactionTime** | **Long** | | [optional] |
+|**symbol** | **String** | | [optional] |
+|**orders** | [**List<OrderListOpocoResponseOrdersInner>**](OrderListOpocoResponseOrdersInner.md) | | [optional] |
+|**orderReports** | [**List<OrderListOpocoResponseOrderReportsInner>**](OrderListOpocoResponseOrderReportsInner.md) | | [optional] |
+
+
+
diff --git a/clients/spot/docs/OrderListOpocoResponseOrderReportsInner.md b/clients/spot/docs/OrderListOpocoResponseOrderReportsInner.md
new file mode 100644
index 00000000..3eb37359
--- /dev/null
+++ b/clients/spot/docs/OrderListOpocoResponseOrderReportsInner.md
@@ -0,0 +1,29 @@
+
+
+# OrderListOpocoResponseOrderReportsInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**symbol** | **String** | | [optional] |
+|**orderId** | **Long** | | [optional] |
+|**orderListId** | **Long** | | [optional] |
+|**clientOrderId** | **String** | | [optional] |
+|**transactTime** | **Long** | | [optional] |
+|**price** | **String** | | [optional] |
+|**executedQty** | **String** | | [optional] |
+|**origQuoteOrderQty** | **String** | | [optional] |
+|**cummulativeQuoteQty** | **String** | | [optional] |
+|**status** | **String** | | [optional] |
+|**timeInForce** | **String** | | [optional] |
+|**type** | **String** | | [optional] |
+|**side** | **String** | | [optional] |
+|**workingTime** | **Long** | | [optional] |
+|**selfTradePreventionMode** | **String** | | [optional] |
+|**stopPrice** | **String** | | [optional] |
+|**origQty** | **String** | | [optional] |
+
+
+
diff --git a/clients/spot/docs/OrderListOpocoResponseOrdersInner.md b/clients/spot/docs/OrderListOpocoResponseOrdersInner.md
new file mode 100644
index 00000000..c5539dce
--- /dev/null
+++ b/clients/spot/docs/OrderListOpocoResponseOrdersInner.md
@@ -0,0 +1,15 @@
+
+
+# OrderListOpocoResponseOrdersInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**symbol** | **String** | | [optional] |
+|**orderId** | **Long** | | [optional] |
+|**clientOrderId** | **String** | | [optional] |
+
+
+
diff --git a/clients/spot/docs/OrderListPlaceOpoRequest.md b/clients/spot/docs/OrderListPlaceOpoRequest.md
new file mode 100644
index 00000000..85a7a0a7
--- /dev/null
+++ b/clients/spot/docs/OrderListPlaceOpoRequest.md
@@ -0,0 +1,42 @@
+
+
+# OrderListPlaceOpoRequest
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**symbol** | **String** | | |
+|**listClientOrderId** | **String** | | [optional] |
+|**newOrderRespType** | **NewOrderRespType** | | [optional] |
+|**selfTradePreventionMode** | **SelfTradePreventionMode** | | [optional] |
+|**workingType** | **WorkingType** | | |
+|**workingSide** | **WorkingSide** | | |
+|**workingClientOrderId** | **String** | | [optional] |
+|**workingPrice** | **Double** | | |
+|**workingQuantity** | **Double** | | |
+|**workingIcebergQty** | **Double** | | [optional] |
+|**workingTimeInForce** | **WorkingTimeInForce** | | [optional] |
+|**workingStrategyId** | **Long** | | [optional] |
+|**workingStrategyType** | **Integer** | | [optional] |
+|**workingPegPriceType** | **WorkingPegPriceType** | | [optional] |
+|**workingPegOffsetType** | **WorkingPegOffsetType** | | [optional] |
+|**workingPegOffsetValue** | **Integer** | | [optional] |
+|**pendingType** | **PendingType** | | |
+|**pendingSide** | **PendingSide** | | |
+|**pendingClientOrderId** | **String** | | [optional] |
+|**pendingPrice** | **Double** | | [optional] |
+|**pendingStopPrice** | **Double** | | [optional] |
+|**pendingTrailingDelta** | **Double** | | [optional] |
+|**pendingIcebergQty** | **Double** | | [optional] |
+|**pendingTimeInForce** | **PendingTimeInForce** | | [optional] |
+|**pendingStrategyId** | **Long** | | [optional] |
+|**pendingStrategyType** | **Integer** | | [optional] |
+|**pendingPegPriceType** | **PendingPegPriceType** | | [optional] |
+|**pendingPegOffsetType** | **PendingPegOffsetType** | | [optional] |
+|**pendingPegOffsetValue** | **Integer** | | [optional] |
+|**recvWindow** | **Double** | | [optional] |
+
+
+
diff --git a/clients/spot/docs/UserDataStreamPingResponse.md b/clients/spot/docs/OrderListPlaceOpoResponse.md
similarity index 56%
rename from clients/spot/docs/UserDataStreamPingResponse.md
rename to clients/spot/docs/OrderListPlaceOpoResponse.md
index a734f04f..d364b279 100644
--- a/clients/spot/docs/UserDataStreamPingResponse.md
+++ b/clients/spot/docs/OrderListPlaceOpoResponse.md
@@ -1,6 +1,6 @@
-# UserDataStreamPingResponse
+# OrderListPlaceOpoResponse
## Properties
@@ -9,8 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**id** | **String** | | [optional] |
|**status** | **Long** | | [optional] |
-|**response** | **Object** | | [optional] |
-|**rateLimits** | [**List<RateLimits>**](RateLimits.md) | | [optional] |
+|**result** | [**OrderListPlaceOpoResponseResult**](OrderListPlaceOpoResponseResult.md) | | [optional] |
diff --git a/clients/spot/docs/OrderListPlaceOpoResponseResult.md b/clients/spot/docs/OrderListPlaceOpoResponseResult.md
new file mode 100644
index 00000000..e0834081
--- /dev/null
+++ b/clients/spot/docs/OrderListPlaceOpoResponseResult.md
@@ -0,0 +1,21 @@
+
+
+# OrderListPlaceOpoResponseResult
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**orderListId** | **Long** | | [optional] |
+|**contingencyType** | **String** | | [optional] |
+|**listStatusType** | **String** | | [optional] |
+|**listOrderStatus** | **String** | | [optional] |
+|**listClientOrderId** | **String** | | [optional] |
+|**transactionTime** | **Long** | | [optional] |
+|**symbol** | **String** | | [optional] |
+|**orders** | [**List<OrderListPlaceOpoResponseResultOrdersInner>**](OrderListPlaceOpoResponseResultOrdersInner.md) | | [optional] |
+|**orderReports** | [**List<OrderListPlaceOpoResponseResultOrderReportsInner>**](OrderListPlaceOpoResponseResultOrderReportsInner.md) | | [optional] |
+
+
+
diff --git a/clients/spot/docs/OrderListPlaceOpoResponseResultOrderReportsInner.md b/clients/spot/docs/OrderListPlaceOpoResponseResultOrderReportsInner.md
new file mode 100644
index 00000000..f26e63a0
--- /dev/null
+++ b/clients/spot/docs/OrderListPlaceOpoResponseResultOrderReportsInner.md
@@ -0,0 +1,28 @@
+
+
+# OrderListPlaceOpoResponseResultOrderReportsInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**symbol** | **String** | | [optional] |
+|**orderId** | **Long** | | [optional] |
+|**orderListId** | **Long** | | [optional] |
+|**clientOrderId** | **String** | | [optional] |
+|**transactTime** | **Long** | | [optional] |
+|**price** | **String** | | [optional] |
+|**executedQty** | **String** | | [optional] |
+|**origQuoteOrderQty** | **String** | | [optional] |
+|**cummulativeQuoteQty** | **String** | | [optional] |
+|**status** | **String** | | [optional] |
+|**timeInForce** | **String** | | [optional] |
+|**type** | **String** | | [optional] |
+|**side** | **String** | | [optional] |
+|**workingTime** | **Long** | | [optional] |
+|**selfTradePreventionMode** | **String** | | [optional] |
+|**origQty** | **String** | | [optional] |
+
+
+
diff --git a/clients/spot/docs/OrderListPlaceOpoResponseResultOrdersInner.md b/clients/spot/docs/OrderListPlaceOpoResponseResultOrdersInner.md
new file mode 100644
index 00000000..307d11fd
--- /dev/null
+++ b/clients/spot/docs/OrderListPlaceOpoResponseResultOrdersInner.md
@@ -0,0 +1,15 @@
+
+
+# OrderListPlaceOpoResponseResultOrdersInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**symbol** | **String** | | [optional] |
+|**orderId** | **Long** | | [optional] |
+|**clientOrderId** | **String** | | [optional] |
+
+
+
diff --git a/clients/spot/docs/OrderListPlaceOpocoRequest.md b/clients/spot/docs/OrderListPlaceOpocoRequest.md
new file mode 100644
index 00000000..2385e7ea
--- /dev/null
+++ b/clients/spot/docs/OrderListPlaceOpocoRequest.md
@@ -0,0 +1,54 @@
+
+
+# OrderListPlaceOpocoRequest
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**symbol** | **String** | | |
+|**listClientOrderId** | **String** | | [optional] |
+|**newOrderRespType** | **NewOrderRespType** | | [optional] |
+|**selfTradePreventionMode** | **SelfTradePreventionMode** | | [optional] |
+|**workingType** | **WorkingType** | | |
+|**workingSide** | **WorkingSide** | | |
+|**workingClientOrderId** | **String** | | [optional] |
+|**workingPrice** | **Double** | | |
+|**workingQuantity** | **Double** | | |
+|**workingIcebergQty** | **Double** | | [optional] |
+|**workingTimeInForce** | **WorkingTimeInForce** | | [optional] |
+|**workingStrategyId** | **Long** | | [optional] |
+|**workingStrategyType** | **Integer** | | [optional] |
+|**workingPegPriceType** | **WorkingPegPriceType** | | [optional] |
+|**workingPegOffsetType** | **WorkingPegOffsetType** | | [optional] |
+|**workingPegOffsetValue** | **Integer** | | [optional] |
+|**pendingSide** | **PendingSide** | | |
+|**pendingAboveType** | **PendingAboveType** | | |
+|**pendingAboveClientOrderId** | **String** | | [optional] |
+|**pendingAbovePrice** | **Double** | | [optional] |
+|**pendingAboveStopPrice** | **Double** | | [optional] |
+|**pendingAboveTrailingDelta** | **Double** | | [optional] |
+|**pendingAboveIcebergQty** | **Double** | | [optional] |
+|**pendingAboveTimeInForce** | **PendingAboveTimeInForce** | | [optional] |
+|**pendingAboveStrategyId** | **Long** | | [optional] |
+|**pendingAboveStrategyType** | **Integer** | | [optional] |
+|**pendingAbovePegPriceType** | **PendingAbovePegPriceType** | | [optional] |
+|**pendingAbovePegOffsetType** | **PendingAbovePegOffsetType** | | [optional] |
+|**pendingAbovePegOffsetValue** | **Integer** | | [optional] |
+|**pendingBelowType** | **PendingBelowType** | | [optional] |
+|**pendingBelowClientOrderId** | **String** | | [optional] |
+|**pendingBelowPrice** | **Double** | | [optional] |
+|**pendingBelowStopPrice** | **Double** | | [optional] |
+|**pendingBelowTrailingDelta** | **Double** | | [optional] |
+|**pendingBelowIcebergQty** | **Double** | | [optional] |
+|**pendingBelowTimeInForce** | **PendingBelowTimeInForce** | | [optional] |
+|**pendingBelowStrategyId** | **Long** | | [optional] |
+|**pendingBelowStrategyType** | **Integer** | | [optional] |
+|**pendingBelowPegPriceType** | **PendingBelowPegPriceType** | | [optional] |
+|**pendingBelowPegOffsetType** | **PendingBelowPegOffsetType** | | [optional] |
+|**pendingBelowPegOffsetValue** | **Integer** | | [optional] |
+|**recvWindow** | **Double** | | [optional] |
+
+
+
diff --git a/clients/spot/docs/UserDataStreamStopResponse.md b/clients/spot/docs/OrderListPlaceOpocoResponse.md
similarity index 56%
rename from clients/spot/docs/UserDataStreamStopResponse.md
rename to clients/spot/docs/OrderListPlaceOpocoResponse.md
index bc7e734c..bda6d0f2 100644
--- a/clients/spot/docs/UserDataStreamStopResponse.md
+++ b/clients/spot/docs/OrderListPlaceOpocoResponse.md
@@ -1,6 +1,6 @@
-# UserDataStreamStopResponse
+# OrderListPlaceOpocoResponse
## Properties
@@ -9,8 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**id** | **String** | | [optional] |
|**status** | **Long** | | [optional] |
-|**response** | **Object** | | [optional] |
-|**rateLimits** | [**List<RateLimits>**](RateLimits.md) | | [optional] |
+|**result** | [**OrderListPlaceOpocoResponseResult**](OrderListPlaceOpocoResponseResult.md) | | [optional] |
diff --git a/clients/spot/docs/OrderListPlaceOpocoResponseResult.md b/clients/spot/docs/OrderListPlaceOpocoResponseResult.md
new file mode 100644
index 00000000..cf8a1845
--- /dev/null
+++ b/clients/spot/docs/OrderListPlaceOpocoResponseResult.md
@@ -0,0 +1,21 @@
+
+
+# OrderListPlaceOpocoResponseResult
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**orderListId** | **Long** | | [optional] |
+|**contingencyType** | **String** | | [optional] |
+|**listStatusType** | **String** | | [optional] |
+|**listOrderStatus** | **String** | | [optional] |
+|**listClientOrderId** | **String** | | [optional] |
+|**transactionTime** | **Long** | | [optional] |
+|**symbol** | **String** | | [optional] |
+|**orders** | [**List<OrderListPlaceOpocoResponseResultOrdersInner>**](OrderListPlaceOpocoResponseResultOrdersInner.md) | | [optional] |
+|**orderReports** | [**List<OrderListPlaceOpocoResponseResultOrderReportsInner>**](OrderListPlaceOpocoResponseResultOrderReportsInner.md) | | [optional] |
+
+
+
diff --git a/clients/spot/docs/OrderListPlaceOpocoResponseResultOrderReportsInner.md b/clients/spot/docs/OrderListPlaceOpocoResponseResultOrderReportsInner.md
new file mode 100644
index 00000000..03c83d04
--- /dev/null
+++ b/clients/spot/docs/OrderListPlaceOpocoResponseResultOrderReportsInner.md
@@ -0,0 +1,29 @@
+
+
+# OrderListPlaceOpocoResponseResultOrderReportsInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**symbol** | **String** | | [optional] |
+|**orderId** | **Long** | | [optional] |
+|**orderListId** | **Long** | | [optional] |
+|**clientOrderId** | **String** | | [optional] |
+|**transactTime** | **Long** | | [optional] |
+|**price** | **String** | | [optional] |
+|**executedQty** | **String** | | [optional] |
+|**origQuoteOrderQty** | **String** | | [optional] |
+|**cummulativeQuoteQty** | **String** | | [optional] |
+|**status** | **String** | | [optional] |
+|**timeInForce** | **String** | | [optional] |
+|**type** | **String** | | [optional] |
+|**side** | **String** | | [optional] |
+|**workingTime** | **Long** | | [optional] |
+|**selfTradePreventionMode** | **String** | | [optional] |
+|**stopPrice** | **String** | | [optional] |
+|**origQty** | **String** | | [optional] |
+
+
+
diff --git a/clients/spot/docs/OrderListPlaceOpocoResponseResultOrdersInner.md b/clients/spot/docs/OrderListPlaceOpocoResponseResultOrdersInner.md
new file mode 100644
index 00000000..3700e5f3
--- /dev/null
+++ b/clients/spot/docs/OrderListPlaceOpocoResponseResultOrdersInner.md
@@ -0,0 +1,15 @@
+
+
+# OrderListPlaceOpocoResponseResultOrdersInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**symbol** | **String** | | [optional] |
+|**orderId** | **Long** | | [optional] |
+|**clientOrderId** | **String** | | [optional] |
+
+
+
diff --git a/clients/spot/docs/PutUserDataStreamRequest.md b/clients/spot/docs/PutUserDataStreamRequest.md
deleted file mode 100644
index 11e88321..00000000
--- a/clients/spot/docs/PutUserDataStreamRequest.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# PutUserDataStreamRequest
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**listenKey** | **String** | | |
-
-
-
diff --git a/clients/spot/docs/Ticker24hrRequest.md b/clients/spot/docs/Ticker24hrRequest.md
index 0570f286..9a10d77b 100644
--- a/clients/spot/docs/Ticker24hrRequest.md
+++ b/clients/spot/docs/Ticker24hrRequest.md
@@ -10,6 +10,7 @@
|**symbol** | **String** | | [optional] |
|**symbols** | **Symbols** | | [optional] |
|**tickerType** | **TickerType** | | [optional] |
+|**symbolStatus** | **SymbolStatus** | | [optional] |
diff --git a/clients/spot/docs/TickerBookRequest.md b/clients/spot/docs/TickerBookRequest.md
index 9817f476..e807bc2d 100644
--- a/clients/spot/docs/TickerBookRequest.md
+++ b/clients/spot/docs/TickerBookRequest.md
@@ -9,6 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**symbol** | **String** | | [optional] |
|**symbols** | **Symbols** | | [optional] |
+|**symbolStatus** | **SymbolStatus** | | [optional] |
diff --git a/clients/spot/docs/TickerPriceRequest.md b/clients/spot/docs/TickerPriceRequest.md
index 0438b743..009607b2 100644
--- a/clients/spot/docs/TickerPriceRequest.md
+++ b/clients/spot/docs/TickerPriceRequest.md
@@ -9,6 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**symbol** | **String** | | [optional] |
|**symbols** | **Symbols** | | [optional] |
+|**symbolStatus** | **SymbolStatus** | | [optional] |
diff --git a/clients/spot/docs/TickerTradingDayRequest.md b/clients/spot/docs/TickerTradingDayRequest.md
index c317d045..2e13c309 100644
--- a/clients/spot/docs/TickerTradingDayRequest.md
+++ b/clients/spot/docs/TickerTradingDayRequest.md
@@ -11,6 +11,7 @@
|**symbols** | **Symbols** | | [optional] |
|**timeZone** | **String** | | [optional] |
|**tickerType** | **TickerType** | | [optional] |
+|**symbolStatus** | **SymbolStatus** | | [optional] |
diff --git a/clients/spot/docs/TradeApi.md b/clients/spot/docs/TradeApi.md
index 568c3463..94342e77 100644
--- a/clients/spot/docs/TradeApi.md
+++ b/clients/spot/docs/TradeApi.md
@@ -11,6 +11,8 @@ All URIs are relative to *http://localhost*
| [**orderListCancel**](TradeApi.md#orderListCancel) | **POST** /orderList.cancel | WebSocket Cancel Order list |
| [**orderListPlace**](TradeApi.md#orderListPlace) | **POST** /orderList.place | WebSocket Place new OCO - Deprecated |
| [**orderListPlaceOco**](TradeApi.md#orderListPlaceOco) | **POST** /orderList.place.oco | WebSocket Place new Order list - OCO |
+| [**orderListPlaceOpo**](TradeApi.md#orderListPlaceOpo) | **POST** /orderList.place.opo | WebSocket OPO |
+| [**orderListPlaceOpoco**](TradeApi.md#orderListPlaceOpoco) | **POST** /orderList.place.opoco | WebSocket OPOCO |
| [**orderListPlaceOto**](TradeApi.md#orderListPlaceOto) | **POST** /orderList.place.oto | WebSocket Place new Order list - OTO |
| [**orderListPlaceOtoco**](TradeApi.md#orderListPlaceOtoco) | **POST** /orderList.place.otoco | WebSocket Place new Order list - OTOCO |
| [**orderPlace**](TradeApi.md#orderPlace) | **POST** /order.place | WebSocket Place new order |
@@ -453,6 +455,130 @@ No authorization required
|-------------|-------------|------------------|
| **200** | Place new Order list - OCO | - |
+
+# **orderListPlaceOpo**
+> OrderListPlaceOpoResponse orderListPlaceOpo(orderListPlaceOpoRequest)
+
+WebSocket OPO
+
+Place an [OPO](./faqs/opo.md). * OPOs add 2 orders to the EXCHANGE_MAX_NUM_ORDERS filter and MAX_NUM_ORDERS filter. Weight: 1 Unfilled Order Count: 2
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.spot.ApiClient;
+import com.binance.connector.client.spot.ApiException;
+import com.binance.connector.client.spot.Configuration;
+import com.binance.connector.client.spot.models.*;
+import com.binance.connector.client.spot.websocket.api.api.TradeApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost");
+
+ TradeApi apiInstance = new TradeApi(defaultClient);
+ OrderListPlaceOpoRequest orderListPlaceOpoRequest = new OrderListPlaceOpoRequest(); // OrderListPlaceOpoRequest |
+ try {
+ OrderListPlaceOpoResponse result = apiInstance.orderListPlaceOpo(orderListPlaceOpoRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling TradeApi#orderListPlaceOpo");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **orderListPlaceOpoRequest** | [**OrderListPlaceOpoRequest**](OrderListPlaceOpoRequest.md)| | |
+
+### Return type
+
+[**OrderListPlaceOpoResponse**](OrderListPlaceOpoResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | OPO | - |
+
+
+# **orderListPlaceOpoco**
+> OrderListPlaceOpocoResponse orderListPlaceOpoco(orderListPlaceOpocoRequest)
+
+WebSocket OPOCO
+
+Place an [OPOCO](./faqs/opo.md). Weight: 1 Unfilled Order Count: 3
+
+### Example
+```java
+// Import classes:
+import com.binance.connector.client.spot.ApiClient;
+import com.binance.connector.client.spot.ApiException;
+import com.binance.connector.client.spot.Configuration;
+import com.binance.connector.client.spot.models.*;
+import com.binance.connector.client.spot.websocket.api.api.TradeApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost");
+
+ TradeApi apiInstance = new TradeApi(defaultClient);
+ OrderListPlaceOpocoRequest orderListPlaceOpocoRequest = new OrderListPlaceOpocoRequest(); // OrderListPlaceOpocoRequest |
+ try {
+ OrderListPlaceOpocoResponse result = apiInstance.orderListPlaceOpoco(orderListPlaceOpocoRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling TradeApi#orderListPlaceOpoco");
+ 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 |
+|------------- | ------------- | ------------- | -------------|
+| **orderListPlaceOpocoRequest** | [**OrderListPlaceOpocoRequest**](OrderListPlaceOpocoRequest.md)| | |
+
+### Return type
+
+[**OrderListPlaceOpocoResponse**](OrderListPlaceOpocoResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | OPOCO | - |
+
# **orderListPlaceOto**
> OrderListPlaceOtoResponse orderListPlaceOto(orderListPlaceOtoRequest)
diff --git a/clients/spot/docs/UserDataStreamApi.md b/clients/spot/docs/UserDataStreamApi.md
index 786d108d..c761102b 100644
--- a/clients/spot/docs/UserDataStreamApi.md
+++ b/clients/spot/docs/UserDataStreamApi.md
@@ -5,9 +5,6 @@ All URIs are relative to *http://localhost*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**sessionSubscriptions**](UserDataStreamApi.md#sessionSubscriptions) | **POST** /session.subscriptions | WebSocket Listing all subscriptions |
-| [**userDataStreamPing**](UserDataStreamApi.md#userDataStreamPing) | **POST** /userDataStream.ping | WebSocket Ping user data stream |
-| [**userDataStreamStart**](UserDataStreamApi.md#userDataStreamStart) | **POST** /userDataStream.start | WebSocket Start user data stream |
-| [**userDataStreamStop**](UserDataStreamApi.md#userDataStreamStop) | **POST** /userDataStream.stop | WebSocket Stop user data stream |
| [**userDataStreamSubscribe**](UserDataStreamApi.md#userDataStreamSubscribe) | **POST** /userDataStream.subscribe | WebSocket Subscribe to User Data Stream |
| [**userDataStreamSubscribeSignature**](UserDataStreamApi.md#userDataStreamSubscribeSignature) | **POST** /userDataStream.subscribe.signature | WebSocket Subscribe to User Data Stream through signature subscription |
| [**userDataStreamUnsubscribe**](UserDataStreamApi.md#userDataStreamUnsubscribe) | **POST** /userDataStream.unsubscribe | WebSocket Unsubscribe from User Data Stream |
@@ -71,188 +68,6 @@ No authorization required
|-------------|-------------|------------------|
| **200** | Listing all subscriptions | - |
-
-# **userDataStreamPing**
-> UserDataStreamPingResponse userDataStreamPing(userDataStreamPingRequest)
-
-WebSocket Ping user data stream
-
-Ping a user data stream to keep it alive. User data streams close automatically after 60 minutes, even if you're listening to them on WebSocket Streams. In order to keep the stream open, you have to regularly send pings using the `userDataStream.ping` request. It is recommended to send a ping once every 30 minutes. This request does not require `signature`. Weight: 2
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.spot.ApiClient;
-import com.binance.connector.client.spot.ApiException;
-import com.binance.connector.client.spot.Configuration;
-import com.binance.connector.client.spot.models.*;
-import com.binance.connector.client.spot.websocket.api.api.UserDataStreamApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost");
-
- UserDataStreamApi apiInstance = new UserDataStreamApi(defaultClient);
- UserDataStreamPingRequest userDataStreamPingRequest = new UserDataStreamPingRequest(); // UserDataStreamPingRequest |
- try {
- UserDataStreamPingResponse result = apiInstance.userDataStreamPing(userDataStreamPingRequest);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling UserDataStreamApi#userDataStreamPing");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **userDataStreamPingRequest** | [**UserDataStreamPingRequest**](UserDataStreamPingRequest.md)| | |
-
-### Return type
-
-[**UserDataStreamPingResponse**](UserDataStreamPingResponse.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Ping user data stream | - |
-
-
-# **userDataStreamStart**
-> UserDataStreamStartResponse userDataStreamStart()
-
-WebSocket Start user data stream
-
-Start a new user data stream. Note the stream will close in 60 minutes unless `userDataStream.ping` requests are sent regularly. This request does not require `signature`. Weight: 2
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.spot.ApiClient;
-import com.binance.connector.client.spot.ApiException;
-import com.binance.connector.client.spot.Configuration;
-import com.binance.connector.client.spot.models.*;
-import com.binance.connector.client.spot.websocket.api.api.UserDataStreamApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost");
-
- UserDataStreamApi apiInstance = new UserDataStreamApi(defaultClient);
- try {
- UserDataStreamStartResponse result = apiInstance.userDataStreamStart();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling UserDataStreamApi#userDataStreamStart");
- 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
-
-[**UserDataStreamStartResponse**](UserDataStreamStartResponse.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Start user data stream | - |
-
-
-# **userDataStreamStop**
-> UserDataStreamStopResponse userDataStreamStop(userDataStreamStopRequest)
-
-WebSocket Stop user data stream
-
-Explicitly stop and close the user data stream. This request does not require `signature`. Weight: 2
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.spot.ApiClient;
-import com.binance.connector.client.spot.ApiException;
-import com.binance.connector.client.spot.Configuration;
-import com.binance.connector.client.spot.models.*;
-import com.binance.connector.client.spot.websocket.api.api.UserDataStreamApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost");
-
- UserDataStreamApi apiInstance = new UserDataStreamApi(defaultClient);
- UserDataStreamStopRequest userDataStreamStopRequest = new UserDataStreamStopRequest(); // UserDataStreamStopRequest |
- try {
- UserDataStreamStopResponse result = apiInstance.userDataStreamStop(userDataStreamStopRequest);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling UserDataStreamApi#userDataStreamStop");
- 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 |
-|------------- | ------------- | ------------- | -------------|
-| **userDataStreamStopRequest** | [**UserDataStreamStopRequest**](UserDataStreamStopRequest.md)| | |
-
-### Return type
-
-[**UserDataStreamStopResponse**](UserDataStreamStopResponse.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Stop user data stream | - |
-
# **userDataStreamSubscribe**
> UserDataStreamSubscribeResponse userDataStreamSubscribe()
diff --git a/clients/spot/docs/UserDataStreamEventsResponse.md b/clients/spot/docs/UserDataStreamEventsResponse.md
index 527fd351..739047a4 100644
--- a/clients/spot/docs/UserDataStreamEventsResponse.md
+++ b/clients/spot/docs/UserDataStreamEventsResponse.md
@@ -61,7 +61,6 @@
|**gOT** | **String** | | [optional] |
|**gOV** | **Long** | | [optional] |
|**gp** | **String** | | [optional] |
-|**listenKey** | **String** | | [optional] |
diff --git a/clients/spot/docs/UserDataStreamPingRequest.md b/clients/spot/docs/UserDataStreamPingRequest.md
deleted file mode 100644
index 9c6f4cb8..00000000
--- a/clients/spot/docs/UserDataStreamPingRequest.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# UserDataStreamPingRequest
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**listenKey** | **String** | | |
-
-
-
diff --git a/clients/spot/docs/UserDataStreamStartResponse.md b/clients/spot/docs/UserDataStreamStartResponse.md
deleted file mode 100644
index 9c7fbc36..00000000
--- a/clients/spot/docs/UserDataStreamStartResponse.md
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-# UserDataStreamStartResponse
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **String** | | [optional] |
-|**status** | **Long** | | [optional] |
-|**result** | [**UserDataStreamStartResponseResult**](UserDataStreamStartResponseResult.md) | | [optional] |
-|**rateLimits** | [**List<RateLimits>**](RateLimits.md) | | [optional] |
-
-
-
diff --git a/clients/spot/docs/UserDataStreamStartResponseResult.md b/clients/spot/docs/UserDataStreamStartResponseResult.md
deleted file mode 100644
index cd385db0..00000000
--- a/clients/spot/docs/UserDataStreamStartResponseResult.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# UserDataStreamStartResponseResult
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**listenKey** | **String** | | [optional] |
-
-
-
diff --git a/clients/spot/docs/UserDataStreamStopRequest.md b/clients/spot/docs/UserDataStreamStopRequest.md
deleted file mode 100644
index aa363e25..00000000
--- a/clients/spot/docs/UserDataStreamStopRequest.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# UserDataStreamStopRequest
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**listenKey** | **String** | | |
-
-
-
diff --git a/clients/spot/docs/WebSocketStreamsApi.md b/clients/spot/docs/WebSocketStreamsApi.md
index 52016003..1365286e 100644
--- a/clients/spot/docs/WebSocketStreamsApi.md
+++ b/clients/spot/docs/WebSocketStreamsApi.md
@@ -7,7 +7,6 @@ All URIs are relative to *http://localhost*
| [**aggTrade**](WebSocketStreamsApi.md#aggTrade) | **POST** /<symbol>@aggTrade | WebSocket Aggregate Trade Streams |
| [**allMarketRollingWindowTicker**](WebSocketStreamsApi.md#allMarketRollingWindowTicker) | **POST** /!ticker_<windowSize>@arr | WebSocket All Market Rolling Window Statistics Streams |
| [**allMiniTicker**](WebSocketStreamsApi.md#allMiniTicker) | **POST** /!miniTicker@arr | WebSocket All Market Mini Tickers Stream |
-| [**allTicker**](WebSocketStreamsApi.md#allTicker) | **POST** /!ticker@arr | WebSocket All Market Tickers Stream |
| [**avgPrice**](WebSocketStreamsApi.md#avgPrice) | **POST** /<symbol>@avgPrice | WebSocket Average Price |
| [**bookTicker**](WebSocketStreamsApi.md#bookTicker) | **POST** /<symbol>@bookTicker | WebSocket Individual Symbol Book Ticker Streams |
| [**diffBookDepth**](WebSocketStreamsApi.md#diffBookDepth) | **POST** /<symbol>@depth@<updateSpeed> | WebSocket Diff. Depth Stream |
@@ -202,64 +201,6 @@ No authorization required
|-------------|-------------|------------------|
| **200** | All Market Mini Tickers Stream | - |
-
-# **allTicker**
-> AllTickerResponse allTicker()
-
-WebSocket All Market Tickers Stream
-
-24hr rolling window ticker statistics for all symbols that changed in an array. These are NOT the statistics of the UTC day, but a 24hr rolling window for the previous 24hrs. Note that only tickers that have changed will be present in the array.
-
-### Example
-```java
-// Import classes:
-import com.binance.connector.client.spot.ApiClient;
-import com.binance.connector.client.spot.ApiException;
-import com.binance.connector.client.spot.Configuration;
-import com.binance.connector.client.spot.models.*;
-import com.binance.connector.client.spot.websocket.stream.api.WebSocketStreamsApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost");
-
- WebSocketStreamsApi apiInstance = new WebSocketStreamsApi(defaultClient);
- try {
- AllTickerResponse result = apiInstance.allTicker();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling WebSocketStreamsApi#allTicker");
- 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
-
-[**AllTickerResponse**](AllTickerResponse.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | All Market Tickers Stream | - |
-
# **avgPrice**
> AvgPriceResponse avgPrice(avgPriceRequest)
diff --git a/clients/spot/docs/rest-api/migration-guide.md b/clients/spot/docs/rest-api/migration-guide.md
index ad195702..551cd0af 100644
--- a/clients/spot/docs/rest-api/migration-guide.md
+++ b/clients/spot/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-spot
- 7.0.1
+ 8.0.0
```
@@ -91,7 +91,7 @@ by:
io.github.binance
binance-spot
- 7.0.0
+ 8.0.0
```
diff --git a/clients/spot/example_rest.md b/clients/spot/example_rest.md
index 4cabc9e1..b4e8bb7f 100644
--- a/clients/spot/example_rest.md
+++ b/clients/spot/example_rest.md
@@ -42,7 +42,7 @@
[GET /api/v3/avgPrice](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#current-average-price) - avgPrice - [AvgPriceExample.java:46](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/AvgPriceExample.java#L46)
-[GET /api/v3/depth](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book) - depth - [DepthExample.java:47](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/DepthExample.java#L47)
+[GET /api/v3/depth](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book) - depth - [DepthExample.java:48](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/DepthExample.java#L48)
[GET /api/v3/trades](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#recent-trades-list) - getTrades - [GetTradesExample.java:46](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/GetTradesExample.java#L46)
@@ -50,15 +50,15 @@
[GET /api/v3/klines](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#klinecandlestick-data) - klines - [KlinesExample.java:48](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/KlinesExample.java#L48)
-[GET /api/v3/ticker](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#rolling-window-price-change-statistics) - ticker - [TickerExample.java:51](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/TickerExample.java#L51)
+[GET /api/v3/ticker](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#rolling-window-price-change-statistics) - ticker - [TickerExample.java:52](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/TickerExample.java#L52)
-[GET /api/v3/ticker/24hr](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics) - ticker24hr - [Ticker24hrExample.java:58](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/Ticker24hrExample.java#L58)
+[GET /api/v3/ticker/24hr](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics) - ticker24hr - [Ticker24hrExample.java:59](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/Ticker24hrExample.java#L59)
-[GET /api/v3/ticker/bookTicker](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker) - tickerBookTicker - [TickerBookTickerExample.java:53](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/TickerBookTickerExample.java#L53)
+[GET /api/v3/ticker/bookTicker](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker) - tickerBookTicker - [TickerBookTickerExample.java:54](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/TickerBookTickerExample.java#L54)
-[GET /api/v3/ticker/price](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker) - tickerPrice - [TickerPriceExample.java:53](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/TickerPriceExample.java#L53)
+[GET /api/v3/ticker/price](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker) - tickerPrice - [TickerPriceExample.java:54](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/TickerPriceExample.java#L54)
-[GET /api/v3/ticker/tradingDay](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#trading-day-ticker) - tickerTradingDay - [TickerTradingDayExample.java:50](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/TickerTradingDayExample.java#L50)
+[GET /api/v3/ticker/tradingDay](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#trading-day-ticker) - tickerTradingDay - [TickerTradingDayExample.java:51](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/TickerTradingDayExample.java#L51)
[GET /api/v3/uiKlines](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#uiklines) - uiKlines - [UiKlinesExample.java:49](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/market/UiKlinesExample.java#L49)
@@ -78,6 +78,10 @@
[POST /api/v3/orderList/oco](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-list---oco-trade) - orderListOco - [OrderListOcoExample.java:62](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/trade/OrderListOcoExample.java#L62)
+[POST /api/v3/orderList/opo](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-list---opo-trade) - orderListOpo - [OrderListOpoExample.java:52](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/trade/OrderListOpoExample.java#L52)
+
+[POST /api/v3/orderList/opoco](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-list---opoco-trade) - orderListOpoco - [OrderListOpocoExample.java:51](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/trade/OrderListOpocoExample.java#L51)
+
[POST /api/v3/orderList/oto](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-list---oto-trade) - orderListOto - [OrderListOtoExample.java:63](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/trade/OrderListOtoExample.java#L63)
[POST /api/v3/orderList/otoco](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-list---otoco-trade) - orderListOtoco - [OrderListOtocoExample.java:60](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/trade/OrderListOtocoExample.java#L60)
@@ -90,11 +94,3 @@
[POST /api/v3/sor/order/test](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#test-new-order-using-sor-trade) - sorOrderTest - [SorOrderTestExample.java:52](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/trade/SorOrderTestExample.java#L52)
-## UserDataStream
-
-[DELETE /api/v3/userDataStream](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/user-data-stream-endpoints---deprecated#close-user-data-stream-user_stream) - deleteUserDataStream - [DeleteUserDataStreamExample.java:44](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/userdatastream/DeleteUserDataStreamExample.java#L44)
-
-[POST /api/v3/userDataStream](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/user-data-stream-endpoints---deprecated#start-user-data-stream-user_stream) - newUserDataStream - [NewUserDataStreamExample.java:47](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/userdatastream/NewUserDataStreamExample.java#L47)
-
-[PUT /api/v3/userDataStream](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/user-data-stream-endpoints---deprecated#keepalive-user-data-stream-user_stream) - putUserDataStream - [PutUserDataStreamExample.java:47](/examples/spot/src/main/java/com/binance/connector/client/spot/rest/userdatastream/PutUserDataStreamExample.java#L47)
-
diff --git a/clients/spot/example_websocket_api.md b/clients/spot/example_websocket_api.md
index e3598456..e541aa27 100644
--- a/clients/spot/example_websocket_api.md
+++ b/clients/spot/example_websocket_api.md
@@ -86,6 +86,10 @@
[orderList.place.oco](https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/trading-requests#place-new-order-list---oco-trade) - orderListPlaceOco - [OrderListPlaceOcoExample.java:63](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/api/trade/OrderListPlaceOcoExample.java#L63)
+[orderList.place.opo](https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/trading-requests#opo-trade) - orderListPlaceOpo - [OrderListPlaceOpoExample.java:53](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/api/trade/OrderListPlaceOpoExample.java#L53)
+
+[orderList.place.opoco](https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/trading-requests#opoco-trade) - orderListPlaceOpoco - [OrderListPlaceOpocoExample.java:52](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/api/trade/OrderListPlaceOpocoExample.java#L52)
+
[orderList.place.oto](https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/trading-requests#place-new-order-list---oto-trade) - orderListPlaceOto - [OrderListPlaceOtoExample.java:64](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/api/trade/OrderListPlaceOtoExample.java#L64)
[orderList.place.otoco](https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/trading-requests#place-new-order-list---otoco-trade) - orderListPlaceOtoco - [OrderListPlaceOtocoExample.java:61](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/api/trade/OrderListPlaceOtocoExample.java#L61)
@@ -102,15 +106,9 @@
[session.subscriptions](https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/user-Data-Stream-requests#listing-all-subscriptions) - sessionSubscriptions - [SessionSubscriptionsExample.java:47](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/api/userdatastream/SessionSubscriptionsExample.java#L47)
-[userDataStream.ping](https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/user-Data-Stream-requests#ping-user-data-stream-user_stream) - userDataStreamPing - [UserDataStreamPingExample.java:52](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/api/userdatastream/UserDataStreamPingExample.java#L52)
-
-[userDataStream.start](https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/user-Data-Stream-requests#start-user-data-stream-user_stream) - userDataStreamStart - [UserDataStreamStartExample.java:49](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/api/userdatastream/UserDataStreamStartExample.java#L49)
-
-[userDataStream.stop](https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/user-Data-Stream-requests#stop-user-data-stream-user_stream) - userDataStreamStop - [UserDataStreamStopExample.java:49](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/api/userdatastream/UserDataStreamStopExample.java#L49)
-
[userDataStream.subscribe](https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/user-Data-Stream-requests#subscribe-to-user-data-stream-user_stream) - userDataStreamSubscribe - [UserDataStreamSubscribeExample.java:49](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/api/userdatastream/UserDataStreamSubscribeExample.java#L49)
-[userDataStream.subscribe.signature](https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/user-Data-Stream-requests#subscribe-to-user-data-stream-through-signature-subscription-user_data) - userDataStreamSubscribeSignature - [UserDataStreamSubscribeSignatureExample.java:49](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/api/userdatastream/UserDataStreamSubscribeSignatureExample.java#L49)
+[userDataStream.subscribe.signature](https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/user-Data-Stream-requests#subscribe-to-user-data-stream-through-signature-subscription-user_stream) - userDataStreamSubscribeSignature - [UserDataStreamSubscribeSignatureExample.java:49](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/api/userdatastream/UserDataStreamSubscribeSignatureExample.java#L49)
[userDataStream.unsubscribe](https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/user-Data-Stream-requests#unsubscribe-from-user-data-stream) - userDataStreamUnsubscribe - [UserDataStreamUnsubscribeExample.java:51](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/api/userdatastream/UserDataStreamUnsubscribeExample.java#L51)
diff --git a/clients/spot/example_websocket_stream.md b/clients/spot/example_websocket_stream.md
index 236a2bb1..750c31b4 100644
--- a/clients/spot/example_websocket_stream.md
+++ b/clients/spot/example_websocket_stream.md
@@ -6,8 +6,6 @@
[!miniTicker@arr](https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#all-market-mini-tickers-stream) - allMiniTicker - [AllMiniTickerExample.java:44](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/stream/websocketstreams/AllMiniTickerExample.java#L44)
-[!ticker@arr](https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#all-market-tickers-stream) - allTicker - [AllTickerExample.java:44](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/stream/websocketstreams/AllTickerExample.java#L44)
-
[@avgPrice](https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#average-price) - avgPrice - [AvgPriceExample.java:43](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/stream/websocketstreams/AvgPriceExample.java#L43)
[@bookTicker](https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#individual-symbol-book-ticker-streams) - bookTicker - [BookTickerExample.java:45](/examples/spot/src/main/java/com/binance/connector/client/spot/websocket/stream/websocketstreams/BookTickerExample.java#L45)
diff --git a/clients/spot/pom.xml b/clients/spot/pom.xml
index d9c53593..37a0d626 100644
--- a/clients/spot/pom.xml
+++ b/clients/spot/pom.xml
@@ -5,7 +5,7 @@
4.0.0
binance-spot
spot
- 7.0.1
+ 8.0.0
jar
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/JSON.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/JSON.java
index 3d0b0e62..fa49a22a 100644
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/JSON.java
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/JSON.java
@@ -531,9 +531,6 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.spot.rest.model.NewOrderResponseFillsInner
.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(
- new com.binance.connector.client.spot.rest.model.NewUserDataStreamResponse
- .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.spot.rest.model.NotionalFilter
.CustomTypeAdapterFactory());
@@ -601,6 +598,30 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.spot.rest.model.OrderListOcoResponseOrdersInner
.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.rest.model.OrderListOpoRequest
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.rest.model.OrderListOpoResponse
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.rest.model
+ .OrderListOpoResponseOrderReportsInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.rest.model.OrderListOpoResponseOrdersInner
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.rest.model.OrderListOpocoRequest
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.rest.model.OrderListOpocoResponse
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.rest.model
+ .OrderListOpocoResponseOrderReportsInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.rest.model.OrderListOpocoResponseOrdersInner
+ .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.spot.rest.model.OrderListOtoRequest
.CustomTypeAdapterFactory());
@@ -664,9 +685,6 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.spot.rest.model.PriceFilter
.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(
- new com.binance.connector.client.spot.rest.model.PutUserDataStreamRequest
- .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.spot.rest.model.RateLimitOrderResponse
.CustomTypeAdapterFactory());
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/AccountApi.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/AccountApi.java
index 1b16788a..3b6201e1 100644
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/AccountApi.java
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/AccountApi.java
@@ -56,7 +56,7 @@ public class AccountApi {
private static final String USER_AGENT =
String.format(
- "binance-spot/7.0.0 (Java/%s; %s; %s)",
+ "binance-spot/8.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = true;
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/GeneralApi.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/GeneralApi.java
index 0df1ccb3..7f999583 100644
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/GeneralApi.java
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/GeneralApi.java
@@ -47,7 +47,7 @@ public class GeneralApi {
private static final String USER_AGENT =
String.format(
- "binance-spot/7.0.0 (Java/%s; %s; %s)",
+ "binance-spot/8.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = true;
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/MarketApi.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/MarketApi.java
index ffa5a831..6b3fd792 100644
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/MarketApi.java
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/MarketApi.java
@@ -27,6 +27,7 @@
import com.binance.connector.client.spot.rest.model.HistoricalTradesResponse;
import com.binance.connector.client.spot.rest.model.Interval;
import com.binance.connector.client.spot.rest.model.KlinesResponse;
+import com.binance.connector.client.spot.rest.model.SymbolStatus;
import com.binance.connector.client.spot.rest.model.Symbols;
import com.binance.connector.client.spot.rest.model.Ticker24hrResponse;
import com.binance.connector.client.spot.rest.model.TickerBookTickerResponse;
@@ -58,7 +59,7 @@ public class MarketApi {
private static final String USER_AGENT =
String.format(
- "binance-spot/7.0.0 (Java/%s; %s; %s)",
+ "binance-spot/8.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = true;
@@ -399,6 +400,7 @@ public ApiResponse avgPrice(@NotNull String symbol) throws Api
*
* @param symbol (required)
* @param limit Default: 500; Maximum: 1000. (optional)
+ * @param symbolStatus (optional)
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
@@ -412,7 +414,8 @@ public ApiResponse avgPrice(@NotNull String symbol) throws Api
* href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book">Order
* book Documentation
*/
- private okhttp3.Call depthCall(String symbol, Integer limit) throws ApiException {
+ private okhttp3.Call depthCall(String symbol, Integer limit, SymbolStatus symbolStatus)
+ throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] {};
@@ -445,6 +448,11 @@ private okhttp3.Call depthCall(String symbol, Integer limit) throws ApiException
localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit));
}
+ if (symbolStatus != null) {
+ localVarQueryParams.addAll(
+ localVarApiClient.parameterToPair("symbolStatus", symbolStatus));
+ }
+
final String[] localVarAccepts = {"application/json"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -475,7 +483,8 @@ private okhttp3.Call depthCall(String symbol, Integer limit) throws ApiException
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call depthValidateBeforeCall(String symbol, Integer limit) throws ApiException {
+ private okhttp3.Call depthValidateBeforeCall(
+ String symbol, Integer limit, SymbolStatus symbolStatus) throws ApiException {
try {
Validator validator =
Validation.byDefaultProvider()
@@ -485,13 +494,15 @@ private okhttp3.Call depthValidateBeforeCall(String symbol, Integer limit) throw
.getValidator();
ExecutableValidator executableValidator = validator.forExecutables();
- Object[] parameterValues = {symbol, limit};
- Method method = this.getClass().getMethod("depth", String.class, Integer.class);
+ Object[] parameterValues = {symbol, limit, symbolStatus};
+ Method method =
+ this.getClass()
+ .getMethod("depth", String.class, Integer.class, SymbolStatus.class);
Set> violations =
executableValidator.validateParameters(this, method, parameterValues);
if (violations.size() == 0) {
- return depthCall(symbol, limit);
+ return depthCall(symbol, limit, symbolStatus);
} else {
throw new ConstraintViolationException((Set) violations);
}
@@ -510,6 +521,7 @@ private okhttp3.Call depthValidateBeforeCall(String symbol, Integer limit) throw
*
* @param symbol (required)
* @param limit Default: 500; Maximum: 1000. (optional)
+ * @param symbolStatus (optional)
* @return ApiResponse<DepthResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -524,9 +536,9 @@ private okhttp3.Call depthValidateBeforeCall(String symbol, Integer limit) throw
* href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book">Order
* book Documentation
*/
- public ApiResponse depth(@NotNull String symbol, Integer limit)
- throws ApiException {
- okhttp3.Call localVarCall = depthValidateBeforeCall(symbol, limit);
+ public ApiResponse depth(
+ @NotNull String symbol, Integer limit, SymbolStatus symbolStatus) throws ApiException {
+ okhttp3.Call localVarCall = depthValidateBeforeCall(symbol, limit, symbolStatus);
java.lang.reflect.Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -1013,6 +1025,7 @@ public ApiResponse klines(
* @param symbols List of symbols to query (optional)
* @param windowSize (optional)
* @param type (optional)
+ * @param symbolStatus (optional)
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
@@ -1027,7 +1040,11 @@ public ApiResponse klines(
* window price change statistics Documentation
*/
private okhttp3.Call tickerCall(
- String symbol, Symbols symbols, WindowSize windowSize, TickerType type)
+ String symbol,
+ Symbols symbols,
+ WindowSize windowSize,
+ TickerType type,
+ SymbolStatus symbolStatus)
throws ApiException {
String basePath = null;
// Operation Servers
@@ -1070,6 +1087,11 @@ private okhttp3.Call tickerCall(
localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type));
}
+ if (symbolStatus != null) {
+ localVarQueryParams.addAll(
+ localVarApiClient.parameterToPair("symbolStatus", symbolStatus));
+ }
+
final String[] localVarAccepts = {"application/json"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -1101,7 +1123,11 @@ private okhttp3.Call tickerCall(
@SuppressWarnings("rawtypes")
private okhttp3.Call tickerValidateBeforeCall(
- String symbol, Symbols symbols, WindowSize windowSize, TickerType type)
+ String symbol,
+ Symbols symbols,
+ WindowSize windowSize,
+ TickerType type,
+ SymbolStatus symbolStatus)
throws ApiException {
try {
Validator validator =
@@ -1112,7 +1138,7 @@ private okhttp3.Call tickerValidateBeforeCall(
.getValidator();
ExecutableValidator executableValidator = validator.forExecutables();
- Object[] parameterValues = {symbol, symbols, windowSize, type};
+ Object[] parameterValues = {symbol, symbols, windowSize, type, symbolStatus};
Method method =
this.getClass()
.getMethod(
@@ -1120,12 +1146,13 @@ private okhttp3.Call tickerValidateBeforeCall(
String.class,
Symbols.class,
WindowSize.class,
- TickerType.class);
+ TickerType.class,
+ SymbolStatus.class);
Set> violations =
executableValidator.validateParameters(this, method, parameterValues);
if (violations.size() == 0) {
- return tickerCall(symbol, symbols, windowSize, type);
+ return tickerCall(symbol, symbols, windowSize, type, symbolStatus);
} else {
throw new ConstraintViolationException((Set) violations);
}
@@ -1148,6 +1175,7 @@ private okhttp3.Call tickerValidateBeforeCall(
* @param symbols List of symbols to query (optional)
* @param windowSize (optional)
* @param type (optional)
+ * @param symbolStatus (optional)
* @return ApiResponse<TickerResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -1163,9 +1191,14 @@ private okhttp3.Call tickerValidateBeforeCall(
* window price change statistics Documentation
*/
public ApiResponse ticker(
- String symbol, Symbols symbols, WindowSize windowSize, TickerType type)
+ String symbol,
+ Symbols symbols,
+ WindowSize windowSize,
+ TickerType type,
+ SymbolStatus symbolStatus)
throws ApiException {
- okhttp3.Call localVarCall = tickerValidateBeforeCall(symbol, symbols, windowSize, type);
+ okhttp3.Call localVarCall =
+ tickerValidateBeforeCall(symbol, symbols, windowSize, type, symbolStatus);
java.lang.reflect.Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -1176,6 +1209,7 @@ public ApiResponse ticker(
* @param symbol Symbol to query (optional)
* @param symbols List of symbols to query (optional)
* @param type (optional)
+ * @param symbolStatus (optional)
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
@@ -1189,7 +1223,8 @@ public ApiResponse ticker(
* href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics">24hr
* ticker price change statistics Documentation
*/
- private okhttp3.Call ticker24hrCall(String symbol, Symbols symbols, TickerType type)
+ private okhttp3.Call ticker24hrCall(
+ String symbol, Symbols symbols, TickerType type, SymbolStatus symbolStatus)
throws ApiException {
String basePath = null;
// Operation Servers
@@ -1228,6 +1263,11 @@ private okhttp3.Call ticker24hrCall(String symbol, Symbols symbols, TickerType t
localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type));
}
+ if (symbolStatus != null) {
+ localVarQueryParams.addAll(
+ localVarApiClient.parameterToPair("symbolStatus", symbolStatus));
+ }
+
final String[] localVarAccepts = {"application/json"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -1259,7 +1299,8 @@ private okhttp3.Call ticker24hrCall(String symbol, Symbols symbols, TickerType t
@SuppressWarnings("rawtypes")
private okhttp3.Call ticker24hrValidateBeforeCall(
- String symbol, Symbols symbols, TickerType type) throws ApiException {
+ String symbol, Symbols symbols, TickerType type, SymbolStatus symbolStatus)
+ throws ApiException {
try {
Validator validator =
Validation.byDefaultProvider()
@@ -1269,15 +1310,20 @@ private okhttp3.Call ticker24hrValidateBeforeCall(
.getValidator();
ExecutableValidator executableValidator = validator.forExecutables();
- Object[] parameterValues = {symbol, symbols, type};
+ Object[] parameterValues = {symbol, symbols, type, symbolStatus};
Method method =
this.getClass()
- .getMethod("ticker24hr", String.class, Symbols.class, TickerType.class);
+ .getMethod(
+ "ticker24hr",
+ String.class,
+ Symbols.class,
+ TickerType.class,
+ SymbolStatus.class);
Set> violations =
executableValidator.validateParameters(this, method, parameterValues);
if (violations.size() == 0) {
- return ticker24hrCall(symbol, symbols, type);
+ return ticker24hrCall(symbol, symbols, type, symbolStatus);
} else {
throw new ConstraintViolationException((Set) violations);
}
@@ -1307,6 +1353,7 @@ private okhttp3.Call ticker24hrValidateBeforeCall(
* @param symbol Symbol to query (optional)
* @param symbols List of symbols to query (optional)
* @param type (optional)
+ * @param symbolStatus (optional)
* @return ApiResponse<Ticker24hrResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -1322,8 +1369,10 @@ private okhttp3.Call ticker24hrValidateBeforeCall(
* ticker price change statistics Documentation
*/
public ApiResponse ticker24hr(
- String symbol, Symbols symbols, TickerType type) throws ApiException {
- okhttp3.Call localVarCall = ticker24hrValidateBeforeCall(symbol, symbols, type);
+ String symbol, Symbols symbols, TickerType type, SymbolStatus symbolStatus)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ ticker24hrValidateBeforeCall(symbol, symbols, type, symbolStatus);
java.lang.reflect.Type localVarReturnType =
new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -1334,6 +1383,7 @@ public ApiResponse ticker24hr(
*
* @param symbol Symbol to query (optional)
* @param symbols List of symbols to query (optional)
+ * @param symbolStatus (optional)
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
@@ -1347,7 +1397,8 @@ public ApiResponse ticker24hr(
* href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker">Symbol
* order book ticker Documentation
*/
- private okhttp3.Call tickerBookTickerCall(String symbol, Symbols symbols) throws ApiException {
+ private okhttp3.Call tickerBookTickerCall(
+ String symbol, Symbols symbols, SymbolStatus symbolStatus) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] {};
@@ -1381,6 +1432,11 @@ private okhttp3.Call tickerBookTickerCall(String symbol, Symbols symbols) throws
localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbols", json));
}
+ if (symbolStatus != null) {
+ localVarQueryParams.addAll(
+ localVarApiClient.parameterToPair("symbolStatus", symbolStatus));
+ }
+
final String[] localVarAccepts = {"application/json"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -1411,8 +1467,8 @@ private okhttp3.Call tickerBookTickerCall(String symbol, Symbols symbols) throws
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call tickerBookTickerValidateBeforeCall(String symbol, Symbols symbols)
- throws ApiException {
+ private okhttp3.Call tickerBookTickerValidateBeforeCall(
+ String symbol, Symbols symbols, SymbolStatus symbolStatus) throws ApiException {
try {
Validator validator =
Validation.byDefaultProvider()
@@ -1422,14 +1478,19 @@ private okhttp3.Call tickerBookTickerValidateBeforeCall(String symbol, Symbols s
.getValidator();
ExecutableValidator executableValidator = validator.forExecutables();
- Object[] parameterValues = {symbol, symbols};
+ Object[] parameterValues = {symbol, symbols, symbolStatus};
Method method =
- this.getClass().getMethod("tickerBookTicker", String.class, Symbols.class);
+ this.getClass()
+ .getMethod(
+ "tickerBookTicker",
+ String.class,
+ Symbols.class,
+ SymbolStatus.class);
Set> violations =
executableValidator.validateParameters(this, method, parameterValues);
if (violations.size() == 0) {
- return tickerBookTickerCall(symbol, symbols);
+ return tickerBookTickerCall(symbol, symbols, symbolStatus);
} else {
throw new ConstraintViolationException((Set) violations);
}
@@ -1453,6 +1514,7 @@ private okhttp3.Call tickerBookTickerValidateBeforeCall(String symbol, Symbols s
*
* @param symbol Symbol to query (optional)
* @param symbols List of symbols to query (optional)
+ * @param symbolStatus (optional)
* @return ApiResponse<TickerBookTickerResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -1467,9 +1529,10 @@ private okhttp3.Call tickerBookTickerValidateBeforeCall(String symbol, Symbols s
* href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker">Symbol
* order book ticker Documentation
*/
- public ApiResponse tickerBookTicker(String symbol, Symbols symbols)
- throws ApiException {
- okhttp3.Call localVarCall = tickerBookTickerValidateBeforeCall(symbol, symbols);
+ public ApiResponse tickerBookTicker(
+ String symbol, Symbols symbols, SymbolStatus symbolStatus) throws ApiException {
+ okhttp3.Call localVarCall =
+ tickerBookTickerValidateBeforeCall(symbol, symbols, symbolStatus);
java.lang.reflect.Type localVarReturnType =
new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -1480,6 +1543,7 @@ public ApiResponse tickerBookTicker(String symbol, Sym
*
* @param symbol Symbol to query (optional)
* @param symbols List of symbols to query (optional)
+ * @param symbolStatus (optional)
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
@@ -1493,7 +1557,8 @@ public ApiResponse tickerBookTicker(String symbol, Sym
* href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker">Symbol
* price ticker Documentation
*/
- private okhttp3.Call tickerPriceCall(String symbol, Symbols symbols) throws ApiException {
+ private okhttp3.Call tickerPriceCall(String symbol, Symbols symbols, SymbolStatus symbolStatus)
+ throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] {};
@@ -1527,6 +1592,11 @@ private okhttp3.Call tickerPriceCall(String symbol, Symbols symbols) throws ApiE
localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbols", json));
}
+ if (symbolStatus != null) {
+ localVarQueryParams.addAll(
+ localVarApiClient.parameterToPair("symbolStatus", symbolStatus));
+ }
+
final String[] localVarAccepts = {"application/json"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -1557,8 +1627,8 @@ private okhttp3.Call tickerPriceCall(String symbol, Symbols symbols) throws ApiE
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call tickerPriceValidateBeforeCall(String symbol, Symbols symbols)
- throws ApiException {
+ private okhttp3.Call tickerPriceValidateBeforeCall(
+ String symbol, Symbols symbols, SymbolStatus symbolStatus) throws ApiException {
try {
Validator validator =
Validation.byDefaultProvider()
@@ -1568,13 +1638,16 @@ private okhttp3.Call tickerPriceValidateBeforeCall(String symbol, Symbols symbol
.getValidator();
ExecutableValidator executableValidator = validator.forExecutables();
- Object[] parameterValues = {symbol, symbols};
- Method method = this.getClass().getMethod("tickerPrice", String.class, Symbols.class);
+ Object[] parameterValues = {symbol, symbols, symbolStatus};
+ Method method =
+ this.getClass()
+ .getMethod(
+ "tickerPrice", String.class, Symbols.class, SymbolStatus.class);
Set> violations =
executableValidator.validateParameters(this, method, parameterValues);
if (violations.size() == 0) {
- return tickerPriceCall(symbol, symbols);
+ return tickerPriceCall(symbol, symbols, symbolStatus);
} else {
throw new ConstraintViolationException((Set) violations);
}
@@ -1598,6 +1671,7 @@ private okhttp3.Call tickerPriceValidateBeforeCall(String symbol, Symbols symbol
*
* @param symbol Symbol to query (optional)
* @param symbols List of symbols to query (optional)
+ * @param symbolStatus (optional)
* @return ApiResponse<TickerPriceResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -1612,9 +1686,9 @@ private okhttp3.Call tickerPriceValidateBeforeCall(String symbol, Symbols symbol
* href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker">Symbol
* price ticker Documentation
*/
- public ApiResponse tickerPrice(String symbol, Symbols symbols)
- throws ApiException {
- okhttp3.Call localVarCall = tickerPriceValidateBeforeCall(symbol, symbols);
+ public ApiResponse tickerPrice(
+ String symbol, Symbols symbols, SymbolStatus symbolStatus) throws ApiException {
+ okhttp3.Call localVarCall = tickerPriceValidateBeforeCall(symbol, symbols, symbolStatus);
java.lang.reflect.Type localVarReturnType =
new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -1627,6 +1701,7 @@ public ApiResponse tickerPrice(String symbol, Symbols symbo
* @param symbols List of symbols to query (optional)
* @param timeZone Default: 0 (UTC) (optional)
* @param type (optional)
+ * @param symbolStatus (optional)
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
@@ -1641,7 +1716,12 @@ public ApiResponse tickerPrice(String symbol, Symbols symbo
* Day Ticker Documentation
*/
private okhttp3.Call tickerTradingDayCall(
- String symbol, Symbols symbols, String timeZone, TickerType type) throws ApiException {
+ String symbol,
+ Symbols symbols,
+ String timeZone,
+ TickerType type,
+ SymbolStatus symbolStatus)
+ throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] {};
@@ -1683,6 +1763,11 @@ private okhttp3.Call tickerTradingDayCall(
localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type));
}
+ if (symbolStatus != null) {
+ localVarQueryParams.addAll(
+ localVarApiClient.parameterToPair("symbolStatus", symbolStatus));
+ }
+
final String[] localVarAccepts = {"application/json"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -1714,7 +1799,12 @@ private okhttp3.Call tickerTradingDayCall(
@SuppressWarnings("rawtypes")
private okhttp3.Call tickerTradingDayValidateBeforeCall(
- String symbol, Symbols symbols, String timeZone, TickerType type) throws ApiException {
+ String symbol,
+ Symbols symbols,
+ String timeZone,
+ TickerType type,
+ SymbolStatus symbolStatus)
+ throws ApiException {
try {
Validator validator =
Validation.byDefaultProvider()
@@ -1724,7 +1814,7 @@ private okhttp3.Call tickerTradingDayValidateBeforeCall(
.getValidator();
ExecutableValidator executableValidator = validator.forExecutables();
- Object[] parameterValues = {symbol, symbols, timeZone, type};
+ Object[] parameterValues = {symbol, symbols, timeZone, type, symbolStatus};
Method method =
this.getClass()
.getMethod(
@@ -1732,12 +1822,13 @@ private okhttp3.Call tickerTradingDayValidateBeforeCall(
String.class,
Symbols.class,
String.class,
- TickerType.class);
+ TickerType.class,
+ SymbolStatus.class);
Set> violations =
executableValidator.validateParameters(this, method, parameterValues);
if (violations.size() == 0) {
- return tickerTradingDayCall(symbol, symbols, timeZone, type);
+ return tickerTradingDayCall(symbol, symbols, timeZone, type, symbolStatus);
} else {
throw new ConstraintViolationException((Set) violations);
}
@@ -1759,6 +1850,7 @@ private okhttp3.Call tickerTradingDayValidateBeforeCall(
* @param symbols List of symbols to query (optional)
* @param timeZone Default: 0 (UTC) (optional)
* @param type (optional)
+ * @param symbolStatus (optional)
* @return ApiResponse<TickerTradingDayResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -1774,9 +1866,14 @@ private okhttp3.Call tickerTradingDayValidateBeforeCall(
* Day Ticker Documentation
*/
public ApiResponse tickerTradingDay(
- String symbol, Symbols symbols, String timeZone, TickerType type) throws ApiException {
+ String symbol,
+ Symbols symbols,
+ String timeZone,
+ TickerType type,
+ SymbolStatus symbolStatus)
+ throws ApiException {
okhttp3.Call localVarCall =
- tickerTradingDayValidateBeforeCall(symbol, symbols, timeZone, type);
+ tickerTradingDayValidateBeforeCall(symbol, symbols, timeZone, type, symbolStatus);
java.lang.reflect.Type localVarReturnType =
new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/SpotRestApi.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/SpotRestApi.java
index 7652873c..317aecdc 100644
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/SpotRestApi.java
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/SpotRestApi.java
@@ -30,7 +30,6 @@
import com.binance.connector.client.spot.rest.model.MyTradesResponse;
import com.binance.connector.client.spot.rest.model.NewOrderRequest;
import com.binance.connector.client.spot.rest.model.NewOrderResponse;
-import com.binance.connector.client.spot.rest.model.NewUserDataStreamResponse;
import com.binance.connector.client.spot.rest.model.OpenOrderListResponse;
import com.binance.connector.client.spot.rest.model.OrderAmendKeepPriorityRequest;
import com.binance.connector.client.spot.rest.model.OrderAmendKeepPriorityResponse;
@@ -39,6 +38,10 @@
import com.binance.connector.client.spot.rest.model.OrderCancelReplaceResponse;
import com.binance.connector.client.spot.rest.model.OrderListOcoRequest;
import com.binance.connector.client.spot.rest.model.OrderListOcoResponse;
+import com.binance.connector.client.spot.rest.model.OrderListOpoRequest;
+import com.binance.connector.client.spot.rest.model.OrderListOpoResponse;
+import com.binance.connector.client.spot.rest.model.OrderListOpocoRequest;
+import com.binance.connector.client.spot.rest.model.OrderListOpocoResponse;
import com.binance.connector.client.spot.rest.model.OrderListOtoRequest;
import com.binance.connector.client.spot.rest.model.OrderListOtoResponse;
import com.binance.connector.client.spot.rest.model.OrderListOtocoRequest;
@@ -48,7 +51,6 @@
import com.binance.connector.client.spot.rest.model.OrderTestRequest;
import com.binance.connector.client.spot.rest.model.OrderTestResponse;
import com.binance.connector.client.spot.rest.model.Permissions;
-import com.binance.connector.client.spot.rest.model.PutUserDataStreamRequest;
import com.binance.connector.client.spot.rest.model.RateLimitOrderResponse;
import com.binance.connector.client.spot.rest.model.SorOrderRequest;
import com.binance.connector.client.spot.rest.model.SorOrderResponse;
@@ -72,7 +74,6 @@ public class SpotRestApi {
private final GeneralApi generalApi;
private final MarketApi marketApi;
private final TradeApi tradeApi;
- private final UserDataStreamApi userDataStreamApi;
public SpotRestApi(ClientConfiguration configuration) {
this(SpotRestApiUtil.getDefaultClient(configuration));
@@ -83,7 +84,6 @@ public SpotRestApi(ApiClient apiClient) {
this.generalApi = new GeneralApi(apiClient);
this.marketApi = new MarketApi(apiClient);
this.tradeApi = new TradeApi(apiClient);
- this.userDataStreamApi = new UserDataStreamApi(apiClient);
}
/**
@@ -653,6 +653,7 @@ public ApiResponse avgPrice(String symbol) throws ApiException
*
* @param symbol (required)
* @param limit Default: 500; Maximum: 1000. (optional)
+ * @param symbolStatus (optional)
* @return ApiResponse<DepthResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -667,8 +668,9 @@ public ApiResponse avgPrice(String symbol) throws ApiException
* href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book">Order
* book Documentation
*/
- public ApiResponse depth(String symbol, Integer limit) throws ApiException {
- return marketApi.depth(symbol, limit);
+ public ApiResponse depth(String symbol, Integer limit, SymbolStatus symbolStatus)
+ throws ApiException {
+ return marketApi.depth(symbol, limit, symbolStatus);
}
/**
@@ -765,6 +767,7 @@ public ApiResponse klines(
* @param symbols List of symbols to query (optional)
* @param windowSize (optional)
* @param type (optional)
+ * @param symbolStatus (optional)
* @return ApiResponse<TickerResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -780,9 +783,13 @@ public ApiResponse klines(
* window price change statistics Documentation
*/
public ApiResponse ticker(
- String symbol, Symbols symbols, WindowSize windowSize, TickerType type)
+ String symbol,
+ Symbols symbols,
+ WindowSize windowSize,
+ TickerType type,
+ SymbolStatus symbolStatus)
throws ApiException {
- return marketApi.ticker(symbol, symbols, windowSize, type);
+ return marketApi.ticker(symbol, symbols, windowSize, type, symbolStatus);
}
/**
@@ -802,6 +809,7 @@ public ApiResponse ticker(
* @param symbol Symbol to query (optional)
* @param symbols List of symbols to query (optional)
* @param type (optional)
+ * @param symbolStatus (optional)
* @return ApiResponse<Ticker24hrResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -817,8 +825,9 @@ public ApiResponse ticker(
* ticker price change statistics Documentation
*/
public ApiResponse ticker24hr(
- String symbol, Symbols symbols, TickerType type) throws ApiException {
- return marketApi.ticker24hr(symbol, symbols, type);
+ String symbol, Symbols symbols, TickerType type, SymbolStatus symbolStatus)
+ throws ApiException {
+ return marketApi.ticker24hr(symbol, symbols, type, symbolStatus);
}
/**
@@ -832,6 +841,7 @@ public ApiResponse ticker24hr(
*
* @param symbol Symbol to query (optional)
* @param symbols List of symbols to query (optional)
+ * @param symbolStatus (optional)
* @return ApiResponse<TickerBookTickerResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -846,9 +856,9 @@ public ApiResponse ticker24hr(
* href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker">Symbol
* order book ticker Documentation
*/
- public ApiResponse tickerBookTicker(String symbol, Symbols symbols)
- throws ApiException {
- return marketApi.tickerBookTicker(symbol, symbols);
+ public ApiResponse tickerBookTicker(
+ String symbol, Symbols symbols, SymbolStatus symbolStatus) throws ApiException {
+ return marketApi.tickerBookTicker(symbol, symbols, symbolStatus);
}
/**
@@ -862,6 +872,7 @@ public ApiResponse tickerBookTicker(String symbol, Sym
*
* @param symbol Symbol to query (optional)
* @param symbols List of symbols to query (optional)
+ * @param symbolStatus (optional)
* @return ApiResponse<TickerPriceResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -876,9 +887,9 @@ public ApiResponse tickerBookTicker(String symbol, Sym
* href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker">Symbol
* price ticker Documentation
*/
- public ApiResponse tickerPrice(String symbol, Symbols symbols)
- throws ApiException {
- return marketApi.tickerPrice(symbol, symbols);
+ public ApiResponse tickerPrice(
+ String symbol, Symbols symbols, SymbolStatus symbolStatus) throws ApiException {
+ return marketApi.tickerPrice(symbol, symbols, symbolStatus);
}
/**
@@ -890,6 +901,7 @@ public ApiResponse tickerPrice(String symbol, Symbols symbo
* @param symbols List of symbols to query (optional)
* @param timeZone Default: 0 (UTC) (optional)
* @param type (optional)
+ * @param symbolStatus (optional)
* @return ApiResponse<TickerTradingDayResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -905,8 +917,13 @@ public ApiResponse tickerPrice(String symbol, Symbols symbo
* Day Ticker Documentation
*/
public ApiResponse tickerTradingDay(
- String symbol, Symbols symbols, String timeZone, TickerType type) throws ApiException {
- return marketApi.tickerTradingDay(symbol, symbols, timeZone, type);
+ String symbol,
+ Symbols symbols,
+ String timeZone,
+ TickerType type,
+ SymbolStatus symbolStatus)
+ throws ApiException {
+ return marketApi.tickerTradingDay(symbol, symbols, timeZone, type, symbolStatus);
}
/**
@@ -1166,6 +1183,53 @@ public ApiResponse orderListOco(OrderListOcoRequest orderL
return tradeApi.orderListOco(orderListOcoRequest);
}
+ /**
+ * New Order List - OPO Place an [OPO](./faqs/opo.md). * OPOs add 2 orders to the
+ * EXCHANGE_MAX_NUM_ORDERS filter and MAX_NUM_ORDERS filter. Weight: 1 Unfilled Order Count: 2
+ *
+ * @param orderListOpoRequest (required)
+ * @return ApiResponse<OrderListOpoResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | New Order List - OPO | - |
+ *
+ *
+ * @see New
+ * Order List - OPO Documentation
+ */
+ public ApiResponse orderListOpo(OrderListOpoRequest orderListOpoRequest)
+ throws ApiException {
+ return tradeApi.orderListOpo(orderListOpoRequest);
+ }
+
+ /**
+ * New Order List - OPOCO Place an [OPOCO](./faqs/opo.md). Weight: 1 Unfilled Order Count: 3
+ *
+ * @param orderListOpocoRequest (required)
+ * @return ApiResponse<OrderListOpocoResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | New Order List - OPOCO | - |
+ *
+ *
+ * @see New
+ * Order List - OPOCO Documentation
+ */
+ public ApiResponse orderListOpoco(
+ OrderListOpocoRequest orderListOpocoRequest) throws ApiException {
+ return tradeApi.orderListOpoco(orderListOpocoRequest);
+ }
+
/**
* New Order list - OTO Place an OTO. * An OTO (One-Triggers-the-Other) is an order list
* comprised of 2 orders. * The first order is called the **working order** and must be
@@ -1252,6 +1316,7 @@ public ApiResponse orderListOtoco(
* | 200 | New OCO - Deprecated | - |
*
*
+ * @deprecated
* @see New
* OCO - Deprecated Documentation
@@ -1337,73 +1402,4 @@ public ApiResponse sorOrderTest(SorOrderTestRequest sorOrd
throws ApiException {
return tradeApi.sorOrderTest(sorOrderTestRequest);
}
-
- /**
- * Close user data stream Close out a user data stream. Weight: 2
- *
- * @param listenKey (required)
- * @return ApiResponse<Void>
- * @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 | OK | - |
- *
- *
- * @see Close
- * user data stream Documentation
- */
- public void deleteUserDataStream(String listenKey) throws ApiException {
- userDataStreamApi.deleteUserDataStream(listenKey);
- }
-
- /**
- * Start user data stream Start a new user data stream. The stream will close after 60 minutes
- * unless a keepalive is sent. This request does not require `signature`. Weight: 2
- *
- * @return ApiResponse<NewUserDataStreamResponse>
- * @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 | Start user data stream | - |
- *
- *
- * @see Start
- * user data stream Documentation
- */
- public ApiResponse newUserDataStream() throws ApiException {
- return userDataStreamApi.newUserDataStream();
- }
-
- /**
- * Keepalive user data stream Keepalive a user data stream to prevent a time out. User data
- * streams will close after 60 minutes. It's recommended to send a ping about every 30
- * minutes. This request does not require `signature`. Weight: 2
- *
- * @param putUserDataStreamRequest (required)
- * @return ApiResponse<Void>
- * @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 | OK | - |
- *
- *
- * @see Keepalive
- * user data stream Documentation
- */
- public void putUserDataStream(PutUserDataStreamRequest putUserDataStreamRequest)
- throws ApiException {
- userDataStreamApi.putUserDataStream(putUserDataStreamRequest);
- }
}
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/TradeApi.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/TradeApi.java
index fbdb32d4..b0cb5194 100644
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/TradeApi.java
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/TradeApi.java
@@ -32,6 +32,10 @@
import com.binance.connector.client.spot.rest.model.OrderCancelReplaceResponse;
import com.binance.connector.client.spot.rest.model.OrderListOcoRequest;
import com.binance.connector.client.spot.rest.model.OrderListOcoResponse;
+import com.binance.connector.client.spot.rest.model.OrderListOpoRequest;
+import com.binance.connector.client.spot.rest.model.OrderListOpoResponse;
+import com.binance.connector.client.spot.rest.model.OrderListOpocoRequest;
+import com.binance.connector.client.spot.rest.model.OrderListOpocoResponse;
import com.binance.connector.client.spot.rest.model.OrderListOtoRequest;
import com.binance.connector.client.spot.rest.model.OrderListOtoResponse;
import com.binance.connector.client.spot.rest.model.OrderListOtocoRequest;
@@ -67,7 +71,7 @@ public class TradeApi {
private static final String USER_AGENT =
String.format(
- "binance-spot/7.0.0 (Java/%s; %s; %s)",
+ "binance-spot/8.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private static final boolean HAS_TIME_UNIT = true;
@@ -1614,6 +1618,658 @@ public ApiResponse orderListOco(
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
+ /**
+ * Build call for orderListOpo
+ *
+ * @param orderListOpoRequest (required)
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | New Order List - OPO | - |
+ *
+ *
+ * @see New
+ * Order List - OPO Documentation
+ */
+ private okhttp3.Call orderListOpoCall(OrderListOpoRequest orderListOpoRequest)
+ 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 = "/api/v3/orderList/opo";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (orderListOpoRequest.getSymbol() != null) {
+ localVarFormParams.put("symbol", orderListOpoRequest.getSymbol());
+ }
+
+ if (orderListOpoRequest.getListClientOrderId() != null) {
+ localVarFormParams.put("listClientOrderId", orderListOpoRequest.getListClientOrderId());
+ }
+
+ if (orderListOpoRequest.getNewOrderRespType() != null) {
+ localVarFormParams.put("newOrderRespType", orderListOpoRequest.getNewOrderRespType());
+ }
+
+ if (orderListOpoRequest.getSelfTradePreventionMode() != null) {
+ localVarFormParams.put(
+ "selfTradePreventionMode", orderListOpoRequest.getSelfTradePreventionMode());
+ }
+
+ if (orderListOpoRequest.getWorkingType() != null) {
+ localVarFormParams.put("workingType", orderListOpoRequest.getWorkingType());
+ }
+
+ if (orderListOpoRequest.getWorkingSide() != null) {
+ localVarFormParams.put("workingSide", orderListOpoRequest.getWorkingSide());
+ }
+
+ if (orderListOpoRequest.getWorkingClientOrderId() != null) {
+ localVarFormParams.put(
+ "workingClientOrderId", orderListOpoRequest.getWorkingClientOrderId());
+ }
+
+ if (orderListOpoRequest.getWorkingPrice() != null) {
+ localVarFormParams.put(
+ "workingPrice",
+ DecimalFormatter.getFormatter().format(orderListOpoRequest.getWorkingPrice()));
+ }
+
+ if (orderListOpoRequest.getWorkingQuantity() != null) {
+ localVarFormParams.put(
+ "workingQuantity",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpoRequest.getWorkingQuantity()));
+ }
+
+ if (orderListOpoRequest.getWorkingIcebergQty() != null) {
+ localVarFormParams.put(
+ "workingIcebergQty",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpoRequest.getWorkingIcebergQty()));
+ }
+
+ if (orderListOpoRequest.getWorkingTimeInForce() != null) {
+ localVarFormParams.put(
+ "workingTimeInForce", orderListOpoRequest.getWorkingTimeInForce());
+ }
+
+ if (orderListOpoRequest.getWorkingStrategyId() != null) {
+ localVarFormParams.put("workingStrategyId", orderListOpoRequest.getWorkingStrategyId());
+ }
+
+ if (orderListOpoRequest.getWorkingStrategyType() != null) {
+ localVarFormParams.put(
+ "workingStrategyType", orderListOpoRequest.getWorkingStrategyType());
+ }
+
+ if (orderListOpoRequest.getWorkingPegPriceType() != null) {
+ localVarFormParams.put(
+ "workingPegPriceType", orderListOpoRequest.getWorkingPegPriceType());
+ }
+
+ if (orderListOpoRequest.getWorkingPegOffsetType() != null) {
+ localVarFormParams.put(
+ "workingPegOffsetType", orderListOpoRequest.getWorkingPegOffsetType());
+ }
+
+ if (orderListOpoRequest.getWorkingPegOffsetValue() != null) {
+ localVarFormParams.put(
+ "workingPegOffsetValue", orderListOpoRequest.getWorkingPegOffsetValue());
+ }
+
+ if (orderListOpoRequest.getPendingType() != null) {
+ localVarFormParams.put("pendingType", orderListOpoRequest.getPendingType());
+ }
+
+ if (orderListOpoRequest.getPendingSide() != null) {
+ localVarFormParams.put("pendingSide", orderListOpoRequest.getPendingSide());
+ }
+
+ if (orderListOpoRequest.getPendingClientOrderId() != null) {
+ localVarFormParams.put(
+ "pendingClientOrderId", orderListOpoRequest.getPendingClientOrderId());
+ }
+
+ if (orderListOpoRequest.getPendingPrice() != null) {
+ localVarFormParams.put(
+ "pendingPrice",
+ DecimalFormatter.getFormatter().format(orderListOpoRequest.getPendingPrice()));
+ }
+
+ if (orderListOpoRequest.getPendingStopPrice() != null) {
+ localVarFormParams.put(
+ "pendingStopPrice",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpoRequest.getPendingStopPrice()));
+ }
+
+ if (orderListOpoRequest.getPendingTrailingDelta() != null) {
+ localVarFormParams.put(
+ "pendingTrailingDelta",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpoRequest.getPendingTrailingDelta()));
+ }
+
+ if (orderListOpoRequest.getPendingIcebergQty() != null) {
+ localVarFormParams.put(
+ "pendingIcebergQty",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpoRequest.getPendingIcebergQty()));
+ }
+
+ if (orderListOpoRequest.getPendingTimeInForce() != null) {
+ localVarFormParams.put(
+ "pendingTimeInForce", orderListOpoRequest.getPendingTimeInForce());
+ }
+
+ if (orderListOpoRequest.getPendingStrategyId() != null) {
+ localVarFormParams.put("pendingStrategyId", orderListOpoRequest.getPendingStrategyId());
+ }
+
+ if (orderListOpoRequest.getPendingStrategyType() != null) {
+ localVarFormParams.put(
+ "pendingStrategyType", orderListOpoRequest.getPendingStrategyType());
+ }
+
+ if (orderListOpoRequest.getPendingPegPriceType() != null) {
+ localVarFormParams.put(
+ "pendingPegPriceType", orderListOpoRequest.getPendingPegPriceType());
+ }
+
+ if (orderListOpoRequest.getPendingPegOffsetType() != null) {
+ localVarFormParams.put(
+ "pendingPegOffsetType", orderListOpoRequest.getPendingPegOffsetType());
+ }
+
+ if (orderListOpoRequest.getPendingPegOffsetValue() != null) {
+ localVarFormParams.put(
+ "pendingPegOffsetValue", orderListOpoRequest.getPendingPegOffsetValue());
+ }
+
+ if (orderListOpoRequest.getRecvWindow() != null) {
+ localVarFormParams.put(
+ "recvWindow",
+ DecimalFormatter.getFormatter().format(orderListOpoRequest.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 orderListOpoValidateBeforeCall(OrderListOpoRequest orderListOpoRequest)
+ throws ApiException {
+ try {
+ Validator validator =
+ Validation.byDefaultProvider()
+ .configure()
+ .messageInterpolator(new ParameterMessageInterpolator())
+ .buildValidatorFactory()
+ .getValidator();
+ ExecutableValidator executableValidator = validator.forExecutables();
+
+ Object[] parameterValues = {orderListOpoRequest};
+ Method method = this.getClass().getMethod("orderListOpo", OrderListOpoRequest.class);
+ Set> violations =
+ executableValidator.validateParameters(this, method, parameterValues);
+
+ if (violations.size() == 0) {
+ return orderListOpoCall(orderListOpoRequest);
+ } 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());
+ }
+ }
+
+ /**
+ * New Order List - OPO Place an [OPO](./faqs/opo.md). * OPOs add 2 orders to the
+ * EXCHANGE_MAX_NUM_ORDERS filter and MAX_NUM_ORDERS filter. Weight: 1 Unfilled Order Count: 2
+ *
+ * @param orderListOpoRequest (required)
+ * @return ApiResponse<OrderListOpoResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | New Order List - OPO | - |
+ *
+ *
+ * @see New
+ * Order List - OPO Documentation
+ */
+ public ApiResponse orderListOpo(
+ @Valid @NotNull OrderListOpoRequest orderListOpoRequest) throws ApiException {
+ okhttp3.Call localVarCall = orderListOpoValidateBeforeCall(orderListOpoRequest);
+ java.lang.reflect.Type localVarReturnType =
+ new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Build call for orderListOpoco
+ *
+ * @param orderListOpocoRequest (required)
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | New Order List - OPOCO | - |
+ *
+ *
+ * @see New
+ * Order List - OPOCO Documentation
+ */
+ private okhttp3.Call orderListOpocoCall(OrderListOpocoRequest orderListOpocoRequest)
+ 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 = "/api/v3/orderList/opoco";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (orderListOpocoRequest.getSymbol() != null) {
+ localVarFormParams.put("symbol", orderListOpocoRequest.getSymbol());
+ }
+
+ if (orderListOpocoRequest.getListClientOrderId() != null) {
+ localVarFormParams.put(
+ "listClientOrderId", orderListOpocoRequest.getListClientOrderId());
+ }
+
+ if (orderListOpocoRequest.getNewOrderRespType() != null) {
+ localVarFormParams.put("newOrderRespType", orderListOpocoRequest.getNewOrderRespType());
+ }
+
+ if (orderListOpocoRequest.getSelfTradePreventionMode() != null) {
+ localVarFormParams.put(
+ "selfTradePreventionMode", orderListOpocoRequest.getSelfTradePreventionMode());
+ }
+
+ if (orderListOpocoRequest.getWorkingType() != null) {
+ localVarFormParams.put("workingType", orderListOpocoRequest.getWorkingType());
+ }
+
+ if (orderListOpocoRequest.getWorkingSide() != null) {
+ localVarFormParams.put("workingSide", orderListOpocoRequest.getWorkingSide());
+ }
+
+ if (orderListOpocoRequest.getWorkingClientOrderId() != null) {
+ localVarFormParams.put(
+ "workingClientOrderId", orderListOpocoRequest.getWorkingClientOrderId());
+ }
+
+ if (orderListOpocoRequest.getWorkingPrice() != null) {
+ localVarFormParams.put(
+ "workingPrice",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpocoRequest.getWorkingPrice()));
+ }
+
+ if (orderListOpocoRequest.getWorkingQuantity() != null) {
+ localVarFormParams.put(
+ "workingQuantity",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpocoRequest.getWorkingQuantity()));
+ }
+
+ if (orderListOpocoRequest.getWorkingIcebergQty() != null) {
+ localVarFormParams.put(
+ "workingIcebergQty",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpocoRequest.getWorkingIcebergQty()));
+ }
+
+ if (orderListOpocoRequest.getWorkingTimeInForce() != null) {
+ localVarFormParams.put(
+ "workingTimeInForce", orderListOpocoRequest.getWorkingTimeInForce());
+ }
+
+ if (orderListOpocoRequest.getWorkingStrategyId() != null) {
+ localVarFormParams.put(
+ "workingStrategyId", orderListOpocoRequest.getWorkingStrategyId());
+ }
+
+ if (orderListOpocoRequest.getWorkingStrategyType() != null) {
+ localVarFormParams.put(
+ "workingStrategyType", orderListOpocoRequest.getWorkingStrategyType());
+ }
+
+ if (orderListOpocoRequest.getWorkingPegPriceType() != null) {
+ localVarFormParams.put(
+ "workingPegPriceType", orderListOpocoRequest.getWorkingPegPriceType());
+ }
+
+ if (orderListOpocoRequest.getWorkingPegOffsetType() != null) {
+ localVarFormParams.put(
+ "workingPegOffsetType", orderListOpocoRequest.getWorkingPegOffsetType());
+ }
+
+ if (orderListOpocoRequest.getWorkingPegOffsetValue() != null) {
+ localVarFormParams.put(
+ "workingPegOffsetValue", orderListOpocoRequest.getWorkingPegOffsetValue());
+ }
+
+ if (orderListOpocoRequest.getPendingSide() != null) {
+ localVarFormParams.put("pendingSide", orderListOpocoRequest.getPendingSide());
+ }
+
+ if (orderListOpocoRequest.getPendingAboveType() != null) {
+ localVarFormParams.put("pendingAboveType", orderListOpocoRequest.getPendingAboveType());
+ }
+
+ if (orderListOpocoRequest.getPendingAboveClientOrderId() != null) {
+ localVarFormParams.put(
+ "pendingAboveClientOrderId",
+ orderListOpocoRequest.getPendingAboveClientOrderId());
+ }
+
+ if (orderListOpocoRequest.getPendingAbovePrice() != null) {
+ localVarFormParams.put(
+ "pendingAbovePrice",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpocoRequest.getPendingAbovePrice()));
+ }
+
+ if (orderListOpocoRequest.getPendingAboveStopPrice() != null) {
+ localVarFormParams.put(
+ "pendingAboveStopPrice",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpocoRequest.getPendingAboveStopPrice()));
+ }
+
+ if (orderListOpocoRequest.getPendingAboveTrailingDelta() != null) {
+ localVarFormParams.put(
+ "pendingAboveTrailingDelta",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpocoRequest.getPendingAboveTrailingDelta()));
+ }
+
+ if (orderListOpocoRequest.getPendingAboveIcebergQty() != null) {
+ localVarFormParams.put(
+ "pendingAboveIcebergQty",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpocoRequest.getPendingAboveIcebergQty()));
+ }
+
+ if (orderListOpocoRequest.getPendingAboveTimeInForce() != null) {
+ localVarFormParams.put(
+ "pendingAboveTimeInForce", orderListOpocoRequest.getPendingAboveTimeInForce());
+ }
+
+ if (orderListOpocoRequest.getPendingAboveStrategyId() != null) {
+ localVarFormParams.put(
+ "pendingAboveStrategyId", orderListOpocoRequest.getPendingAboveStrategyId());
+ }
+
+ if (orderListOpocoRequest.getPendingAboveStrategyType() != null) {
+ localVarFormParams.put(
+ "pendingAboveStrategyType",
+ orderListOpocoRequest.getPendingAboveStrategyType());
+ }
+
+ if (orderListOpocoRequest.getPendingAbovePegPriceType() != null) {
+ localVarFormParams.put(
+ "pendingAbovePegPriceType",
+ orderListOpocoRequest.getPendingAbovePegPriceType());
+ }
+
+ if (orderListOpocoRequest.getPendingAbovePegOffsetType() != null) {
+ localVarFormParams.put(
+ "pendingAbovePegOffsetType",
+ orderListOpocoRequest.getPendingAbovePegOffsetType());
+ }
+
+ if (orderListOpocoRequest.getPendingAbovePegOffsetValue() != null) {
+ localVarFormParams.put(
+ "pendingAbovePegOffsetValue",
+ orderListOpocoRequest.getPendingAbovePegOffsetValue());
+ }
+
+ if (orderListOpocoRequest.getPendingBelowType() != null) {
+ localVarFormParams.put("pendingBelowType", orderListOpocoRequest.getPendingBelowType());
+ }
+
+ if (orderListOpocoRequest.getPendingBelowClientOrderId() != null) {
+ localVarFormParams.put(
+ "pendingBelowClientOrderId",
+ orderListOpocoRequest.getPendingBelowClientOrderId());
+ }
+
+ if (orderListOpocoRequest.getPendingBelowPrice() != null) {
+ localVarFormParams.put(
+ "pendingBelowPrice",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpocoRequest.getPendingBelowPrice()));
+ }
+
+ if (orderListOpocoRequest.getPendingBelowStopPrice() != null) {
+ localVarFormParams.put(
+ "pendingBelowStopPrice",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpocoRequest.getPendingBelowStopPrice()));
+ }
+
+ if (orderListOpocoRequest.getPendingBelowTrailingDelta() != null) {
+ localVarFormParams.put(
+ "pendingBelowTrailingDelta",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpocoRequest.getPendingBelowTrailingDelta()));
+ }
+
+ if (orderListOpocoRequest.getPendingBelowIcebergQty() != null) {
+ localVarFormParams.put(
+ "pendingBelowIcebergQty",
+ DecimalFormatter.getFormatter()
+ .format(orderListOpocoRequest.getPendingBelowIcebergQty()));
+ }
+
+ if (orderListOpocoRequest.getPendingBelowTimeInForce() != null) {
+ localVarFormParams.put(
+ "pendingBelowTimeInForce", orderListOpocoRequest.getPendingBelowTimeInForce());
+ }
+
+ if (orderListOpocoRequest.getPendingBelowStrategyId() != null) {
+ localVarFormParams.put(
+ "pendingBelowStrategyId", orderListOpocoRequest.getPendingBelowStrategyId());
+ }
+
+ if (orderListOpocoRequest.getPendingBelowStrategyType() != null) {
+ localVarFormParams.put(
+ "pendingBelowStrategyType",
+ orderListOpocoRequest.getPendingBelowStrategyType());
+ }
+
+ if (orderListOpocoRequest.getPendingBelowPegPriceType() != null) {
+ localVarFormParams.put(
+ "pendingBelowPegPriceType",
+ orderListOpocoRequest.getPendingBelowPegPriceType());
+ }
+
+ if (orderListOpocoRequest.getPendingBelowPegOffsetType() != null) {
+ localVarFormParams.put(
+ "pendingBelowPegOffsetType",
+ orderListOpocoRequest.getPendingBelowPegOffsetType());
+ }
+
+ if (orderListOpocoRequest.getPendingBelowPegOffsetValue() != null) {
+ localVarFormParams.put(
+ "pendingBelowPegOffsetValue",
+ orderListOpocoRequest.getPendingBelowPegOffsetValue());
+ }
+
+ if (orderListOpocoRequest.getRecvWindow() != null) {
+ localVarFormParams.put(
+ "recvWindow",
+ DecimalFormatter.getFormatter().format(orderListOpocoRequest.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 orderListOpocoValidateBeforeCall(
+ OrderListOpocoRequest orderListOpocoRequest) throws ApiException {
+ try {
+ Validator validator =
+ Validation.byDefaultProvider()
+ .configure()
+ .messageInterpolator(new ParameterMessageInterpolator())
+ .buildValidatorFactory()
+ .getValidator();
+ ExecutableValidator executableValidator = validator.forExecutables();
+
+ Object[] parameterValues = {orderListOpocoRequest};
+ Method method =
+ this.getClass().getMethod("orderListOpoco", OrderListOpocoRequest.class);
+ Set> violations =
+ executableValidator.validateParameters(this, method, parameterValues);
+
+ if (violations.size() == 0) {
+ return orderListOpocoCall(orderListOpocoRequest);
+ } 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());
+ }
+ }
+
+ /**
+ * New Order List - OPOCO Place an [OPOCO](./faqs/opo.md). Weight: 1 Unfilled Order Count: 3
+ *
+ * @param orderListOpocoRequest (required)
+ * @return ApiResponse<OrderListOpocoResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | New Order List - OPOCO | - |
+ *
+ *
+ * @see New
+ * Order List - OPOCO Documentation
+ */
+ public ApiResponse orderListOpoco(
+ @Valid @NotNull OrderListOpocoRequest orderListOpocoRequest) throws ApiException {
+ okhttp3.Call localVarCall = orderListOpocoValidateBeforeCall(orderListOpocoRequest);
+ java.lang.reflect.Type localVarReturnType =
+ new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
/**
* Build call for orderListOto
*
@@ -2313,10 +2969,12 @@ public ApiResponse orderListOtoco(
* | 200 | New OCO - Deprecated | - |
*
*
+ * @deprecated
* @see New
* OCO - Deprecated Documentation
*/
+ @Deprecated
private okhttp3.Call orderOcoCall(OrderOcoRequest orderOcoRequest) throws ApiException {
String basePath = null;
// Operation Servers
@@ -2467,6 +3125,7 @@ private okhttp3.Call orderOcoCall(OrderOcoRequest orderOcoRequest) throws ApiExc
localVarAuthNames);
}
+ @Deprecated
@SuppressWarnings("rawtypes")
private okhttp3.Call orderOcoValidateBeforeCall(OrderOcoRequest orderOcoRequest)
throws ApiException {
@@ -2517,10 +3176,12 @@ private okhttp3.Call orderOcoValidateBeforeCall(OrderOcoRequest orderOcoRequest)
* | 200 | New OCO - Deprecated | - |
*
*
+ * @deprecated
* @see New
* OCO - Deprecated Documentation
*/
+ @Deprecated
public ApiResponse orderOco(@Valid @NotNull OrderOcoRequest orderOcoRequest)
throws ApiException {
okhttp3.Call localVarCall = orderOcoValidateBeforeCall(orderOcoRequest);
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/UserDataStreamApi.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/UserDataStreamApi.java
deleted file mode 100644
index ba3cf8c7..00000000
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/api/UserDataStreamApi.java
+++ /dev/null
@@ -1,474 +0,0 @@
-/*
- * Binance Spot REST API
- * OpenAPI Specifications for the Binance Spot REST API API documents: - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information)
- *
- * 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.spot.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.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.spot.rest.model.NewUserDataStreamResponse;
-import com.binance.connector.client.spot.rest.model.PutUserDataStreamRequest;
-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 UserDataStreamApi {
- private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
-
- private static final String USER_AGENT =
- String.format(
- "binance-spot/7.0.0 (Java/%s; %s; %s)",
- SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
- private static final boolean HAS_TIME_UNIT = true;
-
- public UserDataStreamApi(ClientConfiguration clientConfiguration) {
- this(new ApiClient(clientConfiguration));
- }
-
- public UserDataStreamApi(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 deleteUserDataStream
- *
- * @param listenKey (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 | OK | - |
- *
- *
- * @see Close
- * user data stream Documentation
- */
- private okhttp3.Call deleteUserDataStreamCall(String listenKey) 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 = "/api/v3/userDataStream";
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (listenKey != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("listenKey", listenKey));
- }
-
- 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("binanceApiKeyOnly");
- if (HAS_TIME_UNIT) {
- localVarAuthNames.add("timeUnit");
- }
- return localVarApiClient.buildCall(
- basePath,
- localVarPath,
- "DELETE",
- localVarQueryParams,
- localVarCollectionQueryParams,
- localVarPostBody,
- localVarHeaderParams,
- localVarCookieParams,
- localVarFormParams,
- localVarAuthNames);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call deleteUserDataStreamValidateBeforeCall(String listenKey)
- throws ApiException {
- try {
- Validator validator =
- Validation.byDefaultProvider()
- .configure()
- .messageInterpolator(new ParameterMessageInterpolator())
- .buildValidatorFactory()
- .getValidator();
- ExecutableValidator executableValidator = validator.forExecutables();
-
- Object[] parameterValues = {listenKey};
- Method method = this.getClass().getMethod("deleteUserDataStream", String.class);
- Set> violations =
- executableValidator.validateParameters(this, method, parameterValues);
-
- if (violations.size() == 0) {
- return deleteUserDataStreamCall(listenKey);
- } 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());
- }
- }
-
- /**
- * Close user data stream Close out a user data stream. Weight: 2
- *
- * @param listenKey (required)
- * @return ApiResponse<Void>
- * @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 | OK | - |
- *
- *
- * @see Close
- * user data stream Documentation
- */
- public ApiResponse deleteUserDataStream(@NotNull String listenKey) throws ApiException {
- okhttp3.Call localVarCall = deleteUserDataStreamValidateBeforeCall(listenKey);
- return localVarApiClient.execute(localVarCall);
- }
-
- /**
- * Build call for newUserDataStream
- *
- * @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 | Start user data stream | - |
- *
- *
- * @see Start
- * user data stream Documentation
- */
- private okhttp3.Call newUserDataStreamCall() 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 = "/api/v3/userDataStream";
-
- 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<>();
- localVarAuthNames.add("binanceApiKeyOnly");
- 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 newUserDataStreamValidateBeforeCall() throws ApiException {
- try {
- Validator validator =
- Validation.byDefaultProvider()
- .configure()
- .messageInterpolator(new ParameterMessageInterpolator())
- .buildValidatorFactory()
- .getValidator();
- ExecutableValidator executableValidator = validator.forExecutables();
-
- Object[] parameterValues = {};
- Method method = this.getClass().getMethod("newUserDataStream");
- Set> violations =
- executableValidator.validateParameters(this, method, parameterValues);
-
- if (violations.size() == 0) {
- return newUserDataStreamCall();
- } 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());
- }
- }
-
- /**
- * Start user data stream Start a new user data stream. The stream will close after 60 minutes
- * unless a keepalive is sent. This request does not require `signature`. Weight: 2
- *
- * @return ApiResponse<NewUserDataStreamResponse>
- * @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 | Start user data stream | - |
- *
- *
- * @see Start
- * user data stream Documentation
- */
- public ApiResponse newUserDataStream() throws ApiException {
- okhttp3.Call localVarCall = newUserDataStreamValidateBeforeCall();
- java.lang.reflect.Type localVarReturnType =
- new TypeToken() {}.getType();
- return localVarApiClient.execute(localVarCall, localVarReturnType);
- }
-
- /**
- * Build call for putUserDataStream
- *
- * @param putUserDataStreamRequest (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 | OK | - |
- *
- *
- * @see Keepalive
- * user data stream Documentation
- */
- private okhttp3.Call putUserDataStreamCall(PutUserDataStreamRequest putUserDataStreamRequest)
- 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 = "/api/v3/userDataStream";
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (putUserDataStreamRequest.getListenKey() != null) {
- localVarFormParams.put("listenKey", putUserDataStreamRequest.getListenKey());
- }
-
- 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("binanceApiKeyOnly");
- if (HAS_TIME_UNIT) {
- localVarAuthNames.add("timeUnit");
- }
- return localVarApiClient.buildCall(
- basePath,
- localVarPath,
- "PUT",
- localVarQueryParams,
- localVarCollectionQueryParams,
- localVarPostBody,
- localVarHeaderParams,
- localVarCookieParams,
- localVarFormParams,
- localVarAuthNames);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call putUserDataStreamValidateBeforeCall(
- PutUserDataStreamRequest putUserDataStreamRequest) throws ApiException {
- try {
- Validator validator =
- Validation.byDefaultProvider()
- .configure()
- .messageInterpolator(new ParameterMessageInterpolator())
- .buildValidatorFactory()
- .getValidator();
- ExecutableValidator executableValidator = validator.forExecutables();
-
- Object[] parameterValues = {putUserDataStreamRequest};
- Method method =
- this.getClass().getMethod("putUserDataStream", PutUserDataStreamRequest.class);
- Set> violations =
- executableValidator.validateParameters(this, method, parameterValues);
-
- if (violations.size() == 0) {
- return putUserDataStreamCall(putUserDataStreamRequest);
- } 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());
- }
- }
-
- /**
- * Keepalive user data stream Keepalive a user data stream to prevent a time out. User data
- * streams will close after 60 minutes. It's recommended to send a ping about every 30
- * minutes. This request does not require `signature`. Weight: 2
- *
- * @param putUserDataStreamRequest (required)
- * @return ApiResponse<Void>
- * @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 | OK | - |
- *
- *
- * @see Keepalive
- * user data stream Documentation
- */
- public ApiResponse putUserDataStream(
- @Valid @NotNull PutUserDataStreamRequest putUserDataStreamRequest) throws ApiException {
- okhttp3.Call localVarCall = putUserDataStreamValidateBeforeCall(putUserDataStreamRequest);
- return localVarApiClient.execute(localVarCall);
- }
-}
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/ExchangeInfoResponseSymbolsInner.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/ExchangeInfoResponseSymbolsInner.java
index fc7c7bba..7d1923cc 100644
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/ExchangeInfoResponseSymbolsInner.java
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/ExchangeInfoResponseSymbolsInner.java
@@ -122,6 +122,12 @@ public class ExchangeInfoResponseSymbolsInner {
@jakarta.annotation.Nullable
private Boolean otoAllowed;
+ public static final String SERIALIZED_NAME_OPO_ALLOWED = "opoAllowed";
+
+ @SerializedName(SERIALIZED_NAME_OPO_ALLOWED)
+ @jakarta.annotation.Nullable
+ private Boolean opoAllowed;
+
public static final String SERIALIZED_NAME_QUOTE_ORDER_QTY_MARKET_ALLOWED =
"quoteOrderQtyMarketAllowed";
@@ -467,6 +473,26 @@ public void setOtoAllowed(@jakarta.annotation.Nullable Boolean otoAllowed) {
this.otoAllowed = otoAllowed;
}
+ public ExchangeInfoResponseSymbolsInner opoAllowed(
+ @jakarta.annotation.Nullable Boolean opoAllowed) {
+ this.opoAllowed = opoAllowed;
+ return this;
+ }
+
+ /**
+ * Get opoAllowed
+ *
+ * @return opoAllowed
+ */
+ @jakarta.annotation.Nullable
+ public Boolean getOpoAllowed() {
+ return opoAllowed;
+ }
+
+ public void setOpoAllowed(@jakarta.annotation.Nullable Boolean opoAllowed) {
+ this.opoAllowed = opoAllowed;
+ }
+
public ExchangeInfoResponseSymbolsInner quoteOrderQtyMarketAllowed(
@jakarta.annotation.Nullable Boolean quoteOrderQtyMarketAllowed) {
this.quoteOrderQtyMarketAllowed = quoteOrderQtyMarketAllowed;
@@ -780,6 +806,7 @@ public boolean equals(Object o) {
this.icebergAllowed, exchangeInfoResponseSymbolsInner.icebergAllowed)
&& Objects.equals(this.ocoAllowed, exchangeInfoResponseSymbolsInner.ocoAllowed)
&& Objects.equals(this.otoAllowed, exchangeInfoResponseSymbolsInner.otoAllowed)
+ && Objects.equals(this.opoAllowed, exchangeInfoResponseSymbolsInner.opoAllowed)
&& Objects.equals(
this.quoteOrderQtyMarketAllowed,
exchangeInfoResponseSymbolsInner.quoteOrderQtyMarketAllowed)
@@ -826,6 +853,7 @@ public int hashCode() {
icebergAllowed,
ocoAllowed,
otoAllowed,
+ opoAllowed,
quoteOrderQtyMarketAllowed,
allowTrailingStop,
cancelReplaceAllowed,
@@ -865,6 +893,7 @@ public String toString() {
sb.append(" icebergAllowed: ").append(toIndentedString(icebergAllowed)).append("\n");
sb.append(" ocoAllowed: ").append(toIndentedString(ocoAllowed)).append("\n");
sb.append(" otoAllowed: ").append(toIndentedString(otoAllowed)).append("\n");
+ sb.append(" opoAllowed: ").append(toIndentedString(opoAllowed)).append("\n");
sb.append(" quoteOrderQtyMarketAllowed: ")
.append(toIndentedString(quoteOrderQtyMarketAllowed))
.append("\n");
@@ -961,6 +990,10 @@ public String toUrlQueryString() {
String otoAllowedValueAsString = "";
otoAllowedValueAsString = otoAllowedValue.toString();
sb.append("otoAllowed=").append(urlEncode(otoAllowedValueAsString)).append("");
+ Object opoAllowedValue = getOpoAllowed();
+ String opoAllowedValueAsString = "";
+ opoAllowedValueAsString = opoAllowedValue.toString();
+ sb.append("opoAllowed=").append(urlEncode(opoAllowedValueAsString)).append("");
Object quoteOrderQtyMarketAllowedValue = getQuoteOrderQtyMarketAllowed();
String quoteOrderQtyMarketAllowedValueAsString = "";
quoteOrderQtyMarketAllowedValueAsString = quoteOrderQtyMarketAllowedValue.toString();
@@ -1079,6 +1112,7 @@ private String toIndentedString(Object o) {
openapiFields.add("icebergAllowed");
openapiFields.add("ocoAllowed");
openapiFields.add("otoAllowed");
+ openapiFields.add("opoAllowed");
openapiFields.add("quoteOrderQtyMarketAllowed");
openapiFields.add("allowTrailingStop");
openapiFields.add("cancelReplaceAllowed");
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/NewUserDataStreamResponse.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/NewUserDataStreamResponse.java
deleted file mode 100644
index a26e6d31..00000000
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/NewUserDataStreamResponse.java
+++ /dev/null
@@ -1,211 +0,0 @@
-/*
- * Binance Spot REST API
- * OpenAPI Specifications for the Binance Spot REST API API documents: - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information)
- *
- * 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.spot.rest.model;
-
-import com.binance.connector.client.spot.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.HashSet;
-import java.util.Objects;
-import org.hibernate.validator.constraints.*;
-
-/** NewUserDataStreamResponse */
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.12.0")
-public class NewUserDataStreamResponse {
- public static final String SERIALIZED_NAME_LISTEN_KEY = "listenKey";
-
- @SerializedName(SERIALIZED_NAME_LISTEN_KEY)
- @jakarta.annotation.Nullable
- private String listenKey;
-
- public NewUserDataStreamResponse() {}
-
- public NewUserDataStreamResponse listenKey(@jakarta.annotation.Nullable String listenKey) {
- this.listenKey = listenKey;
- return this;
- }
-
- /**
- * Get listenKey
- *
- * @return listenKey
- */
- @jakarta.annotation.Nullable
- public String getListenKey() {
- return listenKey;
- }
-
- public void setListenKey(@jakarta.annotation.Nullable String listenKey) {
- this.listenKey = listenKey;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- NewUserDataStreamResponse newUserDataStreamResponse = (NewUserDataStreamResponse) o;
- return Objects.equals(this.listenKey, newUserDataStreamResponse.listenKey);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(listenKey);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class NewUserDataStreamResponse {\n");
- sb.append(" listenKey: ").append(toIndentedString(listenKey)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- public String toUrlQueryString() {
- StringBuilder sb = new StringBuilder();
-
- Object listenKeyValue = getListenKey();
- String listenKeyValueAsString = "";
- listenKeyValueAsString = listenKeyValue.toString();
- sb.append("listenKey=").append(urlEncode(listenKeyValueAsString)).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("listenKey");
-
- // 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 NewUserDataStreamResponse
- */
- public static void validateJsonElement(JsonElement jsonElement) throws IOException {
- if (jsonElement == null) {
- if (!NewUserDataStreamResponse.openapiRequiredFields
- .isEmpty()) { // has required fields but JSON element is null
- throw new IllegalArgumentException(
- String.format(
- "The required field(s) %s in NewUserDataStreamResponse is not found"
- + " in the empty JSON string",
- NewUserDataStreamResponse.openapiRequiredFields.toString()));
- }
- }
- JsonObject jsonObj = jsonElement.getAsJsonObject();
- if ((jsonObj.get("listenKey") != null && !jsonObj.get("listenKey").isJsonNull())
- && !jsonObj.get("listenKey").isJsonPrimitive()) {
- throw new IllegalArgumentException(
- String.format(
- "Expected the field `listenKey` to be a primitive type in the JSON"
- + " string but got `%s`",
- jsonObj.get("listenKey").toString()));
- }
- }
-
- public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
- @SuppressWarnings("unchecked")
- @Override
- public TypeAdapter create(Gson gson, TypeToken type) {
- if (!NewUserDataStreamResponse.class.isAssignableFrom(type.getRawType())) {
- return null; // this class only serializes 'NewUserDataStreamResponse' and its
- // subtypes
- }
- final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
- final TypeAdapter thisAdapter =
- gson.getDelegateAdapter(this, TypeToken.get(NewUserDataStreamResponse.class));
-
- return (TypeAdapter)
- new TypeAdapter() {
- @Override
- public void write(JsonWriter out, NewUserDataStreamResponse value)
- throws IOException {
- JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
- elementAdapter.write(out, obj);
- }
-
- @Override
- public NewUserDataStreamResponse read(JsonReader in) throws IOException {
- JsonElement jsonElement = elementAdapter.read(in);
- // validateJsonElement(jsonElement);
- return thisAdapter.fromJsonTree(jsonElement);
- }
- }.nullSafe();
- }
- }
-
- /**
- * Create an instance of NewUserDataStreamResponse given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of NewUserDataStreamResponse
- * @throws IOException if the JSON string is invalid with respect to NewUserDataStreamResponse
- */
- public static NewUserDataStreamResponse fromJson(String jsonString) throws IOException {
- return JSON.getGson().fromJson(jsonString, NewUserDataStreamResponse.class);
- }
-
- /**
- * Convert an instance of NewUserDataStreamResponse to an JSON string
- *
- * @return JSON string
- */
- public String toJson() {
- return JSON.getGson().toJson(this);
- }
-}
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpoRequest.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpoRequest.java
new file mode 100644
index 00000000..f4ab4b00
--- /dev/null
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpoRequest.java
@@ -0,0 +1,1393 @@
+/*
+ * Binance Spot REST API
+ * OpenAPI Specifications for the Binance Spot REST API API documents: - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information)
+ *
+ * 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.spot.rest.model;
+
+import com.binance.connector.client.spot.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.*;
+
+/** OrderListOpoRequest */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class OrderListOpoRequest {
+ public static final String SERIALIZED_NAME_SYMBOL = "symbol";
+
+ @SerializedName(SERIALIZED_NAME_SYMBOL)
+ @jakarta.annotation.Nonnull
+ private String symbol;
+
+ public static final String SERIALIZED_NAME_LIST_CLIENT_ORDER_ID = "listClientOrderId";
+
+ @SerializedName(SERIALIZED_NAME_LIST_CLIENT_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private String listClientOrderId;
+
+ public static final String SERIALIZED_NAME_NEW_ORDER_RESP_TYPE = "newOrderRespType";
+
+ @SerializedName(SERIALIZED_NAME_NEW_ORDER_RESP_TYPE)
+ @jakarta.annotation.Nullable
+ private NewOrderRespType newOrderRespType;
+
+ public static final String SERIALIZED_NAME_SELF_TRADE_PREVENTION_MODE =
+ "selfTradePreventionMode";
+
+ @SerializedName(SERIALIZED_NAME_SELF_TRADE_PREVENTION_MODE)
+ @jakarta.annotation.Nullable
+ private SelfTradePreventionMode selfTradePreventionMode;
+
+ public static final String SERIALIZED_NAME_WORKING_TYPE = "workingType";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_TYPE)
+ @jakarta.annotation.Nonnull
+ private WorkingType workingType;
+
+ public static final String SERIALIZED_NAME_WORKING_SIDE = "workingSide";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_SIDE)
+ @jakarta.annotation.Nonnull
+ private WorkingSide workingSide;
+
+ public static final String SERIALIZED_NAME_WORKING_CLIENT_ORDER_ID = "workingClientOrderId";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_CLIENT_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private String workingClientOrderId;
+
+ public static final String SERIALIZED_NAME_WORKING_PRICE = "workingPrice";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_PRICE)
+ @jakarta.annotation.Nonnull
+ private Double workingPrice;
+
+ public static final String SERIALIZED_NAME_WORKING_QUANTITY = "workingQuantity";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_QUANTITY)
+ @jakarta.annotation.Nonnull
+ private Double workingQuantity;
+
+ public static final String SERIALIZED_NAME_WORKING_ICEBERG_QTY = "workingIcebergQty";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_ICEBERG_QTY)
+ @jakarta.annotation.Nullable
+ private Double workingIcebergQty;
+
+ public static final String SERIALIZED_NAME_WORKING_TIME_IN_FORCE = "workingTimeInForce";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_TIME_IN_FORCE)
+ @jakarta.annotation.Nullable
+ private WorkingTimeInForce workingTimeInForce;
+
+ public static final String SERIALIZED_NAME_WORKING_STRATEGY_ID = "workingStrategyId";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_STRATEGY_ID)
+ @jakarta.annotation.Nullable
+ private Long workingStrategyId;
+
+ public static final String SERIALIZED_NAME_WORKING_STRATEGY_TYPE = "workingStrategyType";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_STRATEGY_TYPE)
+ @jakarta.annotation.Nullable
+ private Integer workingStrategyType;
+
+ public static final String SERIALIZED_NAME_WORKING_PEG_PRICE_TYPE = "workingPegPriceType";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_PEG_PRICE_TYPE)
+ @jakarta.annotation.Nullable
+ private WorkingPegPriceType workingPegPriceType;
+
+ public static final String SERIALIZED_NAME_WORKING_PEG_OFFSET_TYPE = "workingPegOffsetType";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_PEG_OFFSET_TYPE)
+ @jakarta.annotation.Nullable
+ private WorkingPegOffsetType workingPegOffsetType;
+
+ public static final String SERIALIZED_NAME_WORKING_PEG_OFFSET_VALUE = "workingPegOffsetValue";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_PEG_OFFSET_VALUE)
+ @jakarta.annotation.Nullable
+ private Integer workingPegOffsetValue;
+
+ public static final String SERIALIZED_NAME_PENDING_TYPE = "pendingType";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_TYPE)
+ @jakarta.annotation.Nonnull
+ private PendingType pendingType;
+
+ public static final String SERIALIZED_NAME_PENDING_SIDE = "pendingSide";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_SIDE)
+ @jakarta.annotation.Nonnull
+ private PendingSide pendingSide;
+
+ public static final String SERIALIZED_NAME_PENDING_CLIENT_ORDER_ID = "pendingClientOrderId";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_CLIENT_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private String pendingClientOrderId;
+
+ public static final String SERIALIZED_NAME_PENDING_PRICE = "pendingPrice";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_PRICE)
+ @jakarta.annotation.Nullable
+ private Double pendingPrice;
+
+ public static final String SERIALIZED_NAME_PENDING_STOP_PRICE = "pendingStopPrice";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_STOP_PRICE)
+ @jakarta.annotation.Nullable
+ private Double pendingStopPrice;
+
+ public static final String SERIALIZED_NAME_PENDING_TRAILING_DELTA = "pendingTrailingDelta";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_TRAILING_DELTA)
+ @jakarta.annotation.Nullable
+ private Double pendingTrailingDelta;
+
+ public static final String SERIALIZED_NAME_PENDING_ICEBERG_QTY = "pendingIcebergQty";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_ICEBERG_QTY)
+ @jakarta.annotation.Nullable
+ private Double pendingIcebergQty;
+
+ public static final String SERIALIZED_NAME_PENDING_TIME_IN_FORCE = "pendingTimeInForce";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_TIME_IN_FORCE)
+ @jakarta.annotation.Nullable
+ private PendingTimeInForce pendingTimeInForce;
+
+ public static final String SERIALIZED_NAME_PENDING_STRATEGY_ID = "pendingStrategyId";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_STRATEGY_ID)
+ @jakarta.annotation.Nullable
+ private Long pendingStrategyId;
+
+ public static final String SERIALIZED_NAME_PENDING_STRATEGY_TYPE = "pendingStrategyType";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_STRATEGY_TYPE)
+ @jakarta.annotation.Nullable
+ private Integer pendingStrategyType;
+
+ public static final String SERIALIZED_NAME_PENDING_PEG_PRICE_TYPE = "pendingPegPriceType";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_PEG_PRICE_TYPE)
+ @jakarta.annotation.Nullable
+ private PendingPegPriceType pendingPegPriceType;
+
+ public static final String SERIALIZED_NAME_PENDING_PEG_OFFSET_TYPE = "pendingPegOffsetType";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_PEG_OFFSET_TYPE)
+ @jakarta.annotation.Nullable
+ private PendingPegOffsetType pendingPegOffsetType;
+
+ public static final String SERIALIZED_NAME_PENDING_PEG_OFFSET_VALUE = "pendingPegOffsetValue";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_PEG_OFFSET_VALUE)
+ @jakarta.annotation.Nullable
+ private Integer pendingPegOffsetValue;
+
+ public static final String SERIALIZED_NAME_RECV_WINDOW = "recvWindow";
+
+ @SerializedName(SERIALIZED_NAME_RECV_WINDOW)
+ @jakarta.annotation.Nullable
+ private Double recvWindow;
+
+ public OrderListOpoRequest() {}
+
+ public OrderListOpoRequest symbol(@jakarta.annotation.Nonnull String symbol) {
+ this.symbol = symbol;
+ return this;
+ }
+
+ /**
+ * Get symbol
+ *
+ * @return symbol
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ public String getSymbol() {
+ return symbol;
+ }
+
+ public void setSymbol(@jakarta.annotation.Nonnull String symbol) {
+ this.symbol = symbol;
+ }
+
+ public OrderListOpoRequest listClientOrderId(
+ @jakarta.annotation.Nullable String listClientOrderId) {
+ this.listClientOrderId = listClientOrderId;
+ return this;
+ }
+
+ /**
+ * Get listClientOrderId
+ *
+ * @return listClientOrderId
+ */
+ @jakarta.annotation.Nullable
+ public String getListClientOrderId() {
+ return listClientOrderId;
+ }
+
+ public void setListClientOrderId(@jakarta.annotation.Nullable String listClientOrderId) {
+ this.listClientOrderId = listClientOrderId;
+ }
+
+ public OrderListOpoRequest newOrderRespType(
+ @jakarta.annotation.Nullable NewOrderRespType newOrderRespType) {
+ this.newOrderRespType = newOrderRespType;
+ return this;
+ }
+
+ /**
+ * Get newOrderRespType
+ *
+ * @return newOrderRespType
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public NewOrderRespType getNewOrderRespType() {
+ return newOrderRespType;
+ }
+
+ public void setNewOrderRespType(
+ @jakarta.annotation.Nullable NewOrderRespType newOrderRespType) {
+ this.newOrderRespType = newOrderRespType;
+ }
+
+ public OrderListOpoRequest selfTradePreventionMode(
+ @jakarta.annotation.Nullable SelfTradePreventionMode selfTradePreventionMode) {
+ this.selfTradePreventionMode = selfTradePreventionMode;
+ return this;
+ }
+
+ /**
+ * Get selfTradePreventionMode
+ *
+ * @return selfTradePreventionMode
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public SelfTradePreventionMode getSelfTradePreventionMode() {
+ return selfTradePreventionMode;
+ }
+
+ public void setSelfTradePreventionMode(
+ @jakarta.annotation.Nullable SelfTradePreventionMode selfTradePreventionMode) {
+ this.selfTradePreventionMode = selfTradePreventionMode;
+ }
+
+ public OrderListOpoRequest workingType(@jakarta.annotation.Nonnull WorkingType workingType) {
+ this.workingType = workingType;
+ return this;
+ }
+
+ /**
+ * Get workingType
+ *
+ * @return workingType
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ @Valid
+ public WorkingType getWorkingType() {
+ return workingType;
+ }
+
+ public void setWorkingType(@jakarta.annotation.Nonnull WorkingType workingType) {
+ this.workingType = workingType;
+ }
+
+ public OrderListOpoRequest workingSide(@jakarta.annotation.Nonnull WorkingSide workingSide) {
+ this.workingSide = workingSide;
+ return this;
+ }
+
+ /**
+ * Get workingSide
+ *
+ * @return workingSide
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ @Valid
+ public WorkingSide getWorkingSide() {
+ return workingSide;
+ }
+
+ public void setWorkingSide(@jakarta.annotation.Nonnull WorkingSide workingSide) {
+ this.workingSide = workingSide;
+ }
+
+ public OrderListOpoRequest workingClientOrderId(
+ @jakarta.annotation.Nullable String workingClientOrderId) {
+ this.workingClientOrderId = workingClientOrderId;
+ return this;
+ }
+
+ /**
+ * Get workingClientOrderId
+ *
+ * @return workingClientOrderId
+ */
+ @jakarta.annotation.Nullable
+ public String getWorkingClientOrderId() {
+ return workingClientOrderId;
+ }
+
+ public void setWorkingClientOrderId(@jakarta.annotation.Nullable String workingClientOrderId) {
+ this.workingClientOrderId = workingClientOrderId;
+ }
+
+ public OrderListOpoRequest workingPrice(@jakarta.annotation.Nonnull Double workingPrice) {
+ this.workingPrice = workingPrice;
+ return this;
+ }
+
+ /**
+ * Get workingPrice
+ *
+ * @return workingPrice
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ @Valid
+ public Double getWorkingPrice() {
+ return workingPrice;
+ }
+
+ public void setWorkingPrice(@jakarta.annotation.Nonnull Double workingPrice) {
+ this.workingPrice = workingPrice;
+ }
+
+ public OrderListOpoRequest workingQuantity(@jakarta.annotation.Nonnull Double workingQuantity) {
+ this.workingQuantity = workingQuantity;
+ return this;
+ }
+
+ /**
+ * Get workingQuantity
+ *
+ * @return workingQuantity
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ @Valid
+ public Double getWorkingQuantity() {
+ return workingQuantity;
+ }
+
+ public void setWorkingQuantity(@jakarta.annotation.Nonnull Double workingQuantity) {
+ this.workingQuantity = workingQuantity;
+ }
+
+ public OrderListOpoRequest workingIcebergQty(
+ @jakarta.annotation.Nullable Double workingIcebergQty) {
+ this.workingIcebergQty = workingIcebergQty;
+ return this;
+ }
+
+ /**
+ * Get workingIcebergQty
+ *
+ * @return workingIcebergQty
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getWorkingIcebergQty() {
+ return workingIcebergQty;
+ }
+
+ public void setWorkingIcebergQty(@jakarta.annotation.Nullable Double workingIcebergQty) {
+ this.workingIcebergQty = workingIcebergQty;
+ }
+
+ public OrderListOpoRequest workingTimeInForce(
+ @jakarta.annotation.Nullable WorkingTimeInForce workingTimeInForce) {
+ this.workingTimeInForce = workingTimeInForce;
+ return this;
+ }
+
+ /**
+ * Get workingTimeInForce
+ *
+ * @return workingTimeInForce
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public WorkingTimeInForce getWorkingTimeInForce() {
+ return workingTimeInForce;
+ }
+
+ public void setWorkingTimeInForce(
+ @jakarta.annotation.Nullable WorkingTimeInForce workingTimeInForce) {
+ this.workingTimeInForce = workingTimeInForce;
+ }
+
+ public OrderListOpoRequest workingStrategyId(
+ @jakarta.annotation.Nullable Long workingStrategyId) {
+ this.workingStrategyId = workingStrategyId;
+ return this;
+ }
+
+ /**
+ * Get workingStrategyId
+ *
+ * @return workingStrategyId
+ */
+ @jakarta.annotation.Nullable
+ public Long getWorkingStrategyId() {
+ return workingStrategyId;
+ }
+
+ public void setWorkingStrategyId(@jakarta.annotation.Nullable Long workingStrategyId) {
+ this.workingStrategyId = workingStrategyId;
+ }
+
+ public OrderListOpoRequest workingStrategyType(
+ @jakarta.annotation.Nullable Integer workingStrategyType) {
+ this.workingStrategyType = workingStrategyType;
+ return this;
+ }
+
+ /**
+ * Get workingStrategyType
+ *
+ * @return workingStrategyType
+ */
+ @jakarta.annotation.Nullable
+ public Integer getWorkingStrategyType() {
+ return workingStrategyType;
+ }
+
+ public void setWorkingStrategyType(@jakarta.annotation.Nullable Integer workingStrategyType) {
+ this.workingStrategyType = workingStrategyType;
+ }
+
+ public OrderListOpoRequest workingPegPriceType(
+ @jakarta.annotation.Nullable WorkingPegPriceType workingPegPriceType) {
+ this.workingPegPriceType = workingPegPriceType;
+ return this;
+ }
+
+ /**
+ * Get workingPegPriceType
+ *
+ * @return workingPegPriceType
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public WorkingPegPriceType getWorkingPegPriceType() {
+ return workingPegPriceType;
+ }
+
+ public void setWorkingPegPriceType(
+ @jakarta.annotation.Nullable WorkingPegPriceType workingPegPriceType) {
+ this.workingPegPriceType = workingPegPriceType;
+ }
+
+ public OrderListOpoRequest workingPegOffsetType(
+ @jakarta.annotation.Nullable WorkingPegOffsetType workingPegOffsetType) {
+ this.workingPegOffsetType = workingPegOffsetType;
+ return this;
+ }
+
+ /**
+ * Get workingPegOffsetType
+ *
+ * @return workingPegOffsetType
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public WorkingPegOffsetType getWorkingPegOffsetType() {
+ return workingPegOffsetType;
+ }
+
+ public void setWorkingPegOffsetType(
+ @jakarta.annotation.Nullable WorkingPegOffsetType workingPegOffsetType) {
+ this.workingPegOffsetType = workingPegOffsetType;
+ }
+
+ public OrderListOpoRequest workingPegOffsetValue(
+ @jakarta.annotation.Nullable Integer workingPegOffsetValue) {
+ this.workingPegOffsetValue = workingPegOffsetValue;
+ return this;
+ }
+
+ /**
+ * Get workingPegOffsetValue
+ *
+ * @return workingPegOffsetValue
+ */
+ @jakarta.annotation.Nullable
+ public Integer getWorkingPegOffsetValue() {
+ return workingPegOffsetValue;
+ }
+
+ public void setWorkingPegOffsetValue(
+ @jakarta.annotation.Nullable Integer workingPegOffsetValue) {
+ this.workingPegOffsetValue = workingPegOffsetValue;
+ }
+
+ public OrderListOpoRequest pendingType(@jakarta.annotation.Nonnull PendingType pendingType) {
+ this.pendingType = pendingType;
+ return this;
+ }
+
+ /**
+ * Get pendingType
+ *
+ * @return pendingType
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ @Valid
+ public PendingType getPendingType() {
+ return pendingType;
+ }
+
+ public void setPendingType(@jakarta.annotation.Nonnull PendingType pendingType) {
+ this.pendingType = pendingType;
+ }
+
+ public OrderListOpoRequest pendingSide(@jakarta.annotation.Nonnull PendingSide pendingSide) {
+ this.pendingSide = pendingSide;
+ return this;
+ }
+
+ /**
+ * Get pendingSide
+ *
+ * @return pendingSide
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ @Valid
+ public PendingSide getPendingSide() {
+ return pendingSide;
+ }
+
+ public void setPendingSide(@jakarta.annotation.Nonnull PendingSide pendingSide) {
+ this.pendingSide = pendingSide;
+ }
+
+ public OrderListOpoRequest pendingClientOrderId(
+ @jakarta.annotation.Nullable String pendingClientOrderId) {
+ this.pendingClientOrderId = pendingClientOrderId;
+ return this;
+ }
+
+ /**
+ * Get pendingClientOrderId
+ *
+ * @return pendingClientOrderId
+ */
+ @jakarta.annotation.Nullable
+ public String getPendingClientOrderId() {
+ return pendingClientOrderId;
+ }
+
+ public void setPendingClientOrderId(@jakarta.annotation.Nullable String pendingClientOrderId) {
+ this.pendingClientOrderId = pendingClientOrderId;
+ }
+
+ public OrderListOpoRequest pendingPrice(@jakarta.annotation.Nullable Double pendingPrice) {
+ this.pendingPrice = pendingPrice;
+ return this;
+ }
+
+ /**
+ * Get pendingPrice
+ *
+ * @return pendingPrice
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getPendingPrice() {
+ return pendingPrice;
+ }
+
+ public void setPendingPrice(@jakarta.annotation.Nullable Double pendingPrice) {
+ this.pendingPrice = pendingPrice;
+ }
+
+ public OrderListOpoRequest pendingStopPrice(
+ @jakarta.annotation.Nullable Double pendingStopPrice) {
+ this.pendingStopPrice = pendingStopPrice;
+ return this;
+ }
+
+ /**
+ * Get pendingStopPrice
+ *
+ * @return pendingStopPrice
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getPendingStopPrice() {
+ return pendingStopPrice;
+ }
+
+ public void setPendingStopPrice(@jakarta.annotation.Nullable Double pendingStopPrice) {
+ this.pendingStopPrice = pendingStopPrice;
+ }
+
+ public OrderListOpoRequest pendingTrailingDelta(
+ @jakarta.annotation.Nullable Double pendingTrailingDelta) {
+ this.pendingTrailingDelta = pendingTrailingDelta;
+ return this;
+ }
+
+ /**
+ * Get pendingTrailingDelta
+ *
+ * @return pendingTrailingDelta
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getPendingTrailingDelta() {
+ return pendingTrailingDelta;
+ }
+
+ public void setPendingTrailingDelta(@jakarta.annotation.Nullable Double pendingTrailingDelta) {
+ this.pendingTrailingDelta = pendingTrailingDelta;
+ }
+
+ public OrderListOpoRequest pendingIcebergQty(
+ @jakarta.annotation.Nullable Double pendingIcebergQty) {
+ this.pendingIcebergQty = pendingIcebergQty;
+ return this;
+ }
+
+ /**
+ * Get pendingIcebergQty
+ *
+ * @return pendingIcebergQty
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getPendingIcebergQty() {
+ return pendingIcebergQty;
+ }
+
+ public void setPendingIcebergQty(@jakarta.annotation.Nullable Double pendingIcebergQty) {
+ this.pendingIcebergQty = pendingIcebergQty;
+ }
+
+ public OrderListOpoRequest pendingTimeInForce(
+ @jakarta.annotation.Nullable PendingTimeInForce pendingTimeInForce) {
+ this.pendingTimeInForce = pendingTimeInForce;
+ return this;
+ }
+
+ /**
+ * Get pendingTimeInForce
+ *
+ * @return pendingTimeInForce
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public PendingTimeInForce getPendingTimeInForce() {
+ return pendingTimeInForce;
+ }
+
+ public void setPendingTimeInForce(
+ @jakarta.annotation.Nullable PendingTimeInForce pendingTimeInForce) {
+ this.pendingTimeInForce = pendingTimeInForce;
+ }
+
+ public OrderListOpoRequest pendingStrategyId(
+ @jakarta.annotation.Nullable Long pendingStrategyId) {
+ this.pendingStrategyId = pendingStrategyId;
+ return this;
+ }
+
+ /**
+ * Get pendingStrategyId
+ *
+ * @return pendingStrategyId
+ */
+ @jakarta.annotation.Nullable
+ public Long getPendingStrategyId() {
+ return pendingStrategyId;
+ }
+
+ public void setPendingStrategyId(@jakarta.annotation.Nullable Long pendingStrategyId) {
+ this.pendingStrategyId = pendingStrategyId;
+ }
+
+ public OrderListOpoRequest pendingStrategyType(
+ @jakarta.annotation.Nullable Integer pendingStrategyType) {
+ this.pendingStrategyType = pendingStrategyType;
+ return this;
+ }
+
+ /**
+ * Get pendingStrategyType
+ *
+ * @return pendingStrategyType
+ */
+ @jakarta.annotation.Nullable
+ public Integer getPendingStrategyType() {
+ return pendingStrategyType;
+ }
+
+ public void setPendingStrategyType(@jakarta.annotation.Nullable Integer pendingStrategyType) {
+ this.pendingStrategyType = pendingStrategyType;
+ }
+
+ public OrderListOpoRequest pendingPegPriceType(
+ @jakarta.annotation.Nullable PendingPegPriceType pendingPegPriceType) {
+ this.pendingPegPriceType = pendingPegPriceType;
+ return this;
+ }
+
+ /**
+ * Get pendingPegPriceType
+ *
+ * @return pendingPegPriceType
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public PendingPegPriceType getPendingPegPriceType() {
+ return pendingPegPriceType;
+ }
+
+ public void setPendingPegPriceType(
+ @jakarta.annotation.Nullable PendingPegPriceType pendingPegPriceType) {
+ this.pendingPegPriceType = pendingPegPriceType;
+ }
+
+ public OrderListOpoRequest pendingPegOffsetType(
+ @jakarta.annotation.Nullable PendingPegOffsetType pendingPegOffsetType) {
+ this.pendingPegOffsetType = pendingPegOffsetType;
+ return this;
+ }
+
+ /**
+ * Get pendingPegOffsetType
+ *
+ * @return pendingPegOffsetType
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public PendingPegOffsetType getPendingPegOffsetType() {
+ return pendingPegOffsetType;
+ }
+
+ public void setPendingPegOffsetType(
+ @jakarta.annotation.Nullable PendingPegOffsetType pendingPegOffsetType) {
+ this.pendingPegOffsetType = pendingPegOffsetType;
+ }
+
+ public OrderListOpoRequest pendingPegOffsetValue(
+ @jakarta.annotation.Nullable Integer pendingPegOffsetValue) {
+ this.pendingPegOffsetValue = pendingPegOffsetValue;
+ return this;
+ }
+
+ /**
+ * Get pendingPegOffsetValue
+ *
+ * @return pendingPegOffsetValue
+ */
+ @jakarta.annotation.Nullable
+ public Integer getPendingPegOffsetValue() {
+ return pendingPegOffsetValue;
+ }
+
+ public void setPendingPegOffsetValue(
+ @jakarta.annotation.Nullable Integer pendingPegOffsetValue) {
+ this.pendingPegOffsetValue = pendingPegOffsetValue;
+ }
+
+ public OrderListOpoRequest recvWindow(@jakarta.annotation.Nullable Double recvWindow) {
+ this.recvWindow = recvWindow;
+ return this;
+ }
+
+ /**
+ * Get recvWindow
+ *
+ * @return recvWindow
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getRecvWindow() {
+ return recvWindow;
+ }
+
+ public void setRecvWindow(@jakarta.annotation.Nullable Double recvWindow) {
+ this.recvWindow = recvWindow;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ OrderListOpoRequest orderListOpoRequest = (OrderListOpoRequest) o;
+ return Objects.equals(this.symbol, orderListOpoRequest.symbol)
+ && Objects.equals(this.listClientOrderId, orderListOpoRequest.listClientOrderId)
+ && Objects.equals(this.newOrderRespType, orderListOpoRequest.newOrderRespType)
+ && Objects.equals(
+ this.selfTradePreventionMode, orderListOpoRequest.selfTradePreventionMode)
+ && Objects.equals(this.workingType, orderListOpoRequest.workingType)
+ && Objects.equals(this.workingSide, orderListOpoRequest.workingSide)
+ && Objects.equals(
+ this.workingClientOrderId, orderListOpoRequest.workingClientOrderId)
+ && Objects.equals(this.workingPrice, orderListOpoRequest.workingPrice)
+ && Objects.equals(this.workingQuantity, orderListOpoRequest.workingQuantity)
+ && Objects.equals(this.workingIcebergQty, orderListOpoRequest.workingIcebergQty)
+ && Objects.equals(this.workingTimeInForce, orderListOpoRequest.workingTimeInForce)
+ && Objects.equals(this.workingStrategyId, orderListOpoRequest.workingStrategyId)
+ && Objects.equals(this.workingStrategyType, orderListOpoRequest.workingStrategyType)
+ && Objects.equals(this.workingPegPriceType, orderListOpoRequest.workingPegPriceType)
+ && Objects.equals(
+ this.workingPegOffsetType, orderListOpoRequest.workingPegOffsetType)
+ && Objects.equals(
+ this.workingPegOffsetValue, orderListOpoRequest.workingPegOffsetValue)
+ && Objects.equals(this.pendingType, orderListOpoRequest.pendingType)
+ && Objects.equals(this.pendingSide, orderListOpoRequest.pendingSide)
+ && Objects.equals(
+ this.pendingClientOrderId, orderListOpoRequest.pendingClientOrderId)
+ && Objects.equals(this.pendingPrice, orderListOpoRequest.pendingPrice)
+ && Objects.equals(this.pendingStopPrice, orderListOpoRequest.pendingStopPrice)
+ && Objects.equals(
+ this.pendingTrailingDelta, orderListOpoRequest.pendingTrailingDelta)
+ && Objects.equals(this.pendingIcebergQty, orderListOpoRequest.pendingIcebergQty)
+ && Objects.equals(this.pendingTimeInForce, orderListOpoRequest.pendingTimeInForce)
+ && Objects.equals(this.pendingStrategyId, orderListOpoRequest.pendingStrategyId)
+ && Objects.equals(this.pendingStrategyType, orderListOpoRequest.pendingStrategyType)
+ && Objects.equals(this.pendingPegPriceType, orderListOpoRequest.pendingPegPriceType)
+ && Objects.equals(
+ this.pendingPegOffsetType, orderListOpoRequest.pendingPegOffsetType)
+ && Objects.equals(
+ this.pendingPegOffsetValue, orderListOpoRequest.pendingPegOffsetValue)
+ && Objects.equals(this.recvWindow, orderListOpoRequest.recvWindow);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ symbol,
+ listClientOrderId,
+ newOrderRespType,
+ selfTradePreventionMode,
+ workingType,
+ workingSide,
+ workingClientOrderId,
+ workingPrice,
+ workingQuantity,
+ workingIcebergQty,
+ workingTimeInForce,
+ workingStrategyId,
+ workingStrategyType,
+ workingPegPriceType,
+ workingPegOffsetType,
+ workingPegOffsetValue,
+ pendingType,
+ pendingSide,
+ pendingClientOrderId,
+ pendingPrice,
+ pendingStopPrice,
+ pendingTrailingDelta,
+ pendingIcebergQty,
+ pendingTimeInForce,
+ pendingStrategyId,
+ pendingStrategyType,
+ pendingPegPriceType,
+ pendingPegOffsetType,
+ pendingPegOffsetValue,
+ recvWindow);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class OrderListOpoRequest {\n");
+ sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n");
+ sb.append(" listClientOrderId: ").append(toIndentedString(listClientOrderId)).append("\n");
+ sb.append(" newOrderRespType: ").append(toIndentedString(newOrderRespType)).append("\n");
+ sb.append(" selfTradePreventionMode: ")
+ .append(toIndentedString(selfTradePreventionMode))
+ .append("\n");
+ sb.append(" workingType: ").append(toIndentedString(workingType)).append("\n");
+ sb.append(" workingSide: ").append(toIndentedString(workingSide)).append("\n");
+ sb.append(" workingClientOrderId: ")
+ .append(toIndentedString(workingClientOrderId))
+ .append("\n");
+ sb.append(" workingPrice: ").append(toIndentedString(workingPrice)).append("\n");
+ sb.append(" workingQuantity: ").append(toIndentedString(workingQuantity)).append("\n");
+ sb.append(" workingIcebergQty: ").append(toIndentedString(workingIcebergQty)).append("\n");
+ sb.append(" workingTimeInForce: ")
+ .append(toIndentedString(workingTimeInForce))
+ .append("\n");
+ sb.append(" workingStrategyId: ").append(toIndentedString(workingStrategyId)).append("\n");
+ sb.append(" workingStrategyType: ")
+ .append(toIndentedString(workingStrategyType))
+ .append("\n");
+ sb.append(" workingPegPriceType: ")
+ .append(toIndentedString(workingPegPriceType))
+ .append("\n");
+ sb.append(" workingPegOffsetType: ")
+ .append(toIndentedString(workingPegOffsetType))
+ .append("\n");
+ sb.append(" workingPegOffsetValue: ")
+ .append(toIndentedString(workingPegOffsetValue))
+ .append("\n");
+ sb.append(" pendingType: ").append(toIndentedString(pendingType)).append("\n");
+ sb.append(" pendingSide: ").append(toIndentedString(pendingSide)).append("\n");
+ sb.append(" pendingClientOrderId: ")
+ .append(toIndentedString(pendingClientOrderId))
+ .append("\n");
+ sb.append(" pendingPrice: ").append(toIndentedString(pendingPrice)).append("\n");
+ sb.append(" pendingStopPrice: ").append(toIndentedString(pendingStopPrice)).append("\n");
+ sb.append(" pendingTrailingDelta: ")
+ .append(toIndentedString(pendingTrailingDelta))
+ .append("\n");
+ sb.append(" pendingIcebergQty: ").append(toIndentedString(pendingIcebergQty)).append("\n");
+ sb.append(" pendingTimeInForce: ")
+ .append(toIndentedString(pendingTimeInForce))
+ .append("\n");
+ sb.append(" pendingStrategyId: ").append(toIndentedString(pendingStrategyId)).append("\n");
+ sb.append(" pendingStrategyType: ")
+ .append(toIndentedString(pendingStrategyType))
+ .append("\n");
+ sb.append(" pendingPegPriceType: ")
+ .append(toIndentedString(pendingPegPriceType))
+ .append("\n");
+ sb.append(" pendingPegOffsetType: ")
+ .append(toIndentedString(pendingPegOffsetType))
+ .append("\n");
+ sb.append(" pendingPegOffsetValue: ")
+ .append(toIndentedString(pendingPegOffsetValue))
+ .append("\n");
+ sb.append(" recvWindow: ").append(toIndentedString(recvWindow)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object symbolValue = getSymbol();
+ String symbolValueAsString = "";
+ symbolValueAsString = symbolValue.toString();
+ sb.append("symbol=").append(urlEncode(symbolValueAsString)).append("");
+ Object listClientOrderIdValue = getListClientOrderId();
+ String listClientOrderIdValueAsString = "";
+ listClientOrderIdValueAsString = listClientOrderIdValue.toString();
+ sb.append("listClientOrderId=")
+ .append(urlEncode(listClientOrderIdValueAsString))
+ .append("");
+ Object newOrderRespTypeValue = getNewOrderRespType();
+ String newOrderRespTypeValueAsString = "";
+ newOrderRespTypeValueAsString = newOrderRespTypeValue.toString();
+ sb.append("newOrderRespType=").append(urlEncode(newOrderRespTypeValueAsString)).append("");
+ Object selfTradePreventionModeValue = getSelfTradePreventionMode();
+ String selfTradePreventionModeValueAsString = "";
+ selfTradePreventionModeValueAsString = selfTradePreventionModeValue.toString();
+ sb.append("selfTradePreventionMode=")
+ .append(urlEncode(selfTradePreventionModeValueAsString))
+ .append("");
+ Object workingTypeValue = getWorkingType();
+ String workingTypeValueAsString = "";
+ workingTypeValueAsString = workingTypeValue.toString();
+ sb.append("workingType=").append(urlEncode(workingTypeValueAsString)).append("");
+ Object workingSideValue = getWorkingSide();
+ String workingSideValueAsString = "";
+ workingSideValueAsString = workingSideValue.toString();
+ sb.append("workingSide=").append(urlEncode(workingSideValueAsString)).append("");
+ Object workingClientOrderIdValue = getWorkingClientOrderId();
+ String workingClientOrderIdValueAsString = "";
+ workingClientOrderIdValueAsString = workingClientOrderIdValue.toString();
+ sb.append("workingClientOrderId=")
+ .append(urlEncode(workingClientOrderIdValueAsString))
+ .append("");
+ Object workingPriceValue = getWorkingPrice();
+ String workingPriceValueAsString = "";
+ workingPriceValueAsString = workingPriceValue.toString();
+ sb.append("workingPrice=").append(urlEncode(workingPriceValueAsString)).append("");
+ Object workingQuantityValue = getWorkingQuantity();
+ String workingQuantityValueAsString = "";
+ workingQuantityValueAsString = workingQuantityValue.toString();
+ sb.append("workingQuantity=").append(urlEncode(workingQuantityValueAsString)).append("");
+ Object workingIcebergQtyValue = getWorkingIcebergQty();
+ String workingIcebergQtyValueAsString = "";
+ workingIcebergQtyValueAsString = workingIcebergQtyValue.toString();
+ sb.append("workingIcebergQty=")
+ .append(urlEncode(workingIcebergQtyValueAsString))
+ .append("");
+ Object workingTimeInForceValue = getWorkingTimeInForce();
+ String workingTimeInForceValueAsString = "";
+ workingTimeInForceValueAsString = workingTimeInForceValue.toString();
+ sb.append("workingTimeInForce=")
+ .append(urlEncode(workingTimeInForceValueAsString))
+ .append("");
+ Object workingStrategyIdValue = getWorkingStrategyId();
+ String workingStrategyIdValueAsString = "";
+ workingStrategyIdValueAsString = workingStrategyIdValue.toString();
+ sb.append("workingStrategyId=")
+ .append(urlEncode(workingStrategyIdValueAsString))
+ .append("");
+ Object workingStrategyTypeValue = getWorkingStrategyType();
+ String workingStrategyTypeValueAsString = "";
+ workingStrategyTypeValueAsString = workingStrategyTypeValue.toString();
+ sb.append("workingStrategyType=")
+ .append(urlEncode(workingStrategyTypeValueAsString))
+ .append("");
+ Object workingPegPriceTypeValue = getWorkingPegPriceType();
+ String workingPegPriceTypeValueAsString = "";
+ workingPegPriceTypeValueAsString = workingPegPriceTypeValue.toString();
+ sb.append("workingPegPriceType=")
+ .append(urlEncode(workingPegPriceTypeValueAsString))
+ .append("");
+ Object workingPegOffsetTypeValue = getWorkingPegOffsetType();
+ String workingPegOffsetTypeValueAsString = "";
+ workingPegOffsetTypeValueAsString = workingPegOffsetTypeValue.toString();
+ sb.append("workingPegOffsetType=")
+ .append(urlEncode(workingPegOffsetTypeValueAsString))
+ .append("");
+ Object workingPegOffsetValueValue = getWorkingPegOffsetValue();
+ String workingPegOffsetValueValueAsString = "";
+ workingPegOffsetValueValueAsString = workingPegOffsetValueValue.toString();
+ sb.append("workingPegOffsetValue=")
+ .append(urlEncode(workingPegOffsetValueValueAsString))
+ .append("");
+ Object pendingTypeValue = getPendingType();
+ String pendingTypeValueAsString = "";
+ pendingTypeValueAsString = pendingTypeValue.toString();
+ sb.append("pendingType=").append(urlEncode(pendingTypeValueAsString)).append("");
+ Object pendingSideValue = getPendingSide();
+ String pendingSideValueAsString = "";
+ pendingSideValueAsString = pendingSideValue.toString();
+ sb.append("pendingSide=").append(urlEncode(pendingSideValueAsString)).append("");
+ Object pendingClientOrderIdValue = getPendingClientOrderId();
+ String pendingClientOrderIdValueAsString = "";
+ pendingClientOrderIdValueAsString = pendingClientOrderIdValue.toString();
+ sb.append("pendingClientOrderId=")
+ .append(urlEncode(pendingClientOrderIdValueAsString))
+ .append("");
+ Object pendingPriceValue = getPendingPrice();
+ String pendingPriceValueAsString = "";
+ pendingPriceValueAsString = pendingPriceValue.toString();
+ sb.append("pendingPrice=").append(urlEncode(pendingPriceValueAsString)).append("");
+ Object pendingStopPriceValue = getPendingStopPrice();
+ String pendingStopPriceValueAsString = "";
+ pendingStopPriceValueAsString = pendingStopPriceValue.toString();
+ sb.append("pendingStopPrice=").append(urlEncode(pendingStopPriceValueAsString)).append("");
+ Object pendingTrailingDeltaValue = getPendingTrailingDelta();
+ String pendingTrailingDeltaValueAsString = "";
+ pendingTrailingDeltaValueAsString = pendingTrailingDeltaValue.toString();
+ sb.append("pendingTrailingDelta=")
+ .append(urlEncode(pendingTrailingDeltaValueAsString))
+ .append("");
+ Object pendingIcebergQtyValue = getPendingIcebergQty();
+ String pendingIcebergQtyValueAsString = "";
+ pendingIcebergQtyValueAsString = pendingIcebergQtyValue.toString();
+ sb.append("pendingIcebergQty=")
+ .append(urlEncode(pendingIcebergQtyValueAsString))
+ .append("");
+ Object pendingTimeInForceValue = getPendingTimeInForce();
+ String pendingTimeInForceValueAsString = "";
+ pendingTimeInForceValueAsString = pendingTimeInForceValue.toString();
+ sb.append("pendingTimeInForce=")
+ .append(urlEncode(pendingTimeInForceValueAsString))
+ .append("");
+ Object pendingStrategyIdValue = getPendingStrategyId();
+ String pendingStrategyIdValueAsString = "";
+ pendingStrategyIdValueAsString = pendingStrategyIdValue.toString();
+ sb.append("pendingStrategyId=")
+ .append(urlEncode(pendingStrategyIdValueAsString))
+ .append("");
+ Object pendingStrategyTypeValue = getPendingStrategyType();
+ String pendingStrategyTypeValueAsString = "";
+ pendingStrategyTypeValueAsString = pendingStrategyTypeValue.toString();
+ sb.append("pendingStrategyType=")
+ .append(urlEncode(pendingStrategyTypeValueAsString))
+ .append("");
+ Object pendingPegPriceTypeValue = getPendingPegPriceType();
+ String pendingPegPriceTypeValueAsString = "";
+ pendingPegPriceTypeValueAsString = pendingPegPriceTypeValue.toString();
+ sb.append("pendingPegPriceType=")
+ .append(urlEncode(pendingPegPriceTypeValueAsString))
+ .append("");
+ Object pendingPegOffsetTypeValue = getPendingPegOffsetType();
+ String pendingPegOffsetTypeValueAsString = "";
+ pendingPegOffsetTypeValueAsString = pendingPegOffsetTypeValue.toString();
+ sb.append("pendingPegOffsetType=")
+ .append(urlEncode(pendingPegOffsetTypeValueAsString))
+ .append("");
+ Object pendingPegOffsetValueValue = getPendingPegOffsetValue();
+ String pendingPegOffsetValueValueAsString = "";
+ pendingPegOffsetValueValueAsString = pendingPegOffsetValueValue.toString();
+ sb.append("pendingPegOffsetValue=")
+ .append(urlEncode(pendingPegOffsetValueValueAsString))
+ .append("");
+ Object recvWindowValue = getRecvWindow();
+ String recvWindowValueAsString = "";
+ recvWindowValueAsString = recvWindowValue.toString();
+ sb.append("recvWindow=").append(urlEncode(recvWindowValueAsString)).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("symbol");
+ openapiFields.add("listClientOrderId");
+ openapiFields.add("newOrderRespType");
+ openapiFields.add("selfTradePreventionMode");
+ openapiFields.add("workingType");
+ openapiFields.add("workingSide");
+ openapiFields.add("workingClientOrderId");
+ openapiFields.add("workingPrice");
+ openapiFields.add("workingQuantity");
+ openapiFields.add("workingIcebergQty");
+ openapiFields.add("workingTimeInForce");
+ openapiFields.add("workingStrategyId");
+ openapiFields.add("workingStrategyType");
+ openapiFields.add("workingPegPriceType");
+ openapiFields.add("workingPegOffsetType");
+ openapiFields.add("workingPegOffsetValue");
+ openapiFields.add("pendingType");
+ openapiFields.add("pendingSide");
+ openapiFields.add("pendingClientOrderId");
+ openapiFields.add("pendingPrice");
+ openapiFields.add("pendingStopPrice");
+ openapiFields.add("pendingTrailingDelta");
+ openapiFields.add("pendingIcebergQty");
+ openapiFields.add("pendingTimeInForce");
+ openapiFields.add("pendingStrategyId");
+ openapiFields.add("pendingStrategyType");
+ openapiFields.add("pendingPegPriceType");
+ openapiFields.add("pendingPegOffsetType");
+ openapiFields.add("pendingPegOffsetValue");
+ openapiFields.add("recvWindow");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ openapiRequiredFields.add("symbol");
+ openapiRequiredFields.add("workingType");
+ openapiRequiredFields.add("workingSide");
+ openapiRequiredFields.add("workingPrice");
+ openapiRequiredFields.add("workingQuantity");
+ openapiRequiredFields.add("pendingType");
+ openapiRequiredFields.add("pendingSide");
+ }
+
+ /**
+ * 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 OrderListOpoRequest
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!OrderListOpoRequest.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in OrderListOpoRequest is not found in"
+ + " the empty JSON string",
+ OrderListOpoRequest.openapiRequiredFields.toString()));
+ }
+ }
+
+ // check to make sure all required properties/fields are present in the JSON string
+ for (String requiredField : OrderListOpoRequest.openapiRequiredFields) {
+ if (jsonElement.getAsJsonObject().get(requiredField) == null) {
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field `%s` is not found in the JSON string: %s",
+ requiredField, jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if (!jsonObj.get("symbol").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `symbol` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("symbol").toString()));
+ }
+ if ((jsonObj.get("listClientOrderId") != null
+ && !jsonObj.get("listClientOrderId").isJsonNull())
+ && !jsonObj.get("listClientOrderId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `listClientOrderId` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("listClientOrderId").toString()));
+ }
+ // validate the optional field `newOrderRespType`
+ if (jsonObj.get("newOrderRespType") != null
+ && !jsonObj.get("newOrderRespType").isJsonNull()) {
+ NewOrderRespType.validateJsonElement(jsonObj.get("newOrderRespType"));
+ }
+ // validate the optional field `selfTradePreventionMode`
+ if (jsonObj.get("selfTradePreventionMode") != null
+ && !jsonObj.get("selfTradePreventionMode").isJsonNull()) {
+ SelfTradePreventionMode.validateJsonElement(jsonObj.get("selfTradePreventionMode"));
+ }
+ // validate the required field `workingType`
+ WorkingType.validateJsonElement(jsonObj.get("workingType"));
+ // validate the required field `workingSide`
+ WorkingSide.validateJsonElement(jsonObj.get("workingSide"));
+ if ((jsonObj.get("workingClientOrderId") != null
+ && !jsonObj.get("workingClientOrderId").isJsonNull())
+ && !jsonObj.get("workingClientOrderId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `workingClientOrderId` to be a primitive type in"
+ + " the JSON string but got `%s`",
+ jsonObj.get("workingClientOrderId").toString()));
+ }
+ // validate the optional field `workingTimeInForce`
+ if (jsonObj.get("workingTimeInForce") != null
+ && !jsonObj.get("workingTimeInForce").isJsonNull()) {
+ WorkingTimeInForce.validateJsonElement(jsonObj.get("workingTimeInForce"));
+ }
+ // validate the optional field `workingPegPriceType`
+ if (jsonObj.get("workingPegPriceType") != null
+ && !jsonObj.get("workingPegPriceType").isJsonNull()) {
+ WorkingPegPriceType.validateJsonElement(jsonObj.get("workingPegPriceType"));
+ }
+ // validate the optional field `workingPegOffsetType`
+ if (jsonObj.get("workingPegOffsetType") != null
+ && !jsonObj.get("workingPegOffsetType").isJsonNull()) {
+ WorkingPegOffsetType.validateJsonElement(jsonObj.get("workingPegOffsetType"));
+ }
+ // validate the required field `pendingType`
+ PendingType.validateJsonElement(jsonObj.get("pendingType"));
+ // validate the required field `pendingSide`
+ PendingSide.validateJsonElement(jsonObj.get("pendingSide"));
+ if ((jsonObj.get("pendingClientOrderId") != null
+ && !jsonObj.get("pendingClientOrderId").isJsonNull())
+ && !jsonObj.get("pendingClientOrderId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `pendingClientOrderId` to be a primitive type in"
+ + " the JSON string but got `%s`",
+ jsonObj.get("pendingClientOrderId").toString()));
+ }
+ // validate the optional field `pendingTimeInForce`
+ if (jsonObj.get("pendingTimeInForce") != null
+ && !jsonObj.get("pendingTimeInForce").isJsonNull()) {
+ PendingTimeInForce.validateJsonElement(jsonObj.get("pendingTimeInForce"));
+ }
+ // validate the optional field `pendingPegPriceType`
+ if (jsonObj.get("pendingPegPriceType") != null
+ && !jsonObj.get("pendingPegPriceType").isJsonNull()) {
+ PendingPegPriceType.validateJsonElement(jsonObj.get("pendingPegPriceType"));
+ }
+ // validate the optional field `pendingPegOffsetType`
+ if (jsonObj.get("pendingPegOffsetType") != null
+ && !jsonObj.get("pendingPegOffsetType").isJsonNull()) {
+ PendingPegOffsetType.validateJsonElement(jsonObj.get("pendingPegOffsetType"));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!OrderListOpoRequest.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'OrderListOpoRequest' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(this, TypeToken.get(OrderListOpoRequest.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, OrderListOpoRequest value)
+ throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public OrderListOpoRequest read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of OrderListOpoRequest given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of OrderListOpoRequest
+ * @throws IOException if the JSON string is invalid with respect to OrderListOpoRequest
+ */
+ public static OrderListOpoRequest fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, OrderListOpoRequest.class);
+ }
+
+ /**
+ * Convert an instance of OrderListOpoRequest to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpoResponse.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpoResponse.java
new file mode 100644
index 00000000..e54364c8
--- /dev/null
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpoResponse.java
@@ -0,0 +1,589 @@
+/*
+ * Binance Spot REST API
+ * OpenAPI Specifications for the Binance Spot REST API API documents: - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information)
+ *
+ * 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.spot.rest.model;
+
+import com.binance.connector.client.spot.rest.JSON;
+import com.google.gson.Gson;
+import com.google.gson.JsonArray;
+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.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.*;
+
+/** OrderListOpoResponse */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class OrderListOpoResponse {
+ public static final String SERIALIZED_NAME_ORDER_LIST_ID = "orderListId";
+
+ @SerializedName(SERIALIZED_NAME_ORDER_LIST_ID)
+ @jakarta.annotation.Nullable
+ private Long orderListId;
+
+ public static final String SERIALIZED_NAME_CONTINGENCY_TYPE = "contingencyType";
+
+ @SerializedName(SERIALIZED_NAME_CONTINGENCY_TYPE)
+ @jakarta.annotation.Nullable
+ private String contingencyType;
+
+ public static final String SERIALIZED_NAME_LIST_STATUS_TYPE = "listStatusType";
+
+ @SerializedName(SERIALIZED_NAME_LIST_STATUS_TYPE)
+ @jakarta.annotation.Nullable
+ private String listStatusType;
+
+ public static final String SERIALIZED_NAME_LIST_ORDER_STATUS = "listOrderStatus";
+
+ @SerializedName(SERIALIZED_NAME_LIST_ORDER_STATUS)
+ @jakarta.annotation.Nullable
+ private String listOrderStatus;
+
+ public static final String SERIALIZED_NAME_LIST_CLIENT_ORDER_ID = "listClientOrderId";
+
+ @SerializedName(SERIALIZED_NAME_LIST_CLIENT_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private String listClientOrderId;
+
+ public static final String SERIALIZED_NAME_TRANSACTION_TIME = "transactionTime";
+
+ @SerializedName(SERIALIZED_NAME_TRANSACTION_TIME)
+ @jakarta.annotation.Nullable
+ private Long transactionTime;
+
+ public static final String SERIALIZED_NAME_SYMBOL = "symbol";
+
+ @SerializedName(SERIALIZED_NAME_SYMBOL)
+ @jakarta.annotation.Nullable
+ private String symbol;
+
+ public static final String SERIALIZED_NAME_ORDERS = "orders";
+
+ @SerializedName(SERIALIZED_NAME_ORDERS)
+ @jakarta.annotation.Nullable
+ private List<@Valid OrderListOpoResponseOrdersInner> orders;
+
+ public static final String SERIALIZED_NAME_ORDER_REPORTS = "orderReports";
+
+ @SerializedName(SERIALIZED_NAME_ORDER_REPORTS)
+ @jakarta.annotation.Nullable
+ private List<@Valid OrderListOpoResponseOrderReportsInner> orderReports;
+
+ public OrderListOpoResponse() {}
+
+ public OrderListOpoResponse orderListId(@jakarta.annotation.Nullable Long orderListId) {
+ this.orderListId = orderListId;
+ return this;
+ }
+
+ /**
+ * Get orderListId
+ *
+ * @return orderListId
+ */
+ @jakarta.annotation.Nullable
+ public Long getOrderListId() {
+ return orderListId;
+ }
+
+ public void setOrderListId(@jakarta.annotation.Nullable Long orderListId) {
+ this.orderListId = orderListId;
+ }
+
+ public OrderListOpoResponse contingencyType(
+ @jakarta.annotation.Nullable String contingencyType) {
+ this.contingencyType = contingencyType;
+ return this;
+ }
+
+ /**
+ * Get contingencyType
+ *
+ * @return contingencyType
+ */
+ @jakarta.annotation.Nullable
+ public String getContingencyType() {
+ return contingencyType;
+ }
+
+ public void setContingencyType(@jakarta.annotation.Nullable String contingencyType) {
+ this.contingencyType = contingencyType;
+ }
+
+ public OrderListOpoResponse listStatusType(@jakarta.annotation.Nullable String listStatusType) {
+ this.listStatusType = listStatusType;
+ return this;
+ }
+
+ /**
+ * Get listStatusType
+ *
+ * @return listStatusType
+ */
+ @jakarta.annotation.Nullable
+ public String getListStatusType() {
+ return listStatusType;
+ }
+
+ public void setListStatusType(@jakarta.annotation.Nullable String listStatusType) {
+ this.listStatusType = listStatusType;
+ }
+
+ public OrderListOpoResponse listOrderStatus(
+ @jakarta.annotation.Nullable String listOrderStatus) {
+ this.listOrderStatus = listOrderStatus;
+ return this;
+ }
+
+ /**
+ * Get listOrderStatus
+ *
+ * @return listOrderStatus
+ */
+ @jakarta.annotation.Nullable
+ public String getListOrderStatus() {
+ return listOrderStatus;
+ }
+
+ public void setListOrderStatus(@jakarta.annotation.Nullable String listOrderStatus) {
+ this.listOrderStatus = listOrderStatus;
+ }
+
+ public OrderListOpoResponse listClientOrderId(
+ @jakarta.annotation.Nullable String listClientOrderId) {
+ this.listClientOrderId = listClientOrderId;
+ return this;
+ }
+
+ /**
+ * Get listClientOrderId
+ *
+ * @return listClientOrderId
+ */
+ @jakarta.annotation.Nullable
+ public String getListClientOrderId() {
+ return listClientOrderId;
+ }
+
+ public void setListClientOrderId(@jakarta.annotation.Nullable String listClientOrderId) {
+ this.listClientOrderId = listClientOrderId;
+ }
+
+ public OrderListOpoResponse transactionTime(@jakarta.annotation.Nullable Long transactionTime) {
+ this.transactionTime = transactionTime;
+ return this;
+ }
+
+ /**
+ * Get transactionTime
+ *
+ * @return transactionTime
+ */
+ @jakarta.annotation.Nullable
+ public Long getTransactionTime() {
+ return transactionTime;
+ }
+
+ public void setTransactionTime(@jakarta.annotation.Nullable Long transactionTime) {
+ this.transactionTime = transactionTime;
+ }
+
+ public OrderListOpoResponse symbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ return this;
+ }
+
+ /**
+ * Get symbol
+ *
+ * @return symbol
+ */
+ @jakarta.annotation.Nullable
+ public String getSymbol() {
+ return symbol;
+ }
+
+ public void setSymbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ }
+
+ public OrderListOpoResponse orders(
+ @jakarta.annotation.Nullable List<@Valid OrderListOpoResponseOrdersInner> orders) {
+ this.orders = orders;
+ return this;
+ }
+
+ public OrderListOpoResponse addOrdersItem(OrderListOpoResponseOrdersInner ordersItem) {
+ if (this.orders == null) {
+ this.orders = new ArrayList<>();
+ }
+ this.orders.add(ordersItem);
+ return this;
+ }
+
+ /**
+ * Get orders
+ *
+ * @return orders
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public List<@Valid OrderListOpoResponseOrdersInner> getOrders() {
+ return orders;
+ }
+
+ public void setOrders(
+ @jakarta.annotation.Nullable List<@Valid OrderListOpoResponseOrdersInner> orders) {
+ this.orders = orders;
+ }
+
+ public OrderListOpoResponse orderReports(
+ @jakarta.annotation.Nullable
+ List<@Valid OrderListOpoResponseOrderReportsInner> orderReports) {
+ this.orderReports = orderReports;
+ return this;
+ }
+
+ public OrderListOpoResponse addOrderReportsItem(
+ OrderListOpoResponseOrderReportsInner orderReportsItem) {
+ if (this.orderReports == null) {
+ this.orderReports = new ArrayList<>();
+ }
+ this.orderReports.add(orderReportsItem);
+ return this;
+ }
+
+ /**
+ * Get orderReports
+ *
+ * @return orderReports
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public List<@Valid OrderListOpoResponseOrderReportsInner> getOrderReports() {
+ return orderReports;
+ }
+
+ public void setOrderReports(
+ @jakarta.annotation.Nullable
+ List<@Valid OrderListOpoResponseOrderReportsInner> orderReports) {
+ this.orderReports = orderReports;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ OrderListOpoResponse orderListOpoResponse = (OrderListOpoResponse) o;
+ return Objects.equals(this.orderListId, orderListOpoResponse.orderListId)
+ && Objects.equals(this.contingencyType, orderListOpoResponse.contingencyType)
+ && Objects.equals(this.listStatusType, orderListOpoResponse.listStatusType)
+ && Objects.equals(this.listOrderStatus, orderListOpoResponse.listOrderStatus)
+ && Objects.equals(this.listClientOrderId, orderListOpoResponse.listClientOrderId)
+ && Objects.equals(this.transactionTime, orderListOpoResponse.transactionTime)
+ && Objects.equals(this.symbol, orderListOpoResponse.symbol)
+ && Objects.equals(this.orders, orderListOpoResponse.orders)
+ && Objects.equals(this.orderReports, orderListOpoResponse.orderReports);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ orderListId,
+ contingencyType,
+ listStatusType,
+ listOrderStatus,
+ listClientOrderId,
+ transactionTime,
+ symbol,
+ orders,
+ orderReports);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class OrderListOpoResponse {\n");
+ sb.append(" orderListId: ").append(toIndentedString(orderListId)).append("\n");
+ sb.append(" contingencyType: ").append(toIndentedString(contingencyType)).append("\n");
+ sb.append(" listStatusType: ").append(toIndentedString(listStatusType)).append("\n");
+ sb.append(" listOrderStatus: ").append(toIndentedString(listOrderStatus)).append("\n");
+ sb.append(" listClientOrderId: ").append(toIndentedString(listClientOrderId)).append("\n");
+ sb.append(" transactionTime: ").append(toIndentedString(transactionTime)).append("\n");
+ sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n");
+ sb.append(" orders: ").append(toIndentedString(orders)).append("\n");
+ sb.append(" orderReports: ").append(toIndentedString(orderReports)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object orderListIdValue = getOrderListId();
+ String orderListIdValueAsString = "";
+ orderListIdValueAsString = orderListIdValue.toString();
+ sb.append("orderListId=").append(urlEncode(orderListIdValueAsString)).append("");
+ Object contingencyTypeValue = getContingencyType();
+ String contingencyTypeValueAsString = "";
+ contingencyTypeValueAsString = contingencyTypeValue.toString();
+ sb.append("contingencyType=").append(urlEncode(contingencyTypeValueAsString)).append("");
+ Object listStatusTypeValue = getListStatusType();
+ String listStatusTypeValueAsString = "";
+ listStatusTypeValueAsString = listStatusTypeValue.toString();
+ sb.append("listStatusType=").append(urlEncode(listStatusTypeValueAsString)).append("");
+ Object listOrderStatusValue = getListOrderStatus();
+ String listOrderStatusValueAsString = "";
+ listOrderStatusValueAsString = listOrderStatusValue.toString();
+ sb.append("listOrderStatus=").append(urlEncode(listOrderStatusValueAsString)).append("");
+ Object listClientOrderIdValue = getListClientOrderId();
+ String listClientOrderIdValueAsString = "";
+ listClientOrderIdValueAsString = listClientOrderIdValue.toString();
+ sb.append("listClientOrderId=")
+ .append(urlEncode(listClientOrderIdValueAsString))
+ .append("");
+ Object transactionTimeValue = getTransactionTime();
+ String transactionTimeValueAsString = "";
+ transactionTimeValueAsString = transactionTimeValue.toString();
+ sb.append("transactionTime=").append(urlEncode(transactionTimeValueAsString)).append("");
+ Object symbolValue = getSymbol();
+ String symbolValueAsString = "";
+ symbolValueAsString = symbolValue.toString();
+ sb.append("symbol=").append(urlEncode(symbolValueAsString)).append("");
+ Object ordersValue = getOrders();
+ String ordersValueAsString = "";
+ ordersValueAsString =
+ (String)
+ ((Collection) ordersValue)
+ .stream().map(Object::toString).collect(Collectors.joining(","));
+ sb.append("orders=").append(urlEncode(ordersValueAsString)).append("");
+ Object orderReportsValue = getOrderReports();
+ String orderReportsValueAsString = "";
+ orderReportsValueAsString =
+ (String)
+ ((Collection) orderReportsValue)
+ .stream().map(Object::toString).collect(Collectors.joining(","));
+ sb.append("orderReports=").append(urlEncode(orderReportsValueAsString)).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("orderListId");
+ openapiFields.add("contingencyType");
+ openapiFields.add("listStatusType");
+ openapiFields.add("listOrderStatus");
+ openapiFields.add("listClientOrderId");
+ openapiFields.add("transactionTime");
+ openapiFields.add("symbol");
+ openapiFields.add("orders");
+ openapiFields.add("orderReports");
+
+ // 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 OrderListOpoResponse
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!OrderListOpoResponse.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in OrderListOpoResponse is not found in"
+ + " the empty JSON string",
+ OrderListOpoResponse.openapiRequiredFields.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("contingencyType") != null && !jsonObj.get("contingencyType").isJsonNull())
+ && !jsonObj.get("contingencyType").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `contingencyType` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("contingencyType").toString()));
+ }
+ if ((jsonObj.get("listStatusType") != null && !jsonObj.get("listStatusType").isJsonNull())
+ && !jsonObj.get("listStatusType").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `listStatusType` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("listStatusType").toString()));
+ }
+ if ((jsonObj.get("listOrderStatus") != null && !jsonObj.get("listOrderStatus").isJsonNull())
+ && !jsonObj.get("listOrderStatus").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `listOrderStatus` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("listOrderStatus").toString()));
+ }
+ if ((jsonObj.get("listClientOrderId") != null
+ && !jsonObj.get("listClientOrderId").isJsonNull())
+ && !jsonObj.get("listClientOrderId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `listClientOrderId` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("listClientOrderId").toString()));
+ }
+ if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull())
+ && !jsonObj.get("symbol").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `symbol` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("symbol").toString()));
+ }
+ if (jsonObj.get("orders") != null && !jsonObj.get("orders").isJsonNull()) {
+ JsonArray jsonArrayorders = jsonObj.getAsJsonArray("orders");
+ if (jsonArrayorders != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("orders").isJsonArray()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `orders` to be an array in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("orders").toString()));
+ }
+
+ // validate the optional field `orders` (array)
+ for (int i = 0; i < jsonArrayorders.size(); i++) {
+ OrderListOpoResponseOrdersInner.validateJsonElement(jsonArrayorders.get(i));
+ }
+ ;
+ }
+ }
+ if (jsonObj.get("orderReports") != null && !jsonObj.get("orderReports").isJsonNull()) {
+ JsonArray jsonArrayorderReports = jsonObj.getAsJsonArray("orderReports");
+ if (jsonArrayorderReports != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("orderReports").isJsonArray()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `orderReports` to be an array in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("orderReports").toString()));
+ }
+
+ // validate the optional field `orderReports` (array)
+ for (int i = 0; i < jsonArrayorderReports.size(); i++) {
+ OrderListOpoResponseOrderReportsInner.validateJsonElement(
+ jsonArrayorderReports.get(i));
+ }
+ ;
+ }
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!OrderListOpoResponse.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'OrderListOpoResponse' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(this, TypeToken.get(OrderListOpoResponse.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, OrderListOpoResponse value)
+ throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public OrderListOpoResponse read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of OrderListOpoResponse given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of OrderListOpoResponse
+ * @throws IOException if the JSON string is invalid with respect to OrderListOpoResponse
+ */
+ public static OrderListOpoResponse fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, OrderListOpoResponse.class);
+ }
+
+ /**
+ * Convert an instance of OrderListOpoResponse to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpoResponseOrderReportsInner.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpoResponseOrderReportsInner.java
new file mode 100644
index 00000000..ea0c514b
--- /dev/null
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpoResponseOrderReportsInner.java
@@ -0,0 +1,843 @@
+/*
+ * Binance Spot REST API
+ * OpenAPI Specifications for the Binance Spot REST API API documents: - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information)
+ *
+ * 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.spot.rest.model;
+
+import com.binance.connector.client.spot.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.HashSet;
+import java.util.Objects;
+import org.hibernate.validator.constraints.*;
+
+/** OrderListOpoResponseOrderReportsInner */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class OrderListOpoResponseOrderReportsInner {
+ public static final String SERIALIZED_NAME_SYMBOL = "symbol";
+
+ @SerializedName(SERIALIZED_NAME_SYMBOL)
+ @jakarta.annotation.Nullable
+ private String symbol;
+
+ public static final String SERIALIZED_NAME_ORDER_ID = "orderId";
+
+ @SerializedName(SERIALIZED_NAME_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private Long orderId;
+
+ public static final String SERIALIZED_NAME_ORDER_LIST_ID = "orderListId";
+
+ @SerializedName(SERIALIZED_NAME_ORDER_LIST_ID)
+ @jakarta.annotation.Nullable
+ private Long orderListId;
+
+ public static final String SERIALIZED_NAME_CLIENT_ORDER_ID = "clientOrderId";
+
+ @SerializedName(SERIALIZED_NAME_CLIENT_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private String clientOrderId;
+
+ public static final String SERIALIZED_NAME_TRANSACT_TIME = "transactTime";
+
+ @SerializedName(SERIALIZED_NAME_TRANSACT_TIME)
+ @jakarta.annotation.Nullable
+ private Long transactTime;
+
+ public static final String SERIALIZED_NAME_PRICE = "price";
+
+ @SerializedName(SERIALIZED_NAME_PRICE)
+ @jakarta.annotation.Nullable
+ private String price;
+
+ public static final String SERIALIZED_NAME_EXECUTED_QTY = "executedQty";
+
+ @SerializedName(SERIALIZED_NAME_EXECUTED_QTY)
+ @jakarta.annotation.Nullable
+ private String executedQty;
+
+ public static final String SERIALIZED_NAME_ORIG_QUOTE_ORDER_QTY = "origQuoteOrderQty";
+
+ @SerializedName(SERIALIZED_NAME_ORIG_QUOTE_ORDER_QTY)
+ @jakarta.annotation.Nullable
+ private String origQuoteOrderQty;
+
+ public static final String SERIALIZED_NAME_CUMMULATIVE_QUOTE_QTY = "cummulativeQuoteQty";
+
+ @SerializedName(SERIALIZED_NAME_CUMMULATIVE_QUOTE_QTY)
+ @jakarta.annotation.Nullable
+ private String cummulativeQuoteQty;
+
+ public static final String SERIALIZED_NAME_STATUS = "status";
+
+ @SerializedName(SERIALIZED_NAME_STATUS)
+ @jakarta.annotation.Nullable
+ private String status;
+
+ public static final String SERIALIZED_NAME_TIME_IN_FORCE = "timeInForce";
+
+ @SerializedName(SERIALIZED_NAME_TIME_IN_FORCE)
+ @jakarta.annotation.Nullable
+ private String timeInForce;
+
+ public static final String SERIALIZED_NAME_TYPE = "type";
+
+ @SerializedName(SERIALIZED_NAME_TYPE)
+ @jakarta.annotation.Nullable
+ private String type;
+
+ public static final String SERIALIZED_NAME_SIDE = "side";
+
+ @SerializedName(SERIALIZED_NAME_SIDE)
+ @jakarta.annotation.Nullable
+ private String side;
+
+ public static final String SERIALIZED_NAME_WORKING_TIME = "workingTime";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_TIME)
+ @jakarta.annotation.Nullable
+ private Long workingTime;
+
+ public static final String SERIALIZED_NAME_SELF_TRADE_PREVENTION_MODE =
+ "selfTradePreventionMode";
+
+ @SerializedName(SERIALIZED_NAME_SELF_TRADE_PREVENTION_MODE)
+ @jakarta.annotation.Nullable
+ private String selfTradePreventionMode;
+
+ public static final String SERIALIZED_NAME_ORIG_QTY = "origQty";
+
+ @SerializedName(SERIALIZED_NAME_ORIG_QTY)
+ @jakarta.annotation.Nullable
+ private String origQty;
+
+ public OrderListOpoResponseOrderReportsInner() {}
+
+ public OrderListOpoResponseOrderReportsInner symbol(
+ @jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ return this;
+ }
+
+ /**
+ * Get symbol
+ *
+ * @return symbol
+ */
+ @jakarta.annotation.Nullable
+ public String getSymbol() {
+ return symbol;
+ }
+
+ public void setSymbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ }
+
+ public OrderListOpoResponseOrderReportsInner orderId(
+ @jakarta.annotation.Nullable Long orderId) {
+ this.orderId = orderId;
+ return this;
+ }
+
+ /**
+ * Get orderId
+ *
+ * @return orderId
+ */
+ @jakarta.annotation.Nullable
+ public Long getOrderId() {
+ return orderId;
+ }
+
+ public void setOrderId(@jakarta.annotation.Nullable Long orderId) {
+ this.orderId = orderId;
+ }
+
+ public OrderListOpoResponseOrderReportsInner orderListId(
+ @jakarta.annotation.Nullable Long orderListId) {
+ this.orderListId = orderListId;
+ return this;
+ }
+
+ /**
+ * Get orderListId
+ *
+ * @return orderListId
+ */
+ @jakarta.annotation.Nullable
+ public Long getOrderListId() {
+ return orderListId;
+ }
+
+ public void setOrderListId(@jakarta.annotation.Nullable Long orderListId) {
+ this.orderListId = orderListId;
+ }
+
+ public OrderListOpoResponseOrderReportsInner clientOrderId(
+ @jakarta.annotation.Nullable String clientOrderId) {
+ this.clientOrderId = clientOrderId;
+ return this;
+ }
+
+ /**
+ * Get clientOrderId
+ *
+ * @return clientOrderId
+ */
+ @jakarta.annotation.Nullable
+ public String getClientOrderId() {
+ return clientOrderId;
+ }
+
+ public void setClientOrderId(@jakarta.annotation.Nullable String clientOrderId) {
+ this.clientOrderId = clientOrderId;
+ }
+
+ public OrderListOpoResponseOrderReportsInner transactTime(
+ @jakarta.annotation.Nullable Long transactTime) {
+ this.transactTime = transactTime;
+ return this;
+ }
+
+ /**
+ * Get transactTime
+ *
+ * @return transactTime
+ */
+ @jakarta.annotation.Nullable
+ public Long getTransactTime() {
+ return transactTime;
+ }
+
+ public void setTransactTime(@jakarta.annotation.Nullable Long transactTime) {
+ this.transactTime = transactTime;
+ }
+
+ public OrderListOpoResponseOrderReportsInner price(@jakarta.annotation.Nullable String price) {
+ this.price = price;
+ return this;
+ }
+
+ /**
+ * Get price
+ *
+ * @return price
+ */
+ @jakarta.annotation.Nullable
+ public String getPrice() {
+ return price;
+ }
+
+ public void setPrice(@jakarta.annotation.Nullable String price) {
+ this.price = price;
+ }
+
+ public OrderListOpoResponseOrderReportsInner executedQty(
+ @jakarta.annotation.Nullable String executedQty) {
+ this.executedQty = executedQty;
+ return this;
+ }
+
+ /**
+ * Get executedQty
+ *
+ * @return executedQty
+ */
+ @jakarta.annotation.Nullable
+ public String getExecutedQty() {
+ return executedQty;
+ }
+
+ public void setExecutedQty(@jakarta.annotation.Nullable String executedQty) {
+ this.executedQty = executedQty;
+ }
+
+ public OrderListOpoResponseOrderReportsInner origQuoteOrderQty(
+ @jakarta.annotation.Nullable String origQuoteOrderQty) {
+ this.origQuoteOrderQty = origQuoteOrderQty;
+ return this;
+ }
+
+ /**
+ * Get origQuoteOrderQty
+ *
+ * @return origQuoteOrderQty
+ */
+ @jakarta.annotation.Nullable
+ public String getOrigQuoteOrderQty() {
+ return origQuoteOrderQty;
+ }
+
+ public void setOrigQuoteOrderQty(@jakarta.annotation.Nullable String origQuoteOrderQty) {
+ this.origQuoteOrderQty = origQuoteOrderQty;
+ }
+
+ public OrderListOpoResponseOrderReportsInner cummulativeQuoteQty(
+ @jakarta.annotation.Nullable String cummulativeQuoteQty) {
+ this.cummulativeQuoteQty = cummulativeQuoteQty;
+ return this;
+ }
+
+ /**
+ * Get cummulativeQuoteQty
+ *
+ * @return cummulativeQuoteQty
+ */
+ @jakarta.annotation.Nullable
+ public String getCummulativeQuoteQty() {
+ return cummulativeQuoteQty;
+ }
+
+ public void setCummulativeQuoteQty(@jakarta.annotation.Nullable String cummulativeQuoteQty) {
+ this.cummulativeQuoteQty = cummulativeQuoteQty;
+ }
+
+ public OrderListOpoResponseOrderReportsInner status(
+ @jakarta.annotation.Nullable String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get status
+ *
+ * @return status
+ */
+ @jakarta.annotation.Nullable
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(@jakarta.annotation.Nullable String status) {
+ this.status = status;
+ }
+
+ public OrderListOpoResponseOrderReportsInner timeInForce(
+ @jakarta.annotation.Nullable String timeInForce) {
+ this.timeInForce = timeInForce;
+ return this;
+ }
+
+ /**
+ * Get timeInForce
+ *
+ * @return timeInForce
+ */
+ @jakarta.annotation.Nullable
+ public String getTimeInForce() {
+ return timeInForce;
+ }
+
+ public void setTimeInForce(@jakarta.annotation.Nullable String timeInForce) {
+ this.timeInForce = timeInForce;
+ }
+
+ public OrderListOpoResponseOrderReportsInner type(@jakarta.annotation.Nullable String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get type
+ *
+ * @return type
+ */
+ @jakarta.annotation.Nullable
+ public String getType() {
+ return type;
+ }
+
+ public void setType(@jakarta.annotation.Nullable String type) {
+ this.type = type;
+ }
+
+ public OrderListOpoResponseOrderReportsInner side(@jakarta.annotation.Nullable String side) {
+ this.side = side;
+ return this;
+ }
+
+ /**
+ * Get side
+ *
+ * @return side
+ */
+ @jakarta.annotation.Nullable
+ public String getSide() {
+ return side;
+ }
+
+ public void setSide(@jakarta.annotation.Nullable String side) {
+ this.side = side;
+ }
+
+ public OrderListOpoResponseOrderReportsInner workingTime(
+ @jakarta.annotation.Nullable Long workingTime) {
+ this.workingTime = workingTime;
+ return this;
+ }
+
+ /**
+ * Get workingTime
+ *
+ * @return workingTime
+ */
+ @jakarta.annotation.Nullable
+ public Long getWorkingTime() {
+ return workingTime;
+ }
+
+ public void setWorkingTime(@jakarta.annotation.Nullable Long workingTime) {
+ this.workingTime = workingTime;
+ }
+
+ public OrderListOpoResponseOrderReportsInner selfTradePreventionMode(
+ @jakarta.annotation.Nullable String selfTradePreventionMode) {
+ this.selfTradePreventionMode = selfTradePreventionMode;
+ return this;
+ }
+
+ /**
+ * Get selfTradePreventionMode
+ *
+ * @return selfTradePreventionMode
+ */
+ @jakarta.annotation.Nullable
+ public String getSelfTradePreventionMode() {
+ return selfTradePreventionMode;
+ }
+
+ public void setSelfTradePreventionMode(
+ @jakarta.annotation.Nullable String selfTradePreventionMode) {
+ this.selfTradePreventionMode = selfTradePreventionMode;
+ }
+
+ public OrderListOpoResponseOrderReportsInner origQty(
+ @jakarta.annotation.Nullable String origQty) {
+ this.origQty = origQty;
+ return this;
+ }
+
+ /**
+ * Get origQty
+ *
+ * @return origQty
+ */
+ @jakarta.annotation.Nullable
+ public String getOrigQty() {
+ return origQty;
+ }
+
+ public void setOrigQty(@jakarta.annotation.Nullable String origQty) {
+ this.origQty = origQty;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ OrderListOpoResponseOrderReportsInner orderListOpoResponseOrderReportsInner =
+ (OrderListOpoResponseOrderReportsInner) o;
+ return Objects.equals(this.symbol, orderListOpoResponseOrderReportsInner.symbol)
+ && Objects.equals(this.orderId, orderListOpoResponseOrderReportsInner.orderId)
+ && Objects.equals(
+ this.orderListId, orderListOpoResponseOrderReportsInner.orderListId)
+ && Objects.equals(
+ this.clientOrderId, orderListOpoResponseOrderReportsInner.clientOrderId)
+ && Objects.equals(
+ this.transactTime, orderListOpoResponseOrderReportsInner.transactTime)
+ && Objects.equals(this.price, orderListOpoResponseOrderReportsInner.price)
+ && Objects.equals(
+ this.executedQty, orderListOpoResponseOrderReportsInner.executedQty)
+ && Objects.equals(
+ this.origQuoteOrderQty,
+ orderListOpoResponseOrderReportsInner.origQuoteOrderQty)
+ && Objects.equals(
+ this.cummulativeQuoteQty,
+ orderListOpoResponseOrderReportsInner.cummulativeQuoteQty)
+ && Objects.equals(this.status, orderListOpoResponseOrderReportsInner.status)
+ && Objects.equals(
+ this.timeInForce, orderListOpoResponseOrderReportsInner.timeInForce)
+ && Objects.equals(this.type, orderListOpoResponseOrderReportsInner.type)
+ && Objects.equals(this.side, orderListOpoResponseOrderReportsInner.side)
+ && Objects.equals(
+ this.workingTime, orderListOpoResponseOrderReportsInner.workingTime)
+ && Objects.equals(
+ this.selfTradePreventionMode,
+ orderListOpoResponseOrderReportsInner.selfTradePreventionMode)
+ && Objects.equals(this.origQty, orderListOpoResponseOrderReportsInner.origQty);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ symbol,
+ orderId,
+ orderListId,
+ clientOrderId,
+ transactTime,
+ price,
+ executedQty,
+ origQuoteOrderQty,
+ cummulativeQuoteQty,
+ status,
+ timeInForce,
+ type,
+ side,
+ workingTime,
+ selfTradePreventionMode,
+ origQty);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class OrderListOpoResponseOrderReportsInner {\n");
+ sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n");
+ sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n");
+ sb.append(" orderListId: ").append(toIndentedString(orderListId)).append("\n");
+ sb.append(" clientOrderId: ").append(toIndentedString(clientOrderId)).append("\n");
+ sb.append(" transactTime: ").append(toIndentedString(transactTime)).append("\n");
+ sb.append(" price: ").append(toIndentedString(price)).append("\n");
+ sb.append(" executedQty: ").append(toIndentedString(executedQty)).append("\n");
+ sb.append(" origQuoteOrderQty: ").append(toIndentedString(origQuoteOrderQty)).append("\n");
+ sb.append(" cummulativeQuoteQty: ")
+ .append(toIndentedString(cummulativeQuoteQty))
+ .append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" timeInForce: ").append(toIndentedString(timeInForce)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" side: ").append(toIndentedString(side)).append("\n");
+ sb.append(" workingTime: ").append(toIndentedString(workingTime)).append("\n");
+ sb.append(" selfTradePreventionMode: ")
+ .append(toIndentedString(selfTradePreventionMode))
+ .append("\n");
+ sb.append(" origQty: ").append(toIndentedString(origQty)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object symbolValue = getSymbol();
+ String symbolValueAsString = "";
+ symbolValueAsString = symbolValue.toString();
+ sb.append("symbol=").append(urlEncode(symbolValueAsString)).append("");
+ Object orderIdValue = getOrderId();
+ String orderIdValueAsString = "";
+ orderIdValueAsString = orderIdValue.toString();
+ sb.append("orderId=").append(urlEncode(orderIdValueAsString)).append("");
+ Object orderListIdValue = getOrderListId();
+ String orderListIdValueAsString = "";
+ orderListIdValueAsString = orderListIdValue.toString();
+ sb.append("orderListId=").append(urlEncode(orderListIdValueAsString)).append("");
+ Object clientOrderIdValue = getClientOrderId();
+ String clientOrderIdValueAsString = "";
+ clientOrderIdValueAsString = clientOrderIdValue.toString();
+ sb.append("clientOrderId=").append(urlEncode(clientOrderIdValueAsString)).append("");
+ Object transactTimeValue = getTransactTime();
+ String transactTimeValueAsString = "";
+ transactTimeValueAsString = transactTimeValue.toString();
+ sb.append("transactTime=").append(urlEncode(transactTimeValueAsString)).append("");
+ Object priceValue = getPrice();
+ String priceValueAsString = "";
+ priceValueAsString = priceValue.toString();
+ sb.append("price=").append(urlEncode(priceValueAsString)).append("");
+ Object executedQtyValue = getExecutedQty();
+ String executedQtyValueAsString = "";
+ executedQtyValueAsString = executedQtyValue.toString();
+ sb.append("executedQty=").append(urlEncode(executedQtyValueAsString)).append("");
+ Object origQuoteOrderQtyValue = getOrigQuoteOrderQty();
+ String origQuoteOrderQtyValueAsString = "";
+ origQuoteOrderQtyValueAsString = origQuoteOrderQtyValue.toString();
+ sb.append("origQuoteOrderQty=")
+ .append(urlEncode(origQuoteOrderQtyValueAsString))
+ .append("");
+ Object cummulativeQuoteQtyValue = getCummulativeQuoteQty();
+ String cummulativeQuoteQtyValueAsString = "";
+ cummulativeQuoteQtyValueAsString = cummulativeQuoteQtyValue.toString();
+ sb.append("cummulativeQuoteQty=")
+ .append(urlEncode(cummulativeQuoteQtyValueAsString))
+ .append("");
+ Object statusValue = getStatus();
+ String statusValueAsString = "";
+ statusValueAsString = statusValue.toString();
+ sb.append("status=").append(urlEncode(statusValueAsString)).append("");
+ Object timeInForceValue = getTimeInForce();
+ String timeInForceValueAsString = "";
+ timeInForceValueAsString = timeInForceValue.toString();
+ sb.append("timeInForce=").append(urlEncode(timeInForceValueAsString)).append("");
+ Object typeValue = getType();
+ String typeValueAsString = "";
+ typeValueAsString = typeValue.toString();
+ sb.append("type=").append(urlEncode(typeValueAsString)).append("");
+ Object sideValue = getSide();
+ String sideValueAsString = "";
+ sideValueAsString = sideValue.toString();
+ sb.append("side=").append(urlEncode(sideValueAsString)).append("");
+ Object workingTimeValue = getWorkingTime();
+ String workingTimeValueAsString = "";
+ workingTimeValueAsString = workingTimeValue.toString();
+ sb.append("workingTime=").append(urlEncode(workingTimeValueAsString)).append("");
+ Object selfTradePreventionModeValue = getSelfTradePreventionMode();
+ String selfTradePreventionModeValueAsString = "";
+ selfTradePreventionModeValueAsString = selfTradePreventionModeValue.toString();
+ sb.append("selfTradePreventionMode=")
+ .append(urlEncode(selfTradePreventionModeValueAsString))
+ .append("");
+ Object origQtyValue = getOrigQty();
+ String origQtyValueAsString = "";
+ origQtyValueAsString = origQtyValue.toString();
+ sb.append("origQty=").append(urlEncode(origQtyValueAsString)).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("symbol");
+ openapiFields.add("orderId");
+ openapiFields.add("orderListId");
+ openapiFields.add("clientOrderId");
+ openapiFields.add("transactTime");
+ openapiFields.add("price");
+ openapiFields.add("executedQty");
+ openapiFields.add("origQuoteOrderQty");
+ openapiFields.add("cummulativeQuoteQty");
+ openapiFields.add("status");
+ openapiFields.add("timeInForce");
+ openapiFields.add("type");
+ openapiFields.add("side");
+ openapiFields.add("workingTime");
+ openapiFields.add("selfTradePreventionMode");
+ openapiFields.add("origQty");
+
+ // 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
+ * OrderListOpoResponseOrderReportsInner
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!OrderListOpoResponseOrderReportsInner.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in OrderListOpoResponseOrderReportsInner"
+ + " is not found in the empty JSON string",
+ OrderListOpoResponseOrderReportsInner.openapiRequiredFields
+ .toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull())
+ && !jsonObj.get("symbol").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `symbol` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("symbol").toString()));
+ }
+ if ((jsonObj.get("clientOrderId") != null && !jsonObj.get("clientOrderId").isJsonNull())
+ && !jsonObj.get("clientOrderId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `clientOrderId` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("clientOrderId").toString()));
+ }
+ if ((jsonObj.get("price") != null && !jsonObj.get("price").isJsonNull())
+ && !jsonObj.get("price").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `price` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("price").toString()));
+ }
+ if ((jsonObj.get("executedQty") != null && !jsonObj.get("executedQty").isJsonNull())
+ && !jsonObj.get("executedQty").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `executedQty` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("executedQty").toString()));
+ }
+ if ((jsonObj.get("origQuoteOrderQty") != null
+ && !jsonObj.get("origQuoteOrderQty").isJsonNull())
+ && !jsonObj.get("origQuoteOrderQty").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `origQuoteOrderQty` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("origQuoteOrderQty").toString()));
+ }
+ if ((jsonObj.get("cummulativeQuoteQty") != null
+ && !jsonObj.get("cummulativeQuoteQty").isJsonNull())
+ && !jsonObj.get("cummulativeQuoteQty").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `cummulativeQuoteQty` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("cummulativeQuoteQty").toString()));
+ }
+ if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull())
+ && !jsonObj.get("status").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `status` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("status").toString()));
+ }
+ if ((jsonObj.get("timeInForce") != null && !jsonObj.get("timeInForce").isJsonNull())
+ && !jsonObj.get("timeInForce").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `timeInForce` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("timeInForce").toString()));
+ }
+ if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull())
+ && !jsonObj.get("type").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `type` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("type").toString()));
+ }
+ if ((jsonObj.get("side") != null && !jsonObj.get("side").isJsonNull())
+ && !jsonObj.get("side").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `side` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("side").toString()));
+ }
+ if ((jsonObj.get("selfTradePreventionMode") != null
+ && !jsonObj.get("selfTradePreventionMode").isJsonNull())
+ && !jsonObj.get("selfTradePreventionMode").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `selfTradePreventionMode` to be a primitive type in"
+ + " the JSON string but got `%s`",
+ jsonObj.get("selfTradePreventionMode").toString()));
+ }
+ if ((jsonObj.get("origQty") != null && !jsonObj.get("origQty").isJsonNull())
+ && !jsonObj.get("origQty").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `origQty` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("origQty").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!OrderListOpoResponseOrderReportsInner.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'OrderListOpoResponseOrderReportsInner'
+ // and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(
+ this, TypeToken.get(OrderListOpoResponseOrderReportsInner.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(
+ JsonWriter out, OrderListOpoResponseOrderReportsInner value)
+ throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public OrderListOpoResponseOrderReportsInner read(JsonReader in)
+ throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of OrderListOpoResponseOrderReportsInner given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of OrderListOpoResponseOrderReportsInner
+ * @throws IOException if the JSON string is invalid with respect to
+ * OrderListOpoResponseOrderReportsInner
+ */
+ public static OrderListOpoResponseOrderReportsInner fromJson(String jsonString)
+ throws IOException {
+ return JSON.getGson().fromJson(jsonString, OrderListOpoResponseOrderReportsInner.class);
+ }
+
+ /**
+ * Convert an instance of OrderListOpoResponseOrderReportsInner to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpoResponseOrdersInner.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpoResponseOrdersInner.java
new file mode 100644
index 00000000..4861c045
--- /dev/null
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpoResponseOrdersInner.java
@@ -0,0 +1,290 @@
+/*
+ * Binance Spot REST API
+ * OpenAPI Specifications for the Binance Spot REST API API documents: - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information)
+ *
+ * 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.spot.rest.model;
+
+import com.binance.connector.client.spot.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.HashSet;
+import java.util.Objects;
+import org.hibernate.validator.constraints.*;
+
+/** OrderListOpoResponseOrdersInner */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class OrderListOpoResponseOrdersInner {
+ public static final String SERIALIZED_NAME_SYMBOL = "symbol";
+
+ @SerializedName(SERIALIZED_NAME_SYMBOL)
+ @jakarta.annotation.Nullable
+ private String symbol;
+
+ public static final String SERIALIZED_NAME_ORDER_ID = "orderId";
+
+ @SerializedName(SERIALIZED_NAME_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private Long orderId;
+
+ public static final String SERIALIZED_NAME_CLIENT_ORDER_ID = "clientOrderId";
+
+ @SerializedName(SERIALIZED_NAME_CLIENT_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private String clientOrderId;
+
+ public OrderListOpoResponseOrdersInner() {}
+
+ public OrderListOpoResponseOrdersInner symbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ return this;
+ }
+
+ /**
+ * Get symbol
+ *
+ * @return symbol
+ */
+ @jakarta.annotation.Nullable
+ public String getSymbol() {
+ return symbol;
+ }
+
+ public void setSymbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ }
+
+ public OrderListOpoResponseOrdersInner orderId(@jakarta.annotation.Nullable Long orderId) {
+ this.orderId = orderId;
+ return this;
+ }
+
+ /**
+ * Get orderId
+ *
+ * @return orderId
+ */
+ @jakarta.annotation.Nullable
+ public Long getOrderId() {
+ return orderId;
+ }
+
+ public void setOrderId(@jakarta.annotation.Nullable Long orderId) {
+ this.orderId = orderId;
+ }
+
+ public OrderListOpoResponseOrdersInner clientOrderId(
+ @jakarta.annotation.Nullable String clientOrderId) {
+ this.clientOrderId = clientOrderId;
+ return this;
+ }
+
+ /**
+ * Get clientOrderId
+ *
+ * @return clientOrderId
+ */
+ @jakarta.annotation.Nullable
+ public String getClientOrderId() {
+ return clientOrderId;
+ }
+
+ public void setClientOrderId(@jakarta.annotation.Nullable String clientOrderId) {
+ this.clientOrderId = clientOrderId;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ OrderListOpoResponseOrdersInner orderListOpoResponseOrdersInner =
+ (OrderListOpoResponseOrdersInner) o;
+ return Objects.equals(this.symbol, orderListOpoResponseOrdersInner.symbol)
+ && Objects.equals(this.orderId, orderListOpoResponseOrdersInner.orderId)
+ && Objects.equals(
+ this.clientOrderId, orderListOpoResponseOrdersInner.clientOrderId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(symbol, orderId, clientOrderId);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class OrderListOpoResponseOrdersInner {\n");
+ sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n");
+ sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n");
+ sb.append(" clientOrderId: ").append(toIndentedString(clientOrderId)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object symbolValue = getSymbol();
+ String symbolValueAsString = "";
+ symbolValueAsString = symbolValue.toString();
+ sb.append("symbol=").append(urlEncode(symbolValueAsString)).append("");
+ Object orderIdValue = getOrderId();
+ String orderIdValueAsString = "";
+ orderIdValueAsString = orderIdValue.toString();
+ sb.append("orderId=").append(urlEncode(orderIdValueAsString)).append("");
+ Object clientOrderIdValue = getClientOrderId();
+ String clientOrderIdValueAsString = "";
+ clientOrderIdValueAsString = clientOrderIdValue.toString();
+ sb.append("clientOrderId=").append(urlEncode(clientOrderIdValueAsString)).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("symbol");
+ openapiFields.add("orderId");
+ openapiFields.add("clientOrderId");
+
+ // 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
+ * OrderListOpoResponseOrdersInner
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!OrderListOpoResponseOrdersInner.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in OrderListOpoResponseOrdersInner is not"
+ + " found in the empty JSON string",
+ OrderListOpoResponseOrdersInner.openapiRequiredFields.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull())
+ && !jsonObj.get("symbol").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `symbol` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("symbol").toString()));
+ }
+ if ((jsonObj.get("clientOrderId") != null && !jsonObj.get("clientOrderId").isJsonNull())
+ && !jsonObj.get("clientOrderId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `clientOrderId` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("clientOrderId").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!OrderListOpoResponseOrdersInner.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'OrderListOpoResponseOrdersInner' and its
+ // subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(
+ this, TypeToken.get(OrderListOpoResponseOrdersInner.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, OrderListOpoResponseOrdersInner value)
+ throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public OrderListOpoResponseOrdersInner read(JsonReader in)
+ throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of OrderListOpoResponseOrdersInner given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of OrderListOpoResponseOrdersInner
+ * @throws IOException if the JSON string is invalid with respect to
+ * OrderListOpoResponseOrdersInner
+ */
+ public static OrderListOpoResponseOrdersInner fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, OrderListOpoResponseOrdersInner.class);
+ }
+
+ /**
+ * Convert an instance of OrderListOpoResponseOrdersInner to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpocoRequest.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpocoRequest.java
new file mode 100644
index 00000000..fab9e531
--- /dev/null
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpocoRequest.java
@@ -0,0 +1,1954 @@
+/*
+ * Binance Spot REST API
+ * OpenAPI Specifications for the Binance Spot REST API API documents: - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information)
+ *
+ * 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.spot.rest.model;
+
+import com.binance.connector.client.spot.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.*;
+
+/** OrderListOpocoRequest */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class OrderListOpocoRequest {
+ public static final String SERIALIZED_NAME_SYMBOL = "symbol";
+
+ @SerializedName(SERIALIZED_NAME_SYMBOL)
+ @jakarta.annotation.Nonnull
+ private String symbol;
+
+ public static final String SERIALIZED_NAME_LIST_CLIENT_ORDER_ID = "listClientOrderId";
+
+ @SerializedName(SERIALIZED_NAME_LIST_CLIENT_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private String listClientOrderId;
+
+ public static final String SERIALIZED_NAME_NEW_ORDER_RESP_TYPE = "newOrderRespType";
+
+ @SerializedName(SERIALIZED_NAME_NEW_ORDER_RESP_TYPE)
+ @jakarta.annotation.Nullable
+ private NewOrderRespType newOrderRespType;
+
+ public static final String SERIALIZED_NAME_SELF_TRADE_PREVENTION_MODE =
+ "selfTradePreventionMode";
+
+ @SerializedName(SERIALIZED_NAME_SELF_TRADE_PREVENTION_MODE)
+ @jakarta.annotation.Nullable
+ private SelfTradePreventionMode selfTradePreventionMode;
+
+ public static final String SERIALIZED_NAME_WORKING_TYPE = "workingType";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_TYPE)
+ @jakarta.annotation.Nonnull
+ private WorkingType workingType;
+
+ public static final String SERIALIZED_NAME_WORKING_SIDE = "workingSide";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_SIDE)
+ @jakarta.annotation.Nonnull
+ private WorkingSide workingSide;
+
+ public static final String SERIALIZED_NAME_WORKING_CLIENT_ORDER_ID = "workingClientOrderId";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_CLIENT_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private String workingClientOrderId;
+
+ public static final String SERIALIZED_NAME_WORKING_PRICE = "workingPrice";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_PRICE)
+ @jakarta.annotation.Nonnull
+ private Double workingPrice;
+
+ public static final String SERIALIZED_NAME_WORKING_QUANTITY = "workingQuantity";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_QUANTITY)
+ @jakarta.annotation.Nonnull
+ private Double workingQuantity;
+
+ public static final String SERIALIZED_NAME_WORKING_ICEBERG_QTY = "workingIcebergQty";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_ICEBERG_QTY)
+ @jakarta.annotation.Nullable
+ private Double workingIcebergQty;
+
+ public static final String SERIALIZED_NAME_WORKING_TIME_IN_FORCE = "workingTimeInForce";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_TIME_IN_FORCE)
+ @jakarta.annotation.Nullable
+ private WorkingTimeInForce workingTimeInForce;
+
+ public static final String SERIALIZED_NAME_WORKING_STRATEGY_ID = "workingStrategyId";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_STRATEGY_ID)
+ @jakarta.annotation.Nullable
+ private Long workingStrategyId;
+
+ public static final String SERIALIZED_NAME_WORKING_STRATEGY_TYPE = "workingStrategyType";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_STRATEGY_TYPE)
+ @jakarta.annotation.Nullable
+ private Integer workingStrategyType;
+
+ public static final String SERIALIZED_NAME_WORKING_PEG_PRICE_TYPE = "workingPegPriceType";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_PEG_PRICE_TYPE)
+ @jakarta.annotation.Nullable
+ private WorkingPegPriceType workingPegPriceType;
+
+ public static final String SERIALIZED_NAME_WORKING_PEG_OFFSET_TYPE = "workingPegOffsetType";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_PEG_OFFSET_TYPE)
+ @jakarta.annotation.Nullable
+ private WorkingPegOffsetType workingPegOffsetType;
+
+ public static final String SERIALIZED_NAME_WORKING_PEG_OFFSET_VALUE = "workingPegOffsetValue";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_PEG_OFFSET_VALUE)
+ @jakarta.annotation.Nullable
+ private Integer workingPegOffsetValue;
+
+ public static final String SERIALIZED_NAME_PENDING_SIDE = "pendingSide";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_SIDE)
+ @jakarta.annotation.Nonnull
+ private PendingSide pendingSide;
+
+ public static final String SERIALIZED_NAME_PENDING_ABOVE_TYPE = "pendingAboveType";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_ABOVE_TYPE)
+ @jakarta.annotation.Nonnull
+ private PendingAboveType pendingAboveType;
+
+ public static final String SERIALIZED_NAME_PENDING_ABOVE_CLIENT_ORDER_ID =
+ "pendingAboveClientOrderId";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_ABOVE_CLIENT_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private String pendingAboveClientOrderId;
+
+ public static final String SERIALIZED_NAME_PENDING_ABOVE_PRICE = "pendingAbovePrice";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_ABOVE_PRICE)
+ @jakarta.annotation.Nullable
+ private Double pendingAbovePrice;
+
+ public static final String SERIALIZED_NAME_PENDING_ABOVE_STOP_PRICE = "pendingAboveStopPrice";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_ABOVE_STOP_PRICE)
+ @jakarta.annotation.Nullable
+ private Double pendingAboveStopPrice;
+
+ public static final String SERIALIZED_NAME_PENDING_ABOVE_TRAILING_DELTA =
+ "pendingAboveTrailingDelta";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_ABOVE_TRAILING_DELTA)
+ @jakarta.annotation.Nullable
+ private Double pendingAboveTrailingDelta;
+
+ public static final String SERIALIZED_NAME_PENDING_ABOVE_ICEBERG_QTY = "pendingAboveIcebergQty";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_ABOVE_ICEBERG_QTY)
+ @jakarta.annotation.Nullable
+ private Double pendingAboveIcebergQty;
+
+ public static final String SERIALIZED_NAME_PENDING_ABOVE_TIME_IN_FORCE =
+ "pendingAboveTimeInForce";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_ABOVE_TIME_IN_FORCE)
+ @jakarta.annotation.Nullable
+ private PendingAboveTimeInForce pendingAboveTimeInForce;
+
+ public static final String SERIALIZED_NAME_PENDING_ABOVE_STRATEGY_ID = "pendingAboveStrategyId";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_ABOVE_STRATEGY_ID)
+ @jakarta.annotation.Nullable
+ private Long pendingAboveStrategyId;
+
+ public static final String SERIALIZED_NAME_PENDING_ABOVE_STRATEGY_TYPE =
+ "pendingAboveStrategyType";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_ABOVE_STRATEGY_TYPE)
+ @jakarta.annotation.Nullable
+ private Integer pendingAboveStrategyType;
+
+ public static final String SERIALIZED_NAME_PENDING_ABOVE_PEG_PRICE_TYPE =
+ "pendingAbovePegPriceType";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_ABOVE_PEG_PRICE_TYPE)
+ @jakarta.annotation.Nullable
+ private PendingAbovePegPriceType pendingAbovePegPriceType;
+
+ public static final String SERIALIZED_NAME_PENDING_ABOVE_PEG_OFFSET_TYPE =
+ "pendingAbovePegOffsetType";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_ABOVE_PEG_OFFSET_TYPE)
+ @jakarta.annotation.Nullable
+ private PendingAbovePegOffsetType pendingAbovePegOffsetType;
+
+ public static final String SERIALIZED_NAME_PENDING_ABOVE_PEG_OFFSET_VALUE =
+ "pendingAbovePegOffsetValue";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_ABOVE_PEG_OFFSET_VALUE)
+ @jakarta.annotation.Nullable
+ private Integer pendingAbovePegOffsetValue;
+
+ public static final String SERIALIZED_NAME_PENDING_BELOW_TYPE = "pendingBelowType";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_BELOW_TYPE)
+ @jakarta.annotation.Nullable
+ private PendingBelowType pendingBelowType;
+
+ public static final String SERIALIZED_NAME_PENDING_BELOW_CLIENT_ORDER_ID =
+ "pendingBelowClientOrderId";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_BELOW_CLIENT_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private String pendingBelowClientOrderId;
+
+ public static final String SERIALIZED_NAME_PENDING_BELOW_PRICE = "pendingBelowPrice";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_BELOW_PRICE)
+ @jakarta.annotation.Nullable
+ private Double pendingBelowPrice;
+
+ public static final String SERIALIZED_NAME_PENDING_BELOW_STOP_PRICE = "pendingBelowStopPrice";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_BELOW_STOP_PRICE)
+ @jakarta.annotation.Nullable
+ private Double pendingBelowStopPrice;
+
+ public static final String SERIALIZED_NAME_PENDING_BELOW_TRAILING_DELTA =
+ "pendingBelowTrailingDelta";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_BELOW_TRAILING_DELTA)
+ @jakarta.annotation.Nullable
+ private Double pendingBelowTrailingDelta;
+
+ public static final String SERIALIZED_NAME_PENDING_BELOW_ICEBERG_QTY = "pendingBelowIcebergQty";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_BELOW_ICEBERG_QTY)
+ @jakarta.annotation.Nullable
+ private Double pendingBelowIcebergQty;
+
+ public static final String SERIALIZED_NAME_PENDING_BELOW_TIME_IN_FORCE =
+ "pendingBelowTimeInForce";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_BELOW_TIME_IN_FORCE)
+ @jakarta.annotation.Nullable
+ private PendingBelowTimeInForce pendingBelowTimeInForce;
+
+ public static final String SERIALIZED_NAME_PENDING_BELOW_STRATEGY_ID = "pendingBelowStrategyId";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_BELOW_STRATEGY_ID)
+ @jakarta.annotation.Nullable
+ private Long pendingBelowStrategyId;
+
+ public static final String SERIALIZED_NAME_PENDING_BELOW_STRATEGY_TYPE =
+ "pendingBelowStrategyType";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_BELOW_STRATEGY_TYPE)
+ @jakarta.annotation.Nullable
+ private Integer pendingBelowStrategyType;
+
+ public static final String SERIALIZED_NAME_PENDING_BELOW_PEG_PRICE_TYPE =
+ "pendingBelowPegPriceType";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_BELOW_PEG_PRICE_TYPE)
+ @jakarta.annotation.Nullable
+ private PendingBelowPegPriceType pendingBelowPegPriceType;
+
+ public static final String SERIALIZED_NAME_PENDING_BELOW_PEG_OFFSET_TYPE =
+ "pendingBelowPegOffsetType";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_BELOW_PEG_OFFSET_TYPE)
+ @jakarta.annotation.Nullable
+ private PendingBelowPegOffsetType pendingBelowPegOffsetType;
+
+ public static final String SERIALIZED_NAME_PENDING_BELOW_PEG_OFFSET_VALUE =
+ "pendingBelowPegOffsetValue";
+
+ @SerializedName(SERIALIZED_NAME_PENDING_BELOW_PEG_OFFSET_VALUE)
+ @jakarta.annotation.Nullable
+ private Integer pendingBelowPegOffsetValue;
+
+ public static final String SERIALIZED_NAME_RECV_WINDOW = "recvWindow";
+
+ @SerializedName(SERIALIZED_NAME_RECV_WINDOW)
+ @jakarta.annotation.Nullable
+ private Double recvWindow;
+
+ public OrderListOpocoRequest() {}
+
+ public OrderListOpocoRequest symbol(@jakarta.annotation.Nonnull String symbol) {
+ this.symbol = symbol;
+ return this;
+ }
+
+ /**
+ * Get symbol
+ *
+ * @return symbol
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ public String getSymbol() {
+ return symbol;
+ }
+
+ public void setSymbol(@jakarta.annotation.Nonnull String symbol) {
+ this.symbol = symbol;
+ }
+
+ public OrderListOpocoRequest listClientOrderId(
+ @jakarta.annotation.Nullable String listClientOrderId) {
+ this.listClientOrderId = listClientOrderId;
+ return this;
+ }
+
+ /**
+ * Get listClientOrderId
+ *
+ * @return listClientOrderId
+ */
+ @jakarta.annotation.Nullable
+ public String getListClientOrderId() {
+ return listClientOrderId;
+ }
+
+ public void setListClientOrderId(@jakarta.annotation.Nullable String listClientOrderId) {
+ this.listClientOrderId = listClientOrderId;
+ }
+
+ public OrderListOpocoRequest newOrderRespType(
+ @jakarta.annotation.Nullable NewOrderRespType newOrderRespType) {
+ this.newOrderRespType = newOrderRespType;
+ return this;
+ }
+
+ /**
+ * Get newOrderRespType
+ *
+ * @return newOrderRespType
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public NewOrderRespType getNewOrderRespType() {
+ return newOrderRespType;
+ }
+
+ public void setNewOrderRespType(
+ @jakarta.annotation.Nullable NewOrderRespType newOrderRespType) {
+ this.newOrderRespType = newOrderRespType;
+ }
+
+ public OrderListOpocoRequest selfTradePreventionMode(
+ @jakarta.annotation.Nullable SelfTradePreventionMode selfTradePreventionMode) {
+ this.selfTradePreventionMode = selfTradePreventionMode;
+ return this;
+ }
+
+ /**
+ * Get selfTradePreventionMode
+ *
+ * @return selfTradePreventionMode
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public SelfTradePreventionMode getSelfTradePreventionMode() {
+ return selfTradePreventionMode;
+ }
+
+ public void setSelfTradePreventionMode(
+ @jakarta.annotation.Nullable SelfTradePreventionMode selfTradePreventionMode) {
+ this.selfTradePreventionMode = selfTradePreventionMode;
+ }
+
+ public OrderListOpocoRequest workingType(@jakarta.annotation.Nonnull WorkingType workingType) {
+ this.workingType = workingType;
+ return this;
+ }
+
+ /**
+ * Get workingType
+ *
+ * @return workingType
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ @Valid
+ public WorkingType getWorkingType() {
+ return workingType;
+ }
+
+ public void setWorkingType(@jakarta.annotation.Nonnull WorkingType workingType) {
+ this.workingType = workingType;
+ }
+
+ public OrderListOpocoRequest workingSide(@jakarta.annotation.Nonnull WorkingSide workingSide) {
+ this.workingSide = workingSide;
+ return this;
+ }
+
+ /**
+ * Get workingSide
+ *
+ * @return workingSide
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ @Valid
+ public WorkingSide getWorkingSide() {
+ return workingSide;
+ }
+
+ public void setWorkingSide(@jakarta.annotation.Nonnull WorkingSide workingSide) {
+ this.workingSide = workingSide;
+ }
+
+ public OrderListOpocoRequest workingClientOrderId(
+ @jakarta.annotation.Nullable String workingClientOrderId) {
+ this.workingClientOrderId = workingClientOrderId;
+ return this;
+ }
+
+ /**
+ * Get workingClientOrderId
+ *
+ * @return workingClientOrderId
+ */
+ @jakarta.annotation.Nullable
+ public String getWorkingClientOrderId() {
+ return workingClientOrderId;
+ }
+
+ public void setWorkingClientOrderId(@jakarta.annotation.Nullable String workingClientOrderId) {
+ this.workingClientOrderId = workingClientOrderId;
+ }
+
+ public OrderListOpocoRequest workingPrice(@jakarta.annotation.Nonnull Double workingPrice) {
+ this.workingPrice = workingPrice;
+ return this;
+ }
+
+ /**
+ * Get workingPrice
+ *
+ * @return workingPrice
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ @Valid
+ public Double getWorkingPrice() {
+ return workingPrice;
+ }
+
+ public void setWorkingPrice(@jakarta.annotation.Nonnull Double workingPrice) {
+ this.workingPrice = workingPrice;
+ }
+
+ public OrderListOpocoRequest workingQuantity(
+ @jakarta.annotation.Nonnull Double workingQuantity) {
+ this.workingQuantity = workingQuantity;
+ return this;
+ }
+
+ /**
+ * Get workingQuantity
+ *
+ * @return workingQuantity
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ @Valid
+ public Double getWorkingQuantity() {
+ return workingQuantity;
+ }
+
+ public void setWorkingQuantity(@jakarta.annotation.Nonnull Double workingQuantity) {
+ this.workingQuantity = workingQuantity;
+ }
+
+ public OrderListOpocoRequest workingIcebergQty(
+ @jakarta.annotation.Nullable Double workingIcebergQty) {
+ this.workingIcebergQty = workingIcebergQty;
+ return this;
+ }
+
+ /**
+ * Get workingIcebergQty
+ *
+ * @return workingIcebergQty
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getWorkingIcebergQty() {
+ return workingIcebergQty;
+ }
+
+ public void setWorkingIcebergQty(@jakarta.annotation.Nullable Double workingIcebergQty) {
+ this.workingIcebergQty = workingIcebergQty;
+ }
+
+ public OrderListOpocoRequest workingTimeInForce(
+ @jakarta.annotation.Nullable WorkingTimeInForce workingTimeInForce) {
+ this.workingTimeInForce = workingTimeInForce;
+ return this;
+ }
+
+ /**
+ * Get workingTimeInForce
+ *
+ * @return workingTimeInForce
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public WorkingTimeInForce getWorkingTimeInForce() {
+ return workingTimeInForce;
+ }
+
+ public void setWorkingTimeInForce(
+ @jakarta.annotation.Nullable WorkingTimeInForce workingTimeInForce) {
+ this.workingTimeInForce = workingTimeInForce;
+ }
+
+ public OrderListOpocoRequest workingStrategyId(
+ @jakarta.annotation.Nullable Long workingStrategyId) {
+ this.workingStrategyId = workingStrategyId;
+ return this;
+ }
+
+ /**
+ * Get workingStrategyId
+ *
+ * @return workingStrategyId
+ */
+ @jakarta.annotation.Nullable
+ public Long getWorkingStrategyId() {
+ return workingStrategyId;
+ }
+
+ public void setWorkingStrategyId(@jakarta.annotation.Nullable Long workingStrategyId) {
+ this.workingStrategyId = workingStrategyId;
+ }
+
+ public OrderListOpocoRequest workingStrategyType(
+ @jakarta.annotation.Nullable Integer workingStrategyType) {
+ this.workingStrategyType = workingStrategyType;
+ return this;
+ }
+
+ /**
+ * Get workingStrategyType
+ *
+ * @return workingStrategyType
+ */
+ @jakarta.annotation.Nullable
+ public Integer getWorkingStrategyType() {
+ return workingStrategyType;
+ }
+
+ public void setWorkingStrategyType(@jakarta.annotation.Nullable Integer workingStrategyType) {
+ this.workingStrategyType = workingStrategyType;
+ }
+
+ public OrderListOpocoRequest workingPegPriceType(
+ @jakarta.annotation.Nullable WorkingPegPriceType workingPegPriceType) {
+ this.workingPegPriceType = workingPegPriceType;
+ return this;
+ }
+
+ /**
+ * Get workingPegPriceType
+ *
+ * @return workingPegPriceType
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public WorkingPegPriceType getWorkingPegPriceType() {
+ return workingPegPriceType;
+ }
+
+ public void setWorkingPegPriceType(
+ @jakarta.annotation.Nullable WorkingPegPriceType workingPegPriceType) {
+ this.workingPegPriceType = workingPegPriceType;
+ }
+
+ public OrderListOpocoRequest workingPegOffsetType(
+ @jakarta.annotation.Nullable WorkingPegOffsetType workingPegOffsetType) {
+ this.workingPegOffsetType = workingPegOffsetType;
+ return this;
+ }
+
+ /**
+ * Get workingPegOffsetType
+ *
+ * @return workingPegOffsetType
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public WorkingPegOffsetType getWorkingPegOffsetType() {
+ return workingPegOffsetType;
+ }
+
+ public void setWorkingPegOffsetType(
+ @jakarta.annotation.Nullable WorkingPegOffsetType workingPegOffsetType) {
+ this.workingPegOffsetType = workingPegOffsetType;
+ }
+
+ public OrderListOpocoRequest workingPegOffsetValue(
+ @jakarta.annotation.Nullable Integer workingPegOffsetValue) {
+ this.workingPegOffsetValue = workingPegOffsetValue;
+ return this;
+ }
+
+ /**
+ * Get workingPegOffsetValue
+ *
+ * @return workingPegOffsetValue
+ */
+ @jakarta.annotation.Nullable
+ public Integer getWorkingPegOffsetValue() {
+ return workingPegOffsetValue;
+ }
+
+ public void setWorkingPegOffsetValue(
+ @jakarta.annotation.Nullable Integer workingPegOffsetValue) {
+ this.workingPegOffsetValue = workingPegOffsetValue;
+ }
+
+ public OrderListOpocoRequest pendingSide(@jakarta.annotation.Nonnull PendingSide pendingSide) {
+ this.pendingSide = pendingSide;
+ return this;
+ }
+
+ /**
+ * Get pendingSide
+ *
+ * @return pendingSide
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ @Valid
+ public PendingSide getPendingSide() {
+ return pendingSide;
+ }
+
+ public void setPendingSide(@jakarta.annotation.Nonnull PendingSide pendingSide) {
+ this.pendingSide = pendingSide;
+ }
+
+ public OrderListOpocoRequest pendingAboveType(
+ @jakarta.annotation.Nonnull PendingAboveType pendingAboveType) {
+ this.pendingAboveType = pendingAboveType;
+ return this;
+ }
+
+ /**
+ * Get pendingAboveType
+ *
+ * @return pendingAboveType
+ */
+ @jakarta.annotation.Nonnull
+ @NotNull
+ @Valid
+ public PendingAboveType getPendingAboveType() {
+ return pendingAboveType;
+ }
+
+ public void setPendingAboveType(@jakarta.annotation.Nonnull PendingAboveType pendingAboveType) {
+ this.pendingAboveType = pendingAboveType;
+ }
+
+ public OrderListOpocoRequest pendingAboveClientOrderId(
+ @jakarta.annotation.Nullable String pendingAboveClientOrderId) {
+ this.pendingAboveClientOrderId = pendingAboveClientOrderId;
+ return this;
+ }
+
+ /**
+ * Get pendingAboveClientOrderId
+ *
+ * @return pendingAboveClientOrderId
+ */
+ @jakarta.annotation.Nullable
+ public String getPendingAboveClientOrderId() {
+ return pendingAboveClientOrderId;
+ }
+
+ public void setPendingAboveClientOrderId(
+ @jakarta.annotation.Nullable String pendingAboveClientOrderId) {
+ this.pendingAboveClientOrderId = pendingAboveClientOrderId;
+ }
+
+ public OrderListOpocoRequest pendingAbovePrice(
+ @jakarta.annotation.Nullable Double pendingAbovePrice) {
+ this.pendingAbovePrice = pendingAbovePrice;
+ return this;
+ }
+
+ /**
+ * Get pendingAbovePrice
+ *
+ * @return pendingAbovePrice
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getPendingAbovePrice() {
+ return pendingAbovePrice;
+ }
+
+ public void setPendingAbovePrice(@jakarta.annotation.Nullable Double pendingAbovePrice) {
+ this.pendingAbovePrice = pendingAbovePrice;
+ }
+
+ public OrderListOpocoRequest pendingAboveStopPrice(
+ @jakarta.annotation.Nullable Double pendingAboveStopPrice) {
+ this.pendingAboveStopPrice = pendingAboveStopPrice;
+ return this;
+ }
+
+ /**
+ * Get pendingAboveStopPrice
+ *
+ * @return pendingAboveStopPrice
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getPendingAboveStopPrice() {
+ return pendingAboveStopPrice;
+ }
+
+ public void setPendingAboveStopPrice(
+ @jakarta.annotation.Nullable Double pendingAboveStopPrice) {
+ this.pendingAboveStopPrice = pendingAboveStopPrice;
+ }
+
+ public OrderListOpocoRequest pendingAboveTrailingDelta(
+ @jakarta.annotation.Nullable Double pendingAboveTrailingDelta) {
+ this.pendingAboveTrailingDelta = pendingAboveTrailingDelta;
+ return this;
+ }
+
+ /**
+ * Get pendingAboveTrailingDelta
+ *
+ * @return pendingAboveTrailingDelta
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getPendingAboveTrailingDelta() {
+ return pendingAboveTrailingDelta;
+ }
+
+ public void setPendingAboveTrailingDelta(
+ @jakarta.annotation.Nullable Double pendingAboveTrailingDelta) {
+ this.pendingAboveTrailingDelta = pendingAboveTrailingDelta;
+ }
+
+ public OrderListOpocoRequest pendingAboveIcebergQty(
+ @jakarta.annotation.Nullable Double pendingAboveIcebergQty) {
+ this.pendingAboveIcebergQty = pendingAboveIcebergQty;
+ return this;
+ }
+
+ /**
+ * Get pendingAboveIcebergQty
+ *
+ * @return pendingAboveIcebergQty
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getPendingAboveIcebergQty() {
+ return pendingAboveIcebergQty;
+ }
+
+ public void setPendingAboveIcebergQty(
+ @jakarta.annotation.Nullable Double pendingAboveIcebergQty) {
+ this.pendingAboveIcebergQty = pendingAboveIcebergQty;
+ }
+
+ public OrderListOpocoRequest pendingAboveTimeInForce(
+ @jakarta.annotation.Nullable PendingAboveTimeInForce pendingAboveTimeInForce) {
+ this.pendingAboveTimeInForce = pendingAboveTimeInForce;
+ return this;
+ }
+
+ /**
+ * Get pendingAboveTimeInForce
+ *
+ * @return pendingAboveTimeInForce
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public PendingAboveTimeInForce getPendingAboveTimeInForce() {
+ return pendingAboveTimeInForce;
+ }
+
+ public void setPendingAboveTimeInForce(
+ @jakarta.annotation.Nullable PendingAboveTimeInForce pendingAboveTimeInForce) {
+ this.pendingAboveTimeInForce = pendingAboveTimeInForce;
+ }
+
+ public OrderListOpocoRequest pendingAboveStrategyId(
+ @jakarta.annotation.Nullable Long pendingAboveStrategyId) {
+ this.pendingAboveStrategyId = pendingAboveStrategyId;
+ return this;
+ }
+
+ /**
+ * Get pendingAboveStrategyId
+ *
+ * @return pendingAboveStrategyId
+ */
+ @jakarta.annotation.Nullable
+ public Long getPendingAboveStrategyId() {
+ return pendingAboveStrategyId;
+ }
+
+ public void setPendingAboveStrategyId(
+ @jakarta.annotation.Nullable Long pendingAboveStrategyId) {
+ this.pendingAboveStrategyId = pendingAboveStrategyId;
+ }
+
+ public OrderListOpocoRequest pendingAboveStrategyType(
+ @jakarta.annotation.Nullable Integer pendingAboveStrategyType) {
+ this.pendingAboveStrategyType = pendingAboveStrategyType;
+ return this;
+ }
+
+ /**
+ * Get pendingAboveStrategyType
+ *
+ * @return pendingAboveStrategyType
+ */
+ @jakarta.annotation.Nullable
+ public Integer getPendingAboveStrategyType() {
+ return pendingAboveStrategyType;
+ }
+
+ public void setPendingAboveStrategyType(
+ @jakarta.annotation.Nullable Integer pendingAboveStrategyType) {
+ this.pendingAboveStrategyType = pendingAboveStrategyType;
+ }
+
+ public OrderListOpocoRequest pendingAbovePegPriceType(
+ @jakarta.annotation.Nullable PendingAbovePegPriceType pendingAbovePegPriceType) {
+ this.pendingAbovePegPriceType = pendingAbovePegPriceType;
+ return this;
+ }
+
+ /**
+ * Get pendingAbovePegPriceType
+ *
+ * @return pendingAbovePegPriceType
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public PendingAbovePegPriceType getPendingAbovePegPriceType() {
+ return pendingAbovePegPriceType;
+ }
+
+ public void setPendingAbovePegPriceType(
+ @jakarta.annotation.Nullable PendingAbovePegPriceType pendingAbovePegPriceType) {
+ this.pendingAbovePegPriceType = pendingAbovePegPriceType;
+ }
+
+ public OrderListOpocoRequest pendingAbovePegOffsetType(
+ @jakarta.annotation.Nullable PendingAbovePegOffsetType pendingAbovePegOffsetType) {
+ this.pendingAbovePegOffsetType = pendingAbovePegOffsetType;
+ return this;
+ }
+
+ /**
+ * Get pendingAbovePegOffsetType
+ *
+ * @return pendingAbovePegOffsetType
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public PendingAbovePegOffsetType getPendingAbovePegOffsetType() {
+ return pendingAbovePegOffsetType;
+ }
+
+ public void setPendingAbovePegOffsetType(
+ @jakarta.annotation.Nullable PendingAbovePegOffsetType pendingAbovePegOffsetType) {
+ this.pendingAbovePegOffsetType = pendingAbovePegOffsetType;
+ }
+
+ public OrderListOpocoRequest pendingAbovePegOffsetValue(
+ @jakarta.annotation.Nullable Integer pendingAbovePegOffsetValue) {
+ this.pendingAbovePegOffsetValue = pendingAbovePegOffsetValue;
+ return this;
+ }
+
+ /**
+ * Get pendingAbovePegOffsetValue
+ *
+ * @return pendingAbovePegOffsetValue
+ */
+ @jakarta.annotation.Nullable
+ public Integer getPendingAbovePegOffsetValue() {
+ return pendingAbovePegOffsetValue;
+ }
+
+ public void setPendingAbovePegOffsetValue(
+ @jakarta.annotation.Nullable Integer pendingAbovePegOffsetValue) {
+ this.pendingAbovePegOffsetValue = pendingAbovePegOffsetValue;
+ }
+
+ public OrderListOpocoRequest pendingBelowType(
+ @jakarta.annotation.Nullable PendingBelowType pendingBelowType) {
+ this.pendingBelowType = pendingBelowType;
+ return this;
+ }
+
+ /**
+ * Get pendingBelowType
+ *
+ * @return pendingBelowType
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public PendingBelowType getPendingBelowType() {
+ return pendingBelowType;
+ }
+
+ public void setPendingBelowType(
+ @jakarta.annotation.Nullable PendingBelowType pendingBelowType) {
+ this.pendingBelowType = pendingBelowType;
+ }
+
+ public OrderListOpocoRequest pendingBelowClientOrderId(
+ @jakarta.annotation.Nullable String pendingBelowClientOrderId) {
+ this.pendingBelowClientOrderId = pendingBelowClientOrderId;
+ return this;
+ }
+
+ /**
+ * Get pendingBelowClientOrderId
+ *
+ * @return pendingBelowClientOrderId
+ */
+ @jakarta.annotation.Nullable
+ public String getPendingBelowClientOrderId() {
+ return pendingBelowClientOrderId;
+ }
+
+ public void setPendingBelowClientOrderId(
+ @jakarta.annotation.Nullable String pendingBelowClientOrderId) {
+ this.pendingBelowClientOrderId = pendingBelowClientOrderId;
+ }
+
+ public OrderListOpocoRequest pendingBelowPrice(
+ @jakarta.annotation.Nullable Double pendingBelowPrice) {
+ this.pendingBelowPrice = pendingBelowPrice;
+ return this;
+ }
+
+ /**
+ * Get pendingBelowPrice
+ *
+ * @return pendingBelowPrice
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getPendingBelowPrice() {
+ return pendingBelowPrice;
+ }
+
+ public void setPendingBelowPrice(@jakarta.annotation.Nullable Double pendingBelowPrice) {
+ this.pendingBelowPrice = pendingBelowPrice;
+ }
+
+ public OrderListOpocoRequest pendingBelowStopPrice(
+ @jakarta.annotation.Nullable Double pendingBelowStopPrice) {
+ this.pendingBelowStopPrice = pendingBelowStopPrice;
+ return this;
+ }
+
+ /**
+ * Get pendingBelowStopPrice
+ *
+ * @return pendingBelowStopPrice
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getPendingBelowStopPrice() {
+ return pendingBelowStopPrice;
+ }
+
+ public void setPendingBelowStopPrice(
+ @jakarta.annotation.Nullable Double pendingBelowStopPrice) {
+ this.pendingBelowStopPrice = pendingBelowStopPrice;
+ }
+
+ public OrderListOpocoRequest pendingBelowTrailingDelta(
+ @jakarta.annotation.Nullable Double pendingBelowTrailingDelta) {
+ this.pendingBelowTrailingDelta = pendingBelowTrailingDelta;
+ return this;
+ }
+
+ /**
+ * Get pendingBelowTrailingDelta
+ *
+ * @return pendingBelowTrailingDelta
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getPendingBelowTrailingDelta() {
+ return pendingBelowTrailingDelta;
+ }
+
+ public void setPendingBelowTrailingDelta(
+ @jakarta.annotation.Nullable Double pendingBelowTrailingDelta) {
+ this.pendingBelowTrailingDelta = pendingBelowTrailingDelta;
+ }
+
+ public OrderListOpocoRequest pendingBelowIcebergQty(
+ @jakarta.annotation.Nullable Double pendingBelowIcebergQty) {
+ this.pendingBelowIcebergQty = pendingBelowIcebergQty;
+ return this;
+ }
+
+ /**
+ * Get pendingBelowIcebergQty
+ *
+ * @return pendingBelowIcebergQty
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getPendingBelowIcebergQty() {
+ return pendingBelowIcebergQty;
+ }
+
+ public void setPendingBelowIcebergQty(
+ @jakarta.annotation.Nullable Double pendingBelowIcebergQty) {
+ this.pendingBelowIcebergQty = pendingBelowIcebergQty;
+ }
+
+ public OrderListOpocoRequest pendingBelowTimeInForce(
+ @jakarta.annotation.Nullable PendingBelowTimeInForce pendingBelowTimeInForce) {
+ this.pendingBelowTimeInForce = pendingBelowTimeInForce;
+ return this;
+ }
+
+ /**
+ * Get pendingBelowTimeInForce
+ *
+ * @return pendingBelowTimeInForce
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public PendingBelowTimeInForce getPendingBelowTimeInForce() {
+ return pendingBelowTimeInForce;
+ }
+
+ public void setPendingBelowTimeInForce(
+ @jakarta.annotation.Nullable PendingBelowTimeInForce pendingBelowTimeInForce) {
+ this.pendingBelowTimeInForce = pendingBelowTimeInForce;
+ }
+
+ public OrderListOpocoRequest pendingBelowStrategyId(
+ @jakarta.annotation.Nullable Long pendingBelowStrategyId) {
+ this.pendingBelowStrategyId = pendingBelowStrategyId;
+ return this;
+ }
+
+ /**
+ * Get pendingBelowStrategyId
+ *
+ * @return pendingBelowStrategyId
+ */
+ @jakarta.annotation.Nullable
+ public Long getPendingBelowStrategyId() {
+ return pendingBelowStrategyId;
+ }
+
+ public void setPendingBelowStrategyId(
+ @jakarta.annotation.Nullable Long pendingBelowStrategyId) {
+ this.pendingBelowStrategyId = pendingBelowStrategyId;
+ }
+
+ public OrderListOpocoRequest pendingBelowStrategyType(
+ @jakarta.annotation.Nullable Integer pendingBelowStrategyType) {
+ this.pendingBelowStrategyType = pendingBelowStrategyType;
+ return this;
+ }
+
+ /**
+ * Get pendingBelowStrategyType
+ *
+ * @return pendingBelowStrategyType
+ */
+ @jakarta.annotation.Nullable
+ public Integer getPendingBelowStrategyType() {
+ return pendingBelowStrategyType;
+ }
+
+ public void setPendingBelowStrategyType(
+ @jakarta.annotation.Nullable Integer pendingBelowStrategyType) {
+ this.pendingBelowStrategyType = pendingBelowStrategyType;
+ }
+
+ public OrderListOpocoRequest pendingBelowPegPriceType(
+ @jakarta.annotation.Nullable PendingBelowPegPriceType pendingBelowPegPriceType) {
+ this.pendingBelowPegPriceType = pendingBelowPegPriceType;
+ return this;
+ }
+
+ /**
+ * Get pendingBelowPegPriceType
+ *
+ * @return pendingBelowPegPriceType
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public PendingBelowPegPriceType getPendingBelowPegPriceType() {
+ return pendingBelowPegPriceType;
+ }
+
+ public void setPendingBelowPegPriceType(
+ @jakarta.annotation.Nullable PendingBelowPegPriceType pendingBelowPegPriceType) {
+ this.pendingBelowPegPriceType = pendingBelowPegPriceType;
+ }
+
+ public OrderListOpocoRequest pendingBelowPegOffsetType(
+ @jakarta.annotation.Nullable PendingBelowPegOffsetType pendingBelowPegOffsetType) {
+ this.pendingBelowPegOffsetType = pendingBelowPegOffsetType;
+ return this;
+ }
+
+ /**
+ * Get pendingBelowPegOffsetType
+ *
+ * @return pendingBelowPegOffsetType
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public PendingBelowPegOffsetType getPendingBelowPegOffsetType() {
+ return pendingBelowPegOffsetType;
+ }
+
+ public void setPendingBelowPegOffsetType(
+ @jakarta.annotation.Nullable PendingBelowPegOffsetType pendingBelowPegOffsetType) {
+ this.pendingBelowPegOffsetType = pendingBelowPegOffsetType;
+ }
+
+ public OrderListOpocoRequest pendingBelowPegOffsetValue(
+ @jakarta.annotation.Nullable Integer pendingBelowPegOffsetValue) {
+ this.pendingBelowPegOffsetValue = pendingBelowPegOffsetValue;
+ return this;
+ }
+
+ /**
+ * Get pendingBelowPegOffsetValue
+ *
+ * @return pendingBelowPegOffsetValue
+ */
+ @jakarta.annotation.Nullable
+ public Integer getPendingBelowPegOffsetValue() {
+ return pendingBelowPegOffsetValue;
+ }
+
+ public void setPendingBelowPegOffsetValue(
+ @jakarta.annotation.Nullable Integer pendingBelowPegOffsetValue) {
+ this.pendingBelowPegOffsetValue = pendingBelowPegOffsetValue;
+ }
+
+ public OrderListOpocoRequest recvWindow(@jakarta.annotation.Nullable Double recvWindow) {
+ this.recvWindow = recvWindow;
+ return this;
+ }
+
+ /**
+ * Get recvWindow
+ *
+ * @return recvWindow
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public Double getRecvWindow() {
+ return recvWindow;
+ }
+
+ public void setRecvWindow(@jakarta.annotation.Nullable Double recvWindow) {
+ this.recvWindow = recvWindow;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ OrderListOpocoRequest orderListOpocoRequest = (OrderListOpocoRequest) o;
+ return Objects.equals(this.symbol, orderListOpocoRequest.symbol)
+ && Objects.equals(this.listClientOrderId, orderListOpocoRequest.listClientOrderId)
+ && Objects.equals(this.newOrderRespType, orderListOpocoRequest.newOrderRespType)
+ && Objects.equals(
+ this.selfTradePreventionMode, orderListOpocoRequest.selfTradePreventionMode)
+ && Objects.equals(this.workingType, orderListOpocoRequest.workingType)
+ && Objects.equals(this.workingSide, orderListOpocoRequest.workingSide)
+ && Objects.equals(
+ this.workingClientOrderId, orderListOpocoRequest.workingClientOrderId)
+ && Objects.equals(this.workingPrice, orderListOpocoRequest.workingPrice)
+ && Objects.equals(this.workingQuantity, orderListOpocoRequest.workingQuantity)
+ && Objects.equals(this.workingIcebergQty, orderListOpocoRequest.workingIcebergQty)
+ && Objects.equals(this.workingTimeInForce, orderListOpocoRequest.workingTimeInForce)
+ && Objects.equals(this.workingStrategyId, orderListOpocoRequest.workingStrategyId)
+ && Objects.equals(
+ this.workingStrategyType, orderListOpocoRequest.workingStrategyType)
+ && Objects.equals(
+ this.workingPegPriceType, orderListOpocoRequest.workingPegPriceType)
+ && Objects.equals(
+ this.workingPegOffsetType, orderListOpocoRequest.workingPegOffsetType)
+ && Objects.equals(
+ this.workingPegOffsetValue, orderListOpocoRequest.workingPegOffsetValue)
+ && Objects.equals(this.pendingSide, orderListOpocoRequest.pendingSide)
+ && Objects.equals(this.pendingAboveType, orderListOpocoRequest.pendingAboveType)
+ && Objects.equals(
+ this.pendingAboveClientOrderId,
+ orderListOpocoRequest.pendingAboveClientOrderId)
+ && Objects.equals(this.pendingAbovePrice, orderListOpocoRequest.pendingAbovePrice)
+ && Objects.equals(
+ this.pendingAboveStopPrice, orderListOpocoRequest.pendingAboveStopPrice)
+ && Objects.equals(
+ this.pendingAboveTrailingDelta,
+ orderListOpocoRequest.pendingAboveTrailingDelta)
+ && Objects.equals(
+ this.pendingAboveIcebergQty, orderListOpocoRequest.pendingAboveIcebergQty)
+ && Objects.equals(
+ this.pendingAboveTimeInForce, orderListOpocoRequest.pendingAboveTimeInForce)
+ && Objects.equals(
+ this.pendingAboveStrategyId, orderListOpocoRequest.pendingAboveStrategyId)
+ && Objects.equals(
+ this.pendingAboveStrategyType,
+ orderListOpocoRequest.pendingAboveStrategyType)
+ && Objects.equals(
+ this.pendingAbovePegPriceType,
+ orderListOpocoRequest.pendingAbovePegPriceType)
+ && Objects.equals(
+ this.pendingAbovePegOffsetType,
+ orderListOpocoRequest.pendingAbovePegOffsetType)
+ && Objects.equals(
+ this.pendingAbovePegOffsetValue,
+ orderListOpocoRequest.pendingAbovePegOffsetValue)
+ && Objects.equals(this.pendingBelowType, orderListOpocoRequest.pendingBelowType)
+ && Objects.equals(
+ this.pendingBelowClientOrderId,
+ orderListOpocoRequest.pendingBelowClientOrderId)
+ && Objects.equals(this.pendingBelowPrice, orderListOpocoRequest.pendingBelowPrice)
+ && Objects.equals(
+ this.pendingBelowStopPrice, orderListOpocoRequest.pendingBelowStopPrice)
+ && Objects.equals(
+ this.pendingBelowTrailingDelta,
+ orderListOpocoRequest.pendingBelowTrailingDelta)
+ && Objects.equals(
+ this.pendingBelowIcebergQty, orderListOpocoRequest.pendingBelowIcebergQty)
+ && Objects.equals(
+ this.pendingBelowTimeInForce, orderListOpocoRequest.pendingBelowTimeInForce)
+ && Objects.equals(
+ this.pendingBelowStrategyId, orderListOpocoRequest.pendingBelowStrategyId)
+ && Objects.equals(
+ this.pendingBelowStrategyType,
+ orderListOpocoRequest.pendingBelowStrategyType)
+ && Objects.equals(
+ this.pendingBelowPegPriceType,
+ orderListOpocoRequest.pendingBelowPegPriceType)
+ && Objects.equals(
+ this.pendingBelowPegOffsetType,
+ orderListOpocoRequest.pendingBelowPegOffsetType)
+ && Objects.equals(
+ this.pendingBelowPegOffsetValue,
+ orderListOpocoRequest.pendingBelowPegOffsetValue)
+ && Objects.equals(this.recvWindow, orderListOpocoRequest.recvWindow);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ symbol,
+ listClientOrderId,
+ newOrderRespType,
+ selfTradePreventionMode,
+ workingType,
+ workingSide,
+ workingClientOrderId,
+ workingPrice,
+ workingQuantity,
+ workingIcebergQty,
+ workingTimeInForce,
+ workingStrategyId,
+ workingStrategyType,
+ workingPegPriceType,
+ workingPegOffsetType,
+ workingPegOffsetValue,
+ pendingSide,
+ pendingAboveType,
+ pendingAboveClientOrderId,
+ pendingAbovePrice,
+ pendingAboveStopPrice,
+ pendingAboveTrailingDelta,
+ pendingAboveIcebergQty,
+ pendingAboveTimeInForce,
+ pendingAboveStrategyId,
+ pendingAboveStrategyType,
+ pendingAbovePegPriceType,
+ pendingAbovePegOffsetType,
+ pendingAbovePegOffsetValue,
+ pendingBelowType,
+ pendingBelowClientOrderId,
+ pendingBelowPrice,
+ pendingBelowStopPrice,
+ pendingBelowTrailingDelta,
+ pendingBelowIcebergQty,
+ pendingBelowTimeInForce,
+ pendingBelowStrategyId,
+ pendingBelowStrategyType,
+ pendingBelowPegPriceType,
+ pendingBelowPegOffsetType,
+ pendingBelowPegOffsetValue,
+ recvWindow);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class OrderListOpocoRequest {\n");
+ sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n");
+ sb.append(" listClientOrderId: ").append(toIndentedString(listClientOrderId)).append("\n");
+ sb.append(" newOrderRespType: ").append(toIndentedString(newOrderRespType)).append("\n");
+ sb.append(" selfTradePreventionMode: ")
+ .append(toIndentedString(selfTradePreventionMode))
+ .append("\n");
+ sb.append(" workingType: ").append(toIndentedString(workingType)).append("\n");
+ sb.append(" workingSide: ").append(toIndentedString(workingSide)).append("\n");
+ sb.append(" workingClientOrderId: ")
+ .append(toIndentedString(workingClientOrderId))
+ .append("\n");
+ sb.append(" workingPrice: ").append(toIndentedString(workingPrice)).append("\n");
+ sb.append(" workingQuantity: ").append(toIndentedString(workingQuantity)).append("\n");
+ sb.append(" workingIcebergQty: ").append(toIndentedString(workingIcebergQty)).append("\n");
+ sb.append(" workingTimeInForce: ")
+ .append(toIndentedString(workingTimeInForce))
+ .append("\n");
+ sb.append(" workingStrategyId: ").append(toIndentedString(workingStrategyId)).append("\n");
+ sb.append(" workingStrategyType: ")
+ .append(toIndentedString(workingStrategyType))
+ .append("\n");
+ sb.append(" workingPegPriceType: ")
+ .append(toIndentedString(workingPegPriceType))
+ .append("\n");
+ sb.append(" workingPegOffsetType: ")
+ .append(toIndentedString(workingPegOffsetType))
+ .append("\n");
+ sb.append(" workingPegOffsetValue: ")
+ .append(toIndentedString(workingPegOffsetValue))
+ .append("\n");
+ sb.append(" pendingSide: ").append(toIndentedString(pendingSide)).append("\n");
+ sb.append(" pendingAboveType: ").append(toIndentedString(pendingAboveType)).append("\n");
+ sb.append(" pendingAboveClientOrderId: ")
+ .append(toIndentedString(pendingAboveClientOrderId))
+ .append("\n");
+ sb.append(" pendingAbovePrice: ").append(toIndentedString(pendingAbovePrice)).append("\n");
+ sb.append(" pendingAboveStopPrice: ")
+ .append(toIndentedString(pendingAboveStopPrice))
+ .append("\n");
+ sb.append(" pendingAboveTrailingDelta: ")
+ .append(toIndentedString(pendingAboveTrailingDelta))
+ .append("\n");
+ sb.append(" pendingAboveIcebergQty: ")
+ .append(toIndentedString(pendingAboveIcebergQty))
+ .append("\n");
+ sb.append(" pendingAboveTimeInForce: ")
+ .append(toIndentedString(pendingAboveTimeInForce))
+ .append("\n");
+ sb.append(" pendingAboveStrategyId: ")
+ .append(toIndentedString(pendingAboveStrategyId))
+ .append("\n");
+ sb.append(" pendingAboveStrategyType: ")
+ .append(toIndentedString(pendingAboveStrategyType))
+ .append("\n");
+ sb.append(" pendingAbovePegPriceType: ")
+ .append(toIndentedString(pendingAbovePegPriceType))
+ .append("\n");
+ sb.append(" pendingAbovePegOffsetType: ")
+ .append(toIndentedString(pendingAbovePegOffsetType))
+ .append("\n");
+ sb.append(" pendingAbovePegOffsetValue: ")
+ .append(toIndentedString(pendingAbovePegOffsetValue))
+ .append("\n");
+ sb.append(" pendingBelowType: ").append(toIndentedString(pendingBelowType)).append("\n");
+ sb.append(" pendingBelowClientOrderId: ")
+ .append(toIndentedString(pendingBelowClientOrderId))
+ .append("\n");
+ sb.append(" pendingBelowPrice: ").append(toIndentedString(pendingBelowPrice)).append("\n");
+ sb.append(" pendingBelowStopPrice: ")
+ .append(toIndentedString(pendingBelowStopPrice))
+ .append("\n");
+ sb.append(" pendingBelowTrailingDelta: ")
+ .append(toIndentedString(pendingBelowTrailingDelta))
+ .append("\n");
+ sb.append(" pendingBelowIcebergQty: ")
+ .append(toIndentedString(pendingBelowIcebergQty))
+ .append("\n");
+ sb.append(" pendingBelowTimeInForce: ")
+ .append(toIndentedString(pendingBelowTimeInForce))
+ .append("\n");
+ sb.append(" pendingBelowStrategyId: ")
+ .append(toIndentedString(pendingBelowStrategyId))
+ .append("\n");
+ sb.append(" pendingBelowStrategyType: ")
+ .append(toIndentedString(pendingBelowStrategyType))
+ .append("\n");
+ sb.append(" pendingBelowPegPriceType: ")
+ .append(toIndentedString(pendingBelowPegPriceType))
+ .append("\n");
+ sb.append(" pendingBelowPegOffsetType: ")
+ .append(toIndentedString(pendingBelowPegOffsetType))
+ .append("\n");
+ sb.append(" pendingBelowPegOffsetValue: ")
+ .append(toIndentedString(pendingBelowPegOffsetValue))
+ .append("\n");
+ sb.append(" recvWindow: ").append(toIndentedString(recvWindow)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object symbolValue = getSymbol();
+ String symbolValueAsString = "";
+ symbolValueAsString = symbolValue.toString();
+ sb.append("symbol=").append(urlEncode(symbolValueAsString)).append("");
+ Object listClientOrderIdValue = getListClientOrderId();
+ String listClientOrderIdValueAsString = "";
+ listClientOrderIdValueAsString = listClientOrderIdValue.toString();
+ sb.append("listClientOrderId=")
+ .append(urlEncode(listClientOrderIdValueAsString))
+ .append("");
+ Object newOrderRespTypeValue = getNewOrderRespType();
+ String newOrderRespTypeValueAsString = "";
+ newOrderRespTypeValueAsString = newOrderRespTypeValue.toString();
+ sb.append("newOrderRespType=").append(urlEncode(newOrderRespTypeValueAsString)).append("");
+ Object selfTradePreventionModeValue = getSelfTradePreventionMode();
+ String selfTradePreventionModeValueAsString = "";
+ selfTradePreventionModeValueAsString = selfTradePreventionModeValue.toString();
+ sb.append("selfTradePreventionMode=")
+ .append(urlEncode(selfTradePreventionModeValueAsString))
+ .append("");
+ Object workingTypeValue = getWorkingType();
+ String workingTypeValueAsString = "";
+ workingTypeValueAsString = workingTypeValue.toString();
+ sb.append("workingType=").append(urlEncode(workingTypeValueAsString)).append("");
+ Object workingSideValue = getWorkingSide();
+ String workingSideValueAsString = "";
+ workingSideValueAsString = workingSideValue.toString();
+ sb.append("workingSide=").append(urlEncode(workingSideValueAsString)).append("");
+ Object workingClientOrderIdValue = getWorkingClientOrderId();
+ String workingClientOrderIdValueAsString = "";
+ workingClientOrderIdValueAsString = workingClientOrderIdValue.toString();
+ sb.append("workingClientOrderId=")
+ .append(urlEncode(workingClientOrderIdValueAsString))
+ .append("");
+ Object workingPriceValue = getWorkingPrice();
+ String workingPriceValueAsString = "";
+ workingPriceValueAsString = workingPriceValue.toString();
+ sb.append("workingPrice=").append(urlEncode(workingPriceValueAsString)).append("");
+ Object workingQuantityValue = getWorkingQuantity();
+ String workingQuantityValueAsString = "";
+ workingQuantityValueAsString = workingQuantityValue.toString();
+ sb.append("workingQuantity=").append(urlEncode(workingQuantityValueAsString)).append("");
+ Object workingIcebergQtyValue = getWorkingIcebergQty();
+ String workingIcebergQtyValueAsString = "";
+ workingIcebergQtyValueAsString = workingIcebergQtyValue.toString();
+ sb.append("workingIcebergQty=")
+ .append(urlEncode(workingIcebergQtyValueAsString))
+ .append("");
+ Object workingTimeInForceValue = getWorkingTimeInForce();
+ String workingTimeInForceValueAsString = "";
+ workingTimeInForceValueAsString = workingTimeInForceValue.toString();
+ sb.append("workingTimeInForce=")
+ .append(urlEncode(workingTimeInForceValueAsString))
+ .append("");
+ Object workingStrategyIdValue = getWorkingStrategyId();
+ String workingStrategyIdValueAsString = "";
+ workingStrategyIdValueAsString = workingStrategyIdValue.toString();
+ sb.append("workingStrategyId=")
+ .append(urlEncode(workingStrategyIdValueAsString))
+ .append("");
+ Object workingStrategyTypeValue = getWorkingStrategyType();
+ String workingStrategyTypeValueAsString = "";
+ workingStrategyTypeValueAsString = workingStrategyTypeValue.toString();
+ sb.append("workingStrategyType=")
+ .append(urlEncode(workingStrategyTypeValueAsString))
+ .append("");
+ Object workingPegPriceTypeValue = getWorkingPegPriceType();
+ String workingPegPriceTypeValueAsString = "";
+ workingPegPriceTypeValueAsString = workingPegPriceTypeValue.toString();
+ sb.append("workingPegPriceType=")
+ .append(urlEncode(workingPegPriceTypeValueAsString))
+ .append("");
+ Object workingPegOffsetTypeValue = getWorkingPegOffsetType();
+ String workingPegOffsetTypeValueAsString = "";
+ workingPegOffsetTypeValueAsString = workingPegOffsetTypeValue.toString();
+ sb.append("workingPegOffsetType=")
+ .append(urlEncode(workingPegOffsetTypeValueAsString))
+ .append("");
+ Object workingPegOffsetValueValue = getWorkingPegOffsetValue();
+ String workingPegOffsetValueValueAsString = "";
+ workingPegOffsetValueValueAsString = workingPegOffsetValueValue.toString();
+ sb.append("workingPegOffsetValue=")
+ .append(urlEncode(workingPegOffsetValueValueAsString))
+ .append("");
+ Object pendingSideValue = getPendingSide();
+ String pendingSideValueAsString = "";
+ pendingSideValueAsString = pendingSideValue.toString();
+ sb.append("pendingSide=").append(urlEncode(pendingSideValueAsString)).append("");
+ Object pendingAboveTypeValue = getPendingAboveType();
+ String pendingAboveTypeValueAsString = "";
+ pendingAboveTypeValueAsString = pendingAboveTypeValue.toString();
+ sb.append("pendingAboveType=").append(urlEncode(pendingAboveTypeValueAsString)).append("");
+ Object pendingAboveClientOrderIdValue = getPendingAboveClientOrderId();
+ String pendingAboveClientOrderIdValueAsString = "";
+ pendingAboveClientOrderIdValueAsString = pendingAboveClientOrderIdValue.toString();
+ sb.append("pendingAboveClientOrderId=")
+ .append(urlEncode(pendingAboveClientOrderIdValueAsString))
+ .append("");
+ Object pendingAbovePriceValue = getPendingAbovePrice();
+ String pendingAbovePriceValueAsString = "";
+ pendingAbovePriceValueAsString = pendingAbovePriceValue.toString();
+ sb.append("pendingAbovePrice=")
+ .append(urlEncode(pendingAbovePriceValueAsString))
+ .append("");
+ Object pendingAboveStopPriceValue = getPendingAboveStopPrice();
+ String pendingAboveStopPriceValueAsString = "";
+ pendingAboveStopPriceValueAsString = pendingAboveStopPriceValue.toString();
+ sb.append("pendingAboveStopPrice=")
+ .append(urlEncode(pendingAboveStopPriceValueAsString))
+ .append("");
+ Object pendingAboveTrailingDeltaValue = getPendingAboveTrailingDelta();
+ String pendingAboveTrailingDeltaValueAsString = "";
+ pendingAboveTrailingDeltaValueAsString = pendingAboveTrailingDeltaValue.toString();
+ sb.append("pendingAboveTrailingDelta=")
+ .append(urlEncode(pendingAboveTrailingDeltaValueAsString))
+ .append("");
+ Object pendingAboveIcebergQtyValue = getPendingAboveIcebergQty();
+ String pendingAboveIcebergQtyValueAsString = "";
+ pendingAboveIcebergQtyValueAsString = pendingAboveIcebergQtyValue.toString();
+ sb.append("pendingAboveIcebergQty=")
+ .append(urlEncode(pendingAboveIcebergQtyValueAsString))
+ .append("");
+ Object pendingAboveTimeInForceValue = getPendingAboveTimeInForce();
+ String pendingAboveTimeInForceValueAsString = "";
+ pendingAboveTimeInForceValueAsString = pendingAboveTimeInForceValue.toString();
+ sb.append("pendingAboveTimeInForce=")
+ .append(urlEncode(pendingAboveTimeInForceValueAsString))
+ .append("");
+ Object pendingAboveStrategyIdValue = getPendingAboveStrategyId();
+ String pendingAboveStrategyIdValueAsString = "";
+ pendingAboveStrategyIdValueAsString = pendingAboveStrategyIdValue.toString();
+ sb.append("pendingAboveStrategyId=")
+ .append(urlEncode(pendingAboveStrategyIdValueAsString))
+ .append("");
+ Object pendingAboveStrategyTypeValue = getPendingAboveStrategyType();
+ String pendingAboveStrategyTypeValueAsString = "";
+ pendingAboveStrategyTypeValueAsString = pendingAboveStrategyTypeValue.toString();
+ sb.append("pendingAboveStrategyType=")
+ .append(urlEncode(pendingAboveStrategyTypeValueAsString))
+ .append("");
+ Object pendingAbovePegPriceTypeValue = getPendingAbovePegPriceType();
+ String pendingAbovePegPriceTypeValueAsString = "";
+ pendingAbovePegPriceTypeValueAsString = pendingAbovePegPriceTypeValue.toString();
+ sb.append("pendingAbovePegPriceType=")
+ .append(urlEncode(pendingAbovePegPriceTypeValueAsString))
+ .append("");
+ Object pendingAbovePegOffsetTypeValue = getPendingAbovePegOffsetType();
+ String pendingAbovePegOffsetTypeValueAsString = "";
+ pendingAbovePegOffsetTypeValueAsString = pendingAbovePegOffsetTypeValue.toString();
+ sb.append("pendingAbovePegOffsetType=")
+ .append(urlEncode(pendingAbovePegOffsetTypeValueAsString))
+ .append("");
+ Object pendingAbovePegOffsetValueValue = getPendingAbovePegOffsetValue();
+ String pendingAbovePegOffsetValueValueAsString = "";
+ pendingAbovePegOffsetValueValueAsString = pendingAbovePegOffsetValueValue.toString();
+ sb.append("pendingAbovePegOffsetValue=")
+ .append(urlEncode(pendingAbovePegOffsetValueValueAsString))
+ .append("");
+ Object pendingBelowTypeValue = getPendingBelowType();
+ String pendingBelowTypeValueAsString = "";
+ pendingBelowTypeValueAsString = pendingBelowTypeValue.toString();
+ sb.append("pendingBelowType=").append(urlEncode(pendingBelowTypeValueAsString)).append("");
+ Object pendingBelowClientOrderIdValue = getPendingBelowClientOrderId();
+ String pendingBelowClientOrderIdValueAsString = "";
+ pendingBelowClientOrderIdValueAsString = pendingBelowClientOrderIdValue.toString();
+ sb.append("pendingBelowClientOrderId=")
+ .append(urlEncode(pendingBelowClientOrderIdValueAsString))
+ .append("");
+ Object pendingBelowPriceValue = getPendingBelowPrice();
+ String pendingBelowPriceValueAsString = "";
+ pendingBelowPriceValueAsString = pendingBelowPriceValue.toString();
+ sb.append("pendingBelowPrice=")
+ .append(urlEncode(pendingBelowPriceValueAsString))
+ .append("");
+ Object pendingBelowStopPriceValue = getPendingBelowStopPrice();
+ String pendingBelowStopPriceValueAsString = "";
+ pendingBelowStopPriceValueAsString = pendingBelowStopPriceValue.toString();
+ sb.append("pendingBelowStopPrice=")
+ .append(urlEncode(pendingBelowStopPriceValueAsString))
+ .append("");
+ Object pendingBelowTrailingDeltaValue = getPendingBelowTrailingDelta();
+ String pendingBelowTrailingDeltaValueAsString = "";
+ pendingBelowTrailingDeltaValueAsString = pendingBelowTrailingDeltaValue.toString();
+ sb.append("pendingBelowTrailingDelta=")
+ .append(urlEncode(pendingBelowTrailingDeltaValueAsString))
+ .append("");
+ Object pendingBelowIcebergQtyValue = getPendingBelowIcebergQty();
+ String pendingBelowIcebergQtyValueAsString = "";
+ pendingBelowIcebergQtyValueAsString = pendingBelowIcebergQtyValue.toString();
+ sb.append("pendingBelowIcebergQty=")
+ .append(urlEncode(pendingBelowIcebergQtyValueAsString))
+ .append("");
+ Object pendingBelowTimeInForceValue = getPendingBelowTimeInForce();
+ String pendingBelowTimeInForceValueAsString = "";
+ pendingBelowTimeInForceValueAsString = pendingBelowTimeInForceValue.toString();
+ sb.append("pendingBelowTimeInForce=")
+ .append(urlEncode(pendingBelowTimeInForceValueAsString))
+ .append("");
+ Object pendingBelowStrategyIdValue = getPendingBelowStrategyId();
+ String pendingBelowStrategyIdValueAsString = "";
+ pendingBelowStrategyIdValueAsString = pendingBelowStrategyIdValue.toString();
+ sb.append("pendingBelowStrategyId=")
+ .append(urlEncode(pendingBelowStrategyIdValueAsString))
+ .append("");
+ Object pendingBelowStrategyTypeValue = getPendingBelowStrategyType();
+ String pendingBelowStrategyTypeValueAsString = "";
+ pendingBelowStrategyTypeValueAsString = pendingBelowStrategyTypeValue.toString();
+ sb.append("pendingBelowStrategyType=")
+ .append(urlEncode(pendingBelowStrategyTypeValueAsString))
+ .append("");
+ Object pendingBelowPegPriceTypeValue = getPendingBelowPegPriceType();
+ String pendingBelowPegPriceTypeValueAsString = "";
+ pendingBelowPegPriceTypeValueAsString = pendingBelowPegPriceTypeValue.toString();
+ sb.append("pendingBelowPegPriceType=")
+ .append(urlEncode(pendingBelowPegPriceTypeValueAsString))
+ .append("");
+ Object pendingBelowPegOffsetTypeValue = getPendingBelowPegOffsetType();
+ String pendingBelowPegOffsetTypeValueAsString = "";
+ pendingBelowPegOffsetTypeValueAsString = pendingBelowPegOffsetTypeValue.toString();
+ sb.append("pendingBelowPegOffsetType=")
+ .append(urlEncode(pendingBelowPegOffsetTypeValueAsString))
+ .append("");
+ Object pendingBelowPegOffsetValueValue = getPendingBelowPegOffsetValue();
+ String pendingBelowPegOffsetValueValueAsString = "";
+ pendingBelowPegOffsetValueValueAsString = pendingBelowPegOffsetValueValue.toString();
+ sb.append("pendingBelowPegOffsetValue=")
+ .append(urlEncode(pendingBelowPegOffsetValueValueAsString))
+ .append("");
+ Object recvWindowValue = getRecvWindow();
+ String recvWindowValueAsString = "";
+ recvWindowValueAsString = recvWindowValue.toString();
+ sb.append("recvWindow=").append(urlEncode(recvWindowValueAsString)).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("symbol");
+ openapiFields.add("listClientOrderId");
+ openapiFields.add("newOrderRespType");
+ openapiFields.add("selfTradePreventionMode");
+ openapiFields.add("workingType");
+ openapiFields.add("workingSide");
+ openapiFields.add("workingClientOrderId");
+ openapiFields.add("workingPrice");
+ openapiFields.add("workingQuantity");
+ openapiFields.add("workingIcebergQty");
+ openapiFields.add("workingTimeInForce");
+ openapiFields.add("workingStrategyId");
+ openapiFields.add("workingStrategyType");
+ openapiFields.add("workingPegPriceType");
+ openapiFields.add("workingPegOffsetType");
+ openapiFields.add("workingPegOffsetValue");
+ openapiFields.add("pendingSide");
+ openapiFields.add("pendingAboveType");
+ openapiFields.add("pendingAboveClientOrderId");
+ openapiFields.add("pendingAbovePrice");
+ openapiFields.add("pendingAboveStopPrice");
+ openapiFields.add("pendingAboveTrailingDelta");
+ openapiFields.add("pendingAboveIcebergQty");
+ openapiFields.add("pendingAboveTimeInForce");
+ openapiFields.add("pendingAboveStrategyId");
+ openapiFields.add("pendingAboveStrategyType");
+ openapiFields.add("pendingAbovePegPriceType");
+ openapiFields.add("pendingAbovePegOffsetType");
+ openapiFields.add("pendingAbovePegOffsetValue");
+ openapiFields.add("pendingBelowType");
+ openapiFields.add("pendingBelowClientOrderId");
+ openapiFields.add("pendingBelowPrice");
+ openapiFields.add("pendingBelowStopPrice");
+ openapiFields.add("pendingBelowTrailingDelta");
+ openapiFields.add("pendingBelowIcebergQty");
+ openapiFields.add("pendingBelowTimeInForce");
+ openapiFields.add("pendingBelowStrategyId");
+ openapiFields.add("pendingBelowStrategyType");
+ openapiFields.add("pendingBelowPegPriceType");
+ openapiFields.add("pendingBelowPegOffsetType");
+ openapiFields.add("pendingBelowPegOffsetValue");
+ openapiFields.add("recvWindow");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ openapiRequiredFields.add("symbol");
+ openapiRequiredFields.add("workingType");
+ openapiRequiredFields.add("workingSide");
+ openapiRequiredFields.add("workingPrice");
+ openapiRequiredFields.add("workingQuantity");
+ openapiRequiredFields.add("pendingSide");
+ openapiRequiredFields.add("pendingAboveType");
+ }
+
+ /**
+ * 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 OrderListOpocoRequest
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!OrderListOpocoRequest.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in OrderListOpocoRequest is not found in"
+ + " the empty JSON string",
+ OrderListOpocoRequest.openapiRequiredFields.toString()));
+ }
+ }
+
+ // check to make sure all required properties/fields are present in the JSON string
+ for (String requiredField : OrderListOpocoRequest.openapiRequiredFields) {
+ if (jsonElement.getAsJsonObject().get(requiredField) == null) {
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field `%s` is not found in the JSON string: %s",
+ requiredField, jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if (!jsonObj.get("symbol").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `symbol` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("symbol").toString()));
+ }
+ if ((jsonObj.get("listClientOrderId") != null
+ && !jsonObj.get("listClientOrderId").isJsonNull())
+ && !jsonObj.get("listClientOrderId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `listClientOrderId` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("listClientOrderId").toString()));
+ }
+ // validate the optional field `newOrderRespType`
+ if (jsonObj.get("newOrderRespType") != null
+ && !jsonObj.get("newOrderRespType").isJsonNull()) {
+ NewOrderRespType.validateJsonElement(jsonObj.get("newOrderRespType"));
+ }
+ // validate the optional field `selfTradePreventionMode`
+ if (jsonObj.get("selfTradePreventionMode") != null
+ && !jsonObj.get("selfTradePreventionMode").isJsonNull()) {
+ SelfTradePreventionMode.validateJsonElement(jsonObj.get("selfTradePreventionMode"));
+ }
+ // validate the required field `workingType`
+ WorkingType.validateJsonElement(jsonObj.get("workingType"));
+ // validate the required field `workingSide`
+ WorkingSide.validateJsonElement(jsonObj.get("workingSide"));
+ if ((jsonObj.get("workingClientOrderId") != null
+ && !jsonObj.get("workingClientOrderId").isJsonNull())
+ && !jsonObj.get("workingClientOrderId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `workingClientOrderId` to be a primitive type in"
+ + " the JSON string but got `%s`",
+ jsonObj.get("workingClientOrderId").toString()));
+ }
+ // validate the optional field `workingTimeInForce`
+ if (jsonObj.get("workingTimeInForce") != null
+ && !jsonObj.get("workingTimeInForce").isJsonNull()) {
+ WorkingTimeInForce.validateJsonElement(jsonObj.get("workingTimeInForce"));
+ }
+ // validate the optional field `workingPegPriceType`
+ if (jsonObj.get("workingPegPriceType") != null
+ && !jsonObj.get("workingPegPriceType").isJsonNull()) {
+ WorkingPegPriceType.validateJsonElement(jsonObj.get("workingPegPriceType"));
+ }
+ // validate the optional field `workingPegOffsetType`
+ if (jsonObj.get("workingPegOffsetType") != null
+ && !jsonObj.get("workingPegOffsetType").isJsonNull()) {
+ WorkingPegOffsetType.validateJsonElement(jsonObj.get("workingPegOffsetType"));
+ }
+ // validate the required field `pendingSide`
+ PendingSide.validateJsonElement(jsonObj.get("pendingSide"));
+ // validate the required field `pendingAboveType`
+ PendingAboveType.validateJsonElement(jsonObj.get("pendingAboveType"));
+ if ((jsonObj.get("pendingAboveClientOrderId") != null
+ && !jsonObj.get("pendingAboveClientOrderId").isJsonNull())
+ && !jsonObj.get("pendingAboveClientOrderId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `pendingAboveClientOrderId` to be a primitive type"
+ + " in the JSON string but got `%s`",
+ jsonObj.get("pendingAboveClientOrderId").toString()));
+ }
+ // validate the optional field `pendingAboveTimeInForce`
+ if (jsonObj.get("pendingAboveTimeInForce") != null
+ && !jsonObj.get("pendingAboveTimeInForce").isJsonNull()) {
+ PendingAboveTimeInForce.validateJsonElement(jsonObj.get("pendingAboveTimeInForce"));
+ }
+ // validate the optional field `pendingAbovePegPriceType`
+ if (jsonObj.get("pendingAbovePegPriceType") != null
+ && !jsonObj.get("pendingAbovePegPriceType").isJsonNull()) {
+ PendingAbovePegPriceType.validateJsonElement(jsonObj.get("pendingAbovePegPriceType"));
+ }
+ // validate the optional field `pendingAbovePegOffsetType`
+ if (jsonObj.get("pendingAbovePegOffsetType") != null
+ && !jsonObj.get("pendingAbovePegOffsetType").isJsonNull()) {
+ PendingAbovePegOffsetType.validateJsonElement(jsonObj.get("pendingAbovePegOffsetType"));
+ }
+ // validate the optional field `pendingBelowType`
+ if (jsonObj.get("pendingBelowType") != null
+ && !jsonObj.get("pendingBelowType").isJsonNull()) {
+ PendingBelowType.validateJsonElement(jsonObj.get("pendingBelowType"));
+ }
+ if ((jsonObj.get("pendingBelowClientOrderId") != null
+ && !jsonObj.get("pendingBelowClientOrderId").isJsonNull())
+ && !jsonObj.get("pendingBelowClientOrderId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `pendingBelowClientOrderId` to be a primitive type"
+ + " in the JSON string but got `%s`",
+ jsonObj.get("pendingBelowClientOrderId").toString()));
+ }
+ // validate the optional field `pendingBelowTimeInForce`
+ if (jsonObj.get("pendingBelowTimeInForce") != null
+ && !jsonObj.get("pendingBelowTimeInForce").isJsonNull()) {
+ PendingBelowTimeInForce.validateJsonElement(jsonObj.get("pendingBelowTimeInForce"));
+ }
+ // validate the optional field `pendingBelowPegPriceType`
+ if (jsonObj.get("pendingBelowPegPriceType") != null
+ && !jsonObj.get("pendingBelowPegPriceType").isJsonNull()) {
+ PendingBelowPegPriceType.validateJsonElement(jsonObj.get("pendingBelowPegPriceType"));
+ }
+ // validate the optional field `pendingBelowPegOffsetType`
+ if (jsonObj.get("pendingBelowPegOffsetType") != null
+ && !jsonObj.get("pendingBelowPegOffsetType").isJsonNull()) {
+ PendingBelowPegOffsetType.validateJsonElement(jsonObj.get("pendingBelowPegOffsetType"));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!OrderListOpocoRequest.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'OrderListOpocoRequest' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(this, TypeToken.get(OrderListOpocoRequest.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, OrderListOpocoRequest value)
+ throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public OrderListOpocoRequest read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of OrderListOpocoRequest given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of OrderListOpocoRequest
+ * @throws IOException if the JSON string is invalid with respect to OrderListOpocoRequest
+ */
+ public static OrderListOpocoRequest fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, OrderListOpocoRequest.class);
+ }
+
+ /**
+ * Convert an instance of OrderListOpocoRequest to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpocoResponse.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpocoResponse.java
new file mode 100644
index 00000000..a2065fb6
--- /dev/null
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpocoResponse.java
@@ -0,0 +1,591 @@
+/*
+ * Binance Spot REST API
+ * OpenAPI Specifications for the Binance Spot REST API API documents: - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information)
+ *
+ * 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.spot.rest.model;
+
+import com.binance.connector.client.spot.rest.JSON;
+import com.google.gson.Gson;
+import com.google.gson.JsonArray;
+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.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.*;
+
+/** OrderListOpocoResponse */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class OrderListOpocoResponse {
+ public static final String SERIALIZED_NAME_ORDER_LIST_ID = "orderListId";
+
+ @SerializedName(SERIALIZED_NAME_ORDER_LIST_ID)
+ @jakarta.annotation.Nullable
+ private Long orderListId;
+
+ public static final String SERIALIZED_NAME_CONTINGENCY_TYPE = "contingencyType";
+
+ @SerializedName(SERIALIZED_NAME_CONTINGENCY_TYPE)
+ @jakarta.annotation.Nullable
+ private String contingencyType;
+
+ public static final String SERIALIZED_NAME_LIST_STATUS_TYPE = "listStatusType";
+
+ @SerializedName(SERIALIZED_NAME_LIST_STATUS_TYPE)
+ @jakarta.annotation.Nullable
+ private String listStatusType;
+
+ public static final String SERIALIZED_NAME_LIST_ORDER_STATUS = "listOrderStatus";
+
+ @SerializedName(SERIALIZED_NAME_LIST_ORDER_STATUS)
+ @jakarta.annotation.Nullable
+ private String listOrderStatus;
+
+ public static final String SERIALIZED_NAME_LIST_CLIENT_ORDER_ID = "listClientOrderId";
+
+ @SerializedName(SERIALIZED_NAME_LIST_CLIENT_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private String listClientOrderId;
+
+ public static final String SERIALIZED_NAME_TRANSACTION_TIME = "transactionTime";
+
+ @SerializedName(SERIALIZED_NAME_TRANSACTION_TIME)
+ @jakarta.annotation.Nullable
+ private Long transactionTime;
+
+ public static final String SERIALIZED_NAME_SYMBOL = "symbol";
+
+ @SerializedName(SERIALIZED_NAME_SYMBOL)
+ @jakarta.annotation.Nullable
+ private String symbol;
+
+ public static final String SERIALIZED_NAME_ORDERS = "orders";
+
+ @SerializedName(SERIALIZED_NAME_ORDERS)
+ @jakarta.annotation.Nullable
+ private List<@Valid OrderListOpocoResponseOrdersInner> orders;
+
+ public static final String SERIALIZED_NAME_ORDER_REPORTS = "orderReports";
+
+ @SerializedName(SERIALIZED_NAME_ORDER_REPORTS)
+ @jakarta.annotation.Nullable
+ private List<@Valid OrderListOpocoResponseOrderReportsInner> orderReports;
+
+ public OrderListOpocoResponse() {}
+
+ public OrderListOpocoResponse orderListId(@jakarta.annotation.Nullable Long orderListId) {
+ this.orderListId = orderListId;
+ return this;
+ }
+
+ /**
+ * Get orderListId
+ *
+ * @return orderListId
+ */
+ @jakarta.annotation.Nullable
+ public Long getOrderListId() {
+ return orderListId;
+ }
+
+ public void setOrderListId(@jakarta.annotation.Nullable Long orderListId) {
+ this.orderListId = orderListId;
+ }
+
+ public OrderListOpocoResponse contingencyType(
+ @jakarta.annotation.Nullable String contingencyType) {
+ this.contingencyType = contingencyType;
+ return this;
+ }
+
+ /**
+ * Get contingencyType
+ *
+ * @return contingencyType
+ */
+ @jakarta.annotation.Nullable
+ public String getContingencyType() {
+ return contingencyType;
+ }
+
+ public void setContingencyType(@jakarta.annotation.Nullable String contingencyType) {
+ this.contingencyType = contingencyType;
+ }
+
+ public OrderListOpocoResponse listStatusType(
+ @jakarta.annotation.Nullable String listStatusType) {
+ this.listStatusType = listStatusType;
+ return this;
+ }
+
+ /**
+ * Get listStatusType
+ *
+ * @return listStatusType
+ */
+ @jakarta.annotation.Nullable
+ public String getListStatusType() {
+ return listStatusType;
+ }
+
+ public void setListStatusType(@jakarta.annotation.Nullable String listStatusType) {
+ this.listStatusType = listStatusType;
+ }
+
+ public OrderListOpocoResponse listOrderStatus(
+ @jakarta.annotation.Nullable String listOrderStatus) {
+ this.listOrderStatus = listOrderStatus;
+ return this;
+ }
+
+ /**
+ * Get listOrderStatus
+ *
+ * @return listOrderStatus
+ */
+ @jakarta.annotation.Nullable
+ public String getListOrderStatus() {
+ return listOrderStatus;
+ }
+
+ public void setListOrderStatus(@jakarta.annotation.Nullable String listOrderStatus) {
+ this.listOrderStatus = listOrderStatus;
+ }
+
+ public OrderListOpocoResponse listClientOrderId(
+ @jakarta.annotation.Nullable String listClientOrderId) {
+ this.listClientOrderId = listClientOrderId;
+ return this;
+ }
+
+ /**
+ * Get listClientOrderId
+ *
+ * @return listClientOrderId
+ */
+ @jakarta.annotation.Nullable
+ public String getListClientOrderId() {
+ return listClientOrderId;
+ }
+
+ public void setListClientOrderId(@jakarta.annotation.Nullable String listClientOrderId) {
+ this.listClientOrderId = listClientOrderId;
+ }
+
+ public OrderListOpocoResponse transactionTime(
+ @jakarta.annotation.Nullable Long transactionTime) {
+ this.transactionTime = transactionTime;
+ return this;
+ }
+
+ /**
+ * Get transactionTime
+ *
+ * @return transactionTime
+ */
+ @jakarta.annotation.Nullable
+ public Long getTransactionTime() {
+ return transactionTime;
+ }
+
+ public void setTransactionTime(@jakarta.annotation.Nullable Long transactionTime) {
+ this.transactionTime = transactionTime;
+ }
+
+ public OrderListOpocoResponse symbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ return this;
+ }
+
+ /**
+ * Get symbol
+ *
+ * @return symbol
+ */
+ @jakarta.annotation.Nullable
+ public String getSymbol() {
+ return symbol;
+ }
+
+ public void setSymbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ }
+
+ public OrderListOpocoResponse orders(
+ @jakarta.annotation.Nullable List<@Valid OrderListOpocoResponseOrdersInner> orders) {
+ this.orders = orders;
+ return this;
+ }
+
+ public OrderListOpocoResponse addOrdersItem(OrderListOpocoResponseOrdersInner ordersItem) {
+ if (this.orders == null) {
+ this.orders = new ArrayList<>();
+ }
+ this.orders.add(ordersItem);
+ return this;
+ }
+
+ /**
+ * Get orders
+ *
+ * @return orders
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public List<@Valid OrderListOpocoResponseOrdersInner> getOrders() {
+ return orders;
+ }
+
+ public void setOrders(
+ @jakarta.annotation.Nullable List<@Valid OrderListOpocoResponseOrdersInner> orders) {
+ this.orders = orders;
+ }
+
+ public OrderListOpocoResponse orderReports(
+ @jakarta.annotation.Nullable
+ List<@Valid OrderListOpocoResponseOrderReportsInner> orderReports) {
+ this.orderReports = orderReports;
+ return this;
+ }
+
+ public OrderListOpocoResponse addOrderReportsItem(
+ OrderListOpocoResponseOrderReportsInner orderReportsItem) {
+ if (this.orderReports == null) {
+ this.orderReports = new ArrayList<>();
+ }
+ this.orderReports.add(orderReportsItem);
+ return this;
+ }
+
+ /**
+ * Get orderReports
+ *
+ * @return orderReports
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public List<@Valid OrderListOpocoResponseOrderReportsInner> getOrderReports() {
+ return orderReports;
+ }
+
+ public void setOrderReports(
+ @jakarta.annotation.Nullable
+ List<@Valid OrderListOpocoResponseOrderReportsInner> orderReports) {
+ this.orderReports = orderReports;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ OrderListOpocoResponse orderListOpocoResponse = (OrderListOpocoResponse) o;
+ return Objects.equals(this.orderListId, orderListOpocoResponse.orderListId)
+ && Objects.equals(this.contingencyType, orderListOpocoResponse.contingencyType)
+ && Objects.equals(this.listStatusType, orderListOpocoResponse.listStatusType)
+ && Objects.equals(this.listOrderStatus, orderListOpocoResponse.listOrderStatus)
+ && Objects.equals(this.listClientOrderId, orderListOpocoResponse.listClientOrderId)
+ && Objects.equals(this.transactionTime, orderListOpocoResponse.transactionTime)
+ && Objects.equals(this.symbol, orderListOpocoResponse.symbol)
+ && Objects.equals(this.orders, orderListOpocoResponse.orders)
+ && Objects.equals(this.orderReports, orderListOpocoResponse.orderReports);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ orderListId,
+ contingencyType,
+ listStatusType,
+ listOrderStatus,
+ listClientOrderId,
+ transactionTime,
+ symbol,
+ orders,
+ orderReports);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class OrderListOpocoResponse {\n");
+ sb.append(" orderListId: ").append(toIndentedString(orderListId)).append("\n");
+ sb.append(" contingencyType: ").append(toIndentedString(contingencyType)).append("\n");
+ sb.append(" listStatusType: ").append(toIndentedString(listStatusType)).append("\n");
+ sb.append(" listOrderStatus: ").append(toIndentedString(listOrderStatus)).append("\n");
+ sb.append(" listClientOrderId: ").append(toIndentedString(listClientOrderId)).append("\n");
+ sb.append(" transactionTime: ").append(toIndentedString(transactionTime)).append("\n");
+ sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n");
+ sb.append(" orders: ").append(toIndentedString(orders)).append("\n");
+ sb.append(" orderReports: ").append(toIndentedString(orderReports)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object orderListIdValue = getOrderListId();
+ String orderListIdValueAsString = "";
+ orderListIdValueAsString = orderListIdValue.toString();
+ sb.append("orderListId=").append(urlEncode(orderListIdValueAsString)).append("");
+ Object contingencyTypeValue = getContingencyType();
+ String contingencyTypeValueAsString = "";
+ contingencyTypeValueAsString = contingencyTypeValue.toString();
+ sb.append("contingencyType=").append(urlEncode(contingencyTypeValueAsString)).append("");
+ Object listStatusTypeValue = getListStatusType();
+ String listStatusTypeValueAsString = "";
+ listStatusTypeValueAsString = listStatusTypeValue.toString();
+ sb.append("listStatusType=").append(urlEncode(listStatusTypeValueAsString)).append("");
+ Object listOrderStatusValue = getListOrderStatus();
+ String listOrderStatusValueAsString = "";
+ listOrderStatusValueAsString = listOrderStatusValue.toString();
+ sb.append("listOrderStatus=").append(urlEncode(listOrderStatusValueAsString)).append("");
+ Object listClientOrderIdValue = getListClientOrderId();
+ String listClientOrderIdValueAsString = "";
+ listClientOrderIdValueAsString = listClientOrderIdValue.toString();
+ sb.append("listClientOrderId=")
+ .append(urlEncode(listClientOrderIdValueAsString))
+ .append("");
+ Object transactionTimeValue = getTransactionTime();
+ String transactionTimeValueAsString = "";
+ transactionTimeValueAsString = transactionTimeValue.toString();
+ sb.append("transactionTime=").append(urlEncode(transactionTimeValueAsString)).append("");
+ Object symbolValue = getSymbol();
+ String symbolValueAsString = "";
+ symbolValueAsString = symbolValue.toString();
+ sb.append("symbol=").append(urlEncode(symbolValueAsString)).append("");
+ Object ordersValue = getOrders();
+ String ordersValueAsString = "";
+ ordersValueAsString =
+ (String)
+ ((Collection) ordersValue)
+ .stream().map(Object::toString).collect(Collectors.joining(","));
+ sb.append("orders=").append(urlEncode(ordersValueAsString)).append("");
+ Object orderReportsValue = getOrderReports();
+ String orderReportsValueAsString = "";
+ orderReportsValueAsString =
+ (String)
+ ((Collection) orderReportsValue)
+ .stream().map(Object::toString).collect(Collectors.joining(","));
+ sb.append("orderReports=").append(urlEncode(orderReportsValueAsString)).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("orderListId");
+ openapiFields.add("contingencyType");
+ openapiFields.add("listStatusType");
+ openapiFields.add("listOrderStatus");
+ openapiFields.add("listClientOrderId");
+ openapiFields.add("transactionTime");
+ openapiFields.add("symbol");
+ openapiFields.add("orders");
+ openapiFields.add("orderReports");
+
+ // 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 OrderListOpocoResponse
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!OrderListOpocoResponse.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in OrderListOpocoResponse is not found in"
+ + " the empty JSON string",
+ OrderListOpocoResponse.openapiRequiredFields.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("contingencyType") != null && !jsonObj.get("contingencyType").isJsonNull())
+ && !jsonObj.get("contingencyType").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `contingencyType` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("contingencyType").toString()));
+ }
+ if ((jsonObj.get("listStatusType") != null && !jsonObj.get("listStatusType").isJsonNull())
+ && !jsonObj.get("listStatusType").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `listStatusType` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("listStatusType").toString()));
+ }
+ if ((jsonObj.get("listOrderStatus") != null && !jsonObj.get("listOrderStatus").isJsonNull())
+ && !jsonObj.get("listOrderStatus").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `listOrderStatus` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("listOrderStatus").toString()));
+ }
+ if ((jsonObj.get("listClientOrderId") != null
+ && !jsonObj.get("listClientOrderId").isJsonNull())
+ && !jsonObj.get("listClientOrderId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `listClientOrderId` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("listClientOrderId").toString()));
+ }
+ if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull())
+ && !jsonObj.get("symbol").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `symbol` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("symbol").toString()));
+ }
+ if (jsonObj.get("orders") != null && !jsonObj.get("orders").isJsonNull()) {
+ JsonArray jsonArrayorders = jsonObj.getAsJsonArray("orders");
+ if (jsonArrayorders != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("orders").isJsonArray()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `orders` to be an array in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("orders").toString()));
+ }
+
+ // validate the optional field `orders` (array)
+ for (int i = 0; i < jsonArrayorders.size(); i++) {
+ OrderListOpocoResponseOrdersInner.validateJsonElement(jsonArrayorders.get(i));
+ }
+ ;
+ }
+ }
+ if (jsonObj.get("orderReports") != null && !jsonObj.get("orderReports").isJsonNull()) {
+ JsonArray jsonArrayorderReports = jsonObj.getAsJsonArray("orderReports");
+ if (jsonArrayorderReports != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("orderReports").isJsonArray()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `orderReports` to be an array in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("orderReports").toString()));
+ }
+
+ // validate the optional field `orderReports` (array)
+ for (int i = 0; i < jsonArrayorderReports.size(); i++) {
+ OrderListOpocoResponseOrderReportsInner.validateJsonElement(
+ jsonArrayorderReports.get(i));
+ }
+ ;
+ }
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!OrderListOpocoResponse.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'OrderListOpocoResponse' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(this, TypeToken.get(OrderListOpocoResponse.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, OrderListOpocoResponse value)
+ throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public OrderListOpocoResponse read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of OrderListOpocoResponse given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of OrderListOpocoResponse
+ * @throws IOException if the JSON string is invalid with respect to OrderListOpocoResponse
+ */
+ public static OrderListOpocoResponse fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, OrderListOpocoResponse.class);
+ }
+
+ /**
+ * Convert an instance of OrderListOpocoResponse to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpocoResponseOrderReportsInner.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpocoResponseOrderReportsInner.java
new file mode 100644
index 00000000..bc3d0ce1
--- /dev/null
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpocoResponseOrderReportsInner.java
@@ -0,0 +1,888 @@
+/*
+ * Binance Spot REST API
+ * OpenAPI Specifications for the Binance Spot REST API API documents: - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information)
+ *
+ * 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.spot.rest.model;
+
+import com.binance.connector.client.spot.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.HashSet;
+import java.util.Objects;
+import org.hibernate.validator.constraints.*;
+
+/** OrderListOpocoResponseOrderReportsInner */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class OrderListOpocoResponseOrderReportsInner {
+ public static final String SERIALIZED_NAME_SYMBOL = "symbol";
+
+ @SerializedName(SERIALIZED_NAME_SYMBOL)
+ @jakarta.annotation.Nullable
+ private String symbol;
+
+ public static final String SERIALIZED_NAME_ORDER_ID = "orderId";
+
+ @SerializedName(SERIALIZED_NAME_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private Long orderId;
+
+ public static final String SERIALIZED_NAME_ORDER_LIST_ID = "orderListId";
+
+ @SerializedName(SERIALIZED_NAME_ORDER_LIST_ID)
+ @jakarta.annotation.Nullable
+ private Long orderListId;
+
+ public static final String SERIALIZED_NAME_CLIENT_ORDER_ID = "clientOrderId";
+
+ @SerializedName(SERIALIZED_NAME_CLIENT_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private String clientOrderId;
+
+ public static final String SERIALIZED_NAME_TRANSACT_TIME = "transactTime";
+
+ @SerializedName(SERIALIZED_NAME_TRANSACT_TIME)
+ @jakarta.annotation.Nullable
+ private Long transactTime;
+
+ public static final String SERIALIZED_NAME_PRICE = "price";
+
+ @SerializedName(SERIALIZED_NAME_PRICE)
+ @jakarta.annotation.Nullable
+ private String price;
+
+ public static final String SERIALIZED_NAME_EXECUTED_QTY = "executedQty";
+
+ @SerializedName(SERIALIZED_NAME_EXECUTED_QTY)
+ @jakarta.annotation.Nullable
+ private String executedQty;
+
+ public static final String SERIALIZED_NAME_ORIG_QUOTE_ORDER_QTY = "origQuoteOrderQty";
+
+ @SerializedName(SERIALIZED_NAME_ORIG_QUOTE_ORDER_QTY)
+ @jakarta.annotation.Nullable
+ private String origQuoteOrderQty;
+
+ public static final String SERIALIZED_NAME_CUMMULATIVE_QUOTE_QTY = "cummulativeQuoteQty";
+
+ @SerializedName(SERIALIZED_NAME_CUMMULATIVE_QUOTE_QTY)
+ @jakarta.annotation.Nullable
+ private String cummulativeQuoteQty;
+
+ public static final String SERIALIZED_NAME_STATUS = "status";
+
+ @SerializedName(SERIALIZED_NAME_STATUS)
+ @jakarta.annotation.Nullable
+ private String status;
+
+ public static final String SERIALIZED_NAME_TIME_IN_FORCE = "timeInForce";
+
+ @SerializedName(SERIALIZED_NAME_TIME_IN_FORCE)
+ @jakarta.annotation.Nullable
+ private String timeInForce;
+
+ public static final String SERIALIZED_NAME_TYPE = "type";
+
+ @SerializedName(SERIALIZED_NAME_TYPE)
+ @jakarta.annotation.Nullable
+ private String type;
+
+ public static final String SERIALIZED_NAME_SIDE = "side";
+
+ @SerializedName(SERIALIZED_NAME_SIDE)
+ @jakarta.annotation.Nullable
+ private String side;
+
+ public static final String SERIALIZED_NAME_WORKING_TIME = "workingTime";
+
+ @SerializedName(SERIALIZED_NAME_WORKING_TIME)
+ @jakarta.annotation.Nullable
+ private Long workingTime;
+
+ public static final String SERIALIZED_NAME_SELF_TRADE_PREVENTION_MODE =
+ "selfTradePreventionMode";
+
+ @SerializedName(SERIALIZED_NAME_SELF_TRADE_PREVENTION_MODE)
+ @jakarta.annotation.Nullable
+ private String selfTradePreventionMode;
+
+ public static final String SERIALIZED_NAME_STOP_PRICE = "stopPrice";
+
+ @SerializedName(SERIALIZED_NAME_STOP_PRICE)
+ @jakarta.annotation.Nullable
+ private String stopPrice;
+
+ public static final String SERIALIZED_NAME_ORIG_QTY = "origQty";
+
+ @SerializedName(SERIALIZED_NAME_ORIG_QTY)
+ @jakarta.annotation.Nullable
+ private String origQty;
+
+ public OrderListOpocoResponseOrderReportsInner() {}
+
+ public OrderListOpocoResponseOrderReportsInner symbol(
+ @jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ return this;
+ }
+
+ /**
+ * Get symbol
+ *
+ * @return symbol
+ */
+ @jakarta.annotation.Nullable
+ public String getSymbol() {
+ return symbol;
+ }
+
+ public void setSymbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner orderId(
+ @jakarta.annotation.Nullable Long orderId) {
+ this.orderId = orderId;
+ return this;
+ }
+
+ /**
+ * Get orderId
+ *
+ * @return orderId
+ */
+ @jakarta.annotation.Nullable
+ public Long getOrderId() {
+ return orderId;
+ }
+
+ public void setOrderId(@jakarta.annotation.Nullable Long orderId) {
+ this.orderId = orderId;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner orderListId(
+ @jakarta.annotation.Nullable Long orderListId) {
+ this.orderListId = orderListId;
+ return this;
+ }
+
+ /**
+ * Get orderListId
+ *
+ * @return orderListId
+ */
+ @jakarta.annotation.Nullable
+ public Long getOrderListId() {
+ return orderListId;
+ }
+
+ public void setOrderListId(@jakarta.annotation.Nullable Long orderListId) {
+ this.orderListId = orderListId;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner clientOrderId(
+ @jakarta.annotation.Nullable String clientOrderId) {
+ this.clientOrderId = clientOrderId;
+ return this;
+ }
+
+ /**
+ * Get clientOrderId
+ *
+ * @return clientOrderId
+ */
+ @jakarta.annotation.Nullable
+ public String getClientOrderId() {
+ return clientOrderId;
+ }
+
+ public void setClientOrderId(@jakarta.annotation.Nullable String clientOrderId) {
+ this.clientOrderId = clientOrderId;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner transactTime(
+ @jakarta.annotation.Nullable Long transactTime) {
+ this.transactTime = transactTime;
+ return this;
+ }
+
+ /**
+ * Get transactTime
+ *
+ * @return transactTime
+ */
+ @jakarta.annotation.Nullable
+ public Long getTransactTime() {
+ return transactTime;
+ }
+
+ public void setTransactTime(@jakarta.annotation.Nullable Long transactTime) {
+ this.transactTime = transactTime;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner price(
+ @jakarta.annotation.Nullable String price) {
+ this.price = price;
+ return this;
+ }
+
+ /**
+ * Get price
+ *
+ * @return price
+ */
+ @jakarta.annotation.Nullable
+ public String getPrice() {
+ return price;
+ }
+
+ public void setPrice(@jakarta.annotation.Nullable String price) {
+ this.price = price;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner executedQty(
+ @jakarta.annotation.Nullable String executedQty) {
+ this.executedQty = executedQty;
+ return this;
+ }
+
+ /**
+ * Get executedQty
+ *
+ * @return executedQty
+ */
+ @jakarta.annotation.Nullable
+ public String getExecutedQty() {
+ return executedQty;
+ }
+
+ public void setExecutedQty(@jakarta.annotation.Nullable String executedQty) {
+ this.executedQty = executedQty;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner origQuoteOrderQty(
+ @jakarta.annotation.Nullable String origQuoteOrderQty) {
+ this.origQuoteOrderQty = origQuoteOrderQty;
+ return this;
+ }
+
+ /**
+ * Get origQuoteOrderQty
+ *
+ * @return origQuoteOrderQty
+ */
+ @jakarta.annotation.Nullable
+ public String getOrigQuoteOrderQty() {
+ return origQuoteOrderQty;
+ }
+
+ public void setOrigQuoteOrderQty(@jakarta.annotation.Nullable String origQuoteOrderQty) {
+ this.origQuoteOrderQty = origQuoteOrderQty;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner cummulativeQuoteQty(
+ @jakarta.annotation.Nullable String cummulativeQuoteQty) {
+ this.cummulativeQuoteQty = cummulativeQuoteQty;
+ return this;
+ }
+
+ /**
+ * Get cummulativeQuoteQty
+ *
+ * @return cummulativeQuoteQty
+ */
+ @jakarta.annotation.Nullable
+ public String getCummulativeQuoteQty() {
+ return cummulativeQuoteQty;
+ }
+
+ public void setCummulativeQuoteQty(@jakarta.annotation.Nullable String cummulativeQuoteQty) {
+ this.cummulativeQuoteQty = cummulativeQuoteQty;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner status(
+ @jakarta.annotation.Nullable String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get status
+ *
+ * @return status
+ */
+ @jakarta.annotation.Nullable
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(@jakarta.annotation.Nullable String status) {
+ this.status = status;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner timeInForce(
+ @jakarta.annotation.Nullable String timeInForce) {
+ this.timeInForce = timeInForce;
+ return this;
+ }
+
+ /**
+ * Get timeInForce
+ *
+ * @return timeInForce
+ */
+ @jakarta.annotation.Nullable
+ public String getTimeInForce() {
+ return timeInForce;
+ }
+
+ public void setTimeInForce(@jakarta.annotation.Nullable String timeInForce) {
+ this.timeInForce = timeInForce;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner type(@jakarta.annotation.Nullable String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get type
+ *
+ * @return type
+ */
+ @jakarta.annotation.Nullable
+ public String getType() {
+ return type;
+ }
+
+ public void setType(@jakarta.annotation.Nullable String type) {
+ this.type = type;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner side(@jakarta.annotation.Nullable String side) {
+ this.side = side;
+ return this;
+ }
+
+ /**
+ * Get side
+ *
+ * @return side
+ */
+ @jakarta.annotation.Nullable
+ public String getSide() {
+ return side;
+ }
+
+ public void setSide(@jakarta.annotation.Nullable String side) {
+ this.side = side;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner workingTime(
+ @jakarta.annotation.Nullable Long workingTime) {
+ this.workingTime = workingTime;
+ return this;
+ }
+
+ /**
+ * Get workingTime
+ *
+ * @return workingTime
+ */
+ @jakarta.annotation.Nullable
+ public Long getWorkingTime() {
+ return workingTime;
+ }
+
+ public void setWorkingTime(@jakarta.annotation.Nullable Long workingTime) {
+ this.workingTime = workingTime;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner selfTradePreventionMode(
+ @jakarta.annotation.Nullable String selfTradePreventionMode) {
+ this.selfTradePreventionMode = selfTradePreventionMode;
+ return this;
+ }
+
+ /**
+ * Get selfTradePreventionMode
+ *
+ * @return selfTradePreventionMode
+ */
+ @jakarta.annotation.Nullable
+ public String getSelfTradePreventionMode() {
+ return selfTradePreventionMode;
+ }
+
+ public void setSelfTradePreventionMode(
+ @jakarta.annotation.Nullable String selfTradePreventionMode) {
+ this.selfTradePreventionMode = selfTradePreventionMode;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner stopPrice(
+ @jakarta.annotation.Nullable String stopPrice) {
+ this.stopPrice = stopPrice;
+ return this;
+ }
+
+ /**
+ * Get stopPrice
+ *
+ * @return stopPrice
+ */
+ @jakarta.annotation.Nullable
+ public String getStopPrice() {
+ return stopPrice;
+ }
+
+ public void setStopPrice(@jakarta.annotation.Nullable String stopPrice) {
+ this.stopPrice = stopPrice;
+ }
+
+ public OrderListOpocoResponseOrderReportsInner origQty(
+ @jakarta.annotation.Nullable String origQty) {
+ this.origQty = origQty;
+ return this;
+ }
+
+ /**
+ * Get origQty
+ *
+ * @return origQty
+ */
+ @jakarta.annotation.Nullable
+ public String getOrigQty() {
+ return origQty;
+ }
+
+ public void setOrigQty(@jakarta.annotation.Nullable String origQty) {
+ this.origQty = origQty;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ OrderListOpocoResponseOrderReportsInner orderListOpocoResponseOrderReportsInner =
+ (OrderListOpocoResponseOrderReportsInner) o;
+ return Objects.equals(this.symbol, orderListOpocoResponseOrderReportsInner.symbol)
+ && Objects.equals(this.orderId, orderListOpocoResponseOrderReportsInner.orderId)
+ && Objects.equals(
+ this.orderListId, orderListOpocoResponseOrderReportsInner.orderListId)
+ && Objects.equals(
+ this.clientOrderId, orderListOpocoResponseOrderReportsInner.clientOrderId)
+ && Objects.equals(
+ this.transactTime, orderListOpocoResponseOrderReportsInner.transactTime)
+ && Objects.equals(this.price, orderListOpocoResponseOrderReportsInner.price)
+ && Objects.equals(
+ this.executedQty, orderListOpocoResponseOrderReportsInner.executedQty)
+ && Objects.equals(
+ this.origQuoteOrderQty,
+ orderListOpocoResponseOrderReportsInner.origQuoteOrderQty)
+ && Objects.equals(
+ this.cummulativeQuoteQty,
+ orderListOpocoResponseOrderReportsInner.cummulativeQuoteQty)
+ && Objects.equals(this.status, orderListOpocoResponseOrderReportsInner.status)
+ && Objects.equals(
+ this.timeInForce, orderListOpocoResponseOrderReportsInner.timeInForce)
+ && Objects.equals(this.type, orderListOpocoResponseOrderReportsInner.type)
+ && Objects.equals(this.side, orderListOpocoResponseOrderReportsInner.side)
+ && Objects.equals(
+ this.workingTime, orderListOpocoResponseOrderReportsInner.workingTime)
+ && Objects.equals(
+ this.selfTradePreventionMode,
+ orderListOpocoResponseOrderReportsInner.selfTradePreventionMode)
+ && Objects.equals(this.stopPrice, orderListOpocoResponseOrderReportsInner.stopPrice)
+ && Objects.equals(this.origQty, orderListOpocoResponseOrderReportsInner.origQty);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ symbol,
+ orderId,
+ orderListId,
+ clientOrderId,
+ transactTime,
+ price,
+ executedQty,
+ origQuoteOrderQty,
+ cummulativeQuoteQty,
+ status,
+ timeInForce,
+ type,
+ side,
+ workingTime,
+ selfTradePreventionMode,
+ stopPrice,
+ origQty);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class OrderListOpocoResponseOrderReportsInner {\n");
+ sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n");
+ sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n");
+ sb.append(" orderListId: ").append(toIndentedString(orderListId)).append("\n");
+ sb.append(" clientOrderId: ").append(toIndentedString(clientOrderId)).append("\n");
+ sb.append(" transactTime: ").append(toIndentedString(transactTime)).append("\n");
+ sb.append(" price: ").append(toIndentedString(price)).append("\n");
+ sb.append(" executedQty: ").append(toIndentedString(executedQty)).append("\n");
+ sb.append(" origQuoteOrderQty: ").append(toIndentedString(origQuoteOrderQty)).append("\n");
+ sb.append(" cummulativeQuoteQty: ")
+ .append(toIndentedString(cummulativeQuoteQty))
+ .append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" timeInForce: ").append(toIndentedString(timeInForce)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" side: ").append(toIndentedString(side)).append("\n");
+ sb.append(" workingTime: ").append(toIndentedString(workingTime)).append("\n");
+ sb.append(" selfTradePreventionMode: ")
+ .append(toIndentedString(selfTradePreventionMode))
+ .append("\n");
+ sb.append(" stopPrice: ").append(toIndentedString(stopPrice)).append("\n");
+ sb.append(" origQty: ").append(toIndentedString(origQty)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object symbolValue = getSymbol();
+ String symbolValueAsString = "";
+ symbolValueAsString = symbolValue.toString();
+ sb.append("symbol=").append(urlEncode(symbolValueAsString)).append("");
+ Object orderIdValue = getOrderId();
+ String orderIdValueAsString = "";
+ orderIdValueAsString = orderIdValue.toString();
+ sb.append("orderId=").append(urlEncode(orderIdValueAsString)).append("");
+ Object orderListIdValue = getOrderListId();
+ String orderListIdValueAsString = "";
+ orderListIdValueAsString = orderListIdValue.toString();
+ sb.append("orderListId=").append(urlEncode(orderListIdValueAsString)).append("");
+ Object clientOrderIdValue = getClientOrderId();
+ String clientOrderIdValueAsString = "";
+ clientOrderIdValueAsString = clientOrderIdValue.toString();
+ sb.append("clientOrderId=").append(urlEncode(clientOrderIdValueAsString)).append("");
+ Object transactTimeValue = getTransactTime();
+ String transactTimeValueAsString = "";
+ transactTimeValueAsString = transactTimeValue.toString();
+ sb.append("transactTime=").append(urlEncode(transactTimeValueAsString)).append("");
+ Object priceValue = getPrice();
+ String priceValueAsString = "";
+ priceValueAsString = priceValue.toString();
+ sb.append("price=").append(urlEncode(priceValueAsString)).append("");
+ Object executedQtyValue = getExecutedQty();
+ String executedQtyValueAsString = "";
+ executedQtyValueAsString = executedQtyValue.toString();
+ sb.append("executedQty=").append(urlEncode(executedQtyValueAsString)).append("");
+ Object origQuoteOrderQtyValue = getOrigQuoteOrderQty();
+ String origQuoteOrderQtyValueAsString = "";
+ origQuoteOrderQtyValueAsString = origQuoteOrderQtyValue.toString();
+ sb.append("origQuoteOrderQty=")
+ .append(urlEncode(origQuoteOrderQtyValueAsString))
+ .append("");
+ Object cummulativeQuoteQtyValue = getCummulativeQuoteQty();
+ String cummulativeQuoteQtyValueAsString = "";
+ cummulativeQuoteQtyValueAsString = cummulativeQuoteQtyValue.toString();
+ sb.append("cummulativeQuoteQty=")
+ .append(urlEncode(cummulativeQuoteQtyValueAsString))
+ .append("");
+ Object statusValue = getStatus();
+ String statusValueAsString = "";
+ statusValueAsString = statusValue.toString();
+ sb.append("status=").append(urlEncode(statusValueAsString)).append("");
+ Object timeInForceValue = getTimeInForce();
+ String timeInForceValueAsString = "";
+ timeInForceValueAsString = timeInForceValue.toString();
+ sb.append("timeInForce=").append(urlEncode(timeInForceValueAsString)).append("");
+ Object typeValue = getType();
+ String typeValueAsString = "";
+ typeValueAsString = typeValue.toString();
+ sb.append("type=").append(urlEncode(typeValueAsString)).append("");
+ Object sideValue = getSide();
+ String sideValueAsString = "";
+ sideValueAsString = sideValue.toString();
+ sb.append("side=").append(urlEncode(sideValueAsString)).append("");
+ Object workingTimeValue = getWorkingTime();
+ String workingTimeValueAsString = "";
+ workingTimeValueAsString = workingTimeValue.toString();
+ sb.append("workingTime=").append(urlEncode(workingTimeValueAsString)).append("");
+ Object selfTradePreventionModeValue = getSelfTradePreventionMode();
+ String selfTradePreventionModeValueAsString = "";
+ selfTradePreventionModeValueAsString = selfTradePreventionModeValue.toString();
+ sb.append("selfTradePreventionMode=")
+ .append(urlEncode(selfTradePreventionModeValueAsString))
+ .append("");
+ Object stopPriceValue = getStopPrice();
+ String stopPriceValueAsString = "";
+ stopPriceValueAsString = stopPriceValue.toString();
+ sb.append("stopPrice=").append(urlEncode(stopPriceValueAsString)).append("");
+ Object origQtyValue = getOrigQty();
+ String origQtyValueAsString = "";
+ origQtyValueAsString = origQtyValue.toString();
+ sb.append("origQty=").append(urlEncode(origQtyValueAsString)).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("symbol");
+ openapiFields.add("orderId");
+ openapiFields.add("orderListId");
+ openapiFields.add("clientOrderId");
+ openapiFields.add("transactTime");
+ openapiFields.add("price");
+ openapiFields.add("executedQty");
+ openapiFields.add("origQuoteOrderQty");
+ openapiFields.add("cummulativeQuoteQty");
+ openapiFields.add("status");
+ openapiFields.add("timeInForce");
+ openapiFields.add("type");
+ openapiFields.add("side");
+ openapiFields.add("workingTime");
+ openapiFields.add("selfTradePreventionMode");
+ openapiFields.add("stopPrice");
+ openapiFields.add("origQty");
+
+ // 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
+ * OrderListOpocoResponseOrderReportsInner
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!OrderListOpocoResponseOrderReportsInner.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in"
+ + " OrderListOpocoResponseOrderReportsInner is not found in the"
+ + " empty JSON string",
+ OrderListOpocoResponseOrderReportsInner.openapiRequiredFields
+ .toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull())
+ && !jsonObj.get("symbol").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `symbol` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("symbol").toString()));
+ }
+ if ((jsonObj.get("clientOrderId") != null && !jsonObj.get("clientOrderId").isJsonNull())
+ && !jsonObj.get("clientOrderId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `clientOrderId` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("clientOrderId").toString()));
+ }
+ if ((jsonObj.get("price") != null && !jsonObj.get("price").isJsonNull())
+ && !jsonObj.get("price").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `price` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("price").toString()));
+ }
+ if ((jsonObj.get("executedQty") != null && !jsonObj.get("executedQty").isJsonNull())
+ && !jsonObj.get("executedQty").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `executedQty` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("executedQty").toString()));
+ }
+ if ((jsonObj.get("origQuoteOrderQty") != null
+ && !jsonObj.get("origQuoteOrderQty").isJsonNull())
+ && !jsonObj.get("origQuoteOrderQty").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `origQuoteOrderQty` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("origQuoteOrderQty").toString()));
+ }
+ if ((jsonObj.get("cummulativeQuoteQty") != null
+ && !jsonObj.get("cummulativeQuoteQty").isJsonNull())
+ && !jsonObj.get("cummulativeQuoteQty").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `cummulativeQuoteQty` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("cummulativeQuoteQty").toString()));
+ }
+ if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull())
+ && !jsonObj.get("status").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `status` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("status").toString()));
+ }
+ if ((jsonObj.get("timeInForce") != null && !jsonObj.get("timeInForce").isJsonNull())
+ && !jsonObj.get("timeInForce").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `timeInForce` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("timeInForce").toString()));
+ }
+ if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull())
+ && !jsonObj.get("type").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `type` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("type").toString()));
+ }
+ if ((jsonObj.get("side") != null && !jsonObj.get("side").isJsonNull())
+ && !jsonObj.get("side").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `side` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("side").toString()));
+ }
+ if ((jsonObj.get("selfTradePreventionMode") != null
+ && !jsonObj.get("selfTradePreventionMode").isJsonNull())
+ && !jsonObj.get("selfTradePreventionMode").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `selfTradePreventionMode` to be a primitive type in"
+ + " the JSON string but got `%s`",
+ jsonObj.get("selfTradePreventionMode").toString()));
+ }
+ if ((jsonObj.get("stopPrice") != null && !jsonObj.get("stopPrice").isJsonNull())
+ && !jsonObj.get("stopPrice").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `stopPrice` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("stopPrice").toString()));
+ }
+ if ((jsonObj.get("origQty") != null && !jsonObj.get("origQty").isJsonNull())
+ && !jsonObj.get("origQty").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `origQty` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("origQty").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!OrderListOpocoResponseOrderReportsInner.class.isAssignableFrom(
+ type.getRawType())) {
+ return null; // this class only serializes 'OrderListOpocoResponseOrderReportsInner'
+ // and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(
+ this, TypeToken.get(OrderListOpocoResponseOrderReportsInner.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(
+ JsonWriter out, OrderListOpocoResponseOrderReportsInner value)
+ throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public OrderListOpocoResponseOrderReportsInner read(JsonReader in)
+ throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of OrderListOpocoResponseOrderReportsInner given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of OrderListOpocoResponseOrderReportsInner
+ * @throws IOException if the JSON string is invalid with respect to
+ * OrderListOpocoResponseOrderReportsInner
+ */
+ public static OrderListOpocoResponseOrderReportsInner fromJson(String jsonString)
+ throws IOException {
+ return JSON.getGson().fromJson(jsonString, OrderListOpocoResponseOrderReportsInner.class);
+ }
+
+ /**
+ * Convert an instance of OrderListOpocoResponseOrderReportsInner to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpocoResponseOrdersInner.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpocoResponseOrdersInner.java
new file mode 100644
index 00000000..daa036c8
--- /dev/null
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/OrderListOpocoResponseOrdersInner.java
@@ -0,0 +1,291 @@
+/*
+ * Binance Spot REST API
+ * OpenAPI Specifications for the Binance Spot REST API API documents: - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information)
+ *
+ * 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.spot.rest.model;
+
+import com.binance.connector.client.spot.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.HashSet;
+import java.util.Objects;
+import org.hibernate.validator.constraints.*;
+
+/** OrderListOpocoResponseOrdersInner */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class OrderListOpocoResponseOrdersInner {
+ public static final String SERIALIZED_NAME_SYMBOL = "symbol";
+
+ @SerializedName(SERIALIZED_NAME_SYMBOL)
+ @jakarta.annotation.Nullable
+ private String symbol;
+
+ public static final String SERIALIZED_NAME_ORDER_ID = "orderId";
+
+ @SerializedName(SERIALIZED_NAME_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private Long orderId;
+
+ public static final String SERIALIZED_NAME_CLIENT_ORDER_ID = "clientOrderId";
+
+ @SerializedName(SERIALIZED_NAME_CLIENT_ORDER_ID)
+ @jakarta.annotation.Nullable
+ private String clientOrderId;
+
+ public OrderListOpocoResponseOrdersInner() {}
+
+ public OrderListOpocoResponseOrdersInner symbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ return this;
+ }
+
+ /**
+ * Get symbol
+ *
+ * @return symbol
+ */
+ @jakarta.annotation.Nullable
+ public String getSymbol() {
+ return symbol;
+ }
+
+ public void setSymbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ }
+
+ public OrderListOpocoResponseOrdersInner orderId(@jakarta.annotation.Nullable Long orderId) {
+ this.orderId = orderId;
+ return this;
+ }
+
+ /**
+ * Get orderId
+ *
+ * @return orderId
+ */
+ @jakarta.annotation.Nullable
+ public Long getOrderId() {
+ return orderId;
+ }
+
+ public void setOrderId(@jakarta.annotation.Nullable Long orderId) {
+ this.orderId = orderId;
+ }
+
+ public OrderListOpocoResponseOrdersInner clientOrderId(
+ @jakarta.annotation.Nullable String clientOrderId) {
+ this.clientOrderId = clientOrderId;
+ return this;
+ }
+
+ /**
+ * Get clientOrderId
+ *
+ * @return clientOrderId
+ */
+ @jakarta.annotation.Nullable
+ public String getClientOrderId() {
+ return clientOrderId;
+ }
+
+ public void setClientOrderId(@jakarta.annotation.Nullable String clientOrderId) {
+ this.clientOrderId = clientOrderId;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ OrderListOpocoResponseOrdersInner orderListOpocoResponseOrdersInner =
+ (OrderListOpocoResponseOrdersInner) o;
+ return Objects.equals(this.symbol, orderListOpocoResponseOrdersInner.symbol)
+ && Objects.equals(this.orderId, orderListOpocoResponseOrdersInner.orderId)
+ && Objects.equals(
+ this.clientOrderId, orderListOpocoResponseOrdersInner.clientOrderId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(symbol, orderId, clientOrderId);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class OrderListOpocoResponseOrdersInner {\n");
+ sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n");
+ sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n");
+ sb.append(" clientOrderId: ").append(toIndentedString(clientOrderId)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object symbolValue = getSymbol();
+ String symbolValueAsString = "";
+ symbolValueAsString = symbolValue.toString();
+ sb.append("symbol=").append(urlEncode(symbolValueAsString)).append("");
+ Object orderIdValue = getOrderId();
+ String orderIdValueAsString = "";
+ orderIdValueAsString = orderIdValue.toString();
+ sb.append("orderId=").append(urlEncode(orderIdValueAsString)).append("");
+ Object clientOrderIdValue = getClientOrderId();
+ String clientOrderIdValueAsString = "";
+ clientOrderIdValueAsString = clientOrderIdValue.toString();
+ sb.append("clientOrderId=").append(urlEncode(clientOrderIdValueAsString)).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("symbol");
+ openapiFields.add("orderId");
+ openapiFields.add("clientOrderId");
+
+ // 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
+ * OrderListOpocoResponseOrdersInner
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!OrderListOpocoResponseOrdersInner.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in OrderListOpocoResponseOrdersInner is"
+ + " not found in the empty JSON string",
+ OrderListOpocoResponseOrdersInner.openapiRequiredFields
+ .toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull())
+ && !jsonObj.get("symbol").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `symbol` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("symbol").toString()));
+ }
+ if ((jsonObj.get("clientOrderId") != null && !jsonObj.get("clientOrderId").isJsonNull())
+ && !jsonObj.get("clientOrderId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `clientOrderId` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("clientOrderId").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!OrderListOpocoResponseOrdersInner.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'OrderListOpocoResponseOrdersInner' and
+ // its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(
+ this, TypeToken.get(OrderListOpocoResponseOrdersInner.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, OrderListOpocoResponseOrdersInner value)
+ throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public OrderListOpocoResponseOrdersInner read(JsonReader in)
+ throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of OrderListOpocoResponseOrdersInner given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of OrderListOpocoResponseOrdersInner
+ * @throws IOException if the JSON string is invalid with respect to
+ * OrderListOpocoResponseOrdersInner
+ */
+ public static OrderListOpocoResponseOrdersInner fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, OrderListOpocoResponseOrdersInner.class);
+ }
+
+ /**
+ * Convert an instance of OrderListOpocoResponseOrdersInner to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/PutUserDataStreamRequest.java b/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/PutUserDataStreamRequest.java
deleted file mode 100644
index e5b20538..00000000
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/rest/model/PutUserDataStreamRequest.java
+++ /dev/null
@@ -1,222 +0,0 @@
-/*
- * Binance Spot REST API
- * OpenAPI Specifications for the Binance Spot REST API API documents: - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information)
- *
- * 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.spot.rest.model;
-
-import com.binance.connector.client.spot.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.HashSet;
-import java.util.Objects;
-import org.hibernate.validator.constraints.*;
-
-/** PutUserDataStreamRequest */
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.12.0")
-public class PutUserDataStreamRequest {
- public static final String SERIALIZED_NAME_LISTEN_KEY = "listenKey";
-
- @SerializedName(SERIALIZED_NAME_LISTEN_KEY)
- @jakarta.annotation.Nonnull
- private String listenKey;
-
- public PutUserDataStreamRequest() {}
-
- public PutUserDataStreamRequest listenKey(@jakarta.annotation.Nonnull String listenKey) {
- this.listenKey = listenKey;
- return this;
- }
-
- /**
- * Get listenKey
- *
- * @return listenKey
- */
- @jakarta.annotation.Nonnull
- @NotNull
- public String getListenKey() {
- return listenKey;
- }
-
- public void setListenKey(@jakarta.annotation.Nonnull String listenKey) {
- this.listenKey = listenKey;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- PutUserDataStreamRequest putUserDataStreamRequest = (PutUserDataStreamRequest) o;
- return Objects.equals(this.listenKey, putUserDataStreamRequest.listenKey);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(listenKey);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class PutUserDataStreamRequest {\n");
- sb.append(" listenKey: ").append(toIndentedString(listenKey)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- public String toUrlQueryString() {
- StringBuilder sb = new StringBuilder();
-
- Object listenKeyValue = getListenKey();
- String listenKeyValueAsString = "";
- listenKeyValueAsString = listenKeyValue.toString();
- sb.append("listenKey=").append(urlEncode(listenKeyValueAsString)).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("listenKey");
-
- // a set of required properties/fields (JSON key names)
- openapiRequiredFields = new HashSet();
- openapiRequiredFields.add("listenKey");
- }
-
- /**
- * 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 PutUserDataStreamRequest
- */
- public static void validateJsonElement(JsonElement jsonElement) throws IOException {
- if (jsonElement == null) {
- if (!PutUserDataStreamRequest.openapiRequiredFields
- .isEmpty()) { // has required fields but JSON element is null
- throw new IllegalArgumentException(
- String.format(
- "The required field(s) %s in PutUserDataStreamRequest is not found"
- + " in the empty JSON string",
- PutUserDataStreamRequest.openapiRequiredFields.toString()));
- }
- }
-
- // check to make sure all required properties/fields are present in the JSON string
- for (String requiredField : PutUserDataStreamRequest.openapiRequiredFields) {
- if (jsonElement.getAsJsonObject().get(requiredField) == null) {
- throw new IllegalArgumentException(
- String.format(
- "The required field `%s` is not found in the JSON string: %s",
- requiredField, jsonElement.toString()));
- }
- }
- JsonObject jsonObj = jsonElement.getAsJsonObject();
- if (!jsonObj.get("listenKey").isJsonPrimitive()) {
- throw new IllegalArgumentException(
- String.format(
- "Expected the field `listenKey` to be a primitive type in the JSON"
- + " string but got `%s`",
- jsonObj.get("listenKey").toString()));
- }
- }
-
- public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
- @SuppressWarnings("unchecked")
- @Override
- public TypeAdapter create(Gson gson, TypeToken type) {
- if (!PutUserDataStreamRequest.class.isAssignableFrom(type.getRawType())) {
- return null; // this class only serializes 'PutUserDataStreamRequest' and its
- // subtypes
- }
- final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
- final TypeAdapter thisAdapter =
- gson.getDelegateAdapter(this, TypeToken.get(PutUserDataStreamRequest.class));
-
- return (TypeAdapter)
- new TypeAdapter() {
- @Override
- public void write(JsonWriter out, PutUserDataStreamRequest value)
- throws IOException {
- JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
- elementAdapter.write(out, obj);
- }
-
- @Override
- public PutUserDataStreamRequest read(JsonReader in) throws IOException {
- JsonElement jsonElement = elementAdapter.read(in);
- // validateJsonElement(jsonElement);
- return thisAdapter.fromJsonTree(jsonElement);
- }
- }.nullSafe();
- }
- }
-
- /**
- * Create an instance of PutUserDataStreamRequest given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of PutUserDataStreamRequest
- * @throws IOException if the JSON string is invalid with respect to PutUserDataStreamRequest
- */
- public static PutUserDataStreamRequest fromJson(String jsonString) throws IOException {
- return JSON.getGson().fromJson(jsonString, PutUserDataStreamRequest.class);
- }
-
- /**
- * Convert an instance of PutUserDataStreamRequest to an JSON string
- *
- * @return JSON string
- */
- public String toJson() {
- return JSON.getGson().toJson(this);
- }
-}
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/JSON.java b/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/JSON.java
index be8d9cfa..77ef42fc 100644
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/JSON.java
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/JSON.java
@@ -343,10 +343,6 @@ public static GsonBuilder createGson() {
"listStatus",
com.binance.connector.client.spot.websocket.api
.model.ListStatus.class);
- classByDiscriminatorValue.put(
- "listenKeyExpired",
- com.binance.connector.client.spot.websocket.api
- .model.ListenKeyExpired.class);
classByDiscriminatorValue.put(
"outboundAccountPosition",
com.binance.connector.client.spot.websocket.api
@@ -558,9 +554,6 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.spot.websocket.api.model.ListStatusOInner
.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(
- new com.binance.connector.client.spot.websocket.api.model.ListenKeyExpired
- .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.spot.websocket.api.model.LotSizeFilter
.CustomTypeAdapterFactory());
@@ -754,6 +747,38 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.spot.websocket.api.model
.OrderListPlaceOcoResponseResultOrdersInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOpoRequest
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOpoResponse
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.websocket.api.model
+ .OrderListPlaceOpoResponseResult.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.websocket.api.model
+ .OrderListPlaceOpoResponseResultOrderReportsInner
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.websocket.api.model
+ .OrderListPlaceOpoResponseResultOrdersInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOpocoRequest
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.websocket.api.model
+ .OrderListPlaceOpocoResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.websocket.api.model
+ .OrderListPlaceOpocoResponseResult.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.websocket.api.model
+ .OrderListPlaceOpocoResponseResultOrderReportsInner
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.binance.connector.client.spot.websocket.api.model
+ .OrderListPlaceOpocoResponseResultOrdersInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOtoRequest
.CustomTypeAdapterFactory());
@@ -1052,24 +1077,6 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.spot.websocket.api.model
.UserDataStreamEventsResponse.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(
- new com.binance.connector.client.spot.websocket.api.model.UserDataStreamPingRequest
- .CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(
- new com.binance.connector.client.spot.websocket.api.model.UserDataStreamPingResponse
- .CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(
- new com.binance.connector.client.spot.websocket.api.model
- .UserDataStreamStartResponse.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(
- new com.binance.connector.client.spot.websocket.api.model
- .UserDataStreamStartResponseResult.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(
- new com.binance.connector.client.spot.websocket.api.model.UserDataStreamStopRequest
- .CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(
- new com.binance.connector.client.spot.websocket.api.model.UserDataStreamStopResponse
- .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.binance.connector.client.spot.websocket.api.model
.UserDataStreamSubscribeResponse.CustomTypeAdapterFactory());
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/api/AccountApi.java b/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/api/AccountApi.java
index 3fda197f..4e5c1510 100644
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/api/AccountApi.java
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/api/AccountApi.java
@@ -438,7 +438,7 @@ private void myAllocationsValidateBeforeCall(MyAllocationsRequest myAllocationsR
/**
* WebSocket Query Relevant Filters Retrieves the list of [filters](filters.md) relevant to an
- * account on a given symbol. This is the only endpoint that shows if an account has
+ * account on a given symbol. This is the only method that shows if an account has
* `MAX_ASSET` filters applied to it. Weight: 40
*
* @param myFiltersRequest (required)
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/api/SpotWebSocketApi.java b/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/api/SpotWebSocketApi.java
index 62d40121..81307c46 100644
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/api/SpotWebSocketApi.java
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/api/SpotWebSocketApi.java
@@ -52,6 +52,10 @@
import com.binance.connector.client.spot.websocket.api.model.OrderListCancelResponse;
import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOcoRequest;
import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOcoResponse;
+import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOpoRequest;
+import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOpoResponse;
+import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOpocoRequest;
+import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOpocoResponse;
import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOtoRequest;
import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOtoResponse;
import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOtocoRequest;
@@ -96,11 +100,6 @@
import com.binance.connector.client.spot.websocket.api.model.UiKlinesRequest;
import com.binance.connector.client.spot.websocket.api.model.UiKlinesResponse;
import com.binance.connector.client.spot.websocket.api.model.UserDataStreamEventsResponse;
-import com.binance.connector.client.spot.websocket.api.model.UserDataStreamPingRequest;
-import com.binance.connector.client.spot.websocket.api.model.UserDataStreamPingResponse;
-import com.binance.connector.client.spot.websocket.api.model.UserDataStreamStartResponse;
-import com.binance.connector.client.spot.websocket.api.model.UserDataStreamStopRequest;
-import com.binance.connector.client.spot.websocket.api.model.UserDataStreamStopResponse;
import com.binance.connector.client.spot.websocket.api.model.UserDataStreamSubscribeResponse;
import com.binance.connector.client.spot.websocket.api.model.UserDataStreamSubscribeSignatureResponse;
import com.binance.connector.client.spot.websocket.api.model.UserDataStreamUnsubscribeRequest;
@@ -112,7 +111,7 @@
public class SpotWebSocketApi {
private static final String USER_AGENT =
String.format(
- "binance-spot/7.0.0 (Java/%s; %s; %s)",
+ "binance-spot/8.0.0 (Java/%s; %s; %s)",
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
private AccountApi accountApi;
@@ -342,6 +341,16 @@ public CompletableFuture orderListPlaceOco(
return tradeApi.orderListPlaceOco(orderListPlaceOcoRequest);
}
+ public CompletableFuture orderListPlaceOpo(
+ OrderListPlaceOpoRequest orderListPlaceOpoRequest) throws ApiException {
+ return tradeApi.orderListPlaceOpo(orderListPlaceOpoRequest);
+ }
+
+ public CompletableFuture orderListPlaceOpoco(
+ OrderListPlaceOpocoRequest orderListPlaceOpocoRequest) throws ApiException {
+ return tradeApi.orderListPlaceOpoco(orderListPlaceOpocoRequest);
+ }
+
public CompletableFuture orderListPlaceOto(
OrderListPlaceOtoRequest orderListPlaceOtoRequest) throws ApiException {
return tradeApi.orderListPlaceOto(orderListPlaceOtoRequest);
@@ -377,21 +386,6 @@ public CompletableFuture sessionSubscriptions()
return userDataStreamApi.sessionSubscriptions();
}
- public CompletableFuture userDataStreamPing(
- UserDataStreamPingRequest userDataStreamPingRequest) throws ApiException {
- return userDataStreamApi.userDataStreamPing(userDataStreamPingRequest);
- }
-
- public CompletableFuture userDataStreamStart()
- throws ApiException {
- return userDataStreamApi.userDataStreamStart();
- }
-
- public CompletableFuture userDataStreamStop(
- UserDataStreamStopRequest userDataStreamStopRequest) throws ApiException {
- return userDataStreamApi.userDataStreamStop(userDataStreamStopRequest);
- }
-
public StreamResponse
userDataStreamSubscribe() throws ApiException {
return userDataStreamApi.userDataStreamSubscribe();
diff --git a/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/api/TradeApi.java b/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/api/TradeApi.java
index 64e5c277..d5c0e31b 100644
--- a/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/api/TradeApi.java
+++ b/clients/spot/src/main/java/com/binance/connector/client/spot/websocket/api/api/TradeApi.java
@@ -28,6 +28,10 @@
import com.binance.connector.client.spot.websocket.api.model.OrderListCancelResponse;
import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOcoRequest;
import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOcoResponse;
+import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOpoRequest;
+import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOpoResponse;
+import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOpocoRequest;
+import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOpocoResponse;
import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOtoRequest;
import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOtoResponse;
import com.binance.connector.client.spot.websocket.api.model.OrderListPlaceOtocoRequest;
@@ -393,10 +397,12 @@ private void orderListCancelValidateBeforeCall(OrderListCancelRequest orderListC
* |