binance 2.14.0 → 2.15.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.
@@ -1,9 +1,9 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
2
  import { ClassicPortfolioMarginAccount, ClassicPortfolioMarginNotionalLimit, CoinMAccountTradeParams, CoinMOpenInterest, CoinMPositionTrade, CoinMSymbolOrderBookTicker, FundingRate, FuturesTransactionHistoryDownloadLink, GetClassicPortfolioMarginNotionalLimitParams, PositionRisk, SymbolOrPair } from './types/coin';
3
- import { BasicSymbolPaginatedParams, BasicSymbolParam, GetOrderParams, OrderBookParams, HistoricalTradesParams, KlinesParams, Kline, RecentTradesParams, CancelOrderParams, SymbolFromPaginatedRequestFromId, GetAllOrdersParams, GenericCodeMsgError, GetOrderModifyHistoryParams, SymbolPrice } from './types/shared';
4
- import { ContinuousContractKlinesParams, IndexPriceKlinesParams, SymbolKlinePaginatedParams, FuturesDataPaginatedParams, NewFuturesOrderParams, CancelMultipleOrdersParams, CancelOrdersTimeoutParams, SetLeverageParams, SetMarginTypeParams, SetIsolatedMarginParams, GetPositionMarginChangeHistoryParams, GetIncomeHistoryParams, GetForceOrdersParams, FuturesExchangeInfo, FuturesOrderBook, RawFuturesTrade, AggregateFuturesTrade, FundingRateHistory, ModeChangeResult, PositionModeParams, PositionModeResponse, NewOrderResult, NewOrderError, OrderResult, QuarterlyContractSettlementPrice, CancelFuturesOrderResult, CancelAllOpenOrdersResult, SetLeverageResult, SetIsolatedMarginResult, ForceOrderResult, SymbolLeverageBracketsResult, IncomeHistory, RebateDataOverview, SetCancelTimeoutResult, ChangeStats24hr, MarkPrice, FuturesCoinMTakerBuySellVolumeParams, FuturesCoinMBasisParams, ModifyFuturesOrderResult, ModifyFuturesOrderParams, OrderAmendment, FuturesCoinMAccountBalance, FuturesCoinMAccountInformation, UserCommissionRate, IndexPriceConstituents } from './types/futures';
5
- import { RestClientOptions } from './util/requestUtils';
3
+ import { AggregateFuturesTrade, CancelAllOpenOrdersResult, CancelFuturesOrderResult, CancelMultipleOrdersParams, CancelOrdersTimeoutParams, ChangeStats24hr, ContinuousContractKlinesParams, ForceOrderResult, FundingRateHistory, FuturesCoinMAccountBalance, FuturesCoinMAccountInformation, FuturesCoinMBasisParams, FuturesCoinMTakerBuySellVolumeParams, FuturesDataPaginatedParams, FuturesExchangeInfo, FuturesOrderBook, GetForceOrdersParams, GetIncomeHistoryParams, GetPositionMarginChangeHistoryParams, IncomeHistory, IndexPriceConstituents, IndexPriceKlinesParams, MarkPrice, ModeChangeResult, ModifyFuturesOrderParams, ModifyFuturesOrderResult, NewFuturesOrderParams, NewOrderError, NewOrderResult, OrderAmendment, OrderResult, PositionModeParams, PositionModeResponse, QuarterlyContractSettlementPrice, RawFuturesTrade, RebateDataOverview, SetCancelTimeoutResult, SetIsolatedMarginParams, SetIsolatedMarginResult, SetLeverageParams, SetLeverageResult, SetMarginTypeParams, SymbolKlinePaginatedParams, SymbolLeverageBracketsResult, UserCommissionRate } from './types/futures';
4
+ import { BasicSymbolPaginatedParams, BasicSymbolParam, CancelOrderParams, GenericCodeMsgError, GetAllOrdersParams, GetOrderModifyHistoryParams, GetOrderParams, HistoricalTradesParams, Kline, KlinesParams, OrderBookParams, RecentTradesParams, SymbolFromPaginatedRequestFromId, SymbolPrice } from './types/shared';
6
5
  import BaseRestClient from './util/BaseRestClient';
6
+ import { RestClientOptions } from './util/requestUtils';
7
7
  export declare class CoinMClient extends BaseRestClient {
8
8
  private clientId;
9
9
  constructor(restClientOptions?: RestClientOptions, requestOptions?: AxiosRequestConfig, useTestnet?: boolean);
@@ -16,7 +16,7 @@ export declare class CoinMClient extends BaseRestClient {
16
16
  * Market Data Endpoints
17
17
  *
18
18
  **/
19
- testConnectivity(): Promise<{}>;
19
+ testConnectivity(): Promise<object>;
20
20
  getExchangeInfo(): Promise<FuturesExchangeInfo>;
21
21
  getOrderBook(params: OrderBookParams): Promise<FuturesOrderBook>;
22
22
  getRecentTrades(params: RecentTradesParams): Promise<RawFuturesTrade[]>;
@@ -221,8 +221,8 @@ export declare class CoinMClient extends BaseRestClient {
221
221
  getFuturesUserDataListenKey(): Promise<{
222
222
  listenKey: string;
223
223
  }>;
224
- keepAliveFuturesUserDataListenKey(): Promise<{}>;
225
- closeFuturesUserDataListenKey(): Promise<{}>;
224
+ keepAliveFuturesUserDataListenKey(): Promise<object>;
225
+ closeFuturesUserDataListenKey(): Promise<object>;
226
226
  /**
227
227
  * Validate syntax meets requirements set by binance. Log warning if not.
228
228
  */
@@ -13,8 +13,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.CoinMClient = void 0;
16
- const requestUtils_1 = require("./util/requestUtils");
17
16
  const BaseRestClient_1 = __importDefault(require("./util/BaseRestClient"));
17
+ const requestUtils_1 = require("./util/requestUtils");
18
18
  class CoinMClient extends BaseRestClient_1.default {
19
19
  constructor(restClientOptions = {}, requestOptions = {}, useTestnet) {
20
20
  const clientId = useTestnet ? 'coinmtest' : 'coinm';
@@ -1 +1 @@
1
- {"version":3,"file":"coinm-client.js","sourceRoot":"","sources":["../src/coinm-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAmFA,sDAO6B;AAE7B,2EAAmD;AAEnD,MAAa,WAAY,SAAQ,wBAAc;IAG7C,YACE,oBAAuC,EAAE,EACzC,iBAAqC,EAAE,EACvC,UAAoB;QAEpB,MAAM,QAAQ,GAAG,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC;QAEpD,KAAK,CAAC,QAAQ,EAAE,iBAAiB,EAAE,cAAc,CAAC,CAAC;QAEnD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACG,aAAa;;YACjB,OAAO,IAAI,CAAC,GAAG,CAAC,IAAA,oCAAqB,EAAC,IAAI,CA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,OAAO;SACR;QAED,MAAM,qBAAqB,GAAG,KAAK,IAAA,+BAAgB,EAAC,WAAW,CAAC,EAAE,CAAC;QACnE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE;YAC9D,IAAA,gCAAiB,EAAC,eAAe,EAAE,qBAAqB,EAAE,MAAM,CAAC,CAAC;SACnE;IACH,CAAC;CACF;AA5mBD,kCA4mBC"}
package/lib/index.d.ts CHANGED
@@ -2,15 +2,15 @@ export * from './';
2
2
  export * from './coinm-client';
3
3
  export * from './logger';
4
4
  export * from './main-client';
5
+ export * from './portfolio-client';
5
6
  export * from './types/coin';
6
7
  export * from './types/futures';
7
8
  export * from './types/shared';
8
9
  export * from './types/spot';
9
10
  export * from './types/websockets';
10
11
  export * from './usdm-client';
11
- export * from './portfolio-client';
12
12
  export * from './util/requestUtils';
13
13
  export * from './util/typeGuards';
14
- export * from './util/WsStore';
15
14
  export * from './util/usdm';
15
+ export * from './util/WsStore';
16
16
  export * from './websocket-client';
package/lib/index.js CHANGED
@@ -18,16 +18,16 @@ __exportStar(require("./"), exports);
18
18
  __exportStar(require("./coinm-client"), exports);
19
19
  __exportStar(require("./logger"), exports);
20
20
  __exportStar(require("./main-client"), exports);
21
+ __exportStar(require("./portfolio-client"), exports);
21
22
  __exportStar(require("./types/coin"), exports);
22
23
  __exportStar(require("./types/futures"), exports);
23
24
  __exportStar(require("./types/shared"), exports);
24
25
  __exportStar(require("./types/spot"), exports);
25
26
  __exportStar(require("./types/websockets"), exports);
26
27
  __exportStar(require("./usdm-client"), exports);
27
- __exportStar(require("./portfolio-client"), exports);
28
28
  __exportStar(require("./util/requestUtils"), exports);
29
29
  __exportStar(require("./util/typeGuards"), exports);
30
- __exportStar(require("./util/WsStore"), exports);
31
30
  __exportStar(require("./util/usdm"), exports);
31
+ __exportStar(require("./util/WsStore"), exports);
32
32
  __exportStar(require("./websocket-client"), exports);
33
33
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qCAAmB;AACnB,iDAA+B;AAC/B,2CAAyB;AACzB,gDAA8B;AAC9B,+CAA6B;AAC7B,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,qDAAmC;AACnC,gDAA8B;AAC9B,qDAAmC;AACnC,sDAAoC;AACpC,oDAAkC;AAClC,iDAA+B;AAC/B,8CAA4B;AAC5B,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qCAAmB;AACnB,iDAA+B;AAC/B,2CAAyB;AACzB,gDAA8B;AAC9B,qDAAmC;AACnC,+CAA6B;AAC7B,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,qDAAmC;AACnC,gDAA8B;AAC9B,sDAAoC;AACpC,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,qDAAmC"}
package/lib/logger.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DefaultLogger = void 0;
4
4
  exports.DefaultLogger = {
5
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
6
  silly: (...params) => { },
6
7
  debug: (...params) => {
7
8
  console.log(new Date(), params);
package/lib/logger.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAG;IAC3B,KAAK,EAAE,CAAC,GAAG,MAAiB,EAAQ,EAAE,GAAE,CAAC;IACzC,KAAK,EAAE,CAAC,GAAG,MAAiB,EAAQ,EAAE;QACpC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IAClC,CAAC;IACD,MAAM,EAAE,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AC;IACD,KAAK,EAAE,CAAC,GAAG,MAAiB,EAAQ,EAAE;QACpC,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IACpC,CAAC;CACF,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- import { BasicAssetPaginatedParams, BasicAssetParam, BasicSymbolParam, BinanceBaseUrlKey, CancelOCOParams, CancelOrderParams, ExchangeSymbol, GetAllOrdersParams, GetOrderParams, HistoricalTradesParams, KlinesParams, Kline, NewOCOParams, OrderBookParams, RecentTradesParams, SymbolFromPaginatedRequestFromId, SymbolPrice, RowsWithTotal, CoinStartEndLimit, SymbolArrayParam, NewOrderListParams, OrderResponseType, OrderType } from './types/shared';
3
- import { AccountInformation, AddBSwapLiquidityParams, AddIpRestriction, AggregateTrade, AllCoinsInformationResponse, ApiKeyBrokerSubAccount, APIPermissions, APITradingStatus, AssetDetail, BasicFromPaginatedParams, BasicFuturesSubAccountParams, BasicMarginAssetParams, BasicSubAccount, BasicTimeRangeParam, BrokerSubAccount, BrokerSubAccountHistory, BSwapLiquidity, BSwapOperations, BSwapOperationsParams, CancelSpotOrderResult, ChangePermissionApiKeyBrokerSubAccountParams, ChangePermissionApiKeyBrokerSubAccountResponse, ConvertDustParams, CreateApiKeyBrokerSubAccountParams, CreateApiKeyBrokerSubAccountResponse, CreateBrokerSubAccountParams, CreateSubAccountParams, CurrentAvgPrice, DailyAccountSnapshot, DailyAccountSnapshotParams, DailyChangeStatistic, DeleteApiKeyBrokerSubAccountParams, DepositAddressParams, DepositAddressResponse, DepositHistory, DepositHistoryParams, DustConversion, DustInfo, DustLog, EnableFuturesBrokerSubAccountParams, EnableFuturesBrokerSubAccountResponse, EnableMarginApiKeyBrokerSubAccountParams, EnableMarginBrokerSubAccountParams, EnableMarginBrokerSubAccountResponse, EnableOrDisableIPRestrictionForSubAccountParams, EnableUniversalTransferApiKeyBrokerSubAccountParams, EnableUniversalTransferApiKeyBrokerSubAccountResponse, ExchangeInfo, ExchangeInfoParams, FixedAndActivityProjectParams, FixedAndActivityProjectPositionParams, FuturesPositionRisk, GetApiKeyBrokerSubAccountParams, GetBrokerInfoResponse, GetBrokerSubAccountParams, GetBrokerSubAccountHistoryParams, GetBrokerSubAccountDepositHistoryParams, GetOCOParams, GetUniversalTransferBrokerParams, IsolatedMarginAccountInfo, IsolatedMarginAccountTransferParams, LeftDailyPurchaseQuotaFlexibleProductResponse, MarginAccountLoanParams, MarginTransactionResponse, NewSpotOrderParams, OrderBookResponse, TransferBrokerSubAccountParams, TransferBrokerSubAccount, PurchaseFlexibleProductResponse, PurchaseRecordParams, QueryCrossMarginAccountDetailsParams, QueryCrossMarginPairResponse, QueryMarginAssetResponse, QueryMarginPriceIndexResponse, QueryMarginRecordParams, QueryMaxBorrowResponse, QueryMaxTransferOutAmountResponse, RawAccountTrade, RawTrade, RemoveBSwapLiquidityParams, SpotOrder, StakingBasicParams, StakingHistory, StakingHistoryParams, StakingPersonalLeftQuota, StakingProduct, StakingProductPosition, StakingProductType, SubAccountAddOrDeleteIPList, SubAccountAssetDetails, SubAccountAssets, SubAccountAssetsParams, SubAccountCOINMDetail, SubAccountCOINMPositionRisk, SubAccountCOINMSummary, SubAccountDepositAddress, SubAccountDepositAddressParams, SubAccountDepositHistoryParams, SubAccountEnableFutures, SubAccountEnableLeverageToken, SubAccountEnableMargin, SubAccountFuturesAccountDetail, SubAccountFuturesAccountSummary, SubAccountFuturesAssetTransfer, SubAccountFuturesAssetTransferHistory, SubAccountFuturesAssetTransferHistoryParams, SubAccountFuturesAssetTransferParams, SubAccountListParams, SubAccountListResponse, SubAccountMarginAccountDetail, SubAccountEnableOrDisableIPRestriction, SubAccountsMarginAccountSummary, SubAccountSpotAssetsSummary, SubAccountSpotAssetsSummaryParams, SubAccountSpotAssetTransferHistory, SubAccountSpotAssetTransferHistoryParams, SubAccountStatus, SubAccountSummaryOnFuturesAccountV2Params, SubAccountTransfer, SubAccountTransferHistory, SubAccountTransferHistoryParams, SubAccountTransferParams, SubAccountTransferToMasterParams, SubAccountTransferToSameMasterParams, SubAccountUniversalTransfer, SubAccountUniversalTransferHistoryParams, SubAccountUniversalTransferHistoryResponse, SubAccountUniversalTransferParams, SubAccountUSDMDetail, SubAccountUSDMPositionRisk, SubAccountUSDMSummary, SymbolOrderBookTicker, SymbolTradeFee, SystemStatusResponse, UniversalTransferBrokerParams, UniversalTransferHistoryParams, UniversalTransferParams, VirtualSubAccount, WithdrawAssetsFromManagedSubAccountParams, WithdrawHistory, WithdrawHistoryParams, WithdrawParams, NewFutureAccountTransferParams, GetFutureAccountTransferHistoryParams, FutureAccountTransfer, GetLoanCoinPaginatedHistoryParams, SubAccountDepositHistoryList, ConvertQuoteRequestParams, GetConvertTradeHistoryParams, GetOrderStatusParams, EnableConvertSubAccountParams, AcceptQuoteRequestParams, ReplaceSpotOrderParams, ReplaceSpotOrderResultSuccess, NewSpotSOROrderParams, SOROrderResponseFull, SORTestOrderResponse, OrderListResponse, OrderResponseTypeFor, OrderList, CancelOrderListResult, GetMarginAccountBorrowRepayRecordsParams, MarginAccountRecord, FundingAsset, UserAsset, ConvertTransferResponse, CloudMiningHistoryParams, ConvertibleCoinsResponse, ConvertibleCoinsParams, GetConvertBUSDHistoryParams, SubmitDepositCreditParams, SubmitDepositCreditResponse, DepositAddressListParams, DepositAddress, WalletBalance, DelegationHistoryParams, DelistScheduleResponse, WithdrawAddress, AccountInfo, ManagedSubAccountSnapshotParams, ManagedSubAccountSnapshot, ManagedSubAccountTransferLogParams, ManagedSubAccountFuturesAssetsResponse, ManagedSubAccountMarginAssetsResponse, ManagedSubAccountListParams, SubAccountTransactionStatistics, ManagedSubAccountDepositAddressParams, ManagedSubAccountDepositAddress, EnableOptionsForSubAccountResponse, ManagedSubAccountTransferTTLogParams, TradingDayTickerParams, RollingWindowTickerParams, NewOrderListOTOParams, NewOrderListOTOCOParams, NewOrderListOTOCOResponse, PreventedMatchesParams, PreventedMatch, AllocationsParams, CommissionRates, GetCrossMarginTransferHistoryParams, GetMarginInterestHistoryParams, GetForceLiquidationRecordParams, QueryMarginAccountAllOCOParams, QueryMarginAccountTradeListParams, IsolatedMarginSymbol, ToggleBNBBurnParams, BNBBurnResponse, QueryMarginInterestRateHistoryParams, MarginInterestRateHistory, QueryCrossMarginFeeDataParams, CrossMarginFeeData, IsolatedMarginFeeData, QueryIsolatedMarginTierDataParams, IsolatedMarginTierData, GetMarginOrderCountUsageParams, MarginOrderCountUsageResponse, SmallLiabilityExchangeCoin, GetSmallLiabilityExchangeHistoryParams, GetNextHourlyInterestRateParams, NextHourlyInterestRate, GetMarginCapitalFlowParams, MarginCapitalFlow, MarginDelistSchedule, MarginAvailableInventoryResponse, ManualLiquidationResponse, ManualLiquidationParams, LiabilityCoinLeverageBracket, GetFlexibleSubscriptionRecordParams, GetLockedSubscriptionRecordParams, GetFlexibleRedemptionRecordParams, GetLockedRedemptionRecordParams, GetFlexibleRewardsHistoryParams, GetLockedRewardsHistoryParams, GetFlexibleSubscriptionPreviewParams, GetLockedSubscriptionPreviewParams, GetRateHistoryParams, GetCollateralRecordParams, GetDualInvestmentProductListParams, SubscribeDualInvestmentProductParams, SubscribeDualInvestmentProductResponse, GetDualInvestmentPositionsParams, CheckDualInvestmentAccountsResponse, ChangeAutoCompoundStatusParams, ChangeAutoCompoundStatusResponse, GetTargetAssetListParams, GetTargetAssetListResponse, TargetAssetROI, GetTargetAssetROIParams, GetSourceAssetListParams, GetSourceAssetListResponse, CreateInvestmentPlanParams, CreateInvestmentPlanResponse, EditInvestmentPlanParams, EditInvestmentPlanResponse, ChangePlanStatusParams, ChangePlanStatusResponse, GetPlanDetailsParams, GetSubscriptionTransactionHistoryParams, GetIndexDetailsResponse, GetIndexLinkedPlanPositionDetailsResponse, SubmitOneTimeTransactionParams, SubmitOneTimeTransactionResponse, GetOneTimeTransactionStatusParams, GetOneTimeTransactionStatusResponse, SubmitIndexLinkedPlanRedemptionParams, GetIndexLinkedPlanRedemptionHistoryParams, IndexLinkedPlanRedemptionRecord, GetIndexLinkedPlanRebalanceHistoryParams, SubscribeEthStakingV2Response, RedeemEthParams, RedeemEthResponse, GetEthStakingHistoryParams, GetEthRedemptionHistoryParams, GetBethRewardsHistoryParams, GetEthStakingQuotaResponse, GetETHRateHistoryParams, GetEthStakingAccountResponse, GetEthStakingAccountV2Response, WrapBethResponse, GetWrapHistoryParams, GetWbethRewardsHistoryResponse, GetMiningAlgoListResponse, GetMiningCoinListResponse, GetMinerDetailsParams, GetMinerDetailsResponse, GetMinerListParams, GetMinerListResponse, GetEarningsListParams, GetEarningsListResponse, GetExtraBonusListParams, GetExtraBonusListResponse, GetHashrateResaleListParams, GetHashrateResaleListResponse, GetHashrateResaleDetailParams, GetHashrateResaleDetailResponse, SubmitHashrateResaleParams, CancelHashrateResaleConfigParams, GetStatisticListParams, GetStatisticListResponse, getMiningAccountsListParams, getMiningAccountsListResponse, GetMiningAccountEarningParams, GetMiningAccountEarningResponse, GetFutureTickLevelOrderbookDataLinkParams, SubmitVpNewOrderParams, SubmitVpNewOrderResponse, SubmitTwapNewOrderParams, SubmitTwapNewOrderResponse, CancelAlgoOrderResponse, GetAlgoHistoricalOrdersParams, GetAlgoSubOrdersParams, GetAlgoSubOrdersResponse, SubmitSpotTwapNewOrderParams, SubmitSpotTwapNewOrderResponse, CancelSpotAlgoOrderResponse, GetSpotAlgoHistoricalOrdersParams, GetSpotAlgoSubOrdersParams, GetSpotAlgoSubOrdersResponse, GetPortfolioMarginAssetIndexPriceResponse, GetPortfolioMarginProAccountInfoResponse, GetPortfolioMarginProBankruptcyLoanAmountResponse, GetPortfolioMarginProCollateralRateResponse, GetPortfolioMarginProInterestHistoryParams, GetPortfolioMarginProInterestHistoryResponse, BnbTransferParams, GetPortfolioMarginAssetLeverageResponse, SubscribeBlvtParams, SubscribeBlvtResponse, GetBlvtSubscriptionRecordParams, BlvtSubscriptionRecord, RedeemBlvtParams, RedeemBlvtResponse, GetBlvtRedemptionRecordParams, BlvtRedemptionRecord, BlvtUserLimitInfo, GetFiatOrderHistoryParams, GetFiatOrderHistoryResponse, GetFiatPaymentsHistoryResponse, GetC2CTradeHistoryParams, GetC2CTradeHistoryResponse, GetVipLoanOngoingOrdersParams, VipLoanRepayParams, VipLoanRepayResponse, GetVipLoanRepaymentHistoryParams, VipLoanRenewParams, VipLoanRenewResponse, CheckVipCollateralAccountParams, VipLoanBorrowParams, VipLoanBorrowResponse, GetLoanableAssetsDataParams, GetCollateralAssetDataParams, GetApplicationStatusParams, BorrowInterestRate, GetCryptoLoansIncomeHistoryParams, GetCryptoLoansIncomeHistoryResponse, BorrowCryptoLoanParams, BorrowCryptoLoanResponse, GetLoanBorrowHistoryParams, GetLoanOngoingOrdersParams, RepayCryptoLoanResponse, RepayCryptoLoanParams, GetLoanRepaymentHistoryParams, AdjustCryptoLoanLTVParams, AdjustCryptoLoanLTVResponse, GetLoanLTVAdjustmentHistoryParams, CheckCollateralRepayRateParams, CheckCollateralRepayRateResponse, CustomizeMarginCallParams, BorrowFlexibleLoanParams, BorrowFlexibleLoanResponse, GetFlexibleLoanOngoingOrdersParams, GetFlexibleCryptoLoanBorrowHistoryParams, RepayCryptoFlexibleLoanParams, RepayCryptoFlexibleLoanResponse, AdjustFlexibleCryptoLoanLTVResponse, AdjustFlexibleCryptoLoanLTVParams, GetFlexibleLoanLTVAdjustmentHistoryParams, GetFuturesLeadTraderStatusResponse, GetFuturesLeadTradingSymbolWhitelistResponse, GetPayTradeHistoryParams, GetAllConvertPairsParams, SubmitConvertLimitOrderParams, GetSpotRebateHistoryRecordsParams, GetSpotRebateHistoryRecordsResponse, GetNftDepositHistoryParams, GetNftWithdrawHistoryParams, GetNftAssetParams, CreateGiftCardParams, CreateDualTokenGiftCardParams, RedeemGiftCardParams, ConvertLimitOpenOrder, HistoricalDataLink, SetAutoSubscribeParams, GetAssetParams, SimpleEarnAccountResponse, SimpleEarnFlexibleProductPositionParams, SimpleEarnLockedProductPositionParams, SimpleEarnProductListParams, SimpleEarnRedeemResponse, SimpleEarnSubscribeFlexibleProductResponse, SimpleEarnSubscribeLockedProductResponse, SimpleEarnSubscribeProductParams, ConvertTransfer, BUSDConversionRecord, CloudMining, DelegationHistory, CrossMarginTransferHistory, MarginInterestHistory, ForceLiquidationRecord, SmallLiabilityExchangeHistory, GetFlexibleSubscriptionRecordResponse, SimpleEarnLockedProduct, SimpleEarnLockedProductPosition, SimpleEarnFlexibleProduct, FlexibleLoanCollateralAssetData, FlexibleLoanAssetData, FlexibleLoanLTVAdjustmentHistory, FlexibleLoanOngoingOrder, FlexibleCryptoLoanBorrowHistory, CustomizeMarginCall, LoanableAssetData, CollateralAssetData, LoanLTVAdjustmentHistory, LoanRepaymentHistory, LoanOngoingOrder, ApplicationStatus, VipCollateralAccount, VipLoanRepaymentHistory, VipOngoingOrder, WrapHistory, ETHRateHistory, BethRewardsHistory, EthRedemptionHistory, EthStakingHistory, GetRateHistory, GetLockedRewardsHistory, FlexibleRewardsHistory, LockedSubscriptionRecord, FlexibleRedemptionRecord, LockedRedemptionRecord, LoanBorrowHistory, OrderRateLimitUsage, SubaccountBalances, ManagerSubTransferHistoryVos, ManagerSubUserInfoVo, TradingDayTickerMini, TradingDayTickerFull, Collateral, FlexibleSubscriptionPreview, LockedSubscriptionPreview, DualInvestmentPosition, NftWithdraw, NftAsset, NftTransaction, NftDeposit, HistoricalSpotAlgoOrder, SpotAlgoOrder, HistoricalAlgoOrder, AlgoOrder, GetNftTransactionHistoryParams, CollateralRecord, DualInvestmentProduct, UpdateIpRestrictionForSubApiKey, GetSubAccountDepositHistoryParams, QuerySubAccountSpotMarginAssetInfoParams, QuerySubAccountFuturesAssetInfoParams, BrokerUniversalTransfer, ChangeSubAccountCommissionParams, ChangeSubAccountCommissionResponse, ChangeSubAccountFuturesCommissionParams, ChangeSubAccountFuturesCommissionResponse, QuerySubAccountFuturesCommissionParams, BrokerSubAccountFuturesCommission, ChangeSubAccountCoinFuturesCommissionParams, BrokerSubAccountCoinFuturesCommission, QuerySubAccountCoinFuturesCommissionParams, BrokerCommissionRebate, QueryBrokerSpotCommissionRebateParams, QueryBrokerFuturesCommissionRebateParams, UsdtMarginedFuturesResponse, CoinMarginedFuturesResponse, SubAccountDeposit, SubaccountBrokerSpotAsset, SubAccountBrokerMarginAsset, SubmitMarginOTOOrderParams, MarginOTOOrder, MarginOTOCOOrder, SubmitMarginOTOCOOrderParams, NewOrderListOTOResponse, CreateSpecialLowLatencyKeyParams, SpecialLowLatencyKeyResponse, SpecialLowLatencyKeyInfo, SolStakingAccount, SolStakingQuota, SubscribeSolStakingResponse, RedeemSolResponse, GetSolStakingHistoryReq, SolStakingHistoryRecord, SolRedemptionHistoryRecord, GetBnsolRewardsHistoryReq, BnsolRewardHistoryRecord, BnsolRateHistoryRecord, GetBnsolRateHistoryReq, PortfolioMarginProSpanAccountInfo, PortfolioMarginProAccountBalance, SimpleEarnRedeemFlexibleProductParams, VipLoanInterestRateHistoryParams, VipLoanInterestRateRecord, VipLoanAccruedInterestParams, VipLoanAccruedInterestRecord } from './types/spot';
4
- import { RestClientOptions } from './util/requestUtils';
2
+ import { BasicAssetPaginatedParams, BasicAssetParam, BasicSymbolParam, BinanceBaseUrlKey, CancelOCOParams, CancelOrderParams, CoinStartEndLimit, ExchangeSymbol, GetAllOrdersParams, GetOrderParams, HistoricalTradesParams, Kline, KlinesParams, NewOCOParams, NewOrderListParams, OrderBookParams, OrderResponseType, OrderType, RecentTradesParams, RowsWithTotal, SymbolArrayParam, SymbolFromPaginatedRequestFromId, SymbolPrice } from './types/shared';
3
+ import { AcceptQuoteRequestParams, AccountInfo, AccountInformation, AddBSwapLiquidityParams, AddIpRestriction, AdjustCryptoLoanLTVParams, AdjustCryptoLoanLTVResponse, AdjustFlexibleCryptoLoanLTVParams, AdjustFlexibleCryptoLoanLTVResponse, AggregateTrade, AlgoOrder, AllCoinsInformationResponse, AllocationsParams, ApiKeyBrokerSubAccount, APIPermissions, APITradingStatus, ApplicationStatus, AssetDetail, BasicFromPaginatedParams, BasicFuturesSubAccountParams, BasicMarginAssetParams, BasicSubAccount, BasicTimeRangeParam, BethRewardsHistory, BlvtRedemptionRecord, BlvtSubscriptionRecord, BlvtUserLimitInfo, BNBBurnResponse, BnbTransferParams, BnsolRateHistoryRecord, BnsolRewardHistoryRecord, BorrowCryptoLoanParams, BorrowCryptoLoanResponse, BorrowFlexibleLoanParams, BorrowFlexibleLoanResponse, BorrowInterestRate, BrokerCommissionRebate, BrokerSubAccount, BrokerSubAccountCoinFuturesCommission, BrokerSubAccountFuturesCommission, BrokerSubAccountHistory, BrokerUniversalTransfer, BSwapLiquidity, BSwapOperations, BSwapOperationsParams, BUSDConversionRecord, CancelAlgoOrderResponse, CancelHashrateResaleConfigParams, CancelOrderListResult, CancelSpotAlgoOrderResponse, CancelSpotOrderResult, ChangeAutoCompoundStatusParams, ChangeAutoCompoundStatusResponse, ChangePermissionApiKeyBrokerSubAccountParams, ChangePermissionApiKeyBrokerSubAccountResponse, ChangePlanStatusParams, ChangePlanStatusResponse, ChangeSubAccountCoinFuturesCommissionParams, ChangeSubAccountCommissionParams, ChangeSubAccountCommissionResponse, ChangeSubAccountFuturesCommissionParams, ChangeSubAccountFuturesCommissionResponse, CheckCollateralRepayRateParams, CheckCollateralRepayRateResponse, CheckDualInvestmentAccountsResponse, CheckVipCollateralAccountParams, CloudMining, CloudMiningHistoryParams, CoinMarginedFuturesResponse, Collateral, CollateralAssetData, CollateralRecord, CommissionRates, ConvertDustParams, ConvertibleCoinsParams, ConvertibleCoinsResponse, ConvertLimitOpenOrder, ConvertQuoteRequestParams, ConvertTransfer, ConvertTransferResponse, CreateApiKeyBrokerSubAccountParams, CreateApiKeyBrokerSubAccountResponse, CreateBrokerSubAccountParams, CreateDualTokenGiftCardParams, CreateGiftCardParams, CreateInvestmentPlanParams, CreateInvestmentPlanResponse, CreateSpecialLowLatencyKeyParams, CreateSubAccountParams, CrossMarginFeeData, CrossMarginTransferHistory, CurrentAvgPrice, CustomizeMarginCall, CustomizeMarginCallParams, DailyAccountSnapshot, DailyAccountSnapshotParams, DailyChangeStatistic, DelegationHistory, DelegationHistoryParams, DeleteApiKeyBrokerSubAccountParams, DelistScheduleResponse, DepositAddress, DepositAddressListParams, DepositAddressParams, DepositAddressResponse, DepositHistory, DepositHistoryParams, DualInvestmentPosition, DualInvestmentProduct, DustConversion, DustInfo, DustLog, EditInvestmentPlanParams, EditInvestmentPlanResponse, EnableConvertSubAccountParams, EnableFuturesBrokerSubAccountParams, EnableFuturesBrokerSubAccountResponse, EnableMarginApiKeyBrokerSubAccountParams, EnableMarginBrokerSubAccountParams, EnableMarginBrokerSubAccountResponse, EnableOptionsForSubAccountResponse, EnableOrDisableIPRestrictionForSubAccountParams, EnableUniversalTransferApiKeyBrokerSubAccountParams, EnableUniversalTransferApiKeyBrokerSubAccountResponse, ETHRateHistory, EthRedemptionHistory, EthStakingHistory, ExchangeInfo, ExchangeInfoParams, FixedAndActivityProjectParams, FixedAndActivityProjectPositionParams, FlexibleCryptoLoanBorrowHistory, FlexibleLoanAssetData, FlexibleLoanCollateralAssetData, FlexibleLoanLTVAdjustmentHistory, FlexibleLoanOngoingOrder, FlexibleRedemptionRecord, FlexibleRewardsHistory, FlexibleSubscriptionPreview, ForceLiquidationRecord, FundingAsset, FutureAccountTransfer, FuturesPositionRisk, GetAlgoHistoricalOrdersParams, GetAlgoSubOrdersParams, GetAlgoSubOrdersResponse, GetAllConvertPairsParams, GetApiKeyBrokerSubAccountParams, GetApplicationStatusParams, GetAssetParams, GetBethRewardsHistoryParams, GetBlvtRedemptionRecordParams, GetBlvtSubscriptionRecordParams, GetBnsolRateHistoryReq, GetBnsolRewardsHistoryReq, GetBrokerInfoResponse, GetBrokerSubAccountDepositHistoryParams, GetBrokerSubAccountHistoryParams, GetBrokerSubAccountParams, GetC2CTradeHistoryParams, GetC2CTradeHistoryResponse, GetCollateralAssetDataParams, GetCollateralRecordParams, GetConvertBUSDHistoryParams, GetConvertTradeHistoryParams, GetCrossMarginTransferHistoryParams, GetCryptoLoansIncomeHistoryParams, GetCryptoLoansIncomeHistoryResponse, GetDualInvestmentPositionsParams, GetDualInvestmentProductListParams, GetEarningsListParams, GetEarningsListResponse, GetETHRateHistoryParams, GetEthRedemptionHistoryParams, GetEthStakingAccountResponse, GetEthStakingAccountV2Response, GetEthStakingHistoryParams, GetEthStakingQuotaResponse, GetExtraBonusListParams, GetExtraBonusListResponse, GetFiatOrderHistoryParams, GetFiatOrderHistoryResponse, GetFiatPaymentsHistoryResponse, GetFlexibleCryptoLoanBorrowHistoryParams, GetFlexibleLoanLTVAdjustmentHistoryParams, GetFlexibleLoanOngoingOrdersParams, GetFlexibleRedemptionRecordParams, GetFlexibleRewardsHistoryParams, GetFlexibleSubscriptionPreviewParams, GetFlexibleSubscriptionRecordParams, GetFlexibleSubscriptionRecordResponse, GetForceLiquidationRecordParams, GetFutureAccountTransferHistoryParams, GetFuturesLeadTraderStatusResponse, GetFuturesLeadTradingSymbolWhitelistResponse, GetFutureTickLevelOrderbookDataLinkParams, GetHashrateResaleDetailParams, GetHashrateResaleDetailResponse, GetHashrateResaleListParams, GetHashrateResaleListResponse, GetIndexDetailsResponse, GetIndexLinkedPlanPositionDetailsResponse, GetIndexLinkedPlanRebalanceHistoryParams, GetIndexLinkedPlanRedemptionHistoryParams, GetLoanableAssetsDataParams, GetLoanBorrowHistoryParams, GetLoanCoinPaginatedHistoryParams, GetLoanLTVAdjustmentHistoryParams, GetLoanOngoingOrdersParams, GetLoanRepaymentHistoryParams, GetLockedRedemptionRecordParams, GetLockedRewardsHistory, GetLockedRewardsHistoryParams, GetLockedSubscriptionPreviewParams, GetLockedSubscriptionRecordParams, GetMarginAccountBorrowRepayRecordsParams, GetMarginCapitalFlowParams, GetMarginInterestHistoryParams, GetMarginOrderCountUsageParams, GetMinerDetailsParams, GetMinerDetailsResponse, GetMinerListParams, GetMinerListResponse, GetMiningAccountEarningParams, GetMiningAccountEarningResponse, getMiningAccountsListParams, getMiningAccountsListResponse, GetMiningAlgoListResponse, GetMiningCoinListResponse, GetNextHourlyInterestRateParams, GetNftAssetParams, GetNftDepositHistoryParams, GetNftTransactionHistoryParams, GetNftWithdrawHistoryParams, GetOCOParams, GetOneTimeTransactionStatusParams, GetOneTimeTransactionStatusResponse, GetOrderStatusParams, GetPayTradeHistoryParams, GetPlanDetailsParams, GetPortfolioMarginAssetIndexPriceResponse, GetPortfolioMarginAssetLeverageResponse, GetPortfolioMarginProAccountInfoResponse, GetPortfolioMarginProBankruptcyLoanAmountResponse, GetPortfolioMarginProCollateralRateResponse, GetPortfolioMarginProInterestHistoryParams, GetPortfolioMarginProInterestHistoryResponse, GetRateHistory, GetRateHistoryParams, GetSmallLiabilityExchangeHistoryParams, GetSolStakingHistoryReq, GetSourceAssetListParams, GetSourceAssetListResponse, GetSpotAlgoHistoricalOrdersParams, GetSpotAlgoSubOrdersParams, GetSpotAlgoSubOrdersResponse, GetSpotRebateHistoryRecordsParams, GetSpotRebateHistoryRecordsResponse, GetStatisticListParams, GetStatisticListResponse, GetSubAccountDepositHistoryParams, GetSubscriptionTransactionHistoryParams, GetTargetAssetListParams, GetTargetAssetListResponse, GetTargetAssetROIParams, GetUniversalTransferBrokerParams, GetVipLoanOngoingOrdersParams, GetVipLoanRepaymentHistoryParams, GetWbethRewardsHistoryResponse, GetWrapHistoryParams, HistoricalAlgoOrder, HistoricalDataLink, HistoricalSpotAlgoOrder, IndexLinkedPlanRedemptionRecord, IsolatedMarginAccountInfo, IsolatedMarginAccountTransferParams, IsolatedMarginFeeData, IsolatedMarginSymbol, IsolatedMarginTierData, LeftDailyPurchaseQuotaFlexibleProductResponse, LiabilityCoinLeverageBracket, LoanableAssetData, LoanBorrowHistory, LoanLTVAdjustmentHistory, LoanOngoingOrder, LoanRepaymentHistory, LockedRedemptionRecord, LockedSubscriptionPreview, LockedSubscriptionRecord, ManagedSubAccountDepositAddress, ManagedSubAccountDepositAddressParams, ManagedSubAccountFuturesAssetsResponse, ManagedSubAccountListParams, ManagedSubAccountMarginAssetsResponse, ManagedSubAccountSnapshot, ManagedSubAccountSnapshotParams, ManagedSubAccountTransferLogParams, ManagedSubAccountTransferTTLogParams, ManagerSubTransferHistoryVos, ManagerSubUserInfoVo, ManualLiquidationParams, ManualLiquidationResponse, MarginAccountLoanParams, MarginAccountRecord, MarginAvailableInventoryResponse, MarginCapitalFlow, MarginDelistSchedule, MarginInterestHistory, MarginInterestRateHistory, MarginOrderCountUsageResponse, MarginOTOCOOrder, MarginOTOOrder, MarginTransactionResponse, NewFutureAccountTransferParams, NewOrderListOTOCOParams, NewOrderListOTOCOResponse, NewOrderListOTOParams, NewOrderListOTOResponse, NewSpotOrderParams, NewSpotSOROrderParams, NextHourlyInterestRate, NftAsset, NftDeposit, NftTransaction, NftWithdraw, OrderBookResponse, OrderList, OrderListResponse, OrderRateLimitUsage, OrderResponseTypeFor, PortfolioMarginProAccountBalance, PortfolioMarginProSpanAccountInfo, PreventedMatch, PreventedMatchesParams, PurchaseFlexibleProductResponse, PurchaseRecordParams, QueryBrokerFuturesCommissionRebateParams, QueryBrokerSpotCommissionRebateParams, QueryCrossMarginAccountDetailsParams, QueryCrossMarginFeeDataParams, QueryCrossMarginPairResponse, QueryIsolatedMarginTierDataParams, QueryMarginAccountAllOCOParams, QueryMarginAccountTradeListParams, QueryMarginAssetResponse, QueryMarginInterestRateHistoryParams, QueryMarginPriceIndexResponse, QueryMarginRecordParams, QueryMaxBorrowResponse, QueryMaxTransferOutAmountResponse, QuerySubAccountCoinFuturesCommissionParams, QuerySubAccountFuturesAssetInfoParams, QuerySubAccountFuturesCommissionParams, QuerySubAccountSpotMarginAssetInfoParams, RawAccountTrade, RawTrade, RedeemBlvtParams, RedeemBlvtResponse, RedeemEthParams, RedeemEthResponse, RedeemGiftCardParams, RedeemSolResponse, RemoveBSwapLiquidityParams, RepayCryptoFlexibleLoanParams, RepayCryptoFlexibleLoanResponse, RepayCryptoLoanParams, RepayCryptoLoanResponse, ReplaceSpotOrderParams, ReplaceSpotOrderResultSuccess, RollingWindowTickerParams, SetAutoSubscribeParams, SimpleEarnAccountResponse, SimpleEarnFlexibleProduct, SimpleEarnFlexibleProductPositionParams, SimpleEarnLockedProduct, SimpleEarnLockedProductPosition, SimpleEarnLockedProductPositionParams, SimpleEarnProductListParams, SimpleEarnRedeemFlexibleProductParams, SimpleEarnRedeemResponse, SimpleEarnSubscribeFlexibleProductResponse, SimpleEarnSubscribeLockedProductResponse, SimpleEarnSubscribeProductParams, SmallLiabilityExchangeCoin, SmallLiabilityExchangeHistory, SolRedemptionHistoryRecord, SolStakingAccount, SolStakingHistoryRecord, SolStakingQuota, SOROrderResponseFull, SORTestOrderResponse, SpecialLowLatencyKeyInfo, SpecialLowLatencyKeyResponse, SpotAlgoOrder, SpotOrder, StakingBasicParams, StakingHistory, StakingHistoryParams, StakingPersonalLeftQuota, StakingProduct, StakingProductPosition, StakingProductType, SubAccountAddOrDeleteIPList, SubAccountAssetDetails, SubAccountAssets, SubAccountAssetsParams, SubaccountBalances, SubAccountBrokerMarginAsset, SubaccountBrokerSpotAsset, SubAccountCOINMDetail, SubAccountCOINMPositionRisk, SubAccountCOINMSummary, SubAccountDeposit, SubAccountDepositAddress, SubAccountDepositAddressParams, SubAccountDepositHistoryList, SubAccountDepositHistoryParams, SubAccountEnableFutures, SubAccountEnableLeverageToken, SubAccountEnableMargin, SubAccountEnableOrDisableIPRestriction, SubAccountFuturesAccountDetail, SubAccountFuturesAccountSummary, SubAccountFuturesAssetTransfer, SubAccountFuturesAssetTransferHistory, SubAccountFuturesAssetTransferHistoryParams, SubAccountFuturesAssetTransferParams, SubAccountListParams, SubAccountListResponse, SubAccountMarginAccountDetail, SubAccountsMarginAccountSummary, SubAccountSpotAssetsSummary, SubAccountSpotAssetsSummaryParams, SubAccountSpotAssetTransferHistory, SubAccountSpotAssetTransferHistoryParams, SubAccountStatus, SubAccountSummaryOnFuturesAccountV2Params, SubAccountTransactionStatistics, SubAccountTransfer, SubAccountTransferHistory, SubAccountTransferHistoryParams, SubAccountTransferParams, SubAccountTransferToMasterParams, SubAccountTransferToSameMasterParams, SubAccountUniversalTransfer, SubAccountUniversalTransferHistoryParams, SubAccountUniversalTransferHistoryResponse, SubAccountUniversalTransferParams, SubAccountUSDMDetail, SubAccountUSDMPositionRisk, SubAccountUSDMSummary, SubmitConvertLimitOrderParams, SubmitDepositCreditParams, SubmitDepositCreditResponse, SubmitHashrateResaleParams, SubmitIndexLinkedPlanRedemptionParams, SubmitMarginOTOCOOrderParams, SubmitMarginOTOOrderParams, SubmitOneTimeTransactionParams, SubmitOneTimeTransactionResponse, SubmitSpotTwapNewOrderParams, SubmitSpotTwapNewOrderResponse, SubmitTwapNewOrderParams, SubmitTwapNewOrderResponse, SubmitVpNewOrderParams, SubmitVpNewOrderResponse, SubscribeBlvtParams, SubscribeBlvtResponse, SubscribeDualInvestmentProductParams, SubscribeDualInvestmentProductResponse, SubscribeEthStakingV2Response, SubscribeSolStakingResponse, SymbolOrderBookTicker, SymbolTradeFee, SystemStatusResponse, TargetAssetROI, ToggleBNBBurnParams, TradingDayTickerFull, TradingDayTickerMini, TradingDayTickerParams, TransferBrokerSubAccount, TransferBrokerSubAccountParams, UniversalTransferBrokerParams, UniversalTransferHistoryParams, UniversalTransferParams, UpdateIpRestrictionForSubApiKey, UsdtMarginedFuturesResponse, UserAsset, VipCollateralAccount, VipLoanAccruedInterestParams, VipLoanAccruedInterestRecord, VipLoanBorrowParams, VipLoanBorrowResponse, VipLoanInterestRateHistoryParams, VipLoanInterestRateRecord, VipLoanRenewParams, VipLoanRenewResponse, VipLoanRepaymentHistory, VipLoanRepayParams, VipLoanRepayResponse, VipOngoingOrder, VirtualSubAccount, WalletBalance, WithdrawAddress, WithdrawAssetsFromManagedSubAccountParams, WithdrawHistory, WithdrawHistoryParams, WithdrawParams, WrapBethResponse, WrapHistory } from './types/spot';
5
4
  import BaseRestClient from './util/BaseRestClient';
5
+ import { RestClientOptions } from './util/requestUtils';
6
6
  export declare class MainClient extends BaseRestClient {
7
7
  constructor(restClientOptions?: RestClientOptions, requestOptions?: AxiosRequestConfig);
8
8
  /**
@@ -22,7 +22,7 @@ export declare class MainClient extends BaseRestClient {
22
22
  * SPOT TRADING Endpoints - General endpoints
23
23
  *
24
24
  **/
25
- testConnectivity(): Promise<{}>;
25
+ testConnectivity(): Promise<object>;
26
26
  getExchangeInfo(params?: ExchangeInfoParams): Promise<ExchangeInfo>;
27
27
  /**
28
28
  *
@@ -48,7 +48,7 @@ export declare class MainClient extends BaseRestClient {
48
48
  *
49
49
  **/
50
50
  submitNewOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: NewSpotOrderParams<T, RT>): Promise<OrderResponseTypeFor<RT, T>>;
51
- testNewOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: NewSpotOrderParams<T, RT>): Promise<{}>;
51
+ testNewOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: NewSpotOrderParams<T, RT>): Promise<object>;
52
52
  getOrder(params: GetOrderParams): Promise<SpotOrder>;
53
53
  cancelOrder(params: CancelOrderParams): Promise<CancelSpotOrderResult>;
54
54
  cancelAllSymbolOrders(params: BasicSymbolParam): Promise<CancelSpotOrderResult[]>;
@@ -79,7 +79,7 @@ export declare class MainClient extends BaseRestClient {
79
79
  */
80
80
  testNewSOROrder(params: NewSpotSOROrderParams & {
81
81
  computeCommissionRates?: boolean;
82
- }): Promise<{} | SORTestOrderResponse>;
82
+ }): Promise<object | SORTestOrderResponse>;
83
83
  /**
84
84
  *
85
85
  * SPOT TRADING Endpoints - Account endpoints
@@ -194,7 +194,7 @@ export declare class MainClient extends BaseRestClient {
194
194
  apiKey: string;
195
195
  symbol?: string;
196
196
  ip: string;
197
- }): Promise<{}>;
197
+ }): Promise<object>;
198
198
  /**
199
199
  * Query the list of special keys for low-latency trading
200
200
  */
@@ -380,8 +380,8 @@ export declare class MainClient extends BaseRestClient {
380
380
  **/
381
381
  getAccountInfo(): Promise<AccountInfo>;
382
382
  getDailyAccountSnapshot(params: DailyAccountSnapshotParams): Promise<DailyAccountSnapshot>;
383
- disableFastWithdrawSwitch(): Promise<{}>;
384
- enableFastWithdrawSwitch(): Promise<{}>;
383
+ disableFastWithdrawSwitch(): Promise<object>;
384
+ enableFastWithdrawSwitch(): Promise<object>;
385
385
  getAccountStatus(): Promise<{
386
386
  data: string;
387
387
  }>;
@@ -1214,7 +1214,7 @@ export declare class MainClient extends BaseRestClient {
1214
1214
  ipList: string[];
1215
1215
  updateTime: number;
1216
1216
  }>;
1217
- deleteApiKeyBrokerSubAccount(params: DeleteApiKeyBrokerSubAccountParams): Promise<{}>;
1217
+ deleteApiKeyBrokerSubAccount(params: DeleteApiKeyBrokerSubAccountParams): Promise<object>;
1218
1218
  getSubAccountBrokerIpRestriction(params: {
1219
1219
  subAccountId: string;
1220
1220
  subAccountApiKey: string;
@@ -1356,13 +1356,13 @@ export declare class MainClient extends BaseRestClient {
1356
1356
  getSpotUserDataListenKey(): Promise<{
1357
1357
  listenKey: string;
1358
1358
  }>;
1359
- keepAliveSpotUserDataListenKey(listenKey: string): Promise<{}>;
1360
- closeSpotUserDataListenKey(listenKey: string): Promise<{}>;
1359
+ keepAliveSpotUserDataListenKey(listenKey: string): Promise<object>;
1360
+ closeSpotUserDataListenKey(listenKey: string): Promise<object>;
1361
1361
  getMarginUserDataListenKey(): Promise<{
1362
1362
  listenKey: string;
1363
1363
  }>;
1364
- keepAliveMarginUserDataListenKey(listenKey: string): Promise<{}>;
1365
- closeMarginUserDataListenKey(listenKey: string): Promise<{}>;
1364
+ keepAliveMarginUserDataListenKey(listenKey: string): Promise<object>;
1365
+ closeMarginUserDataListenKey(listenKey: string): Promise<object>;
1366
1366
  getIsolatedMarginUserDataListenKey(params: {
1367
1367
  symbol: string;
1368
1368
  }): Promise<{
@@ -1371,11 +1371,11 @@ export declare class MainClient extends BaseRestClient {
1371
1371
  keepAliveIsolatedMarginUserDataListenKey(params: {
1372
1372
  symbol: string;
1373
1373
  listenKey: string;
1374
- }): Promise<{}>;
1374
+ }): Promise<object>;
1375
1375
  closeIsolatedMarginUserDataListenKey(params: {
1376
1376
  symbol: string;
1377
1377
  listenKey: string;
1378
- }): Promise<{}>;
1378
+ }): Promise<object>;
1379
1379
  /**
1380
1380
  *
1381
1381
  * DEPRECATED ENDPOINTS
@@ -24,8 +24,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.SpotClient = exports.MainClient = void 0;
27
- const requestUtils_1 = require("./util/requestUtils");
28
27
  const BaseRestClient_1 = __importDefault(require("./util/BaseRestClient"));
28
+ const requestUtils_1 = require("./util/requestUtils");
29
29
  class MainClient extends BaseRestClient_1.default {
30
30
  constructor(restClientOptions = {}, requestOptions = {}) {
31
31
  super('spot1', restClientOptions, requestOptions);
@@ -61,7 +61,7 @@ class MainClient extends BaseRestClient_1.default {
61
61
  };
62
62
  console.log('Time synchronization results:');
63
63
  console.log(result);
64
- console.log(`Your approximate latency to exchange server:
64
+ console.log(`Your approximate latency to exchange server:
65
65
  One way: ${estimatedOneWayLatency}ms.
66
66
  Round trip: ${roundTripTime}ms.
67
67
  `);
@@ -618,50 +618,50 @@ class MainClient extends BaseRestClient_1.default {
618
618
  * Use sapi/v1/asset/transfer instead
619
619
  */
620
620
  submitNewFutureAccountTransfer(params) {
621
- return this.postPrivate(`sapi/v1/futures/transfer`, params);
621
+ return this.postPrivate('sapi/v1/futures/transfer', params);
622
622
  }
623
623
  /**
624
624
  * Possibly @deprecated, found only in old docs only
625
625
  * Use sapi/v1/asset/transfer instead
626
626
  */
627
627
  getFutureAccountTransferHistory(params) {
628
- return this.getPrivate(`sapi/v1/futures/transfer`, params);
628
+ return this.getPrivate('sapi/v1/futures/transfer', params);
629
629
  }
630
630
  /**
631
631
  * @deprecated as of 2023-09-25
632
632
  */
633
633
  getCrossCollateralBorrowHistory(params) {
634
- return this.getPrivate(`sapi/v1/futures/loan/borrow/history`, params);
634
+ return this.getPrivate('sapi/v1/futures/loan/borrow/history', params);
635
635
  }
636
636
  /**
637
637
  * @deprecated as of 2023-09-25
638
638
  */
639
639
  getCrossCollateralRepaymentHistory(params) {
640
- return this.getPrivate(`sapi/v1/futures/loan/repay/history`, params);
640
+ return this.getPrivate('sapi/v1/futures/loan/repay/history', params);
641
641
  }
642
642
  /**
643
643
  * @deprecated as of 2023-09-25
644
644
  */
645
645
  getCrossCollateralWalletV2() {
646
- return this.getPrivate(`sapi/v2/futures/loan/wallet`);
646
+ return this.getPrivate('sapi/v2/futures/loan/wallet');
647
647
  }
648
648
  /**
649
649
  * @deprecated as of 2023-09-25
650
650
  */
651
651
  getAdjustCrossCollateralLTVHistory(params) {
652
- return this.getPrivate(`sapi/v1/futures/loan/adjustCollateral/history`, params);
652
+ return this.getPrivate('sapi/v1/futures/loan/adjustCollateral/history', params);
653
653
  }
654
654
  /**
655
655
  * @deprecated as of 2023-09-25
656
656
  */
657
657
  getCrossCollateralLiquidationHistory(params) {
658
- return this.getPrivate(`sapi/v1/futures/loan/liquidationHistory`, params);
658
+ return this.getPrivate('sapi/v1/futures/loan/liquidationHistory', params);
659
659
  }
660
660
  /**
661
661
  * @deprecated as of 2023-09-25
662
662
  */
663
663
  getCrossCollateralInterestHistory(params) {
664
- return this.getPrivate(`sapi/v1/futures/loan/interestHistory`, params);
664
+ return this.getPrivate('sapi/v1/futures/loan/interestHistory', params);
665
665
  }
666
666
  /**
667
667
  *
@@ -1081,7 +1081,7 @@ class MainClient extends BaseRestClient_1.default {
1081
1081
  * @deprecated as of 2024-01-19
1082
1082
  */
1083
1083
  getStakingProducts(params) {
1084
- return this.getPrivate(`sapi/v1/staking/productList`, params);
1084
+ return this.getPrivate('sapi/v1/staking/productList', params);
1085
1085
  }
1086
1086
  /**
1087
1087
  * @deprecated as of 2024-01-19
@@ -1361,19 +1361,19 @@ class MainClient extends BaseRestClient_1.default {
1361
1361
  *
1362
1362
  **/
1363
1363
  getSimpleEarnAccount() {
1364
- return this.getPrivate(`sapi/v1/simple-earn/account`);
1364
+ return this.getPrivate('sapi/v1/simple-earn/account');
1365
1365
  }
1366
1366
  getFlexibleSavingProducts(params) {
1367
- return this.getPrivate(`sapi/v1/simple-earn/flexible/list`, params);
1367
+ return this.getPrivate('sapi/v1/simple-earn/flexible/list', params);
1368
1368
  }
1369
1369
  getSimpleEarnLockedProductList(params) {
1370
- return this.getPrivate(`sapi/v1/simple-earn/locked/list`, params);
1370
+ return this.getPrivate('sapi/v1/simple-earn/locked/list', params);
1371
1371
  }
1372
1372
  getFlexibleProductPosition(params) {
1373
- return this.getPrivate(`sapi/v1/simple-earn/flexible/position`, params);
1373
+ return this.getPrivate('sapi/v1/simple-earn/flexible/position', params);
1374
1374
  }
1375
1375
  getLockedProductPosition(params) {
1376
- return this.getPrivate(`sapi/v1/simple-earn/locked/position`, params);
1376
+ return this.getPrivate('sapi/v1/simple-earn/locked/position', params);
1377
1377
  }
1378
1378
  getFlexiblePersonalLeftQuota(params) {
1379
1379
  return this.getPrivate('sapi/v1/simple-earn/flexible/personalLeftQuota', params);
@@ -1387,16 +1387,16 @@ class MainClient extends BaseRestClient_1.default {
1387
1387
  *
1388
1388
  **/
1389
1389
  purchaseFlexibleProduct(params) {
1390
- return this.postPrivate(`sapi/v1/simple-earn/flexible/subscribe`, params);
1390
+ return this.postPrivate('sapi/v1/simple-earn/flexible/subscribe', params);
1391
1391
  }
1392
1392
  subscribeSimpleEarnLockedProduct(params) {
1393
- return this.postPrivate(`sapi/v1/simple-earn/locked/subscribe`, params);
1393
+ return this.postPrivate('sapi/v1/simple-earn/locked/subscribe', params);
1394
1394
  }
1395
1395
  redeemFlexibleProduct(params) {
1396
- return this.postPrivate(`sapi/v1/simple-earn/flexible/redeem`, params);
1396
+ return this.postPrivate('sapi/v1/simple-earn/flexible/redeem', params);
1397
1397
  }
1398
1398
  redeemLockedProduct(params) {
1399
- return this.postPrivate(`sapi/v1/simple-earn/locked/redeem`, params);
1399
+ return this.postPrivate('sapi/v1/simple-earn/locked/redeem', params);
1400
1400
  }
1401
1401
  setFlexibleAutoSubscribe(params) {
1402
1402
  return this.postPrivate('sapi/v1/simple-earn/flexible/setAutoSubscribe', params);
@@ -1949,61 +1949,61 @@ class MainClient extends BaseRestClient_1.default {
1949
1949
  * @deprecated as of 2023-06-22, now Simple Earn
1950
1950
  */
1951
1951
  getLeftDailyPurchaseQuotaFlexibleProduct(params) {
1952
- return this.getPrivate(`sapi/v1/lending/daily/userLeftQuota`, params);
1952
+ return this.getPrivate('sapi/v1/lending/daily/userLeftQuota', params);
1953
1953
  }
1954
1954
  /**
1955
1955
  * @deprecated as of 2023-06-22, now Simple Earn
1956
1956
  */
1957
1957
  getLeftDailyRedemptionQuotaFlexibleProduct(params) {
1958
- return this.getPrivate(`sapi/v1/lending/daily/userRedemptionQuota`, params);
1958
+ return this.getPrivate('sapi/v1/lending/daily/userRedemptionQuota', params);
1959
1959
  }
1960
1960
  /**
1961
1961
  * @deprecated as of 2023-06-22, now Simple Earn
1962
1962
  */
1963
1963
  purchaseFixedAndActivityProject(params) {
1964
- return this.postPrivate(`sapi/v1/lending/customizedFixed/purchase`, params);
1964
+ return this.postPrivate('sapi/v1/lending/customizedFixed/purchase', params);
1965
1965
  }
1966
1966
  /**
1967
1967
  * @deprecated as of 2023-06-22, now Simple Earn
1968
1968
  */
1969
1969
  getFixedAndActivityProjects(params) {
1970
- return this.getPrivate(`sapi/v1/lending/project/list`, params);
1970
+ return this.getPrivate('sapi/v1/lending/project/list', params);
1971
1971
  }
1972
1972
  /**
1973
1973
  * @deprecated as of 2023-06-22, now Simple Earn
1974
1974
  */
1975
1975
  getFixedAndActivityProductPosition(params) {
1976
- return this.getPrivate(`sapi/v1/lending/project/position/list`, params);
1976
+ return this.getPrivate('sapi/v1/lending/project/position/list', params);
1977
1977
  }
1978
1978
  /**
1979
1979
  * @deprecated as of 2023-06-22, now Simple Earn
1980
1980
  */
1981
1981
  getLendingAccount() {
1982
- return this.getPrivate(`sapi/v1/lending/union/account`);
1982
+ return this.getPrivate('sapi/v1/lending/union/account');
1983
1983
  }
1984
1984
  /**
1985
1985
  * @deprecated as of 2023-06-22, now Simple Earn
1986
1986
  */
1987
1987
  getPurchaseRecord(params) {
1988
- return this.getPrivate(`sapi/v1/lending/union/purchaseRecord`, params);
1988
+ return this.getPrivate('sapi/v1/lending/union/purchaseRecord', params);
1989
1989
  }
1990
1990
  /**
1991
1991
  * @deprecated as of 2023-06-22, now Simple Earn
1992
1992
  */
1993
1993
  getRedemptionRecord(params) {
1994
- return this.getPrivate(`sapi/v1/lending/union/redemptionRecord`, params);
1994
+ return this.getPrivate('sapi/v1/lending/union/redemptionRecord', params);
1995
1995
  }
1996
1996
  /**
1997
1997
  * @deprecated as of 2023-06-22, now Simple Earn
1998
1998
  */
1999
1999
  getInterestHistory(params) {
2000
- return this.getPrivate(`sapi/v1/lending/union/interestHistory`, params);
2000
+ return this.getPrivate('sapi/v1/lending/union/interestHistory', params);
2001
2001
  }
2002
2002
  /**
2003
2003
  * @deprecated as of 2023-06-22, now Simple Earn
2004
2004
  */
2005
2005
  changeFixedAndActivityPositionToDailyPosition(params) {
2006
- return this.postPrivate(`sapi/v1/lending/positionChanged`, params);
2006
+ return this.postPrivate('sapi/v1/lending/positionChanged', params);
2007
2007
  }
2008
2008
  /**
2009
2009
  *