binance 2.11.4 → 2.12.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.
@@ -96,22 +96,53 @@ class MainClient extends BaseRestClient_1.default {
96
96
  getApiKeyPermissions() {
97
97
  return this.getPrivate('sapi/v1/account/apiRestrictions');
98
98
  }
99
- acceptQuoteRequest(params) {
100
- return this.postPrivate('sapi/v1/convert/acceptQuote', params);
101
- }
102
99
  enableConvertSubAccount(params) {
103
100
  return this.postPrivate('sapi/v1/broker/subAccount/convert', params);
104
101
  }
105
- convertQuoteRequest(params) {
106
- return this.postPrivate('sapi/v1/convert/getQuote', params);
102
+ getFundingAsset(params) {
103
+ return this.postPrivate('sapi/v1/asset/get-funding-asset', params);
107
104
  }
108
- getOrderStatus(params) {
109
- return this.getPrivate('sapi/v1/convert/orderStatus', params);
105
+ getUserAsset(params) {
106
+ return this.postPrivate('sapi/v3/asset/getUserAsset', params);
110
107
  }
111
- getConvertTradeHistory(params) {
112
- return this.getPrivate('sapi/v1/convert/tradeFlow', params);
108
+ convertBUSD(params) {
109
+ return this.postPrivate('sapi/v1/asset/convert-transfer', params);
110
+ }
111
+ getConvertBUSDHistory(params) {
112
+ return this.getPrivate('sapi/v1/asset/convert-transfer/queryByPage', params);
113
+ }
114
+ getCloudMiningHistory(params) {
115
+ return this.getPrivate('sapi/v1/asset/ledger-transfer/cloud-mining/queryByPage', params);
116
+ }
117
+ getAutoConvertStablecoins() {
118
+ return this.getPrivate('sapi/v1/capital/contract/convertible-coins');
119
+ }
120
+ setConvertibleCoins(params) {
121
+ return this.postPrivate('sapi/v1/capital/contract/convertible-coins', params);
122
+ }
123
+ submitDepositCredit(params) {
124
+ return this.postPrivate('sapi/v1/capital/deposit/credit-apply', params);
125
+ }
126
+ getDepositAddresses(params) {
127
+ return this.getPrivate('sapi/v1/capital/deposit/address/list', params);
128
+ }
129
+ getWalletBalances() {
130
+ return this.getPrivate('sapi/v1/asset/wallet/balance');
131
+ }
132
+ getDelegationHistory(params) {
133
+ return this.getPrivate('sapi/v1/asset/custody/transfer-history', params);
134
+ }
135
+ getDelistSchedule() {
136
+ return this.getPrivate('sapi/v1/spot/delist-schedule');
137
+ }
138
+ getWithdrawAddresses() {
139
+ return this.getPrivate('sapi/v1/capital/withdraw/address/list');
140
+ }
141
+ getAccountInfo() {
142
+ return this.getPrivate('sapi/v1/account/info');
113
143
  }
114
144
  /**
145
+ *
115
146
  *
116
147
  * Sub-Account Endpoints
117
148
  *
@@ -208,6 +239,9 @@ class MainClient extends BaseRestClient_1.default {
208
239
  subAccountAddIPList(params) {
209
240
  return this.postPrivate('sapi/v1/sub-account/subAccountApi/ipRestriction/ipList', params);
210
241
  }
242
+ subAccountAddIPRestriction(params) {
243
+ return this.postPrivate('sapi/v2/sub-account/subAccountApi/ipRestriction', params);
244
+ }
211
245
  getSubAccountIPRestriction(params) {
212
246
  return this.getPrivate('sapi/v1/sub-account/subAccountApi/ipRestriction', params);
213
247
  }
@@ -223,6 +257,39 @@ class MainClient extends BaseRestClient_1.default {
223
257
  withdrawAssetsFromManagedSubAccount(params) {
224
258
  return this.postPrivate('sapi/v1/managed-subaccount/withdraw', params);
225
259
  }
260
+ getManagedSubAccountSnapshot(params) {
261
+ return this.getPrivate('sapi/v1/managed-subaccount/accountSnapshot', params);
262
+ }
263
+ getManagedSubAccountTransfersInvestor(params) {
264
+ return this.getPrivate('sapi/v1/managed-subaccount/queryTransLogForInvestor', params);
265
+ }
266
+ getManagedSubAccountTransfersParent(params) {
267
+ return this.getPrivate('sapi/v1/managed-subaccount/queryTransLogForTradeParent', params);
268
+ }
269
+ getManagedSubAccountFuturesAssets(params) {
270
+ return this.getPrivate('sapi/v1/managed-subaccount/fetch-future-asset', params);
271
+ }
272
+ getManagedSubAccountMarginAssets(params) {
273
+ return this.getPrivate('sapi/v1/managed-subaccount/marginAsset', params);
274
+ }
275
+ getSubAccountAssetsMaster(params) {
276
+ return this.getPrivate('sapi/v4/sub-account/assets', params);
277
+ }
278
+ getManagedSubAccounts(params) {
279
+ return this.getPrivate('sapi/v1/managed-subaccount/info', params);
280
+ }
281
+ getSubAccountTransactionStatistics(params) {
282
+ return this.getPrivate('sapi/v1/sub-account/transaction-statistics', params);
283
+ }
284
+ getManagedSubAccountDepositAddress(params) {
285
+ return this.getPrivate('sapi/v1/managed-subaccount/deposit/address', params);
286
+ }
287
+ enableOptionsForSubAccount(params) {
288
+ return this.postPrivate('sapi/v1/sub-account/eoptions/enable', params);
289
+ }
290
+ getManagedSubAccountTransferLog(params) {
291
+ return this.getPrivate('sapi/v1/managed-subaccount/query-trans-log', params);
292
+ }
226
293
  /**
227
294
  * Broker Endpoints
228
295
  */
@@ -332,6 +399,9 @@ class MainClient extends BaseRestClient_1.default {
332
399
  getKlines(params) {
333
400
  return this.get('api/v3/klines', params);
334
401
  }
402
+ getUIKlines(params) {
403
+ return this.get('api/v3/uiKlines', params);
404
+ }
335
405
  getAvgPrice(params) {
336
406
  return this.get('api/v3/avgPrice', params);
337
407
  }
@@ -346,12 +416,18 @@ class MainClient extends BaseRestClient_1.default {
346
416
  }
347
417
  return this.get('api/v3/ticker/24hr');
348
418
  }
419
+ getTradingDayTicker(params) {
420
+ return this.get('api/v3/ticker/tradingDay', params);
421
+ }
349
422
  getSymbolPriceTicker(params) {
350
423
  return this.get('api/v3/ticker/price', params);
351
424
  }
352
425
  getSymbolOrderBookTicker(params) {
353
426
  return this.get('api/v3/ticker/bookTicker', params);
354
427
  }
428
+ getRollingWindowTicker(params) {
429
+ return this.get('api/v3/ticker', params);
430
+ }
355
431
  /**
356
432
  *
357
433
  * Spot Account/Trade Endpoints
@@ -383,6 +459,9 @@ class MainClient extends BaseRestClient_1.default {
383
459
  getAllOrders(params) {
384
460
  return this.getPrivate('api/v3/allOrders', params);
385
461
  }
462
+ /**
463
+ * @deprecated
464
+ */
386
465
  submitNewOCO(params) {
387
466
  this.validateOrderId(params, 'listClientOrderId');
388
467
  this.validateOrderId(params, 'limitClientOrderId');
@@ -395,6 +474,21 @@ class MainClient extends BaseRestClient_1.default {
395
474
  this.validateOrderId(params, 'belowClientOrderId');
396
475
  return this.postPrivate('api/v3/orderList/oco', params);
397
476
  }
477
+ // TO CHECK!!
478
+ submitNewOrderListOTO(params) {
479
+ this.validateOrderId(params, 'listClientOrderId');
480
+ this.validateOrderId(params, 'workingClientOrderId');
481
+ this.validateOrderId(params, 'pendingClientOrderId');
482
+ return this.postPrivate('api/v3/orderList/oto', params);
483
+ }
484
+ // TO CHECK!!
485
+ submitNewOrderListOTOCO(params) {
486
+ this.validateOrderId(params, 'listClientOrderId');
487
+ this.validateOrderId(params, 'workingClientOrderId');
488
+ this.validateOrderId(params, 'pendingAboveClientOrderId');
489
+ this.validateOrderId(params, 'pendingBelowClientOrderId');
490
+ return this.postPrivate('api/v3/orderList/otoco', params);
491
+ }
398
492
  cancelOCO(params) {
399
493
  this.validateOrderId(params, 'newClientOrderId');
400
494
  return this.deletePrivate('api/v3/orderList', params);
@@ -442,6 +536,18 @@ class MainClient extends BaseRestClient_1.default {
442
536
  getAccountTradeList(params) {
443
537
  return this.getPrivate('api/v3/myTrades', params);
444
538
  }
539
+ getOrderRateLimit() {
540
+ return this.getPrivate('api/v3/rateLimit/order');
541
+ }
542
+ getPreventedMatches(params) {
543
+ return this.getPrivate('api/v3/myPreventedMatches', params);
544
+ }
545
+ getAllocations(params) {
546
+ return this.getPrivate('api/v3/myAllocations', params);
547
+ }
548
+ getCommissionRates(params) {
549
+ return this.getPrivate('api/v3/account/commission', params);
550
+ }
445
551
  /**
446
552
  *
447
553
  * Margin Account/Trade Endpoints
@@ -472,6 +578,18 @@ class MainClient extends BaseRestClient_1.default {
472
578
  marginAccountCancelOpenOrders(params) {
473
579
  return this.deletePrivate('sapi/v1/margin/openOrders', params);
474
580
  }
581
+ updateCrossMarginMaxLeverage(params) {
582
+ return this.postPrivate('sapi/v1/margin/max-leverage', params);
583
+ }
584
+ getCrossMarginTransferHistory(params) {
585
+ return this.getPrivate('sapi/v1/margin/transfer', params);
586
+ }
587
+ getMarginInterestHistory(params) {
588
+ return this.getPrivate('sapi/v1/margin/interestHistory', params);
589
+ }
590
+ getMarginForceLiquidationRecord(params) {
591
+ return this.getPrivate('sapi/v1/margin/forceLiquidationRec', params);
592
+ }
475
593
  /**
476
594
  * @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead
477
595
  */
@@ -484,8 +602,6 @@ class MainClient extends BaseRestClient_1.default {
484
602
  queryRepayRecord(params) {
485
603
  return this.getPrivate('sapi/v1/margin/repay', params);
486
604
  }
487
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#get-interest-history-user_data
488
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#get-force-liquidation-record-user_data
489
605
  queryCrossMarginAccountDetails() {
490
606
  return this.getPrivate('sapi/v1/margin/account');
491
607
  }
@@ -511,9 +627,21 @@ class MainClient extends BaseRestClient_1.default {
511
627
  queryMarginAccountOCO(params) {
512
628
  return this.getPrivate('sapi/v1/margin/orderList', params);
513
629
  }
514
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-oco-user_data
515
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-open-oco-user_data
516
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-trade-list-user_data
630
+ queryMarginAccountAllOCO(params) {
631
+ return this.getPrivate('sapi/v1/margin/allOrderList', params);
632
+ }
633
+ /**
634
+ * Query margin account's open OCO
635
+ */
636
+ queryMarginAccountOpenOCO(params) {
637
+ return this.getPrivate('sapi/v1/margin/openOrderList', params);
638
+ }
639
+ /**
640
+ * Query margin account's trade list
641
+ */
642
+ queryMarginAccountTradeList(params) {
643
+ return this.getPrivate('sapi/v1/margin/myTrades', params);
644
+ }
517
645
  queryMaxBorrow(params) {
518
646
  return this.getPrivate('sapi/v1/margin/maxBorrowable', params);
519
647
  }
@@ -526,21 +654,102 @@ class MainClient extends BaseRestClient_1.default {
526
654
  isolatedMarginAccountTransfer(params) {
527
655
  return this.postPrivate('sapi/v1/margin/isolated/transfer', params);
528
656
  }
529
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#get-isolated-margin-transfer-history-user_data
530
657
  getIsolatedMarginAccountInfo(params) {
531
658
  return this.getPrivate('sapi/v1/margin/isolated/account', { params });
532
659
  }
533
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#disable-isolated-margin-account-trade
534
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#enable-isolated-margin-account-trade
535
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-enabled-isolated-margin-account-limit-user_data
536
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-isolated-margin-symbol-user_data
537
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#get-all-isolated-margin-symbol-user_data
538
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#toggle-bnb-burn-on-spot-trade-and-margin-interest-user_data
539
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#get-bnb-burn-status-user_data
540
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-margin-interest-rate-history-user_data
541
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-cross-margin-fee-data-user_data
542
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-isolated-margin-fee-data-user_data
543
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-isolated-margin-tier-data-user_data
660
+ /**
661
+ * Disable isolated margin account
662
+ */
663
+ disableIsolatedMarginAccount(params) {
664
+ return this.deletePrivate('sapi/v1/margin/isolated/account', params);
665
+ }
666
+ /**
667
+ * Enable isolated margin account
668
+ */
669
+ enableIsolatedMarginAccount(params) {
670
+ return this.postPrivate('sapi/v1/margin/isolated/account', params);
671
+ }
672
+ /**
673
+ * Query enabled isolated margin account limit
674
+ */
675
+ getIsolatedMarginAccountLimit() {
676
+ return this.getPrivate('sapi/v1/margin/isolated/accountLimit');
677
+ }
678
+ /**
679
+ * Get all isolated margin symbols
680
+ */
681
+ getIsolatedMarginAllSymbols(params) {
682
+ return this.getPrivate('sapi/v1/margin/isolated/allPairs', params);
683
+ }
684
+ /**
685
+ * Toggle BNB burn on spot trade and margin interest
686
+ */
687
+ toggleBNBBurn(params) {
688
+ return this.postPrivate('sapi/v1/bnbBurn', params);
689
+ }
690
+ /**
691
+ * Get BNB burn status
692
+ */
693
+ getBNBBurn() {
694
+ return this.getPrivate('sapi/v1/bnbBurn');
695
+ }
696
+ /**
697
+ * Query margin interest rate history
698
+ */
699
+ getMarginInterestRateHistory(params) {
700
+ return this.getPrivate('sapi/v1/margin/interestRateHistory', params);
701
+ }
702
+ /**
703
+ * Query cross margin fee data
704
+ */
705
+ getCrossMarginFeeData(params) {
706
+ return this.getPrivate('sapi/v1/margin/crossMarginData', params);
707
+ }
708
+ /**
709
+ * Query isolated margin fee data
710
+ */
711
+ getIsolatedMarginFeeData(params) {
712
+ return this.getPrivate('sapi/v1/margin/isolatedMarginData', params);
713
+ }
714
+ /**
715
+ * Query isolated margin tier data
716
+ */
717
+ getIsolatedMarginTierData(params) {
718
+ return this.getPrivate('sapi/v1/margin/isolatedMarginTier', params);
719
+ }
720
+ getMarginOrderCountUsage(params) {
721
+ return this.getPrivate('sapi/v1/margin/rateLimit/order', params);
722
+ }
723
+ getCrossMarginCollateralRatio() {
724
+ return this.getPrivate('sapi/v1/margin/crossMarginCollateralRatio');
725
+ }
726
+ getSmallLiabilityExchangeCoins() {
727
+ return this.getPrivate('sapi/v1/margin/exchange-small-liability');
728
+ }
729
+ submitSmallLiabilityExchange(params) {
730
+ return this.postPrivate('sapi/v1/margin/exchange-small-liability', params);
731
+ }
732
+ getSmallLiabilityExchangeHistory(params) {
733
+ return this.getPrivate('sapi/v1/margin/exchange-small-liability-history', params);
734
+ }
735
+ getNextHourlyInterestRate(params) {
736
+ return this.getPrivate('sapi/v1/margin/next-hourly-interest-rate', params);
737
+ }
738
+ getMarginCapitalFlow(params) {
739
+ return this.getPrivate('sapi/v1/margin/capital-flow', params);
740
+ }
741
+ getMarginDelistSchedule() {
742
+ return this.getPrivate('sapi/v1/margin/delist-schedule');
743
+ }
744
+ getMarginAvailableInventory(params) {
745
+ return this.getPrivate('sapi/v1/margin/available-inventory', params);
746
+ }
747
+ submitManualLiquidation(params) {
748
+ return this.postPrivate('sapi/v1/margin/manual-liquidation', params);
749
+ }
750
+ getLeverageBracket() {
751
+ return this.getPrivate('sapi/v1/margin/leverageBracket');
752
+ }
544
753
  /**
545
754
  *
546
755
  * User Data Stream Endpoints
@@ -608,58 +817,257 @@ class MainClient extends BaseRestClient_1.default {
608
817
  getSimpleEarnAccount() {
609
818
  return this.getPrivate(`/sapi/v1/simple-earn/account`);
610
819
  }
820
+ getFlexibleSubscriptionRecord(params) {
821
+ return this.getPrivate('sapi/v1/simple-earn/flexible/history/subscriptionRecord', params);
822
+ }
823
+ getLockedSubscriptionRecord(params) {
824
+ return this.getPrivate('sapi/v1/simple-earn/locked/history/subscriptionRecord', params);
825
+ }
826
+ getFlexibleRedemptionRecord(params) {
827
+ return this.getPrivate('sapi/v1/simple-earn/flexible/history/redemptionRecord', params);
828
+ }
829
+ getLockedRedemptionRecord(params) {
830
+ return this.getPrivate('sapi/v1/simple-earn/locked/history/redemptionRecord', params);
831
+ }
832
+ getFlexibleRewardsHistory(params) {
833
+ return this.getPrivate('sapi/v1/simple-earn/flexible/history/rewardsRecord', params);
834
+ }
835
+ getLockedRewardsHistory(params) {
836
+ return this.getPrivate('sapi/v1/simple-earn/locked/history/rewardsRecord', params);
837
+ }
838
+ setFlexibleAutoSubscribe(params) {
839
+ return this.postPrivate('sapi/v1/simple-earn/flexible/setAutoSubscribe', params);
840
+ }
841
+ setLockedAutoSubscribe(params) {
842
+ return this.postPrivate('sapi/v1/simple-earn/locked/setAutoSubscribe', params);
843
+ }
844
+ getFlexiblePersonalLeftQuota(params) {
845
+ return this.getPrivate('sapi/v1/simple-earn/flexible/personalLeftQuota', params);
846
+ }
847
+ getLockedPersonalLeftQuota(params) {
848
+ return this.getPrivate('sapi/v1/simple-earn/locked/personalLeftQuota', params);
849
+ }
850
+ getFlexibleSubscriptionPreview(params) {
851
+ return this.getPrivate('sapi/v1/simple-earn/flexible/subscriptionPreview', params);
852
+ }
853
+ getLockedSubscriptionPreview(params) {
854
+ return this.getPrivate('sapi/v1/simple-earn/locked/subscriptionPreview', params);
855
+ }
856
+ getRateHistory(params) {
857
+ return this.getPrivate('sapi/v1/simple-earn/flexible/history/rateHistory', params);
858
+ }
859
+ getCollateralRecord(params) {
860
+ return this.getPrivate('sapi/v1/simple-earn/flexible/history/collateralRecord', params);
861
+ }
862
+ /**
863
+ *
864
+ * Dual Investment Endpoints
865
+ *
866
+ **/
867
+ getDualInvestmentProducts(params) {
868
+ return this.getPrivate('sapi/v1/dci/product/list', params);
869
+ }
870
+ subscribeDualInvestmentProduct(params) {
871
+ return this.postPrivate('sapi/v1/dci/product/subscribe', params);
872
+ }
873
+ getDualInvestmentPositions(params) {
874
+ return this.getPrivate('sapi/v1/dci/product/positions', params);
875
+ }
876
+ getDualInvestmentAccounts() {
877
+ return this.getPrivate('sapi/v1/dci/product/accounts');
878
+ }
879
+ updateAutoCompoundStatus(params) {
880
+ return this.postPrivate('sapi/v1/dci/product/auto_compound/edit-status', params);
881
+ }
882
+ /**
883
+ *
884
+ * Auto Invest Enpoints
885
+ *
886
+ **/
887
+ getAutoInvestTargetAssets(params) {
888
+ return this.getPrivate('sapi/v1/lending/auto-invest/target-asset/list', params);
889
+ }
890
+ getAutoInvestTargetAssetsROI(params) {
891
+ return this.getPrivate('sapi/v1/lending/auto-invest/target-asset/roi/list', params);
892
+ }
893
+ getAutoInvestAssets() {
894
+ return this.getPrivate('sapi/v1/lending/auto-invest/all/asset');
895
+ }
896
+ getAutoInvestSourceAssets(params) {
897
+ return this.getPrivate('sapi/v1/lending/auto-invest/source-asset/list', params);
898
+ }
899
+ submitAutoInvestmentPlan(params) {
900
+ return this.postPrivate('sapi/v1/lending/auto-invest/plan/add', params);
901
+ }
902
+ updateAutoInvestmentPlan(params) {
903
+ return this.postPrivate('sapi/v1/lending/auto-invest/plan/edit', params);
904
+ }
905
+ updateAutoInvestPlanStatus(params) {
906
+ return this.postPrivate('sapi/v1/lending/auto-invest/plan/edit-status', params);
907
+ }
908
+ getAutoInvestPlans(params) {
909
+ return this.getPrivate('sapi/v1/lending/auto-invest/plan/list', params);
910
+ }
911
+ getAutoInvestPlan(params) {
912
+ return this.getPrivate('sapi/v1/lending/auto-invest/plan/id', params);
913
+ }
914
+ getAutoInvestSubscriptionTransactions(params) {
915
+ return this.getPrivate('sapi/v1/lending/auto-invest/history/list', params);
916
+ }
917
+ getAutoInvestIndex(params) {
918
+ return this.getPrivate('sapi/v1/lending/auto-invest/index/info', params);
919
+ }
920
+ getAutoInvestUserIndex(params) {
921
+ return this.getPrivate('sapi/v1/lending/auto-invest/index/user-summary', params);
922
+ }
923
+ submitAutoInvestOneTimeTransaction(params) {
924
+ return this.postPrivate('sapi/v1/lending/auto-invest/one-off', params);
925
+ }
926
+ getOneTimeTransactionStatus(params) {
927
+ return this.getPrivate('sapi/v1/lending/auto-invest/one-off/status', params);
928
+ }
929
+ submitAutoInvestRedemption(params) {
930
+ return this.postPrivate('sapi/v1/lending/auto-invest/redeem', params);
931
+ }
932
+ getAutoInvestRedemptionHistory(params) {
933
+ return this.getPrivate('sapi/v1/lending/auto-invest/redeem/history', params);
934
+ }
935
+ getAutoInvestRebalanceHistory(params) {
936
+ return this.getPrivate('sapi/v1/lending/auto-invest/rebalance/history', params);
937
+ }
611
938
  /**
612
939
  *
613
940
  * Staking Endpoints
614
941
  *
615
942
  **/
616
- //TODO: https://binance-docs.github.io/apidocs/spot/en/#purchase-staking-product-user_data
617
- //TODO: https://binance-docs.github.io/apidocs/spot/en/#redeem-staking-product-user_data
618
- //TODO: https://binance-docs.github.io/apidocs/spot/en/#set-auto-staking-user_data
943
+ /**
944
+ * @deprecated as of 2024-01-19
945
+ */
619
946
  getStakingProducts(params) {
620
947
  return this.getPrivate(`sapi/v1/staking/productList`, params);
621
948
  }
949
+ /**
950
+ * @deprecated as of 2024-01-19
951
+ */
622
952
  getStakingProductPosition(params) {
623
953
  return this.getPrivate('sapi/v1/staking/position', params);
624
954
  }
955
+ /**
956
+ * @deprecated as of 2024-01-19
957
+ */
625
958
  getStakingHistory(params) {
626
959
  return this.getPrivate('sapi/v1/staking/stakingRecord', params);
627
960
  }
961
+ /**
962
+ * @deprecated as of 2024-01-19
963
+ */
628
964
  getPersonalLeftQuotaOfStakingProduct(params) {
629
965
  return this.getPrivate('sapi/v1/staking/personalLeftQuota', params);
630
966
  }
967
+ subscribeEthStakingV1(params) {
968
+ return this.postPrivate('sapi/v1/eth-staking/eth/stake', params);
969
+ }
970
+ subscribeEthStakingV2(params) {
971
+ return this.postPrivate('sapi/v2/eth-staking/eth/stake', params);
972
+ }
973
+ redeemEth(params) {
974
+ return this.postPrivate('sapi/v1/eth-staking/eth/redeem', params);
975
+ }
976
+ getEthStakingHistory(params) {
977
+ return this.getPrivate('sapi/v1/eth-staking/eth/history/stakingHistory', params);
978
+ }
979
+ getEthRedemptionHistory(params) {
980
+ return this.getPrivate('sapi/v1/eth-staking/eth/history/redemptionHistory', params);
981
+ }
982
+ getBethRewardsHistory(params) {
983
+ return this.getPrivate('sapi/v1/eth-staking/eth/history/rewardsHistory', params);
984
+ }
985
+ getEthStakingQuota() {
986
+ return this.getPrivate('sapi/v1/eth-staking/eth/quota');
987
+ }
988
+ getEthRateHistory(params) {
989
+ return this.getPrivate('sapi/v1/eth-staking/eth/history/rateHistory', params);
990
+ }
991
+ getEthStakingAccount() {
992
+ return this.getPrivate('sapi/v1/eth-staking/account');
993
+ }
994
+ getEthStakingAccountV2() {
995
+ return this.getPrivate('sapi/v2/eth-staking/account');
996
+ }
997
+ wrapBeth(params) {
998
+ return this.postPrivate('sapi/v1/eth-staking/wbeth/wrap', params);
999
+ }
1000
+ getBethWrapHistory(params) {
1001
+ return this.getPrivate('sapi/v1/eth-staking/wbeth/history/wrapHistory', params);
1002
+ }
1003
+ getBethUnwrapHistory(params) {
1004
+ return this.getPrivate('sapi/v1/eth-staking/wbeth/history/unwrapHistory', params);
1005
+ }
1006
+ getWbethRewardsHistory(params) {
1007
+ return this.getPrivate('sapi/v1/eth-staking/eth/history/wbethRewardsHistory', params);
1008
+ }
631
1009
  /**
632
1010
  *
633
1011
  * Savings Endpoints
634
- *
1012
+ * @deprecated as of 2023-06-22, now Simple Earn
635
1013
  **/
1014
+ /**
1015
+ * @deprecated as of 2023-06-22, now Simple Earn
1016
+ */
636
1017
  getLeftDailyPurchaseQuotaFlexibleProduct(params) {
637
1018
  return this.getPrivate(`sapi/v1/lending/daily/userLeftQuota`, params);
638
1019
  }
1020
+ /**
1021
+ * @deprecated as of 2023-06-22, now Simple Earn
1022
+ */
639
1023
  getLeftDailyRedemptionQuotaFlexibleProduct(params) {
640
1024
  return this.getPrivate(`sapi/v1/lending/daily/userRedemptionQuota`, params);
641
1025
  }
1026
+ /**
1027
+ * @deprecated as of 2023-06-22, now Simple Earn
1028
+ */
642
1029
  purchaseFixedAndActivityProject(params) {
643
1030
  return this.postPrivate(`sapi/v1/lending/customizedFixed/purchase`, params);
644
1031
  }
1032
+ /**
1033
+ * @deprecated as of 2023-06-22, now Simple Earn
1034
+ */
645
1035
  getFixedAndActivityProjects(params) {
646
1036
  return this.getPrivate(`sapi/v1/lending/project/list`, params);
647
1037
  }
1038
+ /**
1039
+ * @deprecated as of 2023-06-22, now Simple Earn
1040
+ */
648
1041
  getFixedAndActivityProductPosition(params) {
649
1042
  return this.getPrivate(`sapi/v1/lending/project/position/list`, params);
650
1043
  }
1044
+ /**
1045
+ * @deprecated as of 2023-06-22, now Simple Earn
1046
+ */
651
1047
  getLendingAccount() {
652
1048
  return this.getPrivate(`sapi/v1/lending/union/account`);
653
1049
  }
1050
+ /**
1051
+ * @deprecated as of 2023-06-22, now Simple Earn
1052
+ */
654
1053
  getPurchaseRecord(params) {
655
1054
  return this.getPrivate(`sapi/v1/lending/union/purchaseRecord`, params);
656
1055
  }
1056
+ /**
1057
+ * @deprecated as of 2023-06-22, now Simple Earn
1058
+ */
657
1059
  getRedemptionRecord(params) {
658
1060
  return this.getPrivate(`sapi/v1/lending/union/redemptionRecord`, params);
659
1061
  }
1062
+ /**
1063
+ * @deprecated as of 2023-06-22, now Simple Earn
1064
+ */
660
1065
  getInterestHistory(params) {
661
1066
  return this.getPrivate(`sapi/v1/lending/union/interestHistory`, params);
662
1067
  }
1068
+ /**
1069
+ * @deprecated as of 2023-06-22, now Simple Earn
1070
+ */
663
1071
  changeFixedAndActivityPositionToDailyPosition(params) {
664
1072
  return this.postPrivate(`sapi/v1/lending/positionChanged`, params);
665
1073
  }
@@ -668,7 +1076,45 @@ class MainClient extends BaseRestClient_1.default {
668
1076
  * Mining Endpoints
669
1077
  *
670
1078
  **/
671
- //TODO: https://binance-docs.github.io/apidocs/spot/en/#mining-endpoints
1079
+ getMiningAlgos() {
1080
+ return this.get('sapi/v1/mining/pub/algoList');
1081
+ }
1082
+ getMiningCoins() {
1083
+ return this.get('sapi/v1/mining/pub/coinList');
1084
+ }
1085
+ getMinerDetails(params) {
1086
+ return this.getPrivate('sapi/v1/mining/worker/detail', params);
1087
+ }
1088
+ getMiners(params) {
1089
+ return this.getPrivate('sapi/v1/mining/worker/list', params);
1090
+ }
1091
+ getMiningEarnings(params) {
1092
+ return this.getPrivate('sapi/v1/mining/payment/list', params);
1093
+ }
1094
+ getExtraBonuses(params) {
1095
+ return this.getPrivate('sapi/v1/mining/payment/other', params);
1096
+ }
1097
+ getHashrateResales(params) {
1098
+ return this.getPrivate('sapi/v1/mining/hash-transfer/config/details/list', params);
1099
+ }
1100
+ getHashrateResale(params) {
1101
+ return this.getPrivate('sapi/v1/mining/hash-transfer/profit/details', params);
1102
+ }
1103
+ submitHashrateResale(params) {
1104
+ return this.postPrivate('sapi/v1/mining/hash-transfer/config', params);
1105
+ }
1106
+ cancelHashrateResaleConfig(params) {
1107
+ return this.postPrivate('sapi/v1/mining/hash-transfer/config/cancel', params);
1108
+ }
1109
+ getMiningStatistics(params) {
1110
+ return this.getPrivate('sapi/v1/mining/statistics/user/status', params);
1111
+ }
1112
+ getMiningAccounts(params) {
1113
+ return this.getPrivate('sapi/v1/mining/statistics/user/list', params);
1114
+ }
1115
+ getMiningAccountEarnings(params) {
1116
+ return this.getPrivate('sapi/v1/mining/payment/uid', params);
1117
+ }
672
1118
  /**
673
1119
  *
674
1120
  * Futures Management Endpoints:
@@ -693,49 +1139,408 @@ class MainClient extends BaseRestClient_1.default {
693
1139
  getFutureAccountTransferHistory(params) {
694
1140
  return this.getPrivate(`sapi/v1/futures/transfer`, params);
695
1141
  }
1142
+ getFuturesTickLevelOrderbookDataLink(params) {
1143
+ return this.getPrivate('sapi/v1/futures/histDataLink', params);
1144
+ }
1145
+ /**
1146
+ * @deprecated as of 2023-09-25
1147
+ */
696
1148
  getCrossCollateralBorrowHistory(params) {
697
1149
  return this.getPrivate(`sapi/v1/futures/loan/borrow/history`, params);
698
1150
  }
1151
+ /**
1152
+ * @deprecated as of 2023-09-25
1153
+ */
699
1154
  getCrossCollateralRepaymentHistory(params) {
700
1155
  return this.getPrivate(`sapi/v1/futures/loan/repay/history`, params);
701
1156
  }
1157
+ /**
1158
+ * @deprecated as of 2023-09-25
1159
+ */
702
1160
  getCrossCollateralWalletV2() {
703
1161
  return this.getPrivate(`sapi/v2/futures/loan/wallet`);
704
1162
  }
1163
+ /**
1164
+ * @deprecated as of 2023-09-25
1165
+ */
705
1166
  getAdjustCrossCollateralLTVHistory(params) {
706
1167
  return this.getPrivate(`sapi/v1/futures/loan/adjustCollateral/history`, params);
707
1168
  }
1169
+ /**
1170
+ * @deprecated as of 2023-09-25
1171
+ */
708
1172
  getCrossCollateralLiquidationHistory(params) {
709
1173
  return this.getPrivate(`sapi/v1/futures/loan/liquidationHistory`, params);
710
1174
  }
1175
+ /**
1176
+ * @deprecated as of 2023-09-25
1177
+ */
711
1178
  getCrossCollateralInterestHistory(params) {
712
1179
  return this.getPrivate(`sapi/v1/futures/loan/interestHistory`, params);
713
1180
  }
714
- //TODO: https://binance-docs.github.io/apidocs/spot/en/#futures
1181
+ /**
1182
+ *
1183
+ * Futures Algo Endpoints
1184
+ *
1185
+ **/
1186
+ submitVpNewOrder(params) {
1187
+ this.validateOrderId(params, 'clientAlgoId');
1188
+ return this.postPrivate('sapi/v1/algo/futures/newOrderVp', params);
1189
+ }
1190
+ submitTwapNewOrder(params) {
1191
+ this.validateOrderId(params, 'clientAlgoId');
1192
+ return this.postPrivate('sapi/v1/algo/futures/newOrderTwap', params);
1193
+ }
1194
+ cancelAlgoOrder(params) {
1195
+ return this.deletePrivate('sapi/v1/algo/futures/order', params);
1196
+ }
1197
+ getAlgoOpenOrders() {
1198
+ return this.getPrivate('sapi/v1/algo/futures/openOrders');
1199
+ }
1200
+ getAlgoHistoricalOrders(params) {
1201
+ return this.getPrivate('sapi/v1/algo/futures/historicalOrders', params);
1202
+ }
1203
+ getAlgoSubOrders(params) {
1204
+ return this.getPrivate('sapi/v1/algo/futures/subOrders', params);
1205
+ }
1206
+ /**
1207
+ *
1208
+ * Spot Algo Endpoints
1209
+ *
1210
+ **/
1211
+ submitSpotAlgoTwapOrder(params) {
1212
+ this.validateOrderId(params, 'clientAlgoId');
1213
+ return this.postPrivate('sapi/v1/algo/spot/newOrderTwap', params);
1214
+ }
1215
+ cancelSpotAlgoOrder(params) {
1216
+ return this.deletePrivate('sapi/v1/algo/spot/order', params);
1217
+ }
1218
+ getSpotAlgoOpenOrders() {
1219
+ return this.getPrivate('sapi/v1/algo/spot/openOrders');
1220
+ }
1221
+ getSpotAlgoHistoricalOrders(params) {
1222
+ return this.getPrivate('sapi/v1/algo/spot/historicalOrders', params);
1223
+ }
1224
+ getSpotAlgoSubOrders(params) {
1225
+ return this.getPrivate('sapi/v1/algo/spot/subOrders', params);
1226
+ }
1227
+ /**
1228
+ *
1229
+ * Portfolio Margin Pro
1230
+ *
1231
+ **/
1232
+ getPortfolioMarginProAccountInfo() {
1233
+ return this.getPrivate('sapi/v1/portfolio/account');
1234
+ }
1235
+ getPortfolioMarginProCollateralRate() {
1236
+ return this.get('sapi/v1/portfolio/collateralRate');
1237
+ }
1238
+ getPortfolioMarginProBankruptcyLoanAmount() {
1239
+ return this.getPrivate('sapi/v1/portfolio/pmLoan');
1240
+ }
1241
+ repayPortfolioMarginProBankruptcyLoan(params) {
1242
+ return this.postPrivate('sapi/v1/portfolio/repay', params);
1243
+ }
1244
+ getPortfolioMarginProInterestHistory(params) {
1245
+ return this.getPrivate('sapi/v1/portfolio/interest-history', params);
1246
+ }
1247
+ getPortfolioMarginIndexPrice(params) {
1248
+ return this.get('sapi/v1/portfolio/asset-index-price', params);
1249
+ }
1250
+ submitPortfolioMarginProFullTransfer() {
1251
+ return this.postPrivate('sapi/v1/portfolio/auto-collection');
1252
+ }
1253
+ submitPortfolioMarginProSpecificTransfer(params) {
1254
+ return this.postPrivate('sapi/v1/portfolio/asset-collection', params);
1255
+ }
1256
+ bnbTransfer(params) {
1257
+ return this.postPrivate('sapi/v1/portfolio/bnb-transfer', params);
1258
+ }
1259
+ updateAutoRepayFuturesStatus(params) {
1260
+ return this.postPrivate('sapi/v1/portfolio/repay-futures-switch', params);
1261
+ }
1262
+ getAutoRepayFuturesStatus() {
1263
+ return this.getPrivate('sapi/v1/portfolio/repay-futures-switch');
1264
+ }
1265
+ repayFuturesNegativeBalance() {
1266
+ return this.postPrivate('sapi/v1/portfolio/repay-futures-negative-balance');
1267
+ }
1268
+ getPortfolioMarginAssetLeverage() {
1269
+ return this.getPrivate('sapi/v1/portfolio/margin-asset-leverage');
1270
+ }
715
1271
  /**
716
1272
  *
717
1273
  * BLVT Endpoints
718
1274
  *
719
1275
  **/
720
- //TODO: https://binance-docs.github.io/apidocs/spot/en/#blvt-endpoints
1276
+ getBlvtInfo(params) {
1277
+ return this.get('sapi/v1/blvt/tokenInfo', params);
1278
+ }
1279
+ subscribeBlvt(params) {
1280
+ return this.postPrivate('sapi/v1/blvt/subscribe', params);
1281
+ }
1282
+ getBlvtSubscriptionRecord(params) {
1283
+ return this.getPrivate('sapi/v1/blvt/subscribe/record', params);
1284
+ }
1285
+ redeemBlvt(params) {
1286
+ return this.postPrivate('sapi/v1/blvt/redeem', params);
1287
+ }
1288
+ getBlvtRedemptionRecord(params) {
1289
+ return this.getPrivate('sapi/v1/blvt/redeem/record', params);
1290
+ }
1291
+ getBlvtUserLimitInfo(params) {
1292
+ return this.getPrivate('sapi/v1/blvt/userLimit', params);
1293
+ }
1294
+ /**
1295
+ *
1296
+ * Fiat Endpoints
1297
+ *
1298
+ **/
1299
+ getFiatOrderHistory(params) {
1300
+ return this.getPrivate('sapi/v1/fiat/orders', params);
1301
+ }
1302
+ getFiatPaymentsHistory(params) {
1303
+ return this.getPrivate('sapi/v1/fiat/payments', params);
1304
+ }
1305
+ /**
1306
+ *
1307
+ * C2C Endpoints
1308
+ *
1309
+ **/
1310
+ getC2CTradeHistory(params) {
1311
+ return this.getPrivate('sapi/v1/c2c/orderMatch/listUserOrderHistory', params);
1312
+ }
721
1313
  /**
722
1314
  *
723
- * BSwap Endpoints
1315
+ * VIP Loans Endpoints
724
1316
  *
725
1317
  **/
1318
+ getVipLoanOpenOrders(params) {
1319
+ return this.getPrivate('sapi/v1/loan/vip/ongoing/orders', params);
1320
+ }
1321
+ repayVipLoan(params) {
1322
+ return this.postPrivate('sapi/v1/loan/vip/repay', params);
1323
+ }
1324
+ getVipLoanRepaymentHistory(params) {
1325
+ return this.getPrivate('sapi/v1/loan/vip/repay/history', params);
1326
+ }
1327
+ renewVipLoan(params) {
1328
+ return this.postPrivate('sapi/v1/loan/vip/renew', params);
1329
+ }
1330
+ checkVipCollateralAccount(params) {
1331
+ return this.getPrivate('sapi/v1/loan/vip/collateral/account', params);
1332
+ }
1333
+ borrowVipLoan(params) {
1334
+ return this.postPrivate('sapi/v1/loan/vip/borrow', params);
1335
+ }
1336
+ getVipLoanableAssets(params) {
1337
+ return this.getPrivate('sapi/v1/loan/vip/loanable/data', params);
1338
+ }
1339
+ getVipCollateralAssets(params) {
1340
+ return this.getPrivate('sapi/v1/loan/vip/collateral/data', params);
1341
+ }
1342
+ getVipApplicationStatus(params) {
1343
+ return this.getPrivate('sapi/v1/loan/vip/request/data', params);
1344
+ }
1345
+ getVipBorrowInterestRate(params) {
1346
+ return this.getPrivate('sapi/v1/loan/vip/request/interestRate', params);
1347
+ }
1348
+ /**
1349
+ *
1350
+ * Crypto Loans Endpoints
1351
+ *
1352
+ **/
1353
+ getCryptoLoansIncomeHistory(params) {
1354
+ return this.getPrivate('sapi/v1/loan/income', params);
1355
+ }
1356
+ borrowCryptoLoan(params) {
1357
+ return this.postPrivate('sapi/v1/loan/borrow', params);
1358
+ }
1359
+ getCryptoLoanBorrowHistory(params) {
1360
+ return this.getPrivate('sapi/v1/loan/borrow/history', params);
1361
+ }
1362
+ getCryptoLoanOngoingOrders(params) {
1363
+ return this.getPrivate('sapi/v1/loan/ongoing/orders', params);
1364
+ }
1365
+ repayCryptoLoan(params) {
1366
+ return this.postPrivate('sapi/v1/loan/repay', params);
1367
+ }
1368
+ getCryptoLoanRepaymentHistory(params) {
1369
+ return this.getPrivate('sapi/v1/loan/repay/history', params);
1370
+ }
1371
+ adjustCryptoLoanLTV(params) {
1372
+ return this.postPrivate('sapi/v1/loan/adjust/ltv', params);
1373
+ }
1374
+ getCryptoLoanLTVAdjustmentHistory(params) {
1375
+ return this.getPrivate('sapi/v1/loan/ltv/adjustment/history', params);
1376
+ }
1377
+ getCryptoLoanLoanableAssets(params) {
1378
+ return this.getPrivate('sapi/v1/loan/loanable/data', params);
1379
+ }
1380
+ getCryptoLoanCollateralAssetsData(params) {
1381
+ return this.getPrivate('sapi/v1/loan/collateral/data', params);
1382
+ }
1383
+ getCryptoLoanCollateralRepayRate(params) {
1384
+ return this.getPrivate('sapi/v1/loan/repay/collateral/rate', params);
1385
+ }
1386
+ customizeCryptoLoanMarginCall(params) {
1387
+ return this.postPrivate('sapi/v1/loan/customize/margin_call', params);
1388
+ }
1389
+ borrowCryptoLoanFlexible(params) {
1390
+ return this.postPrivate('sapi/v2/loan/flexible/borrow', params);
1391
+ }
1392
+ getCryptoLoanFlexibleOngoingOrders(params) {
1393
+ return this.getPrivate('sapi/v2/loan/flexible/ongoing/orders', params);
1394
+ }
1395
+ getLoanFlexibleBorrowHistory(params) {
1396
+ return this.getPrivate('sapi/v2/loan/flexible/borrow/history', params);
1397
+ }
1398
+ repayCryptoLoanFlexible(params) {
1399
+ return this.postPrivate('sapi/v2/loan/flexible/repay', params);
1400
+ }
1401
+ getLoanFlexibleRepaymentHistory(params) {
1402
+ return this.getPrivate('sapi/v2/loan/flexible/repay/history', params);
1403
+ }
1404
+ adjustCryptoLoanFlexibleLTV(params) {
1405
+ return this.postPrivate('sapi/v2/loan/flexible/adjust/ltv', params);
1406
+ }
1407
+ getCryptoLoanFlexibleLTVAdjustmentHistory(params) {
1408
+ return this.getPrivate('sapi/v2/loan/flexible/ltv/adjustment/history', params);
1409
+ }
1410
+ getCryptoLoanFlexibleAssets(params) {
1411
+ return this.getPrivate('sapi/v2/loan/flexible/loanable/data', params);
1412
+ }
1413
+ getCryptoLoanFlexibleCollateralAssets(params) {
1414
+ return this.getPrivate('sapi/v2/loan/flexible/collateral/data', params);
1415
+ }
1416
+ /**
1417
+ *
1418
+ * Copy trading endpoints
1419
+ *
1420
+ **/
1421
+ getFuturesLeadTraderStatus() {
1422
+ return this.getPrivate('sapi/v1/copyTrading/futures/userStatus');
1423
+ }
1424
+ getFuturesLeadTradingSymbolWhitelist() {
1425
+ return this.getPrivate('sapi/v1/copyTrading/futures/leadSymbol');
1426
+ }
1427
+ /**
1428
+ *
1429
+ * Pay endpoints
1430
+ *
1431
+ **/
1432
+ getPayTransactions(params) {
1433
+ return this.getPrivate('sapi/v1/pay/transactions', params);
1434
+ }
1435
+ /**
1436
+ *
1437
+ * Convert endpoints
1438
+ *
1439
+ **/
1440
+ getConvertPairs(params) {
1441
+ return this.getPrivate('sapi/v1/convert/exchangeInfo', params);
1442
+ }
1443
+ getConvertAssetInfo() {
1444
+ return this.getPrivate('sapi/v1/convert/assetInfo');
1445
+ }
1446
+ convertQuoteRequest(params) {
1447
+ return this.postPrivate('sapi/v1/convert/getQuote', params);
1448
+ }
1449
+ acceptQuoteRequest(params) {
1450
+ return this.postPrivate('sapi/v1/convert/acceptQuote', params);
1451
+ }
1452
+ getOrderStatus(params) {
1453
+ return this.getPrivate('sapi/v1/convert/orderStatus', params);
1454
+ }
1455
+ submitConvertLimitOrder(params) {
1456
+ return this.postPrivate('sapi/v1/convert/limit/placeOrder', params);
1457
+ }
1458
+ cancelConvertLimitOrder(params) {
1459
+ return this.postPrivate('sapi/v1/convert/limit/cancelOrder', params);
1460
+ }
1461
+ getConvertLimitOpenOrders() {
1462
+ return this.getPrivate('sapi/v1/convert/limit/queryOpenOrders');
1463
+ }
1464
+ getConvertTradeHistory(params) {
1465
+ return this.getPrivate('sapi/v1/convert/tradeFlow', params);
1466
+ }
1467
+ /**
1468
+ *
1469
+ * Rebate Endpoints
1470
+ *
1471
+ **/
1472
+ getSpotRebateHistoryRecords(params) {
1473
+ return this.getPrivate('sapi/v1/rebate/taxQuery', params);
1474
+ }
1475
+ /**
1476
+ *
1477
+ * NFT Endpoints
1478
+ *
1479
+ **/
1480
+ getNftTransactionHistory(params) {
1481
+ return this.getPrivate('sapi/v1/nft/history/transactions', params);
1482
+ }
1483
+ getNftDepositHistory(params) {
1484
+ return this.getPrivate('sapi/v1/nft/history/deposit', params);
1485
+ }
1486
+ getNftWithdrawHistory(params) {
1487
+ return this.getPrivate('sapi/v1/nft/history/withdraw', params);
1488
+ }
1489
+ getNftAsset(params) {
1490
+ return this.getPrivate('sapi/v1/nft/user/getAsset', params);
1491
+ }
1492
+ /**
1493
+ *
1494
+ * Binance GiftCard Endpoints
1495
+ *
1496
+ **/
1497
+ createGiftCard(params) {
1498
+ return this.postPrivate('sapi/v1/giftcard/createCode', params);
1499
+ }
1500
+ createDualTokenGiftCard(params) {
1501
+ return this.postPrivate('sapi/v1/giftcard/buyCode', params);
1502
+ }
1503
+ redeemGiftCard(params) {
1504
+ return this.postPrivate('sapi/v1/giftcard/redeemCode', params);
1505
+ }
1506
+ verifyGiftCard(params) {
1507
+ return this.getPrivate('sapi/v1/giftcard/verify', params);
1508
+ }
1509
+ getRsaPublicKey() {
1510
+ return this.getPrivate('sapi/v1/giftcard/cryptography/rsa-public-key');
1511
+ }
1512
+ getTokenLimit(params) {
1513
+ return this.getPrivate('sapi/v1/giftcard/buyCode/token-limit', params);
1514
+ }
1515
+ /**
1516
+ *
1517
+ * BSwap Endpoints
1518
+ * @deprecated as of 2024-01-19
1519
+ **/
1520
+ /**
1521
+ * @deprecated as of 2024-01-19
1522
+ **/
726
1523
  getBSwapLiquidity(params) {
727
- return this.getPrivate('sapi/v1/bswap/liquidity');
1524
+ return this.getPrivate('sapi/v1/bswap/liquidity', params);
728
1525
  }
1526
+ /**
1527
+ * @deprecated as of 2024-01-19
1528
+ **/
729
1529
  addBSwapLiquidity(params) {
730
- return this.postPrivate('sapi/v1/bswap/liquidityAdd');
1530
+ return this.postPrivate('sapi/v1/bswap/liquidityAdd', params);
731
1531
  }
1532
+ /**
1533
+ * @deprecated as of 2024-01-19
1534
+ **/
732
1535
  removeBSwapLiquidity(params) {
733
- return this.postPrivate('sapi/v1/bswap/liquidityRemove');
1536
+ return this.postPrivate('sapi/v1/bswap/liquidityRemove', params);
734
1537
  }
1538
+ /**
1539
+ * @deprecated as of 2024-01-19
1540
+ **/
735
1541
  getBSwapOperations(params) {
736
- return this.getPrivate('sapi/v1/bswap/liquidityOps');
1542
+ return this.getPrivate('sapi/v1/bswap/liquidityOps', params);
737
1543
  }
738
- //TODO: add missing bswap-endpoints https://binance-docs.github.io/apidocs/spot/en/#bswap-endpoints
739
1544
  /**
740
1545
  * Validate syntax meets requirements set by binance. Log warning if not.
741
1546
  */