@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.d.mts CHANGED
@@ -4442,6 +4442,116 @@ interface QueryMarginAccountsOpenOrdersResponseInner {
4442
4442
  */
4443
4443
  interface QueryMarginAccountsOpenOrdersResponse extends Array<QueryMarginAccountsOpenOrdersResponseInner> {}
4444
4444
  //#endregion
4445
+ //#region src/rest-api/types/query-margin-accounts-open-otootoco-order-lists-response-inner-orders-inner.d.ts
4446
+ /**
4447
+ * Margin REST API
4448
+ *
4449
+ * Access account information, borrow and repay assets, and trade with Binance Margin.
4450
+ *
4451
+ * The version of the OpenAPI document: 1.0.0
4452
+ *
4453
+ *
4454
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4455
+ * https://openapi-generator.tech
4456
+ * Do not edit the class manually.
4457
+ */
4458
+ /**
4459
+ *
4460
+ * @export
4461
+ * @interface QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner
4462
+ */
4463
+ interface QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner {
4464
+ /**
4465
+ * symbol.
4466
+ * @type {string}
4467
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner
4468
+ */
4469
+ symbol?: string;
4470
+ /**
4471
+ * order Id. Returns `null` if the working order is not filled yet.
4472
+ * @type {number | bigint}
4473
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner
4474
+ */
4475
+ orderId?: number | bigint | null;
4476
+ /**
4477
+ * status.
4478
+ * @type {string}
4479
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner
4480
+ */
4481
+ status?: string;
4482
+ /**
4483
+ * client Order Id.
4484
+ * @type {string}
4485
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner
4486
+ */
4487
+ clientOrderId?: string;
4488
+ }
4489
+ //#endregion
4490
+ //#region src/rest-api/types/query-margin-accounts-open-otootoco-order-lists-response-inner.d.ts
4491
+ /**
4492
+ *
4493
+ * @export
4494
+ * @interface QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4495
+ */
4496
+ interface QueryMarginAccountsOpenOtootocoOrderListsResponseInner {
4497
+ /**
4498
+ * order List Id.
4499
+ * @type {number | bigint}
4500
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4501
+ */
4502
+ orderListId?: number | bigint;
4503
+ /**
4504
+ * contingency Type.
4505
+ * @type {string}
4506
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4507
+ */
4508
+ contingencyType?: string;
4509
+ /**
4510
+ * list Status Type.
4511
+ * @type {string}
4512
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4513
+ */
4514
+ listStatusType?: string;
4515
+ /**
4516
+ * list Order Status.
4517
+ * @type {string}
4518
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4519
+ */
4520
+ listOrderStatus?: string;
4521
+ /**
4522
+ * list Client Order Id.
4523
+ * @type {string}
4524
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4525
+ */
4526
+ listClientOrderId?: string;
4527
+ /**
4528
+ * transaction Time.
4529
+ * @type {number | bigint}
4530
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4531
+ */
4532
+ transactionTime?: number | bigint;
4533
+ /**
4534
+ * symbol.
4535
+ * @type {string}
4536
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4537
+ */
4538
+ symbol?: string;
4539
+ /**
4540
+ * orders list.
4541
+ * @type {Array<QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner>}
4542
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4543
+ */
4544
+ orders?: Array<QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner>;
4545
+ }
4546
+ //#endregion
4547
+ //#region src/rest-api/types/query-margin-accounts-open-otootoco-order-lists-response.d.ts
4548
+ /**
4549
+ *
4550
+ * @export
4551
+ * @interface QueryMarginAccountsOpenOtootocoOrderListsResponse
4552
+ */
4553
+ interface QueryMarginAccountsOpenOtootocoOrderListsResponse extends Array<QueryMarginAccountsOpenOtootocoOrderListsResponseInner> {}
4554
+ //#endregion
4445
4555
  //#region src/rest-api/types/query-margin-accounts-order-response.d.ts
4446
4556
  /**
4447
4557
  * Margin REST API
@@ -5099,7 +5209,7 @@ interface AccountApiInterface {
5099
5209
  * Security Type: USER_DATA
5100
5210
  *
5101
5211
  * Notes:
5102
- * - 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).
5212
+ * - 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.
5103
5213
  *
5104
5214
  * @summary Adjust cross margin max leverage (USER_DATA)
5105
5215
  * @param {AdjustCrossMarginMaxLeverageRequest} requestParameters Request parameters.
@@ -5176,8 +5286,21 @@ interface AccountApiInterface {
5176
5286
  *
5177
5287
  * - The time between startTime and endTime cannot be longer than 7 days.
5178
5288
  *
5179
- * - If fromId is set, the data with id > fromId will be returned.
5180
- * Otherwise the latest data will be returned
5289
+ * - If both startTime and endTime are omitted, the most recent 7 days are
5290
+ * queried (endTime defaults to the current time, and startTime to the
5291
+ * current time minus 7 days).
5292
+ *
5293
+ * - If startTime is provided without endTime, endTime defaults to
5294
+ * startTime plus 7 days.
5295
+ *
5296
+ * - If endTime is provided without startTime, startTime defaults to
5297
+ * endTime minus 7 days.
5298
+ *
5299
+ * - If fromId is set, the data with id > fromId within the queried time
5300
+ * range will be returned. Otherwise the latest data within that range will
5301
+ * be returned. fromId does not extend the time range; to retrieve older
5302
+ * records, move startTime and endTime backwards in windows of up to 7
5303
+ * days.
5181
5304
  *
5182
5305
  * - To query isolated data, Symbol needs to be entered.
5183
5306
  *
@@ -5497,7 +5620,7 @@ declare class AccountApi implements AccountApiInterface {
5497
5620
  * Security Type: USER_DATA
5498
5621
  *
5499
5622
  * Notes:
5500
- * - 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).
5623
+ * - 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.
5501
5624
  *
5502
5625
  * @summary Adjust cross margin max leverage (USER_DATA)
5503
5626
  * @param {AdjustCrossMarginMaxLeverageRequest} requestParameters Request parameters.
@@ -5579,8 +5702,21 @@ declare class AccountApi implements AccountApiInterface {
5579
5702
  *
5580
5703
  * - The time between startTime and endTime cannot be longer than 7 days.
5581
5704
  *
5582
- * - If fromId is set, the data with id > fromId will be returned.
5583
- * Otherwise the latest data will be returned
5705
+ * - If both startTime and endTime are omitted, the most recent 7 days are
5706
+ * queried (endTime defaults to the current time, and startTime to the
5707
+ * current time minus 7 days).
5708
+ *
5709
+ * - If startTime is provided without endTime, endTime defaults to
5710
+ * startTime plus 7 days.
5711
+ *
5712
+ * - If endTime is provided without startTime, startTime defaults to
5713
+ * endTime minus 7 days.
5714
+ *
5715
+ * - If fromId is set, the data with id > fromId within the queried time
5716
+ * range will be returned. Otherwise the latest data within that range will
5717
+ * be returned. fromId does not extend the time range; to retrieve older
5718
+ * records, move startTime and endTime backwards in windows of up to 7
5719
+ * days.
5584
5720
  *
5585
5721
  * - To query isolated data, Symbol needs to be entered.
5586
5722
  *
@@ -5827,7 +5963,7 @@ interface BorrowRepayApiInterface {
5827
5963
  *
5828
5964
  * Notes:
5829
5965
  * - If isolatedSymbol is not sent, crossed margin data will be sent.
5830
- * - `borrowLimit` is also available from [https://www.binance.com/en/margin-fee](https://www.binance.com/en/margin-fee)
5966
+ * - `borrowLimit` is also available from https://www.binance.com/en/margin-fee
5831
5967
  *
5832
5968
  * @summary Query Max Borrow (USER_DATA)
5833
5969
  * @param {QueryMaxBorrowRequest} requestParameters Request parameters.
@@ -6206,7 +6342,7 @@ declare class BorrowRepayApi implements BorrowRepayApiInterface {
6206
6342
  *
6207
6343
  * Notes:
6208
6344
  * - If isolatedSymbol is not sent, crossed margin data will be sent.
6209
- * - `borrowLimit` is also available from [https://www.binance.com/en/margin-fee](https://www.binance.com/en/margin-fee)
6345
+ * - `borrowLimit` is also available from https://www.binance.com/en/margin-fee
6210
6346
  *
6211
6347
  * @summary Query Max Borrow (USER_DATA)
6212
6348
  * @param {QueryMaxBorrowRequest} requestParameters Request parameters.
@@ -6777,12 +6913,12 @@ interface TradeApiInterface {
6777
6913
  /**
6778
6914
  * **Eligibility**
6779
6915
  *
6780
- * - 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.
6916
+ * - Binance Margin offers low-latency trading through a special key, available exclusively to users with VIP level 7 or higher.
6781
6917
  * - If you are VIP level 6 or below, please contact your VIP manager for eligibility criterias.
6782
6918
  * - 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.
6783
6919
  * - 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.
6784
6920
  *
6785
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
6921
+ * For more information, please refer to FAQ.
6786
6922
  *
6787
6923
  **Supported Products:**
6788
6924
  *
@@ -6800,7 +6936,7 @@ interface TradeApiInterface {
6800
6936
  * HMAC
6801
6937
  * RSA
6802
6938
  *
6803
- * 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) .
6939
+ * 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 .
6804
6940
  *
6805
6941
  **How to use the Margin Special Key**
6806
6942
  * - Use the below `sapi` endpoint to create your margin special API Key.
@@ -6808,7 +6944,7 @@ interface TradeApiInterface {
6808
6944
  * - For accessing the Isolated Margin account(s), pass the relevant `symbol` parameter in the API Key creation request.
6809
6945
  * - 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.
6810
6946
  *
6811
- * 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
6947
+ * Read REST API or WebSocket API documentation to learn how to use different API keys
6812
6948
  *
6813
6949
  * You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
6814
6950
  *
@@ -6888,7 +7024,7 @@ interface TradeApiInterface {
6888
7024
  * 2. All pre-execution margin checks (including Open-order-loss calculation) will revert to standard mode.
6889
7025
  * 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.
6890
7026
  *
6891
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
7027
+ * For more information, please refer to FAQ.
6892
7028
  *
6893
7029
  **Preconditions:**
6894
7030
  *
@@ -7087,8 +7223,15 @@ interface TradeApiInterface {
7087
7223
  *
7088
7224
  * Notes:
7089
7225
  * - autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
7090
- * - Depending on the `pendingType` or `workingType`, some optional
7091
- * - 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` | |
7226
+ * - Depending on the `pendingType` or `workingType`, some optional parameters will become mandatory:
7227
+ *
7228
+ * | Type | Additional mandatory parameters | Additional information |
7229
+ * | --- | --- | --- |
7230
+ * | `workingType` = `LIMIT` | `workingTimeInForce` | |
7231
+ * | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | |
7232
+ * | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | |
7233
+ * | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | |
7234
+ * | `pendingTrailingDelta` is provided | `pendingPrice` | |
7092
7235
  *
7093
7236
  * @summary Margin Account New OTO (TRADE)
7094
7237
  * @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
@@ -7100,7 +7243,6 @@ interface TradeApiInterface {
7100
7243
  /**
7101
7244
  * Post a new OTOCO order for margin account:
7102
7245
  *
7103
- *
7104
7246
  * - An OTOCO (One-Triggers-One-Cancels-the-Other) is an order list
7105
7247
  * comprised of 3 orders.
7106
7248
  *
@@ -7110,7 +7252,7 @@ interface TradeApiInterface {
7110
7252
  * - OTOCO has 2 pending orders (pending above and pending below), forming
7111
7253
  * an OCO pair. The pending orders are only placed on the order book when
7112
7254
  * the working order gets **fully filled**.
7113
- * - 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).
7255
+ * - The rules of the pending above and pending below follow the same rules as the Order List OCO.
7114
7256
  * - OTOCOs add **3 orders** against the unfilled order count,
7115
7257
  * `EXCHANGE_MAX_NUM_ORDERS` filter, and `MAX_NUM_ORDERS` filter.
7116
7258
  *
@@ -7282,6 +7424,26 @@ interface TradeApiInterface {
7282
7424
  * @memberof TradeApiInterface
7283
7425
  */
7284
7426
  queryMarginAccountsOpenOrders(requestParameters?: QueryMarginAccountsOpenOrdersRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOrdersResponse>>;
7427
+ /**
7428
+ * Retrieves all open OTO / OTOCO order lists of the margin account.
7429
+ *
7430
+ *
7431
+ * Notes:
7432
+ * - 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`).
7433
+ * - For OTO, the `orders` array contains 2 orders: the working order and the pending order.
7434
+ * - For OTOCO, the `orders` array contains 3 orders: the working order and the two pending orders (pending above / pending below).
7435
+ *
7436
+ * Weight(UID): 10
7437
+ *
7438
+ * Security Type: USER_DATA
7439
+ *
7440
+ * @summary Query Margin Account\'s Open OTO/OTOCO Order Lists (USER_DATA)
7441
+ * @param {QueryMarginAccountsOpenOtootocoOrderListsRequest} requestParameters Request parameters.
7442
+ *
7443
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
7444
+ * @memberof TradeApiInterface
7445
+ */
7446
+ queryMarginAccountsOpenOtootocoOrderLists(requestParameters?: QueryMarginAccountsOpenOtootocoOrderListsRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>;
7285
7447
  /**
7286
7448
  * Query Margin Account's Order
7287
7449
  *
@@ -8560,6 +8722,24 @@ interface QueryMarginAccountsOpenOrdersRequest {
8560
8722
  */
8561
8723
  readonly recvWindow?: number | bigint;
8562
8724
  }
8725
+ /**
8726
+ * Request parameters for queryMarginAccountsOpenOtootocoOrderLists operation in TradeApi.
8727
+ * @interface QueryMarginAccountsOpenOtootocoOrderListsRequest
8728
+ */
8729
+ interface QueryMarginAccountsOpenOtootocoOrderListsRequest {
8730
+ /**
8731
+ *
8732
+ * @type {string}
8733
+ * @memberof TradeApiQueryMarginAccountsOpenOtootocoOrderLists
8734
+ */
8735
+ readonly symbol?: string;
8736
+ /**
8737
+ *
8738
+ * @type {number | bigint}
8739
+ * @memberof TradeApiQueryMarginAccountsOpenOtootocoOrderLists
8740
+ */
8741
+ readonly recvWindow?: number | bigint;
8742
+ }
8563
8743
  /**
8564
8744
  * Request parameters for queryMarginAccountsOrder operation in TradeApi.
8565
8745
  * @interface QueryMarginAccountsOrderRequest
@@ -8757,12 +8937,12 @@ declare class TradeApi implements TradeApiInterface {
8757
8937
  /**
8758
8938
  * **Eligibility**
8759
8939
  *
8760
- * - 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.
8940
+ * - Binance Margin offers low-latency trading through a special key, available exclusively to users with VIP level 7 or higher.
8761
8941
  * - If you are VIP level 6 or below, please contact your VIP manager for eligibility criterias.
8762
8942
  * - 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.
8763
8943
  * - 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.
8764
8944
  *
8765
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
8945
+ * For more information, please refer to FAQ.
8766
8946
  *
8767
8947
  **Supported Products:**
8768
8948
  *
@@ -8780,7 +8960,7 @@ declare class TradeApi implements TradeApiInterface {
8780
8960
  * HMAC
8781
8961
  * RSA
8782
8962
  *
8783
- * 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) .
8963
+ * 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 .
8784
8964
  *
8785
8965
  **How to use the Margin Special Key**
8786
8966
  * - Use the below `sapi` endpoint to create your margin special API Key.
@@ -8788,7 +8968,7 @@ declare class TradeApi implements TradeApiInterface {
8788
8968
  * - For accessing the Isolated Margin account(s), pass the relevant `symbol` parameter in the API Key creation request.
8789
8969
  * - 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.
8790
8970
  *
8791
- * 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
8971
+ * Read REST API or WebSocket API documentation to learn how to use different API keys
8792
8972
  *
8793
8973
  * You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
8794
8974
  *
@@ -8871,7 +9051,7 @@ declare class TradeApi implements TradeApiInterface {
8871
9051
  * 2. All pre-execution margin checks (including Open-order-loss calculation) will revert to standard mode.
8872
9052
  * 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.
8873
9053
  *
8874
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
9054
+ * For more information, please refer to FAQ.
8875
9055
  *
8876
9056
  **Preconditions:**
8877
9057
  *
@@ -9080,8 +9260,15 @@ declare class TradeApi implements TradeApiInterface {
9080
9260
  *
9081
9261
  * Notes:
9082
9262
  * - autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
9083
- * - Depending on the `pendingType` or `workingType`, some optional
9084
- * - 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` | |
9263
+ * - Depending on the `pendingType` or `workingType`, some optional parameters will become mandatory:
9264
+ *
9265
+ * | Type | Additional mandatory parameters | Additional information |
9266
+ * | --- | --- | --- |
9267
+ * | `workingType` = `LIMIT` | `workingTimeInForce` | |
9268
+ * | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | |
9269
+ * | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | |
9270
+ * | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | |
9271
+ * | `pendingTrailingDelta` is provided | `pendingPrice` | |
9085
9272
  *
9086
9273
  * @summary Margin Account New OTO (TRADE)
9087
9274
  * @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
@@ -9094,7 +9281,6 @@ declare class TradeApi implements TradeApiInterface {
9094
9281
  /**
9095
9282
  * Post a new OTOCO order for margin account:
9096
9283
  *
9097
- *
9098
9284
  * - An OTOCO (One-Triggers-One-Cancels-the-Other) is an order list
9099
9285
  * comprised of 3 orders.
9100
9286
  *
@@ -9104,7 +9290,7 @@ declare class TradeApi implements TradeApiInterface {
9104
9290
  * - OTOCO has 2 pending orders (pending above and pending below), forming
9105
9291
  * an OCO pair. The pending orders are only placed on the order book when
9106
9292
  * the working order gets **fully filled**.
9107
- * - 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).
9293
+ * - The rules of the pending above and pending below follow the same rules as the Order List OCO.
9108
9294
  * - OTOCOs add **3 orders** against the unfilled order count,
9109
9295
  * `EXCHANGE_MAX_NUM_ORDERS` filter, and `MAX_NUM_ORDERS` filter.
9110
9296
  *
@@ -9286,6 +9472,27 @@ declare class TradeApi implements TradeApiInterface {
9286
9472
  * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-margin-trading/api/rest-api/trade#query-margin-accounts-open-orders Binance API Documentation}
9287
9473
  */
9288
9474
  queryMarginAccountsOpenOrders(requestParameters?: QueryMarginAccountsOpenOrdersRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOrdersResponse>>;
9475
+ /**
9476
+ * Retrieves all open OTO / OTOCO order lists of the margin account.
9477
+ *
9478
+ *
9479
+ * Notes:
9480
+ * - 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`).
9481
+ * - For OTO, the `orders` array contains 2 orders: the working order and the pending order.
9482
+ * - For OTOCO, the `orders` array contains 3 orders: the working order and the two pending orders (pending above / pending below).
9483
+ *
9484
+ * Weight(UID): 10
9485
+ *
9486
+ * Security Type: USER_DATA
9487
+ *
9488
+ * @summary Query Margin Account\'s Open OTO/OTOCO Order Lists (USER_DATA)
9489
+ * @param {QueryMarginAccountsOpenOtootocoOrderListsRequest} requestParameters Request parameters.
9490
+ * @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>}
9491
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
9492
+ * @memberof TradeApi
9493
+ * @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}
9494
+ */
9495
+ queryMarginAccountsOpenOtootocoOrderLists(requestParameters?: QueryMarginAccountsOpenOtootocoOrderListsRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>;
9289
9496
  /**
9290
9497
  * Query Margin Account's Order
9291
9498
  *
@@ -9972,7 +10179,7 @@ declare class RestAPI {
9972
10179
  * Security Type: USER_DATA
9973
10180
  *
9974
10181
  * Notes:
9975
- * - 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).
10182
+ * - 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.
9976
10183
  *
9977
10184
  * @summary Adjust cross margin max leverage (USER_DATA)
9978
10185
  * @param {AdjustCrossMarginMaxLeverageRequest} requestParameters Request parameters.
@@ -10054,8 +10261,21 @@ declare class RestAPI {
10054
10261
  *
10055
10262
  * - The time between startTime and endTime cannot be longer than 7 days.
10056
10263
  *
10057
- * - If fromId is set, the data with id > fromId will be returned.
10058
- * Otherwise the latest data will be returned
10264
+ * - If both startTime and endTime are omitted, the most recent 7 days are
10265
+ * queried (endTime defaults to the current time, and startTime to the
10266
+ * current time minus 7 days).
10267
+ *
10268
+ * - If startTime is provided without endTime, endTime defaults to
10269
+ * startTime plus 7 days.
10270
+ *
10271
+ * - If endTime is provided without startTime, startTime defaults to
10272
+ * endTime minus 7 days.
10273
+ *
10274
+ * - If fromId is set, the data with id > fromId within the queried time
10275
+ * range will be returned. Otherwise the latest data within that range will
10276
+ * be returned. fromId does not extend the time range; to retrieve older
10277
+ * records, move startTime and endTime backwards in windows of up to 7
10278
+ * days.
10059
10279
  *
10060
10280
  * - To query isolated data, Symbol needs to be entered.
10061
10281
  *
@@ -10281,7 +10501,7 @@ declare class RestAPI {
10281
10501
  *
10282
10502
  * Notes:
10283
10503
  * - If isolatedSymbol is not sent, crossed margin data will be sent.
10284
- * - `borrowLimit` is also available from [https://www.binance.com/en/margin-fee](https://www.binance.com/en/margin-fee)
10504
+ * - `borrowLimit` is also available from https://www.binance.com/en/margin-fee
10285
10505
  *
10286
10506
  * @summary Query Max Borrow (USER_DATA)
10287
10507
  * @param {QueryMaxBorrowRequest} requestParameters Request parameters.
@@ -10500,12 +10720,12 @@ declare class RestAPI {
10500
10720
  /**
10501
10721
  * **Eligibility**
10502
10722
  *
10503
- * - 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.
10723
+ * - Binance Margin offers low-latency trading through a special key, available exclusively to users with VIP level 7 or higher.
10504
10724
  * - If you are VIP level 6 or below, please contact your VIP manager for eligibility criterias.
10505
10725
  * - 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.
10506
10726
  * - 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.
10507
10727
  *
10508
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
10728
+ * For more information, please refer to FAQ.
10509
10729
  *
10510
10730
  **Supported Products:**
10511
10731
  *
@@ -10523,7 +10743,7 @@ declare class RestAPI {
10523
10743
  * HMAC
10524
10744
  * RSA
10525
10745
  *
10526
- * 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) .
10746
+ * 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 .
10527
10747
  *
10528
10748
  **How to use the Margin Special Key**
10529
10749
  * - Use the below `sapi` endpoint to create your margin special API Key.
@@ -10531,7 +10751,7 @@ declare class RestAPI {
10531
10751
  * - For accessing the Isolated Margin account(s), pass the relevant `symbol` parameter in the API Key creation request.
10532
10752
  * - 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.
10533
10753
  *
10534
- * 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
10754
+ * Read REST API or WebSocket API documentation to learn how to use different API keys
10535
10755
  *
10536
10756
  * You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
10537
10757
  *
@@ -10614,7 +10834,7 @@ declare class RestAPI {
10614
10834
  * 2. All pre-execution margin checks (including Open-order-loss calculation) will revert to standard mode.
10615
10835
  * 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.
10616
10836
  *
10617
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
10837
+ * For more information, please refer to FAQ.
10618
10838
  *
10619
10839
  **Preconditions:**
10620
10840
  *
@@ -10823,8 +11043,15 @@ declare class RestAPI {
10823
11043
  *
10824
11044
  * Notes:
10825
11045
  * - autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
10826
- * - Depending on the `pendingType` or `workingType`, some optional
10827
- * - 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` | |
11046
+ * - Depending on the `pendingType` or `workingType`, some optional parameters will become mandatory:
11047
+ *
11048
+ * | Type | Additional mandatory parameters | Additional information |
11049
+ * | --- | --- | --- |
11050
+ * | `workingType` = `LIMIT` | `workingTimeInForce` | |
11051
+ * | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | |
11052
+ * | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | |
11053
+ * | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | |
11054
+ * | `pendingTrailingDelta` is provided | `pendingPrice` | |
10828
11055
  *
10829
11056
  * @summary Margin Account New OTO (TRADE)
10830
11057
  * @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
@@ -10837,7 +11064,6 @@ declare class RestAPI {
10837
11064
  /**
10838
11065
  * Post a new OTOCO order for margin account:
10839
11066
  *
10840
- *
10841
11067
  * - An OTOCO (One-Triggers-One-Cancels-the-Other) is an order list
10842
11068
  * comprised of 3 orders.
10843
11069
  *
@@ -10847,7 +11073,7 @@ declare class RestAPI {
10847
11073
  * - OTOCO has 2 pending orders (pending above and pending below), forming
10848
11074
  * an OCO pair. The pending orders are only placed on the order book when
10849
11075
  * the working order gets **fully filled**.
10850
- * - 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).
11076
+ * - The rules of the pending above and pending below follow the same rules as the Order List OCO.
10851
11077
  * - OTOCOs add **3 orders** against the unfilled order count,
10852
11078
  * `EXCHANGE_MAX_NUM_ORDERS` filter, and `MAX_NUM_ORDERS` filter.
10853
11079
  *
@@ -11029,6 +11255,27 @@ declare class RestAPI {
11029
11255
  * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-margin-trading/api/rest-api/trade#query-margin-accounts-open-orders Binance API Documentation}
11030
11256
  */
11031
11257
  queryMarginAccountsOpenOrders(requestParameters?: QueryMarginAccountsOpenOrdersRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOrdersResponse>>;
11258
+ /**
11259
+ * Retrieves all open OTO / OTOCO order lists of the margin account.
11260
+ *
11261
+ *
11262
+ * Notes:
11263
+ * - 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`).
11264
+ * - For OTO, the `orders` array contains 2 orders: the working order and the pending order.
11265
+ * - For OTOCO, the `orders` array contains 3 orders: the working order and the two pending orders (pending above / pending below).
11266
+ *
11267
+ * Weight(UID): 10
11268
+ *
11269
+ * Security Type: USER_DATA
11270
+ *
11271
+ * @summary Query Margin Account\'s Open OTO/OTOCO Order Lists (USER_DATA)
11272
+ * @param {QueryMarginAccountsOpenOtootocoOrderListsRequest} requestParameters Request parameters.
11273
+ *
11274
+ * @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>}
11275
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
11276
+ * @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}
11277
+ */
11278
+ queryMarginAccountsOpenOtootocoOrderLists(requestParameters?: QueryMarginAccountsOpenOtootocoOrderListsRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>;
11032
11279
  /**
11033
11280
  * Query Margin Account's Order
11034
11281
  *
@@ -11240,7 +11487,7 @@ declare class RestAPI {
11240
11487
  startUserDataStream(): Promise<RestApiResponse<StartUserDataStreamResponse>>;
11241
11488
  }
11242
11489
  declare namespace index_d_exports {
11243
- export { AccountApi, AccountApiInterface, AdjustCrossMarginMaxLeverageRequest, AdjustCrossMarginMaxLeverageResponse, BorrowRepayApi, BorrowRepayApiInterface, CreateSpecialKeyPermissionModeEnum, CreateSpecialKeyRequest, CreateSpecialKeyResponse, CrossMarginCollateralRatioResponse, CrossMarginCollateralRatioResponseInner, CrossMarginCollateralRatioResponseInnerCollateralsInner, DeleteSpecialKeyRequest, DisableIsolatedMarginAccountRequest, DisableIsolatedMarginAccountResponse, EditIpForSpecialKeyRequest, EnableIsolatedMarginAccountRequest, EnableIsolatedMarginAccountResponse, ExitSpecialKeyModeRequest, GetAllCrossMarginPairsRequest, GetAllCrossMarginPairsResponse, GetAllCrossMarginPairsResponseInner, GetAllIsolatedMarginSymbolRequest, GetAllIsolatedMarginSymbolResponse, GetAllIsolatedMarginSymbolResponseInner, GetAllMarginAssetsRequest, GetAllMarginAssetsResponse, GetAllMarginAssetsResponseInner, GetBnbBurnStatusRequest, GetBnbBurnStatusResponse, GetCrossMarginTransferHistoryRequest, GetCrossMarginTransferHistoryResponse, GetCrossMarginTransferHistoryResponseRowsInner, GetCrossMarginTransferHistoryTypeEnum, GetDelistScheduleRequest, GetDelistScheduleResponse, GetDelistScheduleResponseInner, GetForceLiquidationRecordRequest, GetForceLiquidationRecordResponse, GetForceLiquidationRecordResponseRowsInner, GetFutureHourlyInterestRateIsIsolatedEnum, GetFutureHourlyInterestRateRequest, GetFutureHourlyInterestRateResponse, GetFutureHourlyInterestRateResponseInner, GetInterestHistoryRequest, GetInterestHistoryResponse, GetInterestHistoryResponseRowsInner, GetLimitPricePairsResponse, GetListScheduleRequest, GetListScheduleResponse, GetListScheduleResponseInner, GetMarginAssetRiskBasedLiquidationRatioResponse, GetMarginAssetRiskBasedLiquidationRatioResponseInner, GetMarginRestrictedAssetsResponse, GetSmallLiabilityExchangeCoinListRequest, GetSmallLiabilityExchangeCoinListResponse, GetSmallLiabilityExchangeCoinListResponseInner, GetSmallLiabilityExchangeHistoryRequest, GetSmallLiabilityExchangeHistoryResponse, GetSmallLiabilityExchangeHistoryResponseRowsInner, GetSummaryOfMarginAccountRequest, GetSummaryOfMarginAccountResponse, KeepaliveUserDataStreamRequest, LiquidationLoanRepayRequest, LiquidationLoanRepayResponse, MarginAccountBorrowRepayIsIsolatedEnum, MarginAccountBorrowRepayRequest, MarginAccountBorrowRepayResponse, MarginAccountBorrowRepayTypeEnum, MarginAccountCancelAllOpenOrdersOnASymbolIsIsolatedEnum, MarginAccountCancelAllOpenOrdersOnASymbolRequest, MarginAccountCancelAllOpenOrdersOnASymbolResponse, MarginAccountCancelAllOpenOrdersOnASymbolResponseInner, MarginAccountCancelAllOpenOrdersOnASymbolResponseInnerOrderReportsInner, MarginAccountCancelAllOpenOrdersOnASymbolResponseInnerOrdersInner, MarginAccountCancelOcoIsIsolatedEnum, MarginAccountCancelOcoRequest, MarginAccountCancelOcoResponse, MarginAccountCancelOcoResponseOrderReportsInner, MarginAccountCancelOcoResponseOrdersInner, MarginAccountCancelOrderIsIsolatedEnum, MarginAccountCancelOrderRequest, MarginAccountCancelOrderResponse, MarginAccountNewOcoIsIsolatedEnum, MarginAccountNewOcoNewOrderRespTypeEnum, MarginAccountNewOcoRequest, MarginAccountNewOcoResponse, MarginAccountNewOcoResponseOrderReportsInner, MarginAccountNewOcoResponseOrdersInner, MarginAccountNewOcoSelfTradePreventionModeEnum, MarginAccountNewOcoSideEffectTypeEnum, MarginAccountNewOcoSideEnum, MarginAccountNewOcoStopLimitTimeInForceEnum, MarginAccountNewOrderIsIsolatedEnum, MarginAccountNewOrderNewOrderRespTypeEnum, MarginAccountNewOrderRequest, MarginAccountNewOrderResponse, MarginAccountNewOrderResponseFillsInner, MarginAccountNewOrderSelfTradePreventionModeEnum, MarginAccountNewOrderSideEffectTypeEnum, MarginAccountNewOrderSideEnum, MarginAccountNewOrderTimeInForceEnum, MarginAccountNewOrderTypeEnum, MarginAccountNewOtoIsIsolatedEnum, MarginAccountNewOtoNewOrderRespTypeEnum, MarginAccountNewOtoPendingSideEnum, MarginAccountNewOtoPendingTimeInForceEnum, MarginAccountNewOtoPendingTypeEnum, MarginAccountNewOtoRequest, MarginAccountNewOtoResponse, MarginAccountNewOtoResponseOrderReportsInner, MarginAccountNewOtoResponseOrdersInner, MarginAccountNewOtoSelfTradePreventionModeEnum, MarginAccountNewOtoSideEffectTypeEnum, MarginAccountNewOtoWorkingSideEnum, MarginAccountNewOtoWorkingTimeInForceEnum, MarginAccountNewOtoWorkingTypeEnum, MarginAccountNewOtocoIsIsolatedEnum, MarginAccountNewOtocoNewOrderRespTypeEnum, MarginAccountNewOtocoPendingAboveTimeInForceEnum, MarginAccountNewOtocoPendingAboveTypeEnum, MarginAccountNewOtocoPendingBelowTimeInForceEnum, MarginAccountNewOtocoPendingBelowTypeEnum, MarginAccountNewOtocoPendingSideEnum, MarginAccountNewOtocoRequest, MarginAccountNewOtocoResponse, MarginAccountNewOtocoResponseOrderReportsInner, MarginAccountNewOtocoResponseOrdersInner, MarginAccountNewOtocoSelfTradePreventionModeEnum, MarginAccountNewOtocoSideEffectTypeEnum, MarginAccountNewOtocoWorkingSideEnum, MarginAccountNewOtocoWorkingTimeInForceEnum, MarginAccountNewOtocoWorkingTypeEnum, MarginManualLiquidationRequest, MarginManualLiquidationResponse, MarginManualLiquidationTypeEnum, MarketDataApi, MarketDataApiInterface, QueryBorrowRepayRecordsInMarginAccountRequest, QueryBorrowRepayRecordsInMarginAccountResponse, QueryBorrowRepayRecordsInMarginAccountResponseRowsInner, QueryBorrowRepayRecordsInMarginAccountTypeEnum, QueryCrossIsolatedMarginCapitalFlowRequest, QueryCrossIsolatedMarginCapitalFlowResponse, QueryCrossIsolatedMarginCapitalFlowResponseInner, QueryCrossIsolatedMarginCapitalFlowTypeEnum, QueryCrossMarginAccountDetailsRequest, QueryCrossMarginAccountDetailsResponse, QueryCrossMarginAccountDetailsResponseUserAssetsInner, QueryCrossMarginFeeDataRequest, QueryCrossMarginFeeDataResponse, QueryCrossMarginFeeDataResponseInner, QueryCurrentMarginOrderCountUsageIsIsolatedEnum, QueryCurrentMarginOrderCountUsageRequest, QueryCurrentMarginOrderCountUsageResponse, QueryCurrentMarginOrderCountUsageResponseInner, QueryEnabledIsolatedMarginAccountLimitRequest, QueryEnabledIsolatedMarginAccountLimitResponse, QueryIsolatedMarginAccountInfoRequest, QueryIsolatedMarginAccountInfoResponse, QueryIsolatedMarginAccountInfoResponseAssetsInner, QueryIsolatedMarginAccountInfoResponseAssetsInnerBaseAsset, QueryIsolatedMarginAccountInfoResponseAssetsInnerQuoteAsset, QueryIsolatedMarginFeeDataRequest, QueryIsolatedMarginFeeDataResponse, QueryIsolatedMarginFeeDataResponseInner, QueryIsolatedMarginFeeDataResponseInnerDataInner, QueryIsolatedMarginTierDataRequest, QueryIsolatedMarginTierDataResponse, QueryIsolatedMarginTierDataResponseInner, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponse, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInner, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInnerBracketsInner, QueryLiquidationLoanRepayHistoryRequest, QueryLiquidationLoanRepayHistoryResponse, QueryLiquidationLoanRepayHistoryResponseRowsInner, QueryLiquidationLoanRequest, QueryLiquidationLoanResponse, QueryMarginAccountsAllOcoIsIsolatedEnum, QueryMarginAccountsAllOcoRequest, QueryMarginAccountsAllOcoResponse, QueryMarginAccountsAllOcoResponseInner, QueryMarginAccountsAllOcoResponseInnerOrdersInner, QueryMarginAccountsAllOrdersIsIsolatedEnum, QueryMarginAccountsAllOrdersRequest, QueryMarginAccountsAllOrdersResponse, QueryMarginAccountsAllOrdersResponseInner, QueryMarginAccountsOcoIsIsolatedEnum, QueryMarginAccountsOcoRequest, QueryMarginAccountsOcoResponse, QueryMarginAccountsOcoResponseOrdersInner, QueryMarginAccountsOpenOcoIsIsolatedEnum, QueryMarginAccountsOpenOcoRequest, QueryMarginAccountsOpenOcoResponse, QueryMarginAccountsOpenOcoResponseInner, QueryMarginAccountsOpenOcoResponseInnerOrdersInner, QueryMarginAccountsOpenOrdersIsIsolatedEnum, QueryMarginAccountsOpenOrdersRequest, QueryMarginAccountsOpenOrdersResponse, QueryMarginAccountsOpenOrdersResponseInner, QueryMarginAccountsOrderIsIsolatedEnum, QueryMarginAccountsOrderRequest, QueryMarginAccountsOrderResponse, QueryMarginAccountsTradeListIsIsolatedEnum, QueryMarginAccountsTradeListRequest, QueryMarginAccountsTradeListResponse, QueryMarginAccountsTradeListResponseInner, QueryMarginAvailableInventoryRequest, QueryMarginAvailableInventoryResponse, QueryMarginAvailableInventoryTypeEnum, QueryMarginInterestRateHistoryRequest, QueryMarginInterestRateHistoryResponse, QueryMarginInterestRateHistoryResponseInner, QueryMarginPriceindexRequest, QueryMarginPriceindexResponse, QueryMaxBorrowRequest, QueryMaxBorrowResponse, QueryMaxTransferOutAmountRequest, QueryMaxTransferOutAmountResponse, QueryPreventedMatchesIsIsolatedEnum, QueryPreventedMatchesRequest, QueryPreventedMatchesResponse, QueryPreventedMatchesResponseInner, QuerySpecialKeyListRequest, QuerySpecialKeyListResponse, QuerySpecialKeyListResponseInner, QuerySpecialKeyRequest, QuerySpecialKeyResponse, RestAPI, SmallLiabilityExchangeRequest, StartUserDataStreamResponse, TradeApi, TradeApiInterface, TransferApi, TransferApiInterface, UserDataStreamApi, UserDataStreamApiInterface };
11490
+ export { AccountApi, AccountApiInterface, AdjustCrossMarginMaxLeverageRequest, AdjustCrossMarginMaxLeverageResponse, BorrowRepayApi, BorrowRepayApiInterface, CreateSpecialKeyPermissionModeEnum, CreateSpecialKeyRequest, CreateSpecialKeyResponse, CrossMarginCollateralRatioResponse, CrossMarginCollateralRatioResponseInner, CrossMarginCollateralRatioResponseInnerCollateralsInner, DeleteSpecialKeyRequest, DisableIsolatedMarginAccountRequest, DisableIsolatedMarginAccountResponse, EditIpForSpecialKeyRequest, EnableIsolatedMarginAccountRequest, EnableIsolatedMarginAccountResponse, ExitSpecialKeyModeRequest, GetAllCrossMarginPairsRequest, GetAllCrossMarginPairsResponse, GetAllCrossMarginPairsResponseInner, GetAllIsolatedMarginSymbolRequest, GetAllIsolatedMarginSymbolResponse, GetAllIsolatedMarginSymbolResponseInner, GetAllMarginAssetsRequest, GetAllMarginAssetsResponse, GetAllMarginAssetsResponseInner, GetBnbBurnStatusRequest, GetBnbBurnStatusResponse, GetCrossMarginTransferHistoryRequest, GetCrossMarginTransferHistoryResponse, GetCrossMarginTransferHistoryResponseRowsInner, GetCrossMarginTransferHistoryTypeEnum, GetDelistScheduleRequest, GetDelistScheduleResponse, GetDelistScheduleResponseInner, GetForceLiquidationRecordRequest, GetForceLiquidationRecordResponse, GetForceLiquidationRecordResponseRowsInner, GetFutureHourlyInterestRateIsIsolatedEnum, GetFutureHourlyInterestRateRequest, GetFutureHourlyInterestRateResponse, GetFutureHourlyInterestRateResponseInner, GetInterestHistoryRequest, GetInterestHistoryResponse, GetInterestHistoryResponseRowsInner, GetLimitPricePairsResponse, GetListScheduleRequest, GetListScheduleResponse, GetListScheduleResponseInner, GetMarginAssetRiskBasedLiquidationRatioResponse, GetMarginAssetRiskBasedLiquidationRatioResponseInner, GetMarginRestrictedAssetsResponse, GetSmallLiabilityExchangeCoinListRequest, GetSmallLiabilityExchangeCoinListResponse, GetSmallLiabilityExchangeCoinListResponseInner, GetSmallLiabilityExchangeHistoryRequest, GetSmallLiabilityExchangeHistoryResponse, GetSmallLiabilityExchangeHistoryResponseRowsInner, GetSummaryOfMarginAccountRequest, GetSummaryOfMarginAccountResponse, KeepaliveUserDataStreamRequest, LiquidationLoanRepayRequest, LiquidationLoanRepayResponse, MarginAccountBorrowRepayIsIsolatedEnum, MarginAccountBorrowRepayRequest, MarginAccountBorrowRepayResponse, MarginAccountBorrowRepayTypeEnum, MarginAccountCancelAllOpenOrdersOnASymbolIsIsolatedEnum, MarginAccountCancelAllOpenOrdersOnASymbolRequest, MarginAccountCancelAllOpenOrdersOnASymbolResponse, MarginAccountCancelAllOpenOrdersOnASymbolResponseInner, MarginAccountCancelAllOpenOrdersOnASymbolResponseInnerOrderReportsInner, MarginAccountCancelAllOpenOrdersOnASymbolResponseInnerOrdersInner, MarginAccountCancelOcoIsIsolatedEnum, MarginAccountCancelOcoRequest, MarginAccountCancelOcoResponse, MarginAccountCancelOcoResponseOrderReportsInner, MarginAccountCancelOcoResponseOrdersInner, MarginAccountCancelOrderIsIsolatedEnum, MarginAccountCancelOrderRequest, MarginAccountCancelOrderResponse, MarginAccountNewOcoIsIsolatedEnum, MarginAccountNewOcoNewOrderRespTypeEnum, MarginAccountNewOcoRequest, MarginAccountNewOcoResponse, MarginAccountNewOcoResponseOrderReportsInner, MarginAccountNewOcoResponseOrdersInner, MarginAccountNewOcoSelfTradePreventionModeEnum, MarginAccountNewOcoSideEffectTypeEnum, MarginAccountNewOcoSideEnum, MarginAccountNewOcoStopLimitTimeInForceEnum, MarginAccountNewOrderIsIsolatedEnum, MarginAccountNewOrderNewOrderRespTypeEnum, MarginAccountNewOrderRequest, MarginAccountNewOrderResponse, MarginAccountNewOrderResponseFillsInner, MarginAccountNewOrderSelfTradePreventionModeEnum, MarginAccountNewOrderSideEffectTypeEnum, MarginAccountNewOrderSideEnum, MarginAccountNewOrderTimeInForceEnum, MarginAccountNewOrderTypeEnum, MarginAccountNewOtoIsIsolatedEnum, MarginAccountNewOtoNewOrderRespTypeEnum, MarginAccountNewOtoPendingSideEnum, MarginAccountNewOtoPendingTimeInForceEnum, MarginAccountNewOtoPendingTypeEnum, MarginAccountNewOtoRequest, MarginAccountNewOtoResponse, MarginAccountNewOtoResponseOrderReportsInner, MarginAccountNewOtoResponseOrdersInner, MarginAccountNewOtoSelfTradePreventionModeEnum, MarginAccountNewOtoSideEffectTypeEnum, MarginAccountNewOtoWorkingSideEnum, MarginAccountNewOtoWorkingTimeInForceEnum, MarginAccountNewOtoWorkingTypeEnum, MarginAccountNewOtocoIsIsolatedEnum, MarginAccountNewOtocoNewOrderRespTypeEnum, MarginAccountNewOtocoPendingAboveTimeInForceEnum, MarginAccountNewOtocoPendingAboveTypeEnum, MarginAccountNewOtocoPendingBelowTimeInForceEnum, MarginAccountNewOtocoPendingBelowTypeEnum, MarginAccountNewOtocoPendingSideEnum, MarginAccountNewOtocoRequest, MarginAccountNewOtocoResponse, MarginAccountNewOtocoResponseOrderReportsInner, MarginAccountNewOtocoResponseOrdersInner, MarginAccountNewOtocoSelfTradePreventionModeEnum, MarginAccountNewOtocoSideEffectTypeEnum, MarginAccountNewOtocoWorkingSideEnum, MarginAccountNewOtocoWorkingTimeInForceEnum, MarginAccountNewOtocoWorkingTypeEnum, MarginManualLiquidationRequest, MarginManualLiquidationResponse, MarginManualLiquidationTypeEnum, MarketDataApi, MarketDataApiInterface, QueryBorrowRepayRecordsInMarginAccountRequest, QueryBorrowRepayRecordsInMarginAccountResponse, QueryBorrowRepayRecordsInMarginAccountResponseRowsInner, QueryBorrowRepayRecordsInMarginAccountTypeEnum, QueryCrossIsolatedMarginCapitalFlowRequest, QueryCrossIsolatedMarginCapitalFlowResponse, QueryCrossIsolatedMarginCapitalFlowResponseInner, QueryCrossIsolatedMarginCapitalFlowTypeEnum, QueryCrossMarginAccountDetailsRequest, QueryCrossMarginAccountDetailsResponse, QueryCrossMarginAccountDetailsResponseUserAssetsInner, QueryCrossMarginFeeDataRequest, QueryCrossMarginFeeDataResponse, QueryCrossMarginFeeDataResponseInner, QueryCurrentMarginOrderCountUsageIsIsolatedEnum, QueryCurrentMarginOrderCountUsageRequest, QueryCurrentMarginOrderCountUsageResponse, QueryCurrentMarginOrderCountUsageResponseInner, QueryEnabledIsolatedMarginAccountLimitRequest, QueryEnabledIsolatedMarginAccountLimitResponse, QueryIsolatedMarginAccountInfoRequest, QueryIsolatedMarginAccountInfoResponse, QueryIsolatedMarginAccountInfoResponseAssetsInner, QueryIsolatedMarginAccountInfoResponseAssetsInnerBaseAsset, QueryIsolatedMarginAccountInfoResponseAssetsInnerQuoteAsset, QueryIsolatedMarginFeeDataRequest, QueryIsolatedMarginFeeDataResponse, QueryIsolatedMarginFeeDataResponseInner, QueryIsolatedMarginFeeDataResponseInnerDataInner, QueryIsolatedMarginTierDataRequest, QueryIsolatedMarginTierDataResponse, QueryIsolatedMarginTierDataResponseInner, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponse, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInner, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInnerBracketsInner, QueryLiquidationLoanRepayHistoryRequest, QueryLiquidationLoanRepayHistoryResponse, QueryLiquidationLoanRepayHistoryResponseRowsInner, QueryLiquidationLoanRequest, QueryLiquidationLoanResponse, QueryMarginAccountsAllOcoIsIsolatedEnum, QueryMarginAccountsAllOcoRequest, QueryMarginAccountsAllOcoResponse, QueryMarginAccountsAllOcoResponseInner, QueryMarginAccountsAllOcoResponseInnerOrdersInner, QueryMarginAccountsAllOrdersIsIsolatedEnum, QueryMarginAccountsAllOrdersRequest, QueryMarginAccountsAllOrdersResponse, QueryMarginAccountsAllOrdersResponseInner, QueryMarginAccountsOcoIsIsolatedEnum, QueryMarginAccountsOcoRequest, QueryMarginAccountsOcoResponse, QueryMarginAccountsOcoResponseOrdersInner, QueryMarginAccountsOpenOcoIsIsolatedEnum, QueryMarginAccountsOpenOcoRequest, QueryMarginAccountsOpenOcoResponse, QueryMarginAccountsOpenOcoResponseInner, QueryMarginAccountsOpenOcoResponseInnerOrdersInner, QueryMarginAccountsOpenOrdersIsIsolatedEnum, QueryMarginAccountsOpenOrdersRequest, QueryMarginAccountsOpenOrdersResponse, QueryMarginAccountsOpenOrdersResponseInner, QueryMarginAccountsOpenOtootocoOrderListsRequest, QueryMarginAccountsOpenOtootocoOrderListsResponse, QueryMarginAccountsOpenOtootocoOrderListsResponseInner, QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner, QueryMarginAccountsOrderIsIsolatedEnum, QueryMarginAccountsOrderRequest, QueryMarginAccountsOrderResponse, QueryMarginAccountsTradeListIsIsolatedEnum, QueryMarginAccountsTradeListRequest, QueryMarginAccountsTradeListResponse, QueryMarginAccountsTradeListResponseInner, QueryMarginAvailableInventoryRequest, QueryMarginAvailableInventoryResponse, QueryMarginAvailableInventoryTypeEnum, QueryMarginInterestRateHistoryRequest, QueryMarginInterestRateHistoryResponse, QueryMarginInterestRateHistoryResponseInner, QueryMarginPriceindexRequest, QueryMarginPriceindexResponse, QueryMaxBorrowRequest, QueryMaxBorrowResponse, QueryMaxTransferOutAmountRequest, QueryMaxTransferOutAmountResponse, QueryPreventedMatchesIsIsolatedEnum, QueryPreventedMatchesRequest, QueryPreventedMatchesResponse, QueryPreventedMatchesResponseInner, QuerySpecialKeyListRequest, QuerySpecialKeyListResponse, QuerySpecialKeyListResponseInner, QuerySpecialKeyRequest, QuerySpecialKeyResponse, RestAPI, SmallLiabilityExchangeRequest, StartUserDataStreamResponse, TradeApi, TradeApiInterface, TransferApi, TransferApiInterface, UserDataStreamApi, UserDataStreamApiInterface };
11244
11491
  }
11245
11492
  //#endregion
11246
11493
  //#region src/websocket-streams/types/balance-update.d.ts