@binance/margin-trading 13.0.5 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, C
3
3
 
4
4
  //#region package.json
5
5
  var name = "@binance/margin-trading";
6
- var version = "13.0.5";
6
+ var version = "13.1.0";
7
7
 
8
8
  //#endregion
9
9
  //#region src/rest-api/modules/account-api.ts
@@ -236,7 +236,7 @@ var AccountApi = class {
236
236
  * Security Type: USER_DATA
237
237
  *
238
238
  * Notes:
239
- * - The margin level need higher than the initial risk ratio of adjusted leverage, the initial risk ratio of 3x is 1.5 , the initial risk ratio of 5x is 1.25; The detail conditions on how to switch between Cross Margin Classic and Cross Margin Pro can refer to [the FAQ](https://www.binance.com/en/support/faq/how-to-activate-the-cross-margin-pro-mode-on-binance-e27786da05e743a694b8c625b3bc475d).
239
+ * - The margin level need higher than the initial risk ratio of adjusted leverage, the initial risk ratio of 3x is 1.5 , the initial risk ratio of 5x is 1.25; The detail conditions on how to switch between Cross Margin Classic and Cross Margin Pro can refer to the FAQ.
240
240
  *
241
241
  * @summary Adjust cross margin max leverage (USER_DATA)
242
242
  * @param {AdjustCrossMarginMaxLeverageRequest} requestParameters Request parameters.
@@ -333,8 +333,21 @@ var AccountApi = class {
333
333
  *
334
334
  * - The time between startTime and endTime cannot be longer than 7 days.
335
335
  *
336
- * - If fromId is set, the data with id > fromId will be returned.
337
- * Otherwise the latest data will be returned
336
+ * - If both startTime and endTime are omitted, the most recent 7 days are
337
+ * queried (endTime defaults to the current time, and startTime to the
338
+ * current time minus 7 days).
339
+ *
340
+ * - If startTime is provided without endTime, endTime defaults to
341
+ * startTime plus 7 days.
342
+ *
343
+ * - If endTime is provided without startTime, startTime defaults to
344
+ * endTime minus 7 days.
345
+ *
346
+ * - If fromId is set, the data with id > fromId within the queried time
347
+ * range will be returned. Otherwise the latest data within that range will
348
+ * be returned. fromId does not extend the time range; to retrieve older
349
+ * records, move startTime and endTime backwards in windows of up to 7
350
+ * days.
338
351
  *
339
352
  * - To query isolated data, Symbol needs to be entered.
340
353
  *
@@ -775,7 +788,7 @@ var BorrowRepayApi = class {
775
788
  *
776
789
  * Notes:
777
790
  * - If isolatedSymbol is not sent, crossed margin data will be sent.
778
- * - `borrowLimit` is also available from [https://www.binance.com/en/margin-fee](https://www.binance.com/en/margin-fee)
791
+ * - `borrowLimit` is also available from https://www.binance.com/en/margin-fee
779
792
  *
780
793
  * @summary Query Max Borrow (USER_DATA)
781
794
  * @param {QueryMaxBorrowRequest} requestParameters Request parameters.
@@ -1884,6 +1897,23 @@ const TradeApiAxiosParamCreator = function(configuration) {
1884
1897
  timeUnit: _timeUnit
1885
1898
  };
1886
1899
  },
1900
+ queryMarginAccountsOpenOtootocoOrderLists: async (symbol, recvWindow) => {
1901
+ const localVarQueryParameter = {};
1902
+ const localVarBodyParameter = {};
1903
+ const localVarHeaderParameter = {};
1904
+ if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
1905
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1906
+ let _timeUnit;
1907
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1908
+ return {
1909
+ endpoint: "/sapi/v1/margin/oto/openOrderList",
1910
+ method: "GET",
1911
+ queryParams: localVarQueryParameter,
1912
+ bodyParams: localVarBodyParameter,
1913
+ headerParams: localVarHeaderParameter,
1914
+ timeUnit: _timeUnit
1915
+ };
1916
+ },
1887
1917
  queryMarginAccountsOrder: async (symbol, isIsolated, orderId, origClientOrderId, recvWindow) => {
1888
1918
  assertParamExists("queryMarginAccountsOrder", "symbol", symbol);
1889
1919
  const localVarQueryParameter = {};
@@ -2017,12 +2047,12 @@ var TradeApi = class {
2017
2047
  /**
2018
2048
  * **Eligibility**
2019
2049
  *
2020
- * - Binance Margin offers low-latency trading through a [special key](https://www.binance.com/en/support/faq/frequently-asked-questions-on-margin-special-api-key-3208663e900d4d2e9fec4140e1832f4e), available exclusively to users with VIP level 7 or higher.
2050
+ * - Binance Margin offers low-latency trading through a special key, available exclusively to users with VIP level 7 or higher.
2021
2051
  * - If you are VIP level 6 or below, please contact your VIP manager for eligibility criterias.
2022
2052
  * - All new Margin Special Key users are required to read, understand, and agree to the Margin Special Key Supplemental Product Terms at the master account level before creating a Margin Special Key.
2023
2053
  * - Once signed at the master account level, the agreement applies to all sub-accounts. The master account and all sub-accounts (Cross Margin Classic and Portfolio Margin Pro) are authorized to create a Margin Special Key and are subject to the LiquidationLoan policy.
2024
2054
  *
2025
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
2055
+ * For more information, please refer to FAQ.
2026
2056
  *
2027
2057
  **Supported Products:**
2028
2058
  *
@@ -2040,7 +2070,7 @@ var TradeApi = class {
2040
2070
  * HMAC
2041
2071
  * RSA
2042
2072
  *
2043
- * We recommend to **use Ed25519 API keys** as it should provide the best performance and security out of all supported key types. We accept PKCS#8 (BEGIN PUBLIC KEY). For how to generate an RSA key pair to send API requests on Binance. Please refer to the document below [FAQ](https://www.binance.com/en/support/faq/how-to-generate-an-rsa-key-pair-to-send-api-requests-on-binance-2b79728f331e43079b27440d9d15c5db) .
2073
+ * We recommend to **use Ed25519 API keys** as it should provide the best performance and security out of all supported key types. We accept PKCS#8 (BEGIN PUBLIC KEY). For how to generate an RSA key pair to send API requests on Binance. Please refer to the document below FAQ .
2044
2074
  *
2045
2075
  **How to use the Margin Special Key**
2046
2076
  * - Use the below `sapi` endpoint to create your margin special API Key.
@@ -2048,7 +2078,7 @@ var TradeApi = class {
2048
2078
  * - For accessing the Isolated Margin account(s), pass the relevant `symbol` parameter in the API Key creation request.
2049
2079
  * - Use the generated API Key (and Secret key, if applicable) to perform margin trading and listenKey generation via **Spot** REST API (`https://api.binance.com/api/v3/*`) endpoints.
2050
2080
  *
2051
- * Read [REST API](/products/spot/rest-api#signed-trade-and-user_data-endpoint-security) or [WebSocket API](/products/spot/web-socket-api#request-security) documentation to learn how to use different API keys
2081
+ * Read REST API or WebSocket API documentation to learn how to use different API keys
2052
2082
  *
2053
2083
  * You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
2054
2084
  *
@@ -2140,7 +2170,7 @@ var TradeApi = class {
2140
2170
  * 2. All pre-execution margin checks (including Open-order-loss calculation) will revert to standard mode.
2141
2171
  * 3. A cooldown period (default: 24 hours) will be enforced, during which the account will not be permitted to create new Margin Special API Keys.
2142
2172
  *
2143
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
2173
+ * For more information, please refer to FAQ.
2144
2174
  *
2145
2175
  **Preconditions:**
2146
2176
  *
@@ -2379,8 +2409,15 @@ var TradeApi = class {
2379
2409
  *
2380
2410
  * Notes:
2381
2411
  * - autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
2382
- * - Depending on the `pendingType` or `workingType`, some optional
2383
- * - parameters will become mandatory: | Type | Additional mandatory parameters | Additional information | | -------------------------------------------------------- | ------------------------------------------------------------ | ---------------------- | | `workingType` = `LIMIT` | `workingTimeInForce` | | | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | | | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | | | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | | | `pendingTrailingDelta` is provided | `pendingPrice` | |
2412
+ * - Depending on the `pendingType` or `workingType`, some optional parameters will become mandatory:
2413
+ *
2414
+ * | Type | Additional mandatory parameters | Additional information |
2415
+ * | --- | --- | --- |
2416
+ * | `workingType` = `LIMIT` | `workingTimeInForce` | |
2417
+ * | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | |
2418
+ * | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | |
2419
+ * | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | |
2420
+ * | `pendingTrailingDelta` is provided | `pendingPrice` | |
2384
2421
  *
2385
2422
  * @summary Margin Account New OTO (TRADE)
2386
2423
  * @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
@@ -2396,7 +2433,6 @@ var TradeApi = class {
2396
2433
  /**
2397
2434
  * Post a new OTOCO order for margin account:
2398
2435
  *
2399
- *
2400
2436
  * - An OTOCO (One-Triggers-One-Cancels-the-Other) is an order list
2401
2437
  * comprised of 3 orders.
2402
2438
  *
@@ -2406,7 +2442,7 @@ var TradeApi = class {
2406
2442
  * - OTOCO has 2 pending orders (pending above and pending below), forming
2407
2443
  * an OCO pair. The pending orders are only placed on the order book when
2408
2444
  * the working order gets **fully filled**.
2409
- * - The rules of the pending above and pending below follow the same rules as the [Order List OCO](https://developers.binance.com/en/docs/catalog/core-trading-margin-trading/api/rest-api/trade#margin-account-new-oco).
2445
+ * - The rules of the pending above and pending below follow the same rules as the Order List OCO.
2410
2446
  * - OTOCOs add **3 orders** against the unfilled order count,
2411
2447
  * `EXCHANGE_MAX_NUM_ORDERS` filter, and `MAX_NUM_ORDERS` filter.
2412
2448
  *
@@ -2619,6 +2655,30 @@ var TradeApi = class {
2619
2655
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
2620
2656
  }
2621
2657
  /**
2658
+ * Retrieves all open OTO / OTOCO order lists of the margin account.
2659
+ *
2660
+ *
2661
+ * Notes:
2662
+ * - The returned list contains order lists whose `listOrderStatus` is `EXECUTING`, i.e. at least one order of the list is still open (`NEW` / `PARTIALLY_FILLED`).
2663
+ * - For OTO, the `orders` array contains 2 orders: the working order and the pending order.
2664
+ * - For OTOCO, the `orders` array contains 3 orders: the working order and the two pending orders (pending above / pending below).
2665
+ *
2666
+ * Weight(UID): 10
2667
+ *
2668
+ * Security Type: USER_DATA
2669
+ *
2670
+ * @summary Query Margin Account\'s Open OTO/OTOCO Order Lists (USER_DATA)
2671
+ * @param {QueryMarginAccountsOpenOtootocoOrderListsRequest} requestParameters Request parameters.
2672
+ * @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>}
2673
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2674
+ * @memberof TradeApi
2675
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-margin-trading/api/rest-api/trade#query-margin-accounts-open-otootoco-order-lists Binance API Documentation}
2676
+ */
2677
+ async queryMarginAccountsOpenOtootocoOrderLists(requestParameters = {}) {
2678
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOpenOtootocoOrderLists(requestParameters?.symbol, requestParameters?.recvWindow);
2679
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
2680
+ }
2681
+ /**
2622
2682
  * Query Margin Account's Order
2623
2683
  *
2624
2684
  * Weight(IP): 10
@@ -3358,7 +3418,7 @@ var RestAPI = class {
3358
3418
  * Security Type: USER_DATA
3359
3419
  *
3360
3420
  * Notes:
3361
- * - The margin level need higher than the initial risk ratio of adjusted leverage, the initial risk ratio of 3x is 1.5 , the initial risk ratio of 5x is 1.25; The detail conditions on how to switch between Cross Margin Classic and Cross Margin Pro can refer to [the FAQ](https://www.binance.com/en/support/faq/how-to-activate-the-cross-margin-pro-mode-on-binance-e27786da05e743a694b8c625b3bc475d).
3421
+ * - The margin level need higher than the initial risk ratio of adjusted leverage, the initial risk ratio of 3x is 1.5 , the initial risk ratio of 5x is 1.25; The detail conditions on how to switch between Cross Margin Classic and Cross Margin Pro can refer to the FAQ.
3362
3422
  *
3363
3423
  * @summary Adjust cross margin max leverage (USER_DATA)
3364
3424
  * @param {AdjustCrossMarginMaxLeverageRequest} requestParameters Request parameters.
@@ -3450,8 +3510,21 @@ var RestAPI = class {
3450
3510
  *
3451
3511
  * - The time between startTime and endTime cannot be longer than 7 days.
3452
3512
  *
3453
- * - If fromId is set, the data with id > fromId will be returned.
3454
- * Otherwise the latest data will be returned
3513
+ * - If both startTime and endTime are omitted, the most recent 7 days are
3514
+ * queried (endTime defaults to the current time, and startTime to the
3515
+ * current time minus 7 days).
3516
+ *
3517
+ * - If startTime is provided without endTime, endTime defaults to
3518
+ * startTime plus 7 days.
3519
+ *
3520
+ * - If endTime is provided without startTime, startTime defaults to
3521
+ * endTime minus 7 days.
3522
+ *
3523
+ * - If fromId is set, the data with id > fromId within the queried time
3524
+ * range will be returned. Otherwise the latest data within that range will
3525
+ * be returned. fromId does not extend the time range; to retrieve older
3526
+ * records, move startTime and endTime backwards in windows of up to 7
3527
+ * days.
3455
3528
  *
3456
3529
  * - To query isolated data, Symbol needs to be entered.
3457
3530
  *
@@ -3699,7 +3772,7 @@ var RestAPI = class {
3699
3772
  *
3700
3773
  * Notes:
3701
3774
  * - If isolatedSymbol is not sent, crossed margin data will be sent.
3702
- * - `borrowLimit` is also available from [https://www.binance.com/en/margin-fee](https://www.binance.com/en/margin-fee)
3775
+ * - `borrowLimit` is also available from https://www.binance.com/en/margin-fee
3703
3776
  *
3704
3777
  * @summary Query Max Borrow (USER_DATA)
3705
3778
  * @param {QueryMaxBorrowRequest} requestParameters Request parameters.
@@ -3946,12 +4019,12 @@ var RestAPI = class {
3946
4019
  /**
3947
4020
  * **Eligibility**
3948
4021
  *
3949
- * - Binance Margin offers low-latency trading through a [special key](https://www.binance.com/en/support/faq/frequently-asked-questions-on-margin-special-api-key-3208663e900d4d2e9fec4140e1832f4e), available exclusively to users with VIP level 7 or higher.
4022
+ * - Binance Margin offers low-latency trading through a special key, available exclusively to users with VIP level 7 or higher.
3950
4023
  * - If you are VIP level 6 or below, please contact your VIP manager for eligibility criterias.
3951
4024
  * - All new Margin Special Key users are required to read, understand, and agree to the Margin Special Key Supplemental Product Terms at the master account level before creating a Margin Special Key.
3952
4025
  * - Once signed at the master account level, the agreement applies to all sub-accounts. The master account and all sub-accounts (Cross Margin Classic and Portfolio Margin Pro) are authorized to create a Margin Special Key and are subject to the LiquidationLoan policy.
3953
4026
  *
3954
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
4027
+ * For more information, please refer to FAQ.
3955
4028
  *
3956
4029
  **Supported Products:**
3957
4030
  *
@@ -3969,7 +4042,7 @@ var RestAPI = class {
3969
4042
  * HMAC
3970
4043
  * RSA
3971
4044
  *
3972
- * We recommend to **use Ed25519 API keys** as it should provide the best performance and security out of all supported key types. We accept PKCS#8 (BEGIN PUBLIC KEY). For how to generate an RSA key pair to send API requests on Binance. Please refer to the document below [FAQ](https://www.binance.com/en/support/faq/how-to-generate-an-rsa-key-pair-to-send-api-requests-on-binance-2b79728f331e43079b27440d9d15c5db) .
4045
+ * We recommend to **use Ed25519 API keys** as it should provide the best performance and security out of all supported key types. We accept PKCS#8 (BEGIN PUBLIC KEY). For how to generate an RSA key pair to send API requests on Binance. Please refer to the document below FAQ .
3973
4046
  *
3974
4047
  **How to use the Margin Special Key**
3975
4048
  * - Use the below `sapi` endpoint to create your margin special API Key.
@@ -3977,7 +4050,7 @@ var RestAPI = class {
3977
4050
  * - For accessing the Isolated Margin account(s), pass the relevant `symbol` parameter in the API Key creation request.
3978
4051
  * - Use the generated API Key (and Secret key, if applicable) to perform margin trading and listenKey generation via **Spot** REST API (`https://api.binance.com/api/v3/*`) endpoints.
3979
4052
  *
3980
- * Read [REST API](/products/spot/rest-api#signed-trade-and-user_data-endpoint-security) or [WebSocket API](/products/spot/web-socket-api#request-security) documentation to learn how to use different API keys
4053
+ * Read REST API or WebSocket API documentation to learn how to use different API keys
3981
4054
  *
3982
4055
  * You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
3983
4056
  *
@@ -4066,7 +4139,7 @@ var RestAPI = class {
4066
4139
  * 2. All pre-execution margin checks (including Open-order-loss calculation) will revert to standard mode.
4067
4140
  * 3. A cooldown period (default: 24 hours) will be enforced, during which the account will not be permitted to create new Margin Special API Keys.
4068
4141
  *
4069
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
4142
+ * For more information, please refer to FAQ.
4070
4143
  *
4071
4144
  **Preconditions:**
4072
4145
  *
@@ -4295,8 +4368,15 @@ var RestAPI = class {
4295
4368
  *
4296
4369
  * Notes:
4297
4370
  * - autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
4298
- * - Depending on the `pendingType` or `workingType`, some optional
4299
- * - parameters will become mandatory: | Type | Additional mandatory parameters | Additional information | | -------------------------------------------------------- | ------------------------------------------------------------ | ---------------------- | | `workingType` = `LIMIT` | `workingTimeInForce` | | | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | | | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | | | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | | | `pendingTrailingDelta` is provided | `pendingPrice` | |
4371
+ * - Depending on the `pendingType` or `workingType`, some optional parameters will become mandatory:
4372
+ *
4373
+ * | Type | Additional mandatory parameters | Additional information |
4374
+ * | --- | --- | --- |
4375
+ * | `workingType` = `LIMIT` | `workingTimeInForce` | |
4376
+ * | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | |
4377
+ * | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | |
4378
+ * | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | |
4379
+ * | `pendingTrailingDelta` is provided | `pendingPrice` | |
4300
4380
  *
4301
4381
  * @summary Margin Account New OTO (TRADE)
4302
4382
  * @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
@@ -4311,7 +4391,6 @@ var RestAPI = class {
4311
4391
  /**
4312
4392
  * Post a new OTOCO order for margin account:
4313
4393
  *
4314
- *
4315
4394
  * - An OTOCO (One-Triggers-One-Cancels-the-Other) is an order list
4316
4395
  * comprised of 3 orders.
4317
4396
  *
@@ -4321,7 +4400,7 @@ var RestAPI = class {
4321
4400
  * - OTOCO has 2 pending orders (pending above and pending below), forming
4322
4401
  * an OCO pair. The pending orders are only placed on the order book when
4323
4402
  * the working order gets **fully filled**.
4324
- * - The rules of the pending above and pending below follow the same rules as the [Order List OCO](https://developers.binance.com/en/docs/catalog/core-trading-margin-trading/api/rest-api/trade#margin-account-new-oco).
4403
+ * - The rules of the pending above and pending below follow the same rules as the Order List OCO.
4325
4404
  * - OTOCOs add **3 orders** against the unfilled order count,
4326
4405
  * `EXCHANGE_MAX_NUM_ORDERS` filter, and `MAX_NUM_ORDERS` filter.
4327
4406
  *
@@ -4524,6 +4603,29 @@ var RestAPI = class {
4524
4603
  return this.tradeApi.queryMarginAccountsOpenOrders(requestParameters);
4525
4604
  }
4526
4605
  /**
4606
+ * Retrieves all open OTO / OTOCO order lists of the margin account.
4607
+ *
4608
+ *
4609
+ * Notes:
4610
+ * - The returned list contains order lists whose `listOrderStatus` is `EXECUTING`, i.e. at least one order of the list is still open (`NEW` / `PARTIALLY_FILLED`).
4611
+ * - For OTO, the `orders` array contains 2 orders: the working order and the pending order.
4612
+ * - For OTOCO, the `orders` array contains 3 orders: the working order and the two pending orders (pending above / pending below).
4613
+ *
4614
+ * Weight(UID): 10
4615
+ *
4616
+ * Security Type: USER_DATA
4617
+ *
4618
+ * @summary Query Margin Account\'s Open OTO/OTOCO Order Lists (USER_DATA)
4619
+ * @param {QueryMarginAccountsOpenOtootocoOrderListsRequest} requestParameters Request parameters.
4620
+ *
4621
+ * @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>}
4622
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4623
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-margin-trading/api/rest-api/trade#query-margin-accounts-open-otootoco-order-lists Binance API Documentation}
4624
+ */
4625
+ queryMarginAccountsOpenOtootocoOrderLists(requestParameters = {}) {
4626
+ return this.tradeApi.queryMarginAccountsOpenOtootocoOrderLists(requestParameters);
4627
+ }
4628
+ /**
4527
4629
  * Query Margin Account's Order
4528
4630
  *
4529
4631
  * Weight(IP): 10