@binance/dual-investment 4.1.17 → 5.0.1

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/README.md CHANGED
@@ -176,6 +176,19 @@ Please ensure that all tests pass if you're making a direct contribution. Submit
176
176
 
177
177
  Thank you for your contributions!
178
178
 
179
+ ## Disclaimer
180
+
181
+ This SDK is provided by Binance on an "as is" and "as available" basis for use at your own risk. Binance makes no representations or warranties of any kind, whether express or implied, as to the operation of the SDK, its accuracy, reliability, completeness, or fitness for any particular purpose.
182
+
183
+ To the fullest extent permitted by law, Binance shall not be liable for any losses, damages, or expenses of any kind arising from or in connection with your use of, or inability to use, this SDK, including but not limited to any financial losses resulting from errors, bugs, interruptions, or inaccuracies in the SDK.
184
+
185
+ Your use of this SDK to access the Binance Platform is subject to the Binance API Key Terms and the Binance Terms of Use, which shall prevail in the event of any conflict with this disclaimer. You are solely responsible for any orders or transactions executed through the Binance Platform using this SDK.
186
+
187
+ This SDK is not intended to constitute investment advice or a recommendation to buy, sell, or hold any digital asset. You should independently evaluate and verify all information before acting.
188
+
189
+ - [Binance Terms of Use](https://www.binance.com/en/terms)
190
+ - [Binance API Key Terms](https://www.binance.com/en/about-legal/terms-binance-api)
191
+
179
192
  ## Licence
180
193
 
181
194
  This project is licensed under the MIT License. See the [LICENCE](./LICENCE) file for details.
package/dist/index.d.mts CHANGED
@@ -3,9 +3,9 @@ import { BadRequestError, ConfigurationRestAPI, ConnectorClientError, DUAL_INVES
3
3
  //#region src/rest-api/types/change-auto-compound-status-response.d.ts
4
4
 
5
5
  /**
6
- * Binance Dual Investment REST API
6
+ * Dual Investment REST API
7
7
  *
8
- * OpenAPI Specification for the Binance Dual Investment REST API
8
+ * Query products, request quotes, and subscribe to Advanced Earn Dual Investment strategies.
9
9
  *
10
10
  * The version of the OpenAPI document: 1.0.0
11
11
  *
@@ -27,7 +27,7 @@ interface ChangeAutoCompoundStatusResponse {
27
27
  */
28
28
  positionId?: string;
29
29
  /**
30
- *
30
+ * Auto-compound plan after the update
31
31
  * @type {string}
32
32
  * @memberof ChangeAutoCompoundStatusResponse
33
33
  */
@@ -36,9 +36,9 @@ interface ChangeAutoCompoundStatusResponse {
36
36
  //#endregion
37
37
  //#region src/rest-api/types/check-dual-investment-accounts-response.d.ts
38
38
  /**
39
- * Binance Dual Investment REST API
39
+ * Dual Investment REST API
40
40
  *
41
- * OpenAPI Specification for the Binance Dual Investment REST API
41
+ * Query products, request quotes, and subscribe to Advanced Earn Dual Investment strategies.
42
42
  *
43
43
  * The version of the OpenAPI document: 1.0.0
44
44
  *
@@ -54,13 +54,13 @@ interface ChangeAutoCompoundStatusResponse {
54
54
  */
55
55
  interface CheckDualInvestmentAccountsResponse {
56
56
  /**
57
- *
57
+ * Total BTC amount in Dual Investment
58
58
  * @type {string}
59
59
  * @memberof CheckDualInvestmentAccountsResponse
60
60
  */
61
61
  totalAmountInBTC?: string;
62
62
  /**
63
- *
63
+ * Total USDT equivalent amount in Dual Investment
64
64
  * @type {string}
65
65
  * @memberof CheckDualInvestmentAccountsResponse
66
66
  */
@@ -69,9 +69,9 @@ interface CheckDualInvestmentAccountsResponse {
69
69
  //#endregion
70
70
  //#region src/rest-api/types/get-dual-investment-positions-response-list-inner.d.ts
71
71
  /**
72
- * Binance Dual Investment REST API
72
+ * Dual Investment REST API
73
73
  *
74
- * OpenAPI Specification for the Binance Dual Investment REST API
74
+ * Query products, request quotes, and subscribe to Advanced Earn Dual Investment strategies.
75
75
  *
76
76
  * The version of the OpenAPI document: 1.0.0
77
77
  *
@@ -87,7 +87,7 @@ interface CheckDualInvestmentAccountsResponse {
87
87
  */
88
88
  interface GetDualInvestmentPositionsResponseListInner {
89
89
  /**
90
- *
90
+ * positionId
91
91
  * @type {string}
92
92
  * @memberof GetDualInvestmentPositionsResponseListInner
93
93
  */
@@ -129,7 +129,7 @@ interface GetDualInvestmentPositionsResponseListInner {
129
129
  */
130
130
  settleDate?: number | bigint;
131
131
  /**
132
- *
132
+ * Purchase status. Possible values include PENDING, PURCHASE_SUCCESS, SETTLED, PURCHASE_FAIL, REFUNDING, REFUND_SUCCESS, and SETTLING.
133
133
  * @type {string}
134
134
  * @memberof GetDualInvestmentPositionsResponseListInner
135
135
  */
@@ -159,11 +159,17 @@ interface GetDualInvestmentPositionsResponseListInner {
159
159
  */
160
160
  optionType?: string;
161
161
  /**
162
- *
162
+ * NULL, STANDARD, ADVANCED
163
163
  * @type {string}
164
164
  * @memberof GetDualInvestmentPositionsResponseListInner
165
165
  */
166
166
  autoCompoundPlan?: string;
167
+ /**
168
+ *
169
+ * @type {number | bigint}
170
+ * @memberof GetDualInvestmentPositionsResponseListInner
171
+ */
172
+ subscriptionTime?: number | bigint;
167
173
  }
168
174
  //#endregion
169
175
  //#region src/rest-api/types/get-dual-investment-positions-response.d.ts
@@ -189,9 +195,9 @@ interface GetDualInvestmentPositionsResponse {
189
195
  //#endregion
190
196
  //#region src/rest-api/types/get-dual-investment-product-list-response-list-inner.d.ts
191
197
  /**
192
- * Binance Dual Investment REST API
198
+ * Dual Investment REST API
193
199
  *
194
- * OpenAPI Specification for the Binance Dual Investment REST API
200
+ * Query products, request quotes, and subscribe to Advanced Earn Dual Investment strategies.
195
201
  *
196
202
  * The version of the OpenAPI document: 1.0.0
197
203
  *
@@ -255,7 +261,7 @@ interface GetDualInvestmentProductListResponseListInner {
255
261
  */
256
262
  purchaseEndTime?: number | bigint;
257
263
  /**
258
- *
264
+ * Whether the product can be subscribed to currently
259
265
  * @type {boolean}
260
266
  * @memberof GetDualInvestmentProductListResponseListInner
261
267
  */
@@ -297,13 +303,13 @@ interface GetDualInvestmentProductListResponseListInner {
297
303
  */
298
304
  optionType?: string;
299
305
  /**
300
- *
306
+ * Whether auto-compound is enabled for this product
301
307
  * @type {boolean}
302
308
  * @memberof GetDualInvestmentProductListResponseListInner
303
309
  */
304
310
  isAutoCompoundEnable?: boolean;
305
311
  /**
306
- *
312
+ * Available auto-compound plans for this product
307
313
  * @type {Array<string>}
308
314
  * @memberof GetDualInvestmentProductListResponseListInner
309
315
  */
@@ -333,9 +339,9 @@ interface GetDualInvestmentProductListResponse {
333
339
  //#endregion
334
340
  //#region src/rest-api/types/subscribe-dual-investment-products-response.d.ts
335
341
  /**
336
- * Binance Dual Investment REST API
342
+ * Dual Investment REST API
337
343
  *
338
- * OpenAPI Specification for the Binance Dual Investment REST API
344
+ * Query products, request quotes, and subscribe to Advanced Earn Dual Investment strategies.
339
345
  *
340
346
  * The version of the OpenAPI document: 1.0.0
341
347
  *
@@ -381,7 +387,7 @@ interface SubscribeDualInvestmentProductsResponse {
381
387
  */
382
388
  duration?: number | bigint;
383
389
  /**
384
- *
390
+ * STANDARD, ADVANCED, this field won\'t display when autocompound is set to None
385
391
  * @type {string}
386
392
  * @memberof SubscribeDualInvestmentProductsResponse
387
393
  */
@@ -439,7 +445,7 @@ interface MarketDataApiInterface {
439
445
  /**
440
446
  * Get Dual Investment product list
441
447
  *
442
- * Weight: 1(IP)
448
+ * Weight(IP): 1
443
449
  *
444
450
  * @summary Get Dual Investment product list
445
451
  * @param {GetDualInvestmentProductListRequest} requestParameters Request parameters.
@@ -456,36 +462,40 @@ interface MarketDataApiInterface {
456
462
  interface GetDualInvestmentProductListRequest {
457
463
  /**
458
464
  * Input CALL or PUT
459
- * @type {string}
465
+ * @type {'CALL' | 'PUT'}
460
466
  * @memberof MarketDataApiGetDualInvestmentProductList
461
467
  */
462
- readonly optionType: string;
468
+ readonly optionType: GetDualInvestmentProductListOptionTypeEnum;
463
469
  /**
464
- * Target exercised asset, e.g.: if you subscribe to a high sell product (call option), you should input: `optionType`:CALL,`exercisedCoin`:USDT,`investCoin`:BNB; if you subscribe to a low buy product (put option), you should input: `optionType`:PUT,`exercisedCoin`:BNB,`investCoin`:USDT
470
+ * Target exercised asset, e.g.: if you subscribe to a high sell product (call option), you should input:
471
+ * `optionType: CALL`, `exercisedCoin: USDT`, `investCoin: BNB`; if you subscribe to a low buy product (put
472
+ * option), you should input: `optionType: PUT`, `exercisedCoin: BNB`, `investCoin: USDT`
465
473
  * @type {string}
466
474
  * @memberof MarketDataApiGetDualInvestmentProductList
467
475
  */
468
476
  readonly exercisedCoin: string;
469
477
  /**
470
- * Asset used for subscribing, e.g.: if you subscribe to a high sell product (call option), you should input: `optionType`:CALL,`exercisedCoin`:USDT,`investCoin`:BNB; if you subscribe to a low buy product (put option), you should input: `optionType`:PUT,`exercisedCoin`:BNB,`investCoin`:USDT
478
+ * Asset used for subscribing, e.g.: if you subscribe to a high sell product (call option), you should input:
479
+ * `optionType: CALL`, `exercisedCoin: USDT`, `investCoin: BNB`; if you subscribe to a low buy product (put
480
+ * option), you should input: `optionType: PUT`, `exercisedCoin: BNB`, `investCoin: USDT`
471
481
  * @type {string}
472
482
  * @memberof MarketDataApiGetDualInvestmentProductList
473
483
  */
474
484
  readonly investCoin: string;
475
485
  /**
476
- * Default: 10, Maximum: 100
486
+ * Number of records per page
477
487
  * @type {number | bigint}
478
488
  * @memberof MarketDataApiGetDualInvestmentProductList
479
489
  */
480
490
  readonly pageSize?: number | bigint;
481
491
  /**
482
- * Default: 1
492
+ * Page index
483
493
  * @type {number | bigint}
484
494
  * @memberof MarketDataApiGetDualInvestmentProductList
485
495
  */
486
496
  readonly pageIndex?: number | bigint;
487
497
  /**
488
- * The value cannot be greater than 60000
498
+ * Request validity window in milliseconds
489
499
  * @type {number | bigint}
490
500
  * @memberof MarketDataApiGetDualInvestmentProductList
491
501
  */
@@ -502,17 +512,21 @@ declare class MarketDataApi implements MarketDataApiInterface {
502
512
  /**
503
513
  * Get Dual Investment product list
504
514
  *
505
- * Weight: 1(IP)
515
+ * Weight(IP): 1
506
516
  *
507
517
  * @summary Get Dual Investment product list
508
518
  * @param {GetDualInvestmentProductListRequest} requestParameters Request parameters.
509
519
  * @returns {Promise<RestApiResponse<GetDualInvestmentProductListResponse>>}
510
520
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
511
521
  * @memberof MarketDataApi
512
- * @see {@link https://developers.binance.com/docs/advanced_earn/dual-investment/market-data/Get-Dual-Investment-product-list Binance API Documentation}
522
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-dual-investment/api/rest-api/market-data#get-dual-investment-product-list Binance API Documentation}
513
523
  */
514
524
  getDualInvestmentProductList(requestParameters: GetDualInvestmentProductListRequest): Promise<RestApiResponse<GetDualInvestmentProductListResponse>>;
515
525
  }
526
+ declare enum GetDualInvestmentProductListOptionTypeEnum {
527
+ CALL = "CALL",
528
+ PUT = "PUT",
529
+ }
516
530
  //#endregion
517
531
  //#region src/rest-api/modules/trade-api.d.ts
518
532
  /**
@@ -523,9 +537,14 @@ interface TradeApiInterface {
523
537
  /**
524
538
  * Change Auto-Compound status
525
539
  *
526
- * Weight: 1(IP)
540
+ * Weight(IP): 1
541
+ *
542
+ * Security Type: USER_DATA
527
543
  *
528
- * @summary Change Auto-Compound status(USER_DATA)
544
+ * Notes:
545
+ * - 15:31 ~ 16:00 UTC+8: This function is disabled.
546
+ *
547
+ * @summary Change Auto-Compound status (USER_DATA)
529
548
  * @param {ChangeAutoCompoundStatusRequest} requestParameters Request parameters.
530
549
  *
531
550
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
@@ -535,9 +554,11 @@ interface TradeApiInterface {
535
554
  /**
536
555
  * Check Dual Investment accounts
537
556
  *
538
- * Weight: 1(IP)
557
+ * Weight(IP): 1
558
+ *
559
+ * Security Type: USER_DATA
539
560
  *
540
- * @summary Check Dual Investment accounts(USER_DATA)
561
+ * @summary Check Dual Investment accounts (USER_DATA)
541
562
  * @param {CheckDualInvestmentAccountsRequest} requestParameters Request parameters.
542
563
  *
543
564
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
@@ -547,9 +568,11 @@ interface TradeApiInterface {
547
568
  /**
548
569
  * Get Dual Investment positions (batch)
549
570
  *
550
- * Weight: 1(IP)
571
+ * Weight(IP): 1
551
572
  *
552
- * @summary Get Dual Investment positions(USER_DATA)
573
+ * Security Type: USER_DATA
574
+ *
575
+ * @summary Get Dual Investment positions (USER_DATA)
553
576
  * @param {GetDualInvestmentPositionsRequest} requestParameters Request parameters.
554
577
  *
555
578
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
@@ -559,12 +582,16 @@ interface TradeApiInterface {
559
582
  /**
560
583
  * Subscribe Dual Investment products
561
584
  *
562
- * Products are not available. // this means APR changes to lower value, or orders are not unavailable.
563
- * Failed. This means System or network errors.
585
+ * Weight(IP): 1
586
+ *
587
+ * Security Type: USER_DATA
564
588
  *
565
- * Weight: 1(IP)
589
+ * Notes:
590
+ * - Failed messages:
591
+ * - Products are not available. This means APR changed to a lower value, or the order is unavailable.
592
+ * - Failed. This means system or network errors.
566
593
  *
567
- * @summary Subscribe Dual Investment products(USER_DATA)
594
+ * @summary Subscribe Dual Investment products (USER_DATA)
568
595
  * @param {SubscribeDualInvestmentProductsRequest} requestParameters Request parameters.
569
596
  *
570
597
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
@@ -584,13 +611,13 @@ interface ChangeAutoCompoundStatusRequest {
584
611
  */
585
612
  readonly positionId: string;
586
613
  /**
587
- *
588
- * @type {string}
614
+ * `NONE`: switch off the plan, `STANDARD`: standard plan, `ADVANCED`: advanced plan
615
+ * @type {'NONE' | 'STANDARD' | 'ADVANCED'}
589
616
  * @memberof TradeApiChangeAutoCompoundStatus
590
617
  */
591
- readonly autoCompoundPlan?: string;
618
+ readonly autoCompoundPlan: ChangeAutoCompoundStatusAutoCompoundPlanEnum;
592
619
  /**
593
- * The value cannot be greater than 60000
620
+ * Request validity window in milliseconds
594
621
  * @type {number | bigint}
595
622
  * @memberof TradeApiChangeAutoCompoundStatus
596
623
  */
@@ -602,7 +629,7 @@ interface ChangeAutoCompoundStatusRequest {
602
629
  */
603
630
  interface CheckDualInvestmentAccountsRequest {
604
631
  /**
605
- * The value cannot be greater than 60000
632
+ * Request validity window in milliseconds
606
633
  * @type {number | bigint}
607
634
  * @memberof TradeApiCheckDualInvestmentAccounts
608
635
  */
@@ -614,25 +641,28 @@ interface CheckDualInvestmentAccountsRequest {
614
641
  */
615
642
  interface GetDualInvestmentPositionsRequest {
616
643
  /**
617
- * `PENDING`:Products are purchasing, will give results later;`PURCHASE_SUCCESS`:purchase successfully;`SETTLED`: Products are finish settling;`PURCHASE_FAIL`:fail to purchase;`REFUNDING`:refund ongoing;`REFUND_SUCCESS`:refund to spot account successfully; `SETTLING`:Products are settling. If don't fill this field, will response all the position status.
618
- * @type {string}
644
+ * `PENDING`: Products are purchasing, will give results later; `PURCHASE_SUCCESS`: purchase successfully;
645
+ * `SETTLED`: Products are finish settling; `PURCHASE_FAIL`: fail to purchase; `REFUNDING`: refund ongoing;
646
+ * `REFUND_SUCCESS`: refund to spot account successfully; `SETTLING`: Products are settling. If don't fill this
647
+ * field, will response all the position status.
648
+ * @type {'PENDING' | 'PURCHASE_SUCCESS' | 'SETTLED' | 'PURCHASE_FAIL' | 'REFUNDING' | 'REFUND_SUCCESS' | 'SETTLING'}
619
649
  * @memberof TradeApiGetDualInvestmentPositions
620
650
  */
621
- readonly status?: string;
651
+ readonly status?: GetDualInvestmentPositionsStatusEnum;
622
652
  /**
623
- * Default: 10, Maximum: 100
653
+ * Number of records per page
624
654
  * @type {number | bigint}
625
655
  * @memberof TradeApiGetDualInvestmentPositions
626
656
  */
627
657
  readonly pageSize?: number | bigint;
628
658
  /**
629
- * Default: 1
659
+ * Page index
630
660
  * @type {number | bigint}
631
661
  * @memberof TradeApiGetDualInvestmentPositions
632
662
  */
633
663
  readonly pageIndex?: number | bigint;
634
664
  /**
635
- * The value cannot be greater than 60000
665
+ * Request validity window in milliseconds
636
666
  * @type {number | bigint}
637
667
  * @memberof TradeApiGetDualInvestmentPositions
638
668
  */
@@ -662,13 +692,13 @@ interface SubscribeDualInvestmentProductsRequest {
662
692
  */
663
693
  readonly depositAmount: number;
664
694
  /**
665
- * `NONE`: switch off the plan, `STANDARD`:standard plan,`ADVANCED`:advanced plan
666
- * @type {string}
695
+ * `NONE`: switch off the plan, `STANDARD`: standard plan, `ADVANCED`: advanced plan
696
+ * @type {'NONE' | 'STANDARD' | 'ADVANCED'}
667
697
  * @memberof TradeApiSubscribeDualInvestmentProducts
668
698
  */
669
- readonly autoCompoundPlan: string;
699
+ readonly autoCompoundPlan: SubscribeDualInvestmentProductsAutoCompoundPlanEnum;
670
700
  /**
671
- * The value cannot be greater than 60000
701
+ * Request validity window in milliseconds
672
702
  * @type {number | bigint}
673
703
  * @memberof TradeApiSubscribeDualInvestmentProducts
674
704
  */
@@ -685,59 +715,91 @@ declare class TradeApi implements TradeApiInterface {
685
715
  /**
686
716
  * Change Auto-Compound status
687
717
  *
688
- * Weight: 1(IP)
718
+ * Weight(IP): 1
719
+ *
720
+ * Security Type: USER_DATA
721
+ *
722
+ * Notes:
723
+ * - 15:31 ~ 16:00 UTC+8: This function is disabled.
689
724
  *
690
- * @summary Change Auto-Compound status(USER_DATA)
725
+ * @summary Change Auto-Compound status (USER_DATA)
691
726
  * @param {ChangeAutoCompoundStatusRequest} requestParameters Request parameters.
692
727
  * @returns {Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>}
693
728
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
694
729
  * @memberof TradeApi
695
- * @see {@link https://developers.binance.com/docs/advanced_earn/dual-investment/trade/Change-Auto-Compound-status Binance API Documentation}
730
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-dual-investment/api/rest-api/trade#change-auto-compound-status Binance API Documentation}
696
731
  */
697
732
  changeAutoCompoundStatus(requestParameters: ChangeAutoCompoundStatusRequest): Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>;
698
733
  /**
699
734
  * Check Dual Investment accounts
700
735
  *
701
- * Weight: 1(IP)
736
+ * Weight(IP): 1
702
737
  *
703
- * @summary Check Dual Investment accounts(USER_DATA)
738
+ * Security Type: USER_DATA
739
+ *
740
+ * @summary Check Dual Investment accounts (USER_DATA)
704
741
  * @param {CheckDualInvestmentAccountsRequest} requestParameters Request parameters.
705
742
  * @returns {Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>}
706
743
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
707
744
  * @memberof TradeApi
708
- * @see {@link https://developers.binance.com/docs/advanced_earn/dual-investment/trade/Check-Dual-Investment-accounts Binance API Documentation}
745
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-dual-investment/api/rest-api/trade#check-dual-investment-accounts Binance API Documentation}
709
746
  */
710
747
  checkDualInvestmentAccounts(requestParameters?: CheckDualInvestmentAccountsRequest): Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>;
711
748
  /**
712
749
  * Get Dual Investment positions (batch)
713
750
  *
714
- * Weight: 1(IP)
751
+ * Weight(IP): 1
752
+ *
753
+ * Security Type: USER_DATA
715
754
  *
716
- * @summary Get Dual Investment positions(USER_DATA)
755
+ * @summary Get Dual Investment positions (USER_DATA)
717
756
  * @param {GetDualInvestmentPositionsRequest} requestParameters Request parameters.
718
757
  * @returns {Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>}
719
758
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
720
759
  * @memberof TradeApi
721
- * @see {@link https://developers.binance.com/docs/advanced_earn/dual-investment/trade/Get-Dual-Investment-positions Binance API Documentation}
760
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-dual-investment/api/rest-api/trade#get-dual-investment-positions Binance API Documentation}
722
761
  */
723
762
  getDualInvestmentPositions(requestParameters?: GetDualInvestmentPositionsRequest): Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>;
724
763
  /**
725
764
  * Subscribe Dual Investment products
726
765
  *
727
- * Products are not available. // this means APR changes to lower value, or orders are not unavailable.
728
- * Failed. This means System or network errors.
766
+ * Weight(IP): 1
729
767
  *
730
- * Weight: 1(IP)
768
+ * Security Type: USER_DATA
731
769
  *
732
- * @summary Subscribe Dual Investment products(USER_DATA)
770
+ * Notes:
771
+ * - Failed messages:
772
+ * - Products are not available. This means APR changed to a lower value, or the order is unavailable.
773
+ * - Failed. This means system or network errors.
774
+ *
775
+ * @summary Subscribe Dual Investment products (USER_DATA)
733
776
  * @param {SubscribeDualInvestmentProductsRequest} requestParameters Request parameters.
734
777
  * @returns {Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>}
735
778
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
736
779
  * @memberof TradeApi
737
- * @see {@link https://developers.binance.com/docs/advanced_earn/dual-investment/trade/Subscribe-Dual-Investment-products Binance API Documentation}
780
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-dual-investment/api/rest-api/trade#subscribe-dual-investment-products Binance API Documentation}
738
781
  */
739
782
  subscribeDualInvestmentProducts(requestParameters: SubscribeDualInvestmentProductsRequest): Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>;
740
783
  }
784
+ declare enum ChangeAutoCompoundStatusAutoCompoundPlanEnum {
785
+ NONE = "NONE",
786
+ STANDARD = "STANDARD",
787
+ ADVANCED = "ADVANCED",
788
+ }
789
+ declare enum GetDualInvestmentPositionsStatusEnum {
790
+ PENDING = "PENDING",
791
+ PURCHASE_SUCCESS = "PURCHASE_SUCCESS",
792
+ SETTLED = "SETTLED",
793
+ PURCHASE_FAIL = "PURCHASE_FAIL",
794
+ REFUNDING = "REFUNDING",
795
+ REFUND_SUCCESS = "REFUND_SUCCESS",
796
+ SETTLING = "SETTLING",
797
+ }
798
+ declare enum SubscribeDualInvestmentProductsAutoCompoundPlanEnum {
799
+ NONE = "NONE",
800
+ STANDARD = "STANDARD",
801
+ ADVANCED = "ADVANCED",
802
+ }
741
803
  //#endregion
742
804
  //#region src/rest-api/rest-api.d.ts
743
805
  declare class RestAPI {
@@ -768,74 +830,87 @@ declare class RestAPI {
768
830
  /**
769
831
  * Get Dual Investment product list
770
832
  *
771
- * Weight: 1(IP)
833
+ * Weight(IP): 1
772
834
  *
773
835
  * @summary Get Dual Investment product list
774
836
  * @param {GetDualInvestmentProductListRequest} requestParameters Request parameters.
775
837
  *
776
838
  * @returns {Promise<RestApiResponse<GetDualInvestmentProductListResponse>>}
777
839
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
778
- * @see {@link https://developers.binance.com/docs/advanced_earn/dual-investment/market-data/Get-Dual-Investment-product-list Binance API Documentation}
840
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-dual-investment/api/rest-api/market-data#get-dual-investment-product-list Binance API Documentation}
779
841
  */
780
842
  getDualInvestmentProductList(requestParameters: GetDualInvestmentProductListRequest): Promise<RestApiResponse<GetDualInvestmentProductListResponse>>;
781
843
  /**
782
844
  * Change Auto-Compound status
783
845
  *
784
- * Weight: 1(IP)
846
+ * Weight(IP): 1
847
+ *
848
+ * Security Type: USER_DATA
785
849
  *
786
- * @summary Change Auto-Compound status(USER_DATA)
850
+ * Notes:
851
+ * - 15:31 ~ 16:00 UTC+8: This function is disabled.
852
+ *
853
+ * @summary Change Auto-Compound status (USER_DATA)
787
854
  * @param {ChangeAutoCompoundStatusRequest} requestParameters Request parameters.
788
855
  *
789
856
  * @returns {Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>}
790
857
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
791
- * @see {@link https://developers.binance.com/docs/advanced_earn/dual-investment/trade/Change-Auto-Compound-status Binance API Documentation}
858
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-dual-investment/api/rest-api/trade#change-auto-compound-status Binance API Documentation}
792
859
  */
793
860
  changeAutoCompoundStatus(requestParameters: ChangeAutoCompoundStatusRequest): Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>;
794
861
  /**
795
862
  * Check Dual Investment accounts
796
863
  *
797
- * Weight: 1(IP)
864
+ * Weight(IP): 1
865
+ *
866
+ * Security Type: USER_DATA
798
867
  *
799
- * @summary Check Dual Investment accounts(USER_DATA)
868
+ * @summary Check Dual Investment accounts (USER_DATA)
800
869
  * @param {CheckDualInvestmentAccountsRequest} requestParameters Request parameters.
801
870
  *
802
871
  * @returns {Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>}
803
872
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
804
- * @see {@link https://developers.binance.com/docs/advanced_earn/dual-investment/trade/Check-Dual-Investment-accounts Binance API Documentation}
873
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-dual-investment/api/rest-api/trade#check-dual-investment-accounts Binance API Documentation}
805
874
  */
806
875
  checkDualInvestmentAccounts(requestParameters?: CheckDualInvestmentAccountsRequest): Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>;
807
876
  /**
808
877
  * Get Dual Investment positions (batch)
809
878
  *
810
- * Weight: 1(IP)
879
+ * Weight(IP): 1
811
880
  *
812
- * @summary Get Dual Investment positions(USER_DATA)
881
+ * Security Type: USER_DATA
882
+ *
883
+ * @summary Get Dual Investment positions (USER_DATA)
813
884
  * @param {GetDualInvestmentPositionsRequest} requestParameters Request parameters.
814
885
  *
815
886
  * @returns {Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>}
816
887
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
817
- * @see {@link https://developers.binance.com/docs/advanced_earn/dual-investment/trade/Get-Dual-Investment-positions Binance API Documentation}
888
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-dual-investment/api/rest-api/trade#get-dual-investment-positions Binance API Documentation}
818
889
  */
819
890
  getDualInvestmentPositions(requestParameters?: GetDualInvestmentPositionsRequest): Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>;
820
891
  /**
821
892
  * Subscribe Dual Investment products
822
893
  *
823
- * Products are not available. // this means APR changes to lower value, or orders are not unavailable.
824
- * Failed. This means System or network errors.
894
+ * Weight(IP): 1
895
+ *
896
+ * Security Type: USER_DATA
825
897
  *
826
- * Weight: 1(IP)
898
+ * Notes:
899
+ * - Failed messages:
900
+ * - Products are not available. This means APR changed to a lower value, or the order is unavailable.
901
+ * - Failed. This means system or network errors.
827
902
  *
828
- * @summary Subscribe Dual Investment products(USER_DATA)
903
+ * @summary Subscribe Dual Investment products (USER_DATA)
829
904
  * @param {SubscribeDualInvestmentProductsRequest} requestParameters Request parameters.
830
905
  *
831
906
  * @returns {Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>}
832
907
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
833
- * @see {@link https://developers.binance.com/docs/advanced_earn/dual-investment/trade/Subscribe-Dual-Investment-products Binance API Documentation}
908
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-dual-investment/api/rest-api/trade#subscribe-dual-investment-products Binance API Documentation}
834
909
  */
835
910
  subscribeDualInvestmentProducts(requestParameters: SubscribeDualInvestmentProductsRequest): Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>;
836
911
  }
837
912
  declare namespace index_d_exports {
838
- export { ChangeAutoCompoundStatusRequest, ChangeAutoCompoundStatusResponse, CheckDualInvestmentAccountsRequest, CheckDualInvestmentAccountsResponse, GetDualInvestmentPositionsRequest, GetDualInvestmentPositionsResponse, GetDualInvestmentPositionsResponseListInner, GetDualInvestmentProductListRequest, GetDualInvestmentProductListResponse, GetDualInvestmentProductListResponseListInner, MarketDataApi, MarketDataApiInterface, RestAPI, SubscribeDualInvestmentProductsRequest, SubscribeDualInvestmentProductsResponse, TradeApi, TradeApiInterface };
913
+ export { ChangeAutoCompoundStatusAutoCompoundPlanEnum, ChangeAutoCompoundStatusRequest, ChangeAutoCompoundStatusResponse, CheckDualInvestmentAccountsRequest, CheckDualInvestmentAccountsResponse, GetDualInvestmentPositionsRequest, GetDualInvestmentPositionsResponse, GetDualInvestmentPositionsResponseListInner, GetDualInvestmentPositionsStatusEnum, GetDualInvestmentProductListOptionTypeEnum, GetDualInvestmentProductListRequest, GetDualInvestmentProductListResponse, GetDualInvestmentProductListResponseListInner, MarketDataApi, MarketDataApiInterface, RestAPI, SubscribeDualInvestmentProductsAutoCompoundPlanEnum, SubscribeDualInvestmentProductsRequest, SubscribeDualInvestmentProductsResponse, TradeApi, TradeApiInterface };
839
914
  }
840
915
  //#endregion
841
916
  //#region src/dual-investment.d.ts