@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.js CHANGED
@@ -14,7 +14,7 @@ let __binance_common = require("@binance/common");
14
14
 
15
15
  //#region package.json
16
16
  var name = "@binance/margin-trading";
17
- var version = "13.0.5";
17
+ var version = "13.1.0";
18
18
 
19
19
  //#endregion
20
20
  //#region src/rest-api/modules/account-api.ts
@@ -247,7 +247,7 @@ var AccountApi = class {
247
247
  * Security Type: USER_DATA
248
248
  *
249
249
  * Notes:
250
- * - 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).
250
+ * - 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.
251
251
  *
252
252
  * @summary Adjust cross margin max leverage (USER_DATA)
253
253
  * @param {AdjustCrossMarginMaxLeverageRequest} requestParameters Request parameters.
@@ -344,8 +344,21 @@ var AccountApi = class {
344
344
  *
345
345
  * - The time between startTime and endTime cannot be longer than 7 days.
346
346
  *
347
- * - If fromId is set, the data with id > fromId will be returned.
348
- * Otherwise the latest data will be returned
347
+ * - If both startTime and endTime are omitted, the most recent 7 days are
348
+ * queried (endTime defaults to the current time, and startTime to the
349
+ * current time minus 7 days).
350
+ *
351
+ * - If startTime is provided without endTime, endTime defaults to
352
+ * startTime plus 7 days.
353
+ *
354
+ * - If endTime is provided without startTime, startTime defaults to
355
+ * endTime minus 7 days.
356
+ *
357
+ * - If fromId is set, the data with id > fromId within the queried time
358
+ * range will be returned. Otherwise the latest data within that range will
359
+ * be returned. fromId does not extend the time range; to retrieve older
360
+ * records, move startTime and endTime backwards in windows of up to 7
361
+ * days.
349
362
  *
350
363
  * - To query isolated data, Symbol needs to be entered.
351
364
  *
@@ -786,7 +799,7 @@ var BorrowRepayApi = class {
786
799
  *
787
800
  * Notes:
788
801
  * - If isolatedSymbol is not sent, crossed margin data will be sent.
789
- * - `borrowLimit` is also available from [https://www.binance.com/en/margin-fee](https://www.binance.com/en/margin-fee)
802
+ * - `borrowLimit` is also available from https://www.binance.com/en/margin-fee
790
803
  *
791
804
  * @summary Query Max Borrow (USER_DATA)
792
805
  * @param {QueryMaxBorrowRequest} requestParameters Request parameters.
@@ -1895,6 +1908,23 @@ const TradeApiAxiosParamCreator = function(configuration) {
1895
1908
  timeUnit: _timeUnit
1896
1909
  };
1897
1910
  },
1911
+ queryMarginAccountsOpenOtootocoOrderLists: async (symbol, recvWindow) => {
1912
+ const localVarQueryParameter = {};
1913
+ const localVarBodyParameter = {};
1914
+ const localVarHeaderParameter = {};
1915
+ if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
1916
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1917
+ let _timeUnit;
1918
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1919
+ return {
1920
+ endpoint: "/sapi/v1/margin/oto/openOrderList",
1921
+ method: "GET",
1922
+ queryParams: localVarQueryParameter,
1923
+ bodyParams: localVarBodyParameter,
1924
+ headerParams: localVarHeaderParameter,
1925
+ timeUnit: _timeUnit
1926
+ };
1927
+ },
1898
1928
  queryMarginAccountsOrder: async (symbol, isIsolated, orderId, origClientOrderId, recvWindow) => {
1899
1929
  (0, __binance_common.assertParamExists)("queryMarginAccountsOrder", "symbol", symbol);
1900
1930
  const localVarQueryParameter = {};
@@ -2028,12 +2058,12 @@ var TradeApi = class {
2028
2058
  /**
2029
2059
  * **Eligibility**
2030
2060
  *
2031
- * - 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.
2061
+ * - Binance Margin offers low-latency trading through a special key, available exclusively to users with VIP level 7 or higher.
2032
2062
  * - If you are VIP level 6 or below, please contact your VIP manager for eligibility criterias.
2033
2063
  * - 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.
2034
2064
  * - 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.
2035
2065
  *
2036
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
2066
+ * For more information, please refer to FAQ.
2037
2067
  *
2038
2068
  **Supported Products:**
2039
2069
  *
@@ -2051,7 +2081,7 @@ var TradeApi = class {
2051
2081
  * HMAC
2052
2082
  * RSA
2053
2083
  *
2054
- * 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) .
2084
+ * 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 .
2055
2085
  *
2056
2086
  **How to use the Margin Special Key**
2057
2087
  * - Use the below `sapi` endpoint to create your margin special API Key.
@@ -2059,7 +2089,7 @@ var TradeApi = class {
2059
2089
  * - For accessing the Isolated Margin account(s), pass the relevant `symbol` parameter in the API Key creation request.
2060
2090
  * - 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.
2061
2091
  *
2062
- * 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
2092
+ * Read REST API or WebSocket API documentation to learn how to use different API keys
2063
2093
  *
2064
2094
  * You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
2065
2095
  *
@@ -2151,7 +2181,7 @@ var TradeApi = class {
2151
2181
  * 2. All pre-execution margin checks (including Open-order-loss calculation) will revert to standard mode.
2152
2182
  * 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.
2153
2183
  *
2154
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
2184
+ * For more information, please refer to FAQ.
2155
2185
  *
2156
2186
  **Preconditions:**
2157
2187
  *
@@ -2390,8 +2420,15 @@ var TradeApi = class {
2390
2420
  *
2391
2421
  * Notes:
2392
2422
  * - autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
2393
- * - Depending on the `pendingType` or `workingType`, some optional
2394
- * - 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` | |
2423
+ * - Depending on the `pendingType` or `workingType`, some optional parameters will become mandatory:
2424
+ *
2425
+ * | Type | Additional mandatory parameters | Additional information |
2426
+ * | --- | --- | --- |
2427
+ * | `workingType` = `LIMIT` | `workingTimeInForce` | |
2428
+ * | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | |
2429
+ * | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | |
2430
+ * | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | |
2431
+ * | `pendingTrailingDelta` is provided | `pendingPrice` | |
2395
2432
  *
2396
2433
  * @summary Margin Account New OTO (TRADE)
2397
2434
  * @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
@@ -2407,7 +2444,6 @@ var TradeApi = class {
2407
2444
  /**
2408
2445
  * Post a new OTOCO order for margin account:
2409
2446
  *
2410
- *
2411
2447
  * - An OTOCO (One-Triggers-One-Cancels-the-Other) is an order list
2412
2448
  * comprised of 3 orders.
2413
2449
  *
@@ -2417,7 +2453,7 @@ var TradeApi = class {
2417
2453
  * - OTOCO has 2 pending orders (pending above and pending below), forming
2418
2454
  * an OCO pair. The pending orders are only placed on the order book when
2419
2455
  * the working order gets **fully filled**.
2420
- * - 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).
2456
+ * - The rules of the pending above and pending below follow the same rules as the Order List OCO.
2421
2457
  * - OTOCOs add **3 orders** against the unfilled order count,
2422
2458
  * `EXCHANGE_MAX_NUM_ORDERS` filter, and `MAX_NUM_ORDERS` filter.
2423
2459
  *
@@ -2630,6 +2666,30 @@ var TradeApi = class {
2630
2666
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
2631
2667
  }
2632
2668
  /**
2669
+ * Retrieves all open OTO / OTOCO order lists of the margin account.
2670
+ *
2671
+ *
2672
+ * Notes:
2673
+ * - 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`).
2674
+ * - For OTO, the `orders` array contains 2 orders: the working order and the pending order.
2675
+ * - For OTOCO, the `orders` array contains 3 orders: the working order and the two pending orders (pending above / pending below).
2676
+ *
2677
+ * Weight(UID): 10
2678
+ *
2679
+ * Security Type: USER_DATA
2680
+ *
2681
+ * @summary Query Margin Account\'s Open OTO/OTOCO Order Lists (USER_DATA)
2682
+ * @param {QueryMarginAccountsOpenOtootocoOrderListsRequest} requestParameters Request parameters.
2683
+ * @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>}
2684
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2685
+ * @memberof TradeApi
2686
+ * @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}
2687
+ */
2688
+ async queryMarginAccountsOpenOtootocoOrderLists(requestParameters = {}) {
2689
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOpenOtootocoOrderLists(requestParameters?.symbol, requestParameters?.recvWindow);
2690
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
2691
+ }
2692
+ /**
2633
2693
  * Query Margin Account's Order
2634
2694
  *
2635
2695
  * Weight(IP): 10
@@ -3369,7 +3429,7 @@ var RestAPI = class {
3369
3429
  * Security Type: USER_DATA
3370
3430
  *
3371
3431
  * Notes:
3372
- * - 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).
3432
+ * - 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.
3373
3433
  *
3374
3434
  * @summary Adjust cross margin max leverage (USER_DATA)
3375
3435
  * @param {AdjustCrossMarginMaxLeverageRequest} requestParameters Request parameters.
@@ -3461,8 +3521,21 @@ var RestAPI = class {
3461
3521
  *
3462
3522
  * - The time between startTime and endTime cannot be longer than 7 days.
3463
3523
  *
3464
- * - If fromId is set, the data with id > fromId will be returned.
3465
- * Otherwise the latest data will be returned
3524
+ * - If both startTime and endTime are omitted, the most recent 7 days are
3525
+ * queried (endTime defaults to the current time, and startTime to the
3526
+ * current time minus 7 days).
3527
+ *
3528
+ * - If startTime is provided without endTime, endTime defaults to
3529
+ * startTime plus 7 days.
3530
+ *
3531
+ * - If endTime is provided without startTime, startTime defaults to
3532
+ * endTime minus 7 days.
3533
+ *
3534
+ * - If fromId is set, the data with id > fromId within the queried time
3535
+ * range will be returned. Otherwise the latest data within that range will
3536
+ * be returned. fromId does not extend the time range; to retrieve older
3537
+ * records, move startTime and endTime backwards in windows of up to 7
3538
+ * days.
3466
3539
  *
3467
3540
  * - To query isolated data, Symbol needs to be entered.
3468
3541
  *
@@ -3710,7 +3783,7 @@ var RestAPI = class {
3710
3783
  *
3711
3784
  * Notes:
3712
3785
  * - If isolatedSymbol is not sent, crossed margin data will be sent.
3713
- * - `borrowLimit` is also available from [https://www.binance.com/en/margin-fee](https://www.binance.com/en/margin-fee)
3786
+ * - `borrowLimit` is also available from https://www.binance.com/en/margin-fee
3714
3787
  *
3715
3788
  * @summary Query Max Borrow (USER_DATA)
3716
3789
  * @param {QueryMaxBorrowRequest} requestParameters Request parameters.
@@ -3957,12 +4030,12 @@ var RestAPI = class {
3957
4030
  /**
3958
4031
  * **Eligibility**
3959
4032
  *
3960
- * - 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.
4033
+ * - Binance Margin offers low-latency trading through a special key, available exclusively to users with VIP level 7 or higher.
3961
4034
  * - If you are VIP level 6 or below, please contact your VIP manager for eligibility criterias.
3962
4035
  * - 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.
3963
4036
  * - 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.
3964
4037
  *
3965
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
4038
+ * For more information, please refer to FAQ.
3966
4039
  *
3967
4040
  **Supported Products:**
3968
4041
  *
@@ -3980,7 +4053,7 @@ var RestAPI = class {
3980
4053
  * HMAC
3981
4054
  * RSA
3982
4055
  *
3983
- * 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) .
4056
+ * 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 .
3984
4057
  *
3985
4058
  **How to use the Margin Special Key**
3986
4059
  * - Use the below `sapi` endpoint to create your margin special API Key.
@@ -3988,7 +4061,7 @@ var RestAPI = class {
3988
4061
  * - For accessing the Isolated Margin account(s), pass the relevant `symbol` parameter in the API Key creation request.
3989
4062
  * - 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.
3990
4063
  *
3991
- * 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
4064
+ * Read REST API or WebSocket API documentation to learn how to use different API keys
3992
4065
  *
3993
4066
  * You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
3994
4067
  *
@@ -4077,7 +4150,7 @@ var RestAPI = class {
4077
4150
  * 2. All pre-execution margin checks (including Open-order-loss calculation) will revert to standard mode.
4078
4151
  * 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.
4079
4152
  *
4080
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
4153
+ * For more information, please refer to FAQ.
4081
4154
  *
4082
4155
  **Preconditions:**
4083
4156
  *
@@ -4306,8 +4379,15 @@ var RestAPI = class {
4306
4379
  *
4307
4380
  * Notes:
4308
4381
  * - autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
4309
- * - Depending on the `pendingType` or `workingType`, some optional
4310
- * - 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` | |
4382
+ * - Depending on the `pendingType` or `workingType`, some optional parameters will become mandatory:
4383
+ *
4384
+ * | Type | Additional mandatory parameters | Additional information |
4385
+ * | --- | --- | --- |
4386
+ * | `workingType` = `LIMIT` | `workingTimeInForce` | |
4387
+ * | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | |
4388
+ * | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | |
4389
+ * | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | |
4390
+ * | `pendingTrailingDelta` is provided | `pendingPrice` | |
4311
4391
  *
4312
4392
  * @summary Margin Account New OTO (TRADE)
4313
4393
  * @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
@@ -4322,7 +4402,6 @@ var RestAPI = class {
4322
4402
  /**
4323
4403
  * Post a new OTOCO order for margin account:
4324
4404
  *
4325
- *
4326
4405
  * - An OTOCO (One-Triggers-One-Cancels-the-Other) is an order list
4327
4406
  * comprised of 3 orders.
4328
4407
  *
@@ -4332,7 +4411,7 @@ var RestAPI = class {
4332
4411
  * - OTOCO has 2 pending orders (pending above and pending below), forming
4333
4412
  * an OCO pair. The pending orders are only placed on the order book when
4334
4413
  * the working order gets **fully filled**.
4335
- * - 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).
4414
+ * - The rules of the pending above and pending below follow the same rules as the Order List OCO.
4336
4415
  * - OTOCOs add **3 orders** against the unfilled order count,
4337
4416
  * `EXCHANGE_MAX_NUM_ORDERS` filter, and `MAX_NUM_ORDERS` filter.
4338
4417
  *
@@ -4535,6 +4614,29 @@ var RestAPI = class {
4535
4614
  return this.tradeApi.queryMarginAccountsOpenOrders(requestParameters);
4536
4615
  }
4537
4616
  /**
4617
+ * Retrieves all open OTO / OTOCO order lists of the margin account.
4618
+ *
4619
+ *
4620
+ * Notes:
4621
+ * - 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`).
4622
+ * - For OTO, the `orders` array contains 2 orders: the working order and the pending order.
4623
+ * - For OTOCO, the `orders` array contains 3 orders: the working order and the two pending orders (pending above / pending below).
4624
+ *
4625
+ * Weight(UID): 10
4626
+ *
4627
+ * Security Type: USER_DATA
4628
+ *
4629
+ * @summary Query Margin Account\'s Open OTO/OTOCO Order Lists (USER_DATA)
4630
+ * @param {QueryMarginAccountsOpenOtootocoOrderListsRequest} requestParameters Request parameters.
4631
+ *
4632
+ * @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>}
4633
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4634
+ * @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}
4635
+ */
4636
+ queryMarginAccountsOpenOtootocoOrderLists(requestParameters = {}) {
4637
+ return this.tradeApi.queryMarginAccountsOpenOtootocoOrderLists(requestParameters);
4638
+ }
4639
+ /**
4538
4640
  * Query Margin Account's Order
4539
4641
  *
4540
4642
  * Weight(IP): 10