binance 2.11.5 → 2.12.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.
@@ -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
  *
@@ -226,6 +257,39 @@ class MainClient extends BaseRestClient_1.default {
226
257
  withdrawAssetsFromManagedSubAccount(params) {
227
258
  return this.postPrivate('sapi/v1/managed-subaccount/withdraw', params);
228
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
+ }
229
293
  /**
230
294
  * Broker Endpoints
231
295
  */
@@ -335,6 +399,9 @@ class MainClient extends BaseRestClient_1.default {
335
399
  getKlines(params) {
336
400
  return this.get('api/v3/klines', params);
337
401
  }
402
+ getUIKlines(params) {
403
+ return this.get('api/v3/uiKlines', params);
404
+ }
338
405
  getAvgPrice(params) {
339
406
  return this.get('api/v3/avgPrice', params);
340
407
  }
@@ -349,12 +416,18 @@ class MainClient extends BaseRestClient_1.default {
349
416
  }
350
417
  return this.get('api/v3/ticker/24hr');
351
418
  }
419
+ getTradingDayTicker(params) {
420
+ return this.get('api/v3/ticker/tradingDay', params);
421
+ }
352
422
  getSymbolPriceTicker(params) {
353
423
  return this.get('api/v3/ticker/price', params);
354
424
  }
355
425
  getSymbolOrderBookTicker(params) {
356
426
  return this.get('api/v3/ticker/bookTicker', params);
357
427
  }
428
+ getRollingWindowTicker(params) {
429
+ return this.get('api/v3/ticker', params);
430
+ }
358
431
  /**
359
432
  *
360
433
  * Spot Account/Trade Endpoints
@@ -386,6 +459,9 @@ class MainClient extends BaseRestClient_1.default {
386
459
  getAllOrders(params) {
387
460
  return this.getPrivate('api/v3/allOrders', params);
388
461
  }
462
+ /**
463
+ * @deprecated
464
+ */
389
465
  submitNewOCO(params) {
390
466
  this.validateOrderId(params, 'listClientOrderId');
391
467
  this.validateOrderId(params, 'limitClientOrderId');
@@ -398,6 +474,21 @@ class MainClient extends BaseRestClient_1.default {
398
474
  this.validateOrderId(params, 'belowClientOrderId');
399
475
  return this.postPrivate('api/v3/orderList/oco', params);
400
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
+ }
401
492
  cancelOCO(params) {
402
493
  this.validateOrderId(params, 'newClientOrderId');
403
494
  return this.deletePrivate('api/v3/orderList', params);
@@ -445,6 +536,18 @@ class MainClient extends BaseRestClient_1.default {
445
536
  getAccountTradeList(params) {
446
537
  return this.getPrivate('api/v3/myTrades', params);
447
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
+ }
448
551
  /**
449
552
  *
450
553
  * Margin Account/Trade Endpoints
@@ -475,6 +578,18 @@ class MainClient extends BaseRestClient_1.default {
475
578
  marginAccountCancelOpenOrders(params) {
476
579
  return this.deletePrivate('sapi/v1/margin/openOrders', params);
477
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
+ }
478
593
  /**
479
594
  * @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead
480
595
  */
@@ -487,8 +602,6 @@ class MainClient extends BaseRestClient_1.default {
487
602
  queryRepayRecord(params) {
488
603
  return this.getPrivate('sapi/v1/margin/repay', params);
489
604
  }
490
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#get-interest-history-user_data
491
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#get-force-liquidation-record-user_data
492
605
  queryCrossMarginAccountDetails() {
493
606
  return this.getPrivate('sapi/v1/margin/account');
494
607
  }
@@ -514,9 +627,21 @@ class MainClient extends BaseRestClient_1.default {
514
627
  queryMarginAccountOCO(params) {
515
628
  return this.getPrivate('sapi/v1/margin/orderList', params);
516
629
  }
517
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-oco-user_data
518
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-open-oco-user_data
519
- // 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
+ }
520
645
  queryMaxBorrow(params) {
521
646
  return this.getPrivate('sapi/v1/margin/maxBorrowable', params);
522
647
  }
@@ -529,21 +654,102 @@ class MainClient extends BaseRestClient_1.default {
529
654
  isolatedMarginAccountTransfer(params) {
530
655
  return this.postPrivate('sapi/v1/margin/isolated/transfer', params);
531
656
  }
532
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#get-isolated-margin-transfer-history-user_data
533
657
  getIsolatedMarginAccountInfo(params) {
534
658
  return this.getPrivate('sapi/v1/margin/isolated/account', { params });
535
659
  }
536
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#disable-isolated-margin-account-trade
537
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#enable-isolated-margin-account-trade
538
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-enabled-isolated-margin-account-limit-user_data
539
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-isolated-margin-symbol-user_data
540
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#get-all-isolated-margin-symbol-user_data
541
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#toggle-bnb-burn-on-spot-trade-and-margin-interest-user_data
542
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#get-bnb-burn-status-user_data
543
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-margin-interest-rate-history-user_data
544
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-cross-margin-fee-data-user_data
545
- // TODO - https://binance-docs.github.io/apidocs/spot/en/#query-isolated-margin-fee-data-user_data
546
- // 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
+ }
547
753
  /**
548
754
  *
549
755
  * User Data Stream Endpoints
@@ -611,58 +817,257 @@ class MainClient extends BaseRestClient_1.default {
611
817
  getSimpleEarnAccount() {
612
818
  return this.getPrivate(`/sapi/v1/simple-earn/account`);
613
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
+ }
614
938
  /**
615
939
  *
616
940
  * Staking Endpoints
617
941
  *
618
942
  **/
619
- //TODO: https://binance-docs.github.io/apidocs/spot/en/#purchase-staking-product-user_data
620
- //TODO: https://binance-docs.github.io/apidocs/spot/en/#redeem-staking-product-user_data
621
- //TODO: https://binance-docs.github.io/apidocs/spot/en/#set-auto-staking-user_data
943
+ /**
944
+ * @deprecated as of 2024-01-19
945
+ */
622
946
  getStakingProducts(params) {
623
947
  return this.getPrivate(`sapi/v1/staking/productList`, params);
624
948
  }
949
+ /**
950
+ * @deprecated as of 2024-01-19
951
+ */
625
952
  getStakingProductPosition(params) {
626
953
  return this.getPrivate('sapi/v1/staking/position', params);
627
954
  }
955
+ /**
956
+ * @deprecated as of 2024-01-19
957
+ */
628
958
  getStakingHistory(params) {
629
959
  return this.getPrivate('sapi/v1/staking/stakingRecord', params);
630
960
  }
961
+ /**
962
+ * @deprecated as of 2024-01-19
963
+ */
631
964
  getPersonalLeftQuotaOfStakingProduct(params) {
632
965
  return this.getPrivate('sapi/v1/staking/personalLeftQuota', params);
633
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
+ }
634
1009
  /**
635
1010
  *
636
1011
  * Savings Endpoints
637
- *
1012
+ * @deprecated as of 2023-06-22, now Simple Earn
638
1013
  **/
1014
+ /**
1015
+ * @deprecated as of 2023-06-22, now Simple Earn
1016
+ */
639
1017
  getLeftDailyPurchaseQuotaFlexibleProduct(params) {
640
1018
  return this.getPrivate(`sapi/v1/lending/daily/userLeftQuota`, params);
641
1019
  }
1020
+ /**
1021
+ * @deprecated as of 2023-06-22, now Simple Earn
1022
+ */
642
1023
  getLeftDailyRedemptionQuotaFlexibleProduct(params) {
643
1024
  return this.getPrivate(`sapi/v1/lending/daily/userRedemptionQuota`, params);
644
1025
  }
1026
+ /**
1027
+ * @deprecated as of 2023-06-22, now Simple Earn
1028
+ */
645
1029
  purchaseFixedAndActivityProject(params) {
646
1030
  return this.postPrivate(`sapi/v1/lending/customizedFixed/purchase`, params);
647
1031
  }
1032
+ /**
1033
+ * @deprecated as of 2023-06-22, now Simple Earn
1034
+ */
648
1035
  getFixedAndActivityProjects(params) {
649
1036
  return this.getPrivate(`sapi/v1/lending/project/list`, params);
650
1037
  }
1038
+ /**
1039
+ * @deprecated as of 2023-06-22, now Simple Earn
1040
+ */
651
1041
  getFixedAndActivityProductPosition(params) {
652
1042
  return this.getPrivate(`sapi/v1/lending/project/position/list`, params);
653
1043
  }
1044
+ /**
1045
+ * @deprecated as of 2023-06-22, now Simple Earn
1046
+ */
654
1047
  getLendingAccount() {
655
1048
  return this.getPrivate(`sapi/v1/lending/union/account`);
656
1049
  }
1050
+ /**
1051
+ * @deprecated as of 2023-06-22, now Simple Earn
1052
+ */
657
1053
  getPurchaseRecord(params) {
658
1054
  return this.getPrivate(`sapi/v1/lending/union/purchaseRecord`, params);
659
1055
  }
1056
+ /**
1057
+ * @deprecated as of 2023-06-22, now Simple Earn
1058
+ */
660
1059
  getRedemptionRecord(params) {
661
1060
  return this.getPrivate(`sapi/v1/lending/union/redemptionRecord`, params);
662
1061
  }
1062
+ /**
1063
+ * @deprecated as of 2023-06-22, now Simple Earn
1064
+ */
663
1065
  getInterestHistory(params) {
664
1066
  return this.getPrivate(`sapi/v1/lending/union/interestHistory`, params);
665
1067
  }
1068
+ /**
1069
+ * @deprecated as of 2023-06-22, now Simple Earn
1070
+ */
666
1071
  changeFixedAndActivityPositionToDailyPosition(params) {
667
1072
  return this.postPrivate(`sapi/v1/lending/positionChanged`, params);
668
1073
  }
@@ -671,7 +1076,45 @@ class MainClient extends BaseRestClient_1.default {
671
1076
  * Mining Endpoints
672
1077
  *
673
1078
  **/
674
- //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
+ }
675
1118
  /**
676
1119
  *
677
1120
  * Futures Management Endpoints:
@@ -696,49 +1139,408 @@ class MainClient extends BaseRestClient_1.default {
696
1139
  getFutureAccountTransferHistory(params) {
697
1140
  return this.getPrivate(`sapi/v1/futures/transfer`, params);
698
1141
  }
1142
+ getFuturesTickLevelOrderbookDataLink(params) {
1143
+ return this.getPrivate('sapi/v1/futures/histDataLink', params);
1144
+ }
1145
+ /**
1146
+ * @deprecated as of 2023-09-25
1147
+ */
699
1148
  getCrossCollateralBorrowHistory(params) {
700
1149
  return this.getPrivate(`sapi/v1/futures/loan/borrow/history`, params);
701
1150
  }
1151
+ /**
1152
+ * @deprecated as of 2023-09-25
1153
+ */
702
1154
  getCrossCollateralRepaymentHistory(params) {
703
1155
  return this.getPrivate(`sapi/v1/futures/loan/repay/history`, params);
704
1156
  }
1157
+ /**
1158
+ * @deprecated as of 2023-09-25
1159
+ */
705
1160
  getCrossCollateralWalletV2() {
706
1161
  return this.getPrivate(`sapi/v2/futures/loan/wallet`);
707
1162
  }
1163
+ /**
1164
+ * @deprecated as of 2023-09-25
1165
+ */
708
1166
  getAdjustCrossCollateralLTVHistory(params) {
709
1167
  return this.getPrivate(`sapi/v1/futures/loan/adjustCollateral/history`, params);
710
1168
  }
1169
+ /**
1170
+ * @deprecated as of 2023-09-25
1171
+ */
711
1172
  getCrossCollateralLiquidationHistory(params) {
712
1173
  return this.getPrivate(`sapi/v1/futures/loan/liquidationHistory`, params);
713
1174
  }
1175
+ /**
1176
+ * @deprecated as of 2023-09-25
1177
+ */
714
1178
  getCrossCollateralInterestHistory(params) {
715
1179
  return this.getPrivate(`sapi/v1/futures/loan/interestHistory`, params);
716
1180
  }
717
- //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
+ }
718
1271
  /**
719
1272
  *
720
1273
  * BLVT Endpoints
721
1274
  *
722
1275
  **/
723
- //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
+ }
724
1313
  /**
725
1314
  *
726
- * BSwap Endpoints
1315
+ * VIP Loans Endpoints
727
1316
  *
728
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
+ **/
729
1523
  getBSwapLiquidity(params) {
730
- return this.getPrivate('sapi/v1/bswap/liquidity');
1524
+ return this.getPrivate('sapi/v1/bswap/liquidity', params);
731
1525
  }
1526
+ /**
1527
+ * @deprecated as of 2024-01-19
1528
+ **/
732
1529
  addBSwapLiquidity(params) {
733
- return this.postPrivate('sapi/v1/bswap/liquidityAdd');
1530
+ return this.postPrivate('sapi/v1/bswap/liquidityAdd', params);
734
1531
  }
1532
+ /**
1533
+ * @deprecated as of 2024-01-19
1534
+ **/
735
1535
  removeBSwapLiquidity(params) {
736
- return this.postPrivate('sapi/v1/bswap/liquidityRemove');
1536
+ return this.postPrivate('sapi/v1/bswap/liquidityRemove', params);
737
1537
  }
1538
+ /**
1539
+ * @deprecated as of 2024-01-19
1540
+ **/
738
1541
  getBSwapOperations(params) {
739
- return this.getPrivate('sapi/v1/bswap/liquidityOps');
1542
+ return this.getPrivate('sapi/v1/bswap/liquidityOps', params);
740
1543
  }
741
- //TODO: add missing bswap-endpoints https://binance-docs.github.io/apidocs/spot/en/#bswap-endpoints
742
1544
  /**
743
1545
  * Validate syntax meets requirements set by binance. Log warning if not.
744
1546
  */