@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.ts CHANGED
@@ -4444,6 +4444,116 @@ interface QueryMarginAccountsOpenOrdersResponseInner {
4444
4444
  */
4445
4445
  interface QueryMarginAccountsOpenOrdersResponse extends Array<QueryMarginAccountsOpenOrdersResponseInner> {}
4446
4446
  //#endregion
4447
+ //#region src/rest-api/types/query-margin-accounts-open-otootoco-order-lists-response-inner-orders-inner.d.ts
4448
+ /**
4449
+ * Margin REST API
4450
+ *
4451
+ * Access account information, borrow and repay assets, and trade with Binance Margin.
4452
+ *
4453
+ * The version of the OpenAPI document: 1.0.0
4454
+ *
4455
+ *
4456
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4457
+ * https://openapi-generator.tech
4458
+ * Do not edit the class manually.
4459
+ */
4460
+ /**
4461
+ *
4462
+ * @export
4463
+ * @interface QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner
4464
+ */
4465
+ interface QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner {
4466
+ /**
4467
+ * symbol.
4468
+ * @type {string}
4469
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner
4470
+ */
4471
+ symbol?: string;
4472
+ /**
4473
+ * order Id. Returns `null` if the working order is not filled yet.
4474
+ * @type {number | bigint}
4475
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner
4476
+ */
4477
+ orderId?: number | bigint | null;
4478
+ /**
4479
+ * status.
4480
+ * @type {string}
4481
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner
4482
+ */
4483
+ status?: string;
4484
+ /**
4485
+ * client Order Id.
4486
+ * @type {string}
4487
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner
4488
+ */
4489
+ clientOrderId?: string;
4490
+ }
4491
+ //#endregion
4492
+ //#region src/rest-api/types/query-margin-accounts-open-otootoco-order-lists-response-inner.d.ts
4493
+ /**
4494
+ *
4495
+ * @export
4496
+ * @interface QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4497
+ */
4498
+ interface QueryMarginAccountsOpenOtootocoOrderListsResponseInner {
4499
+ /**
4500
+ * order List Id.
4501
+ * @type {number | bigint}
4502
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4503
+ */
4504
+ orderListId?: number | bigint;
4505
+ /**
4506
+ * contingency Type.
4507
+ * @type {string}
4508
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4509
+ */
4510
+ contingencyType?: string;
4511
+ /**
4512
+ * list Status Type.
4513
+ * @type {string}
4514
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4515
+ */
4516
+ listStatusType?: string;
4517
+ /**
4518
+ * list Order Status.
4519
+ * @type {string}
4520
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4521
+ */
4522
+ listOrderStatus?: string;
4523
+ /**
4524
+ * list Client Order Id.
4525
+ * @type {string}
4526
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4527
+ */
4528
+ listClientOrderId?: string;
4529
+ /**
4530
+ * transaction Time.
4531
+ * @type {number | bigint}
4532
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4533
+ */
4534
+ transactionTime?: number | bigint;
4535
+ /**
4536
+ * symbol.
4537
+ * @type {string}
4538
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4539
+ */
4540
+ symbol?: string;
4541
+ /**
4542
+ * orders list.
4543
+ * @type {Array<QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner>}
4544
+ * @memberof QueryMarginAccountsOpenOtootocoOrderListsResponseInner
4545
+ */
4546
+ orders?: Array<QueryMarginAccountsOpenOtootocoOrderListsResponseInnerOrdersInner>;
4547
+ }
4548
+ //#endregion
4549
+ //#region src/rest-api/types/query-margin-accounts-open-otootoco-order-lists-response.d.ts
4550
+ /**
4551
+ *
4552
+ * @export
4553
+ * @interface QueryMarginAccountsOpenOtootocoOrderListsResponse
4554
+ */
4555
+ interface QueryMarginAccountsOpenOtootocoOrderListsResponse extends Array<QueryMarginAccountsOpenOtootocoOrderListsResponseInner> {}
4556
+ //#endregion
4447
4557
  //#region src/rest-api/types/query-margin-accounts-order-response.d.ts
4448
4558
  /**
4449
4559
  * Margin REST API
@@ -5101,7 +5211,7 @@ interface AccountApiInterface {
5101
5211
  * Security Type: USER_DATA
5102
5212
  *
5103
5213
  * Notes:
5104
- * - 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).
5214
+ * - 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.
5105
5215
  *
5106
5216
  * @summary Adjust cross margin max leverage (USER_DATA)
5107
5217
  * @param {AdjustCrossMarginMaxLeverageRequest} requestParameters Request parameters.
@@ -5178,8 +5288,21 @@ interface AccountApiInterface {
5178
5288
  *
5179
5289
  * - The time between startTime and endTime cannot be longer than 7 days.
5180
5290
  *
5181
- * - If fromId is set, the data with id > fromId will be returned.
5182
- * Otherwise the latest data will be returned
5291
+ * - If both startTime and endTime are omitted, the most recent 7 days are
5292
+ * queried (endTime defaults to the current time, and startTime to the
5293
+ * current time minus 7 days).
5294
+ *
5295
+ * - If startTime is provided without endTime, endTime defaults to
5296
+ * startTime plus 7 days.
5297
+ *
5298
+ * - If endTime is provided without startTime, startTime defaults to
5299
+ * endTime minus 7 days.
5300
+ *
5301
+ * - If fromId is set, the data with id > fromId within the queried time
5302
+ * range will be returned. Otherwise the latest data within that range will
5303
+ * be returned. fromId does not extend the time range; to retrieve older
5304
+ * records, move startTime and endTime backwards in windows of up to 7
5305
+ * days.
5183
5306
  *
5184
5307
  * - To query isolated data, Symbol needs to be entered.
5185
5308
  *
@@ -5499,7 +5622,7 @@ declare class AccountApi implements AccountApiInterface {
5499
5622
  * Security Type: USER_DATA
5500
5623
  *
5501
5624
  * Notes:
5502
- * - 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).
5625
+ * - 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.
5503
5626
  *
5504
5627
  * @summary Adjust cross margin max leverage (USER_DATA)
5505
5628
  * @param {AdjustCrossMarginMaxLeverageRequest} requestParameters Request parameters.
@@ -5581,8 +5704,21 @@ declare class AccountApi implements AccountApiInterface {
5581
5704
  *
5582
5705
  * - The time between startTime and endTime cannot be longer than 7 days.
5583
5706
  *
5584
- * - If fromId is set, the data with id > fromId will be returned.
5585
- * Otherwise the latest data will be returned
5707
+ * - If both startTime and endTime are omitted, the most recent 7 days are
5708
+ * queried (endTime defaults to the current time, and startTime to the
5709
+ * current time minus 7 days).
5710
+ *
5711
+ * - If startTime is provided without endTime, endTime defaults to
5712
+ * startTime plus 7 days.
5713
+ *
5714
+ * - If endTime is provided without startTime, startTime defaults to
5715
+ * endTime minus 7 days.
5716
+ *
5717
+ * - If fromId is set, the data with id > fromId within the queried time
5718
+ * range will be returned. Otherwise the latest data within that range will
5719
+ * be returned. fromId does not extend the time range; to retrieve older
5720
+ * records, move startTime and endTime backwards in windows of up to 7
5721
+ * days.
5586
5722
  *
5587
5723
  * - To query isolated data, Symbol needs to be entered.
5588
5724
  *
@@ -5829,7 +5965,7 @@ interface BorrowRepayApiInterface {
5829
5965
  *
5830
5966
  * Notes:
5831
5967
  * - If isolatedSymbol is not sent, crossed margin data will be sent.
5832
- * - `borrowLimit` is also available from [https://www.binance.com/en/margin-fee](https://www.binance.com/en/margin-fee)
5968
+ * - `borrowLimit` is also available from https://www.binance.com/en/margin-fee
5833
5969
  *
5834
5970
  * @summary Query Max Borrow (USER_DATA)
5835
5971
  * @param {QueryMaxBorrowRequest} requestParameters Request parameters.
@@ -6208,7 +6344,7 @@ declare class BorrowRepayApi implements BorrowRepayApiInterface {
6208
6344
  *
6209
6345
  * Notes:
6210
6346
  * - If isolatedSymbol is not sent, crossed margin data will be sent.
6211
- * - `borrowLimit` is also available from [https://www.binance.com/en/margin-fee](https://www.binance.com/en/margin-fee)
6347
+ * - `borrowLimit` is also available from https://www.binance.com/en/margin-fee
6212
6348
  *
6213
6349
  * @summary Query Max Borrow (USER_DATA)
6214
6350
  * @param {QueryMaxBorrowRequest} requestParameters Request parameters.
@@ -6779,12 +6915,12 @@ interface TradeApiInterface {
6779
6915
  /**
6780
6916
  * **Eligibility**
6781
6917
  *
6782
- * - 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.
6918
+ * - Binance Margin offers low-latency trading through a special key, available exclusively to users with VIP level 7 or higher.
6783
6919
  * - If you are VIP level 6 or below, please contact your VIP manager for eligibility criterias.
6784
6920
  * - 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.
6785
6921
  * - 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.
6786
6922
  *
6787
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
6923
+ * For more information, please refer to FAQ.
6788
6924
  *
6789
6925
  **Supported Products:**
6790
6926
  *
@@ -6802,7 +6938,7 @@ interface TradeApiInterface {
6802
6938
  * HMAC
6803
6939
  * RSA
6804
6940
  *
6805
- * 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) .
6941
+ * 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 .
6806
6942
  *
6807
6943
  **How to use the Margin Special Key**
6808
6944
  * - Use the below `sapi` endpoint to create your margin special API Key.
@@ -6810,7 +6946,7 @@ interface TradeApiInterface {
6810
6946
  * - For accessing the Isolated Margin account(s), pass the relevant `symbol` parameter in the API Key creation request.
6811
6947
  * - 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.
6812
6948
  *
6813
- * 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
6949
+ * Read REST API or WebSocket API documentation to learn how to use different API keys
6814
6950
  *
6815
6951
  * You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
6816
6952
  *
@@ -6890,7 +7026,7 @@ interface TradeApiInterface {
6890
7026
  * 2. All pre-execution margin checks (including Open-order-loss calculation) will revert to standard mode.
6891
7027
  * 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.
6892
7028
  *
6893
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
7029
+ * For more information, please refer to FAQ.
6894
7030
  *
6895
7031
  **Preconditions:**
6896
7032
  *
@@ -7089,8 +7225,15 @@ interface TradeApiInterface {
7089
7225
  *
7090
7226
  * Notes:
7091
7227
  * - autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
7092
- * - Depending on the `pendingType` or `workingType`, some optional
7093
- * - 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` | |
7228
+ * - Depending on the `pendingType` or `workingType`, some optional parameters will become mandatory:
7229
+ *
7230
+ * | Type | Additional mandatory parameters | Additional information |
7231
+ * | --- | --- | --- |
7232
+ * | `workingType` = `LIMIT` | `workingTimeInForce` | |
7233
+ * | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | |
7234
+ * | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | |
7235
+ * | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | |
7236
+ * | `pendingTrailingDelta` is provided | `pendingPrice` | |
7094
7237
  *
7095
7238
  * @summary Margin Account New OTO (TRADE)
7096
7239
  * @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
@@ -7102,7 +7245,6 @@ interface TradeApiInterface {
7102
7245
  /**
7103
7246
  * Post a new OTOCO order for margin account:
7104
7247
  *
7105
- *
7106
7248
  * - An OTOCO (One-Triggers-One-Cancels-the-Other) is an order list
7107
7249
  * comprised of 3 orders.
7108
7250
  *
@@ -7112,7 +7254,7 @@ interface TradeApiInterface {
7112
7254
  * - OTOCO has 2 pending orders (pending above and pending below), forming
7113
7255
  * an OCO pair. The pending orders are only placed on the order book when
7114
7256
  * the working order gets **fully filled**.
7115
- * - 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).
7257
+ * - The rules of the pending above and pending below follow the same rules as the Order List OCO.
7116
7258
  * - OTOCOs add **3 orders** against the unfilled order count,
7117
7259
  * `EXCHANGE_MAX_NUM_ORDERS` filter, and `MAX_NUM_ORDERS` filter.
7118
7260
  *
@@ -7284,6 +7426,26 @@ interface TradeApiInterface {
7284
7426
  * @memberof TradeApiInterface
7285
7427
  */
7286
7428
  queryMarginAccountsOpenOrders(requestParameters?: QueryMarginAccountsOpenOrdersRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOrdersResponse>>;
7429
+ /**
7430
+ * Retrieves all open OTO / OTOCO order lists of the margin account.
7431
+ *
7432
+ *
7433
+ * Notes:
7434
+ * - 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`).
7435
+ * - For OTO, the `orders` array contains 2 orders: the working order and the pending order.
7436
+ * - For OTOCO, the `orders` array contains 3 orders: the working order and the two pending orders (pending above / pending below).
7437
+ *
7438
+ * Weight(UID): 10
7439
+ *
7440
+ * Security Type: USER_DATA
7441
+ *
7442
+ * @summary Query Margin Account\'s Open OTO/OTOCO Order Lists (USER_DATA)
7443
+ * @param {QueryMarginAccountsOpenOtootocoOrderListsRequest} requestParameters Request parameters.
7444
+ *
7445
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
7446
+ * @memberof TradeApiInterface
7447
+ */
7448
+ queryMarginAccountsOpenOtootocoOrderLists(requestParameters?: QueryMarginAccountsOpenOtootocoOrderListsRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>;
7287
7449
  /**
7288
7450
  * Query Margin Account's Order
7289
7451
  *
@@ -8562,6 +8724,24 @@ interface QueryMarginAccountsOpenOrdersRequest {
8562
8724
  */
8563
8725
  readonly recvWindow?: number | bigint;
8564
8726
  }
8727
+ /**
8728
+ * Request parameters for queryMarginAccountsOpenOtootocoOrderLists operation in TradeApi.
8729
+ * @interface QueryMarginAccountsOpenOtootocoOrderListsRequest
8730
+ */
8731
+ interface QueryMarginAccountsOpenOtootocoOrderListsRequest {
8732
+ /**
8733
+ *
8734
+ * @type {string}
8735
+ * @memberof TradeApiQueryMarginAccountsOpenOtootocoOrderLists
8736
+ */
8737
+ readonly symbol?: string;
8738
+ /**
8739
+ *
8740
+ * @type {number | bigint}
8741
+ * @memberof TradeApiQueryMarginAccountsOpenOtootocoOrderLists
8742
+ */
8743
+ readonly recvWindow?: number | bigint;
8744
+ }
8565
8745
  /**
8566
8746
  * Request parameters for queryMarginAccountsOrder operation in TradeApi.
8567
8747
  * @interface QueryMarginAccountsOrderRequest
@@ -8759,12 +8939,12 @@ declare class TradeApi implements TradeApiInterface {
8759
8939
  /**
8760
8940
  * **Eligibility**
8761
8941
  *
8762
- * - 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.
8942
+ * - Binance Margin offers low-latency trading through a special key, available exclusively to users with VIP level 7 or higher.
8763
8943
  * - If you are VIP level 6 or below, please contact your VIP manager for eligibility criterias.
8764
8944
  * - 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.
8765
8945
  * - 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.
8766
8946
  *
8767
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
8947
+ * For more information, please refer to FAQ.
8768
8948
  *
8769
8949
  **Supported Products:**
8770
8950
  *
@@ -8782,7 +8962,7 @@ declare class TradeApi implements TradeApiInterface {
8782
8962
  * HMAC
8783
8963
  * RSA
8784
8964
  *
8785
- * 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) .
8965
+ * 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 .
8786
8966
  *
8787
8967
  **How to use the Margin Special Key**
8788
8968
  * - Use the below `sapi` endpoint to create your margin special API Key.
@@ -8790,7 +8970,7 @@ declare class TradeApi implements TradeApiInterface {
8790
8970
  * - For accessing the Isolated Margin account(s), pass the relevant `symbol` parameter in the API Key creation request.
8791
8971
  * - 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.
8792
8972
  *
8793
- * 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
8973
+ * Read REST API or WebSocket API documentation to learn how to use different API keys
8794
8974
  *
8795
8975
  * You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
8796
8976
  *
@@ -8873,7 +9053,7 @@ declare class TradeApi implements TradeApiInterface {
8873
9053
  * 2. All pre-execution margin checks (including Open-order-loss calculation) will revert to standard mode.
8874
9054
  * 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.
8875
9055
  *
8876
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
9056
+ * For more information, please refer to FAQ.
8877
9057
  *
8878
9058
  **Preconditions:**
8879
9059
  *
@@ -9082,8 +9262,15 @@ declare class TradeApi implements TradeApiInterface {
9082
9262
  *
9083
9263
  * Notes:
9084
9264
  * - autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
9085
- * - Depending on the `pendingType` or `workingType`, some optional
9086
- * - 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` | |
9265
+ * - Depending on the `pendingType` or `workingType`, some optional parameters will become mandatory:
9266
+ *
9267
+ * | Type | Additional mandatory parameters | Additional information |
9268
+ * | --- | --- | --- |
9269
+ * | `workingType` = `LIMIT` | `workingTimeInForce` | |
9270
+ * | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | |
9271
+ * | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | |
9272
+ * | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | |
9273
+ * | `pendingTrailingDelta` is provided | `pendingPrice` | |
9087
9274
  *
9088
9275
  * @summary Margin Account New OTO (TRADE)
9089
9276
  * @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
@@ -9096,7 +9283,6 @@ declare class TradeApi implements TradeApiInterface {
9096
9283
  /**
9097
9284
  * Post a new OTOCO order for margin account:
9098
9285
  *
9099
- *
9100
9286
  * - An OTOCO (One-Triggers-One-Cancels-the-Other) is an order list
9101
9287
  * comprised of 3 orders.
9102
9288
  *
@@ -9106,7 +9292,7 @@ declare class TradeApi implements TradeApiInterface {
9106
9292
  * - OTOCO has 2 pending orders (pending above and pending below), forming
9107
9293
  * an OCO pair. The pending orders are only placed on the order book when
9108
9294
  * the working order gets **fully filled**.
9109
- * - 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).
9295
+ * - The rules of the pending above and pending below follow the same rules as the Order List OCO.
9110
9296
  * - OTOCOs add **3 orders** against the unfilled order count,
9111
9297
  * `EXCHANGE_MAX_NUM_ORDERS` filter, and `MAX_NUM_ORDERS` filter.
9112
9298
  *
@@ -9288,6 +9474,27 @@ declare class TradeApi implements TradeApiInterface {
9288
9474
  * @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}
9289
9475
  */
9290
9476
  queryMarginAccountsOpenOrders(requestParameters?: QueryMarginAccountsOpenOrdersRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOrdersResponse>>;
9477
+ /**
9478
+ * Retrieves all open OTO / OTOCO order lists of the margin account.
9479
+ *
9480
+ *
9481
+ * Notes:
9482
+ * - 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`).
9483
+ * - For OTO, the `orders` array contains 2 orders: the working order and the pending order.
9484
+ * - For OTOCO, the `orders` array contains 3 orders: the working order and the two pending orders (pending above / pending below).
9485
+ *
9486
+ * Weight(UID): 10
9487
+ *
9488
+ * Security Type: USER_DATA
9489
+ *
9490
+ * @summary Query Margin Account\'s Open OTO/OTOCO Order Lists (USER_DATA)
9491
+ * @param {QueryMarginAccountsOpenOtootocoOrderListsRequest} requestParameters Request parameters.
9492
+ * @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>}
9493
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
9494
+ * @memberof TradeApi
9495
+ * @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}
9496
+ */
9497
+ queryMarginAccountsOpenOtootocoOrderLists(requestParameters?: QueryMarginAccountsOpenOtootocoOrderListsRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>;
9291
9498
  /**
9292
9499
  * Query Margin Account's Order
9293
9500
  *
@@ -9974,7 +10181,7 @@ declare class RestAPI {
9974
10181
  * Security Type: USER_DATA
9975
10182
  *
9976
10183
  * Notes:
9977
- * - 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).
10184
+ * - 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.
9978
10185
  *
9979
10186
  * @summary Adjust cross margin max leverage (USER_DATA)
9980
10187
  * @param {AdjustCrossMarginMaxLeverageRequest} requestParameters Request parameters.
@@ -10056,8 +10263,21 @@ declare class RestAPI {
10056
10263
  *
10057
10264
  * - The time between startTime and endTime cannot be longer than 7 days.
10058
10265
  *
10059
- * - If fromId is set, the data with id > fromId will be returned.
10060
- * Otherwise the latest data will be returned
10266
+ * - If both startTime and endTime are omitted, the most recent 7 days are
10267
+ * queried (endTime defaults to the current time, and startTime to the
10268
+ * current time minus 7 days).
10269
+ *
10270
+ * - If startTime is provided without endTime, endTime defaults to
10271
+ * startTime plus 7 days.
10272
+ *
10273
+ * - If endTime is provided without startTime, startTime defaults to
10274
+ * endTime minus 7 days.
10275
+ *
10276
+ * - If fromId is set, the data with id > fromId within the queried time
10277
+ * range will be returned. Otherwise the latest data within that range will
10278
+ * be returned. fromId does not extend the time range; to retrieve older
10279
+ * records, move startTime and endTime backwards in windows of up to 7
10280
+ * days.
10061
10281
  *
10062
10282
  * - To query isolated data, Symbol needs to be entered.
10063
10283
  *
@@ -10283,7 +10503,7 @@ declare class RestAPI {
10283
10503
  *
10284
10504
  * Notes:
10285
10505
  * - If isolatedSymbol is not sent, crossed margin data will be sent.
10286
- * - `borrowLimit` is also available from [https://www.binance.com/en/margin-fee](https://www.binance.com/en/margin-fee)
10506
+ * - `borrowLimit` is also available from https://www.binance.com/en/margin-fee
10287
10507
  *
10288
10508
  * @summary Query Max Borrow (USER_DATA)
10289
10509
  * @param {QueryMaxBorrowRequest} requestParameters Request parameters.
@@ -10502,12 +10722,12 @@ declare class RestAPI {
10502
10722
  /**
10503
10723
  * **Eligibility**
10504
10724
  *
10505
- * - 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.
10725
+ * - Binance Margin offers low-latency trading through a special key, available exclusively to users with VIP level 7 or higher.
10506
10726
  * - If you are VIP level 6 or below, please contact your VIP manager for eligibility criterias.
10507
10727
  * - 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.
10508
10728
  * - 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.
10509
10729
  *
10510
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
10730
+ * For more information, please refer to FAQ.
10511
10731
  *
10512
10732
  **Supported Products:**
10513
10733
  *
@@ -10525,7 +10745,7 @@ declare class RestAPI {
10525
10745
  * HMAC
10526
10746
  * RSA
10527
10747
  *
10528
- * 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) .
10748
+ * 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 .
10529
10749
  *
10530
10750
  **How to use the Margin Special Key**
10531
10751
  * - Use the below `sapi` endpoint to create your margin special API Key.
@@ -10533,7 +10753,7 @@ declare class RestAPI {
10533
10753
  * - For accessing the Isolated Margin account(s), pass the relevant `symbol` parameter in the API Key creation request.
10534
10754
  * - 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.
10535
10755
  *
10536
- * 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
10756
+ * Read REST API or WebSocket API documentation to learn how to use different API keys
10537
10757
  *
10538
10758
  * You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
10539
10759
  *
@@ -10616,7 +10836,7 @@ declare class RestAPI {
10616
10836
  * 2. All pre-execution margin checks (including Open-order-loss calculation) will revert to standard mode.
10617
10837
  * 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.
10618
10838
  *
10619
- * For more information, please refer to [FAQ](https://www.binance.com/en/support/faq/detail/3208663e900d4d2e9fec4140e1832f4e).
10839
+ * For more information, please refer to FAQ.
10620
10840
  *
10621
10841
  **Preconditions:**
10622
10842
  *
@@ -10825,8 +11045,15 @@ declare class RestAPI {
10825
11045
  *
10826
11046
  * Notes:
10827
11047
  * - autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
10828
- * - Depending on the `pendingType` or `workingType`, some optional
10829
- * - 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` | |
11048
+ * - Depending on the `pendingType` or `workingType`, some optional parameters will become mandatory:
11049
+ *
11050
+ * | Type | Additional mandatory parameters | Additional information |
11051
+ * | --- | --- | --- |
11052
+ * | `workingType` = `LIMIT` | `workingTimeInForce` | |
11053
+ * | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | |
11054
+ * | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | |
11055
+ * | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | |
11056
+ * | `pendingTrailingDelta` is provided | `pendingPrice` | |
10830
11057
  *
10831
11058
  * @summary Margin Account New OTO (TRADE)
10832
11059
  * @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
@@ -10839,7 +11066,6 @@ declare class RestAPI {
10839
11066
  /**
10840
11067
  * Post a new OTOCO order for margin account:
10841
11068
  *
10842
- *
10843
11069
  * - An OTOCO (One-Triggers-One-Cancels-the-Other) is an order list
10844
11070
  * comprised of 3 orders.
10845
11071
  *
@@ -10849,7 +11075,7 @@ declare class RestAPI {
10849
11075
  * - OTOCO has 2 pending orders (pending above and pending below), forming
10850
11076
  * an OCO pair. The pending orders are only placed on the order book when
10851
11077
  * the working order gets **fully filled**.
10852
- * - 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).
11078
+ * - The rules of the pending above and pending below follow the same rules as the Order List OCO.
10853
11079
  * - OTOCOs add **3 orders** against the unfilled order count,
10854
11080
  * `EXCHANGE_MAX_NUM_ORDERS` filter, and `MAX_NUM_ORDERS` filter.
10855
11081
  *
@@ -11031,6 +11257,27 @@ declare class RestAPI {
11031
11257
  * @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}
11032
11258
  */
11033
11259
  queryMarginAccountsOpenOrders(requestParameters?: QueryMarginAccountsOpenOrdersRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOrdersResponse>>;
11260
+ /**
11261
+ * Retrieves all open OTO / OTOCO order lists of the margin account.
11262
+ *
11263
+ *
11264
+ * Notes:
11265
+ * - 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`).
11266
+ * - For OTO, the `orders` array contains 2 orders: the working order and the pending order.
11267
+ * - For OTOCO, the `orders` array contains 3 orders: the working order and the two pending orders (pending above / pending below).
11268
+ *
11269
+ * Weight(UID): 10
11270
+ *
11271
+ * Security Type: USER_DATA
11272
+ *
11273
+ * @summary Query Margin Account\'s Open OTO/OTOCO Order Lists (USER_DATA)
11274
+ * @param {QueryMarginAccountsOpenOtootocoOrderListsRequest} requestParameters Request parameters.
11275
+ *
11276
+ * @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>}
11277
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
11278
+ * @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}
11279
+ */
11280
+ queryMarginAccountsOpenOtootocoOrderLists(requestParameters?: QueryMarginAccountsOpenOtootocoOrderListsRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOtootocoOrderListsResponse>>;
11034
11281
  /**
11035
11282
  * Query Margin Account's Order
11036
11283
  *
@@ -11242,7 +11489,7 @@ declare class RestAPI {
11242
11489
  startUserDataStream(): Promise<RestApiResponse<StartUserDataStreamResponse>>;
11243
11490
  }
11244
11491
  declare namespace index_d_exports {
11245
- 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 };
11492
+ 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 };
11246
11493
  }
11247
11494
  //#endregion
11248
11495
  //#region src/websocket-streams/types/balance-update.d.ts