import { AxiosRequestConfig } from 'axios'; 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'; 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'; import BaseRestClient from './util/BaseRestClient'; import { RestClientOptions } from './util/requestUtils'; export declare class MainClient extends BaseRestClient { constructor(restClientOptions?: RestClientOptions, requestOptions?: AxiosRequestConfig); /** * This method is used to get the latency and time sync between the client and the server. * This is not official API endpoint and is only used for internal testing purposes. * Use this method to check the latency and time sync between the client and the server. * Final values might vary slightly, but it should be within few ms difference. * If you have any suggestions or improvements to this measurement, please create an issue or pull request on GitHub. */ fetchLatencySummary(): Promise; /** * Abstraction required by each client to aid with time sync / drift handling */ getServerTime(baseUrlKeyOverride?: BinanceBaseUrlKey): Promise; /** * * SPOT TRADING Endpoints - General endpoints * **/ testConnectivity(): Promise; getExchangeInfo(params?: ExchangeInfoParams): Promise; /** * * SPOT TRADING Endpoints - Market endpoints * **/ getOrderBook(params: OrderBookParams): Promise; getRecentTrades(params: RecentTradesParams): Promise; getHistoricalTrades(params: HistoricalTradesParams): Promise; getAggregateTrades(params: SymbolFromPaginatedRequestFromId): Promise; getKlines(params: KlinesParams): Promise; getUIKlines(params: KlinesParams): Promise; getAvgPrice(params: BasicSymbolParam): Promise; get24hrChangeStatististics(params: BasicSymbolParam): Promise; get24hrChangeStatististics(params?: SymbolArrayParam): Promise; getTradingDayTicker(params: TradingDayTickerParams): Promise; getSymbolPriceTicker(params?: Partial): Promise; getSymbolOrderBookTicker(params?: Partial): Promise; getRollingWindowTicker(params: RollingWindowTickerParams): Promise; /** * * SPOT TRADING Endpoints - Trading endpoints * **/ submitNewOrder(params: NewSpotOrderParams): Promise>; testNewOrder(params: NewSpotOrderParams): Promise; getOrder(params: GetOrderParams): Promise; cancelOrder(params: CancelOrderParams): Promise; cancelAllSymbolOrders(params: BasicSymbolParam): Promise; replaceOrder(params: ReplaceSpotOrderParams): Promise>; getOpenOrders(params?: Partial): Promise; getAllOrders(params: GetAllOrdersParams): Promise; /** * @deprecated */ submitNewOCO(params: NewOCOParams): Promise; submitNewOrderList(params: NewOrderListParams): Promise>; submitNewOrderListOTO(params: NewOrderListOTOParams): Promise; submitNewOrderListOTOCO(params: NewOrderListOTOCOParams): Promise; cancelOCO(params: CancelOCOParams): Promise; getOCO(params?: GetOCOParams): Promise; getAllOCO(params?: BasicFromPaginatedParams): Promise; /** * Query open OCO */ getAllOpenOCO(): Promise; /** * Places an order using smart order routing (SOR). */ submitNewSOROrder(params: NewSpotSOROrderParams): Promise; /** * Test new order creation and signature/recvWindow using smart order routing (SOR). * Creates and validates a new order but does not send it into the matching engine. */ testNewSOROrder(params: NewSpotSOROrderParams & { computeCommissionRates?: boolean; }): Promise; /** * * SPOT TRADING Endpoints - Account endpoints * **/ /** * Get current account information */ getAccountInformation(): Promise; getAccountTradeList(params: SymbolFromPaginatedRequestFromId & { orderId?: number; }): Promise; getOrderRateLimit(): Promise; getPreventedMatches(params: PreventedMatchesParams): Promise; getAllocations(params: AllocationsParams): Promise; getCommissionRates(params: { symbol: string; }): Promise; /** * * MARGIN TRADING Endpoints - Market Data endpoints * **/ getCrossMarginCollateralRatio(): Promise<{ collaterals: Collateral[]; assetNames: string[]; }[]>; getAllCrossMarginPairs(): Promise; getIsolatedMarginAllSymbols(params?: { symbol?: string; }): Promise; getAllMarginAssets(): Promise; getMarginDelistSchedule(): Promise; getIsolatedMarginTierData(params: QueryIsolatedMarginTierDataParams): Promise; queryMarginPriceIndex(params: BasicSymbolParam): Promise; getMarginAvailableInventory(params: { type: string; }): Promise; getLeverageBracket(): Promise; /** * * MARGIN TRADING Endpoints - Borrow and Repay endpoints * **/ getNextHourlyInterestRate(params: GetNextHourlyInterestRateParams): Promise; getMarginInterestHistory(params: GetMarginInterestHistoryParams): Promise<{ rows: MarginInterestHistory[]; total: number; }>; submitMarginAccountBorrowRepay(params: MarginAccountLoanParams): Promise; getMarginAccountBorrowRepayRecords(params: GetMarginAccountBorrowRepayRecordsParams): Promise<{ rows: MarginAccountRecord[]; total: number; }>; getMarginInterestRateHistory(params: QueryMarginInterestRateHistoryParams): Promise; queryMaxBorrow(params: BasicMarginAssetParams): Promise; /** * * MARGIN TRADING Endpoints - Trade endpoints * **/ getMarginForceLiquidationRecord(params: GetForceLiquidationRecordParams): Promise<{ rows: ForceLiquidationRecord[]; total: number; }>; getSmallLiabilityExchangeCoins(): Promise; getSmallLiabilityExchangeHistory(params: GetSmallLiabilityExchangeHistoryParams): Promise<{ total: number; rows: SmallLiabilityExchangeHistory[]; }>; marginAccountCancelOpenOrders(params: BasicSymbolParam): Promise; marginAccountCancelOCO(params: CancelOCOParams): Promise; marginAccountCancelOrder(params: CancelOrderParams): Promise; marginAccountNewOCO(params: NewOCOParams): Promise; marginAccountNewOrder(params: NewSpotOrderParams): Promise>; getMarginOrderCountUsage(params: GetMarginOrderCountUsageParams): Promise; queryMarginAccountAllOCO(params: QueryMarginAccountAllOCOParams): Promise; queryMarginAccountAllOrders(params: GetAllOrdersParams): Promise; queryMarginAccountOCO(params: GetOCOParams): Promise; queryMarginAccountOpenOCO(params: { isIsolated?: 'TRUE' | 'FALSE'; symbol?: string; }): Promise; queryMarginAccountOpenOrders(params: BasicSymbolParam): Promise; queryMarginAccountOrder(params: GetOrderParams): Promise; queryMarginAccountTradeList(params: QueryMarginAccountTradeListParams): Promise; submitSmallLiabilityExchange(params: { assetNames: string[]; }): Promise<{ success: boolean; message: string; }>; submitManualLiquidation(params: ManualLiquidationParams): Promise; /** * Post a new OTO order for margin account */ submitMarginOTOOrder(params: SubmitMarginOTOOrderParams): Promise; /** * Submit a new OTOCO order for margin account */ submitMarginOTOCOOrder(params: SubmitMarginOTOCOOrderParams): Promise; /** * Create a special key for low-latency trading (VIP 4+ only) */ createMarginSpecialLowLatencyKey(params: CreateSpecialLowLatencyKeyParams): Promise; deleteMarginSpecialLowLatencyKey(params?: { apiKey?: string; apiName?: string; symbol?: string; }): Promise; updateMarginIPForSpecialLowLatencyKey(params: { apiKey: string; symbol?: string; ip: string; }): Promise; /** * Query the list of special keys for low-latency trading */ getMarginSpecialLowLatencyKeys(params: { symbol?: string; }): Promise; /** * Query information for a specific special key used in low-latency trading */ getMarginSpecialLowLatencyKey(params: { apiKey: string; symbol?: string; }): Promise; /** * * MARGIN TRADING Endpoints - Transfer endpoints * **/ getCrossMarginTransferHistory(params: GetCrossMarginTransferHistoryParams): Promise>; queryMaxTransferOutAmount(params: BasicMarginAssetParams): Promise; /** * * MARGIN TRADING Endpoints - Account endpoints * **/ updateCrossMarginMaxLeverage(params: { maxLeverage: number; }): Promise<{ success: boolean; }>; disableIsolatedMarginAccount(params: { symbol: string; }): Promise<{ success: boolean; symbol: string; }>; enableIsolatedMarginAccount(params: { symbols: string; }): Promise<{ success: boolean; symbol: string; }>; getBNBBurn(): Promise; getMarginSummary(): Promise; queryCrossMarginAccountDetails(): Promise; getCrossMarginFeeData(params: QueryCrossMarginFeeDataParams): Promise; getIsolatedMarginAccountLimit(): Promise<{ enabledAccount: number; maxAccount: number; }>; getIsolatedMarginAccountInfo(params?: { symbols?: string; }): Promise; getIsolatedMarginFeeData(params: QueryCrossMarginFeeDataParams): Promise; toggleBNBBurn(params: ToggleBNBBurnParams): Promise; /** * Possibly @deprecated * Only existing in old documentation, not in new documentation */ getMarginCapitalFlow(params: GetMarginCapitalFlowParams): Promise; /** * @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead */ queryLoanRecord(params: QueryMarginRecordParams): Promise<{ rows: MarginAccountRecord[]; total: number; }>; /** * @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead */ queryRepayRecord(params: QueryMarginRecordParams): Promise<{ rows: MarginAccountRecord[]; total: number; }>; /** * @deprecated on 2024-01-09, use submitUniversalTransfer() instead */ isolatedMarginAccountTransfer(params: IsolatedMarginAccountTransferParams): Promise; /** * * WALLET Endpoints - Capital endpoints * **/ getBalances(): Promise; withdraw(params: WithdrawParams): Promise<{ id: string; }>; getWithdrawHistory(params?: WithdrawHistoryParams): Promise; getWithdrawAddresses(): Promise; getDepositHistory(params?: DepositHistoryParams): Promise; getDepositAddress(params: DepositAddressParams): Promise; getDepositAddresses(params: DepositAddressListParams): Promise; submitDepositCredit(params: SubmitDepositCreditParams): Promise; /** * @deprecated - deleted as of 2024-11-21 */ getAutoConvertStablecoins(): Promise; /** * @deprecated - deleted as of 2024-11-21 */ setConvertibleCoins(params: ConvertibleCoinsParams): Promise; /** * * WALLET Endpoints - Asset endpoints * **/ getAssetDetail(params?: Partial): Promise>; getWalletBalances(): Promise; getUserAsset(params: GetAssetParams): Promise; submitUniversalTransfer(params: UniversalTransferParams): Promise<{ tranId: number; }>; getUniversalTransferHistory(params: UniversalTransferHistoryParams): Promise; getDust(): Promise; convertDustToBnb(params: ConvertDustParams): Promise; getDustLog(params?: BasicTimeRangeParam): Promise; getAssetDividendRecord(params?: BasicAssetPaginatedParams): Promise; getTradeFee(params?: Partial): Promise; getFundingAsset(params: GetAssetParams): Promise; getCloudMiningHistory(params: CloudMiningHistoryParams): Promise<{ total: number; rows: CloudMining[]; }>; getDelegationHistory(params: DelegationHistoryParams): Promise>; /** * * Futures Management Endpoints: * https://binance-docs.github.io/apidocs/spot/en/#futures * * Note: to trade futures use the usdm-client or coinm-client. * MainClient only has the futures endpoints listed in the "spot" docs category, primarily used for transfers. * **/ /** * Execute transfer between spot account and futures account. * * Type: * - 1: transfer from spot account to USDT-Ⓜ futures account. * - 2: transfer from USDT-Ⓜ futures account to spot account. * - 3: transfer from spot account to COIN-Ⓜ futures account. * - 4: transfer from COIN-Ⓜ futures account to spot account. */ /** * Possibly @deprecated, found only in old docs only * Use sapi/v1/asset/transfer instead */ submitNewFutureAccountTransfer(params: NewFutureAccountTransferParams): Promise<{ tranId: number; }>; /** * Possibly @deprecated, found only in old docs only * Use sapi/v1/asset/transfer instead */ getFutureAccountTransferHistory(params: GetFutureAccountTransferHistoryParams): Promise>; /** * @deprecated as of 2023-09-25 */ getCrossCollateralBorrowHistory(params?: CoinStartEndLimit): Promise; /** * @deprecated as of 2023-09-25 */ getCrossCollateralRepaymentHistory(params?: CoinStartEndLimit): Promise; /** * @deprecated as of 2023-09-25 */ getCrossCollateralWalletV2(): Promise; /** * @deprecated as of 2023-09-25 */ getAdjustCrossCollateralLTVHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise; /** * @deprecated as of 2023-09-25 */ getCrossCollateralLiquidationHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise; /** * @deprecated as of 2023-09-25 */ getCrossCollateralInterestHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise; /** * * WALLET Endpoints - Account endpoints * **/ getAccountInfo(): Promise; getDailyAccountSnapshot(params: DailyAccountSnapshotParams): Promise; disableFastWithdrawSwitch(): Promise; enableFastWithdrawSwitch(): Promise; getAccountStatus(): Promise<{ data: string; }>; getApiTradingStatus(): Promise; getApiKeyPermissions(): Promise; /** * * WALLET Endpoints - Travel Rule endpoints * **/ /** * * WALLET Endpoints - Other endpoints * **/ getSystemStatus(): Promise; getDelistSchedule(): Promise; /** * * SUB ACCOUNT Endpoints - Account management * **/ createVirtualSubAccount(params: CreateSubAccountParams): Promise; getSubAccountList(params?: SubAccountListParams): Promise; subAccountEnableFutures(email: string): Promise; subAccountEnableMargin(email: string): Promise; enableOptionsForSubAccount(params: { email: string; }): Promise; subAccountEnableLeverageToken(params: SubAccountEnableLeverageToken): Promise; getSubAccountStatusOnMarginOrFutures(params?: { email?: string; }): Promise; getSubAccountFuturesPositionRisk(email: string): Promise; getSubAccountFuturesPositionRiskV2(params: BasicFuturesSubAccountParams): Promise; getSubAccountTransactionStatistics(params: { email: string; }): Promise; /** * * SUB ACCOUNT Endpoints - API management * **/ getSubAccountIPRestriction(params: BasicSubAccount): Promise; subAccountDeleteIPList(params: SubAccountAddOrDeleteIPList): Promise; subAccountAddIPRestriction(params: AddIpRestriction): Promise; /** * @deprecated * Use subAccountAddIPRestriction instead **/ subAccountAddIPList(params: SubAccountEnableOrDisableIPRestriction): Promise; /** * @deprecated * Use subAccountAddIPRestriction instead, or subAccountDeleteIPList **/ subAccountEnableOrDisableIPRestriction(params: EnableOrDisableIPRestrictionForSubAccountParams): Promise; /** * * SUB ACCOUNT Endpoints - Asset management * **/ subAccountFuturesTransfer(params: SubAccountTransferParams): Promise; getSubAccountFuturesAccountDetail(email: string): Promise; getSubAccountDetailOnFuturesAccountV2(params: BasicFuturesSubAccountParams): Promise; getSubAccountDetailOnMarginAccount(email: string): Promise; getSubAccountDepositAddress(params: SubAccountDepositAddressParams): Promise; getSubAccountDepositHistory(params: SubAccountDepositHistoryParams): Promise; getSubAccountFuturesAccountSummary(): Promise; getSubAccountSummaryOnFuturesAccountV2(params: SubAccountSummaryOnFuturesAccountV2Params): Promise; getSubAccountsSummaryOfMarginAccount(): Promise; subAccountMarginTransfer(params: SubAccountTransferParams): Promise; getSubAccountAssets(params: SubAccountAssetsParams): Promise; getSubAccountAssetsMaster(params: { email: string; }): Promise<{ balances: SubaccountBalances[]; }>; getSubAccountFuturesAssetTransferHistory(params: SubAccountFuturesAssetTransferHistoryParams): Promise; getSubAccountSpotAssetTransferHistory(params?: SubAccountSpotAssetTransferHistoryParams): Promise; getSubAccountSpotAssetsSummary(params?: SubAccountSpotAssetsSummaryParams): Promise; getSubAccountUniversalTransferHistory(params?: SubAccountUniversalTransferHistoryParams): Promise; subAccountFuturesAssetTransfer(params: SubAccountFuturesAssetTransferParams): Promise; subAccountTransferHistory(params?: SubAccountTransferHistoryParams): Promise; subAccountTransferToMaster(params: SubAccountTransferToMasterParams): Promise; subAccountTransferToSameMaster(params: SubAccountTransferToSameMasterParams): Promise; subAccountUniversalTransfer(params: SubAccountUniversalTransferParams): Promise; /** * * SUB ACCOUNT Endpoints - Managed Sub Account * **/ depositAssetsIntoManagedSubAccount(params: SubAccountTransferToSameMasterParams): Promise; getManagedSubAccountDepositAddress(params: ManagedSubAccountDepositAddressParams): Promise; withdrawAssetsFromManagedSubAccount(params: WithdrawAssetsFromManagedSubAccountParams): Promise; getManagedSubAccountTransfersParent(params: ManagedSubAccountTransferLogParams): Promise<{ managerSubTransferHistoryVos: ManagerSubTransferHistoryVos[]; count: number; }>; getManagedSubAccountTransferLog(params: ManagedSubAccountTransferTTLogParams): Promise<{ managerSubTransferHistoryVos: ManagerSubTransferHistoryVos[]; count: number; }>; getManagedSubAccountTransfersInvestor(params: ManagedSubAccountTransferLogParams): Promise<{ managerSubTransferHistoryVos: ManagerSubTransferHistoryVos[]; count: number; }>; getManagedSubAccounts(params: ManagedSubAccountListParams): Promise<{ total: number; managerSubUserInfoVoList: ManagerSubUserInfoVo[]; }>; getManagedSubAccountSnapshot(params: ManagedSubAccountSnapshotParams): Promise; getManagedSubAccountAssetDetails(email: string): Promise; getManagedSubAccountMarginAssets(params: { email: string; accountType?: string; }): Promise; getManagedSubAccountFuturesAssets(params: { email: string; accountType?: string; }): Promise; /** * * AUTO INVEST Endpoints - Market data * **/ getAutoInvestAssets(): Promise<{ targetAssets: string[]; sourceAssets: string[]; }>; getAutoInvestSourceAssets(params: GetSourceAssetListParams): Promise; getAutoInvestTargetAssets(params: GetTargetAssetListParams): Promise; getAutoInvestTargetAssetsROI(params: GetTargetAssetROIParams): Promise; getAutoInvestIndex(params: { indexId: number; }): Promise; getAutoInvestPlans(params: { planType: 'SINGLE' | 'PORTFOLIO' | 'INDEX'; }): Promise; /** * * AUTO INVEST Endpoints - Trade * **/ /** * https://developers.binance.com/docs/auto_invest/trade/One-Time-Transaction * * @param params * @returns */ submitAutoInvestOneTimeTransaction(params: SubmitOneTimeTransactionParams): Promise; updateAutoInvestPlanStatus(params: ChangePlanStatusParams): Promise; /** * * @deprecated , use updateAutoInvestmentPlan instead * **/ updateAutoInvestmentPlanOld(params: EditInvestmentPlanParams): Promise; updateAutoInvestmentPlan(params: EditInvestmentPlanParams): Promise; submitAutoInvestRedemption(params: SubmitIndexLinkedPlanRedemptionParams): Promise<{ redemptionId: number; }>; getAutoInvestSubscriptionTransactions(params: GetSubscriptionTransactionHistoryParams): Promise; getOneTimeTransactionStatus(params: GetOneTimeTransactionStatusParams): Promise; /** * @deprecated , use submitAutoInvestmentPlan instead * **/ submitAutoInvestmentPlanOld(params: CreateInvestmentPlanParams): Promise; submitAutoInvestmentPlan(params: CreateInvestmentPlanParams): Promise; getAutoInvestRedemptionHistory(params: GetIndexLinkedPlanRedemptionHistoryParams): Promise; getAutoInvestPlan(params: GetPlanDetailsParams): Promise; getAutoInvestUserIndex(params: { indexId: number; }): Promise; getAutoInvestRebalanceHistory(params: GetIndexLinkedPlanRebalanceHistoryParams): Promise; /** * * CONVERT Endpoints - Market Data * **/ getConvertPairs(params: GetAllConvertPairsParams): Promise; getConvertAssetInfo(): Promise; /** * * CONVERT Endpoints - Trade * **/ convertQuoteRequest(params: ConvertQuoteRequestParams): Promise; acceptQuoteRequest(params: AcceptQuoteRequestParams): Promise; getConvertTradeHistory(params: GetConvertTradeHistoryParams): Promise; getOrderStatus(params: GetOrderStatusParams): Promise; submitConvertLimitOrder(params: SubmitConvertLimitOrderParams): Promise; cancelConvertLimitOrder(params: { orderId: number; }): Promise; getConvertLimitOpenOrders(): Promise<{ list: ConvertLimitOpenOrder[]; }>; /** * * STAKING Endpoints - ETH Staking - Account * **/ /** * @deprecated use getEthStakingAccountV2 instead **/ getEthStakingAccount(): Promise; getEthStakingAccountV2(): Promise; getEthStakingQuota(): Promise; /** * * STAKING Endpoints - ETH Staking- Staking * **/ /** * @deprecated use subscribeEthStakingV2 instead **/ subscribeEthStakingV1(params: { amount: number; }): Promise<{ success: boolean; }>; subscribeEthStakingV2(params: { amount: number; }): Promise; redeemEth(params: RedeemEthParams): Promise; wrapBeth(params: { amount: number; }): Promise; /** * * STAKING Endpoints - ETH Staking - History * **/ getEthStakingHistory(params: GetEthStakingHistoryParams): Promise<{ rows: EthStakingHistory[]; total: number; }>; getEthRedemptionHistory(params: GetEthRedemptionHistoryParams): Promise<{ rows: EthRedemptionHistory[]; total: number; }>; getBethRewardsHistory(params: GetBethRewardsHistoryParams): Promise<{ rows: BethRewardsHistory[]; total: number; }>; getWbethRewardsHistory(params: GetWrapHistoryParams): Promise; getEthRateHistory(params: GetETHRateHistoryParams): Promise<{ rows: ETHRateHistory[]; total: string; }>; getBethWrapHistory(params: GetWrapHistoryParams): Promise<{ rows: WrapHistory[]; total: number; }>; getBethUnwrapHistory(params: GetWrapHistoryParams): Promise<{ rows: WrapHistory[]; total: number; }>; /** * @deprecated as of 2024-01-19 */ getStakingProducts(params: StakingBasicParams & { asset?: string; }): Promise; /** * @deprecated as of 2024-01-19 */ getStakingProductPosition(params: StakingBasicParams & { productId?: string; asset?: string; }): Promise; /** * @deprecated as of 2024-01-19 */ getStakingHistory(params: StakingHistoryParams): Promise; /** * @deprecated as of 2024-01-19 */ getPersonalLeftQuotaOfStakingProduct(params: { product: StakingProductType; productId: string; }): Promise; /** * * STAKING Endpoints - SOL Staking- Account * **/ getSolStakingAccount(): Promise; getSolStakingQuota(): Promise; /** * * STAKING Endpoints - SOL Staking - Staking * **/ subscribeSolStaking(params: { amount: number; }): Promise; redeemSol(params: { amount: number; }): Promise; /** * * STAKING Endpoints - SOL Staking- History * **/ getSolStakingHistory(params?: GetSolStakingHistoryReq): Promise<{ rows: SolStakingHistoryRecord[]; total: number; }>; getSolRedemptionHistory(params?: { rows: SolRedemptionHistoryRecord[]; total: number; }): Promise; getBnsolRewardsHistory(params?: GetBnsolRewardsHistoryReq): Promise<{ estRewardsInSOL: string; rows: BnsolRewardHistoryRecord[]; total: number; }>; getBnsolRateHistory(params?: GetBnsolRateHistoryReq): Promise<{ rows: BnsolRateHistoryRecord[]; total: string; }>; /** * * COPY TRADING Endpoints - Future copy trading * **/ getFuturesLeadTraderStatus(): Promise; getFuturesLeadTradingSymbolWhitelist(): Promise; /** * * MINING Endpoints - rest api * **/ getMiningAlgos(): Promise; getMiningCoins(): Promise; getHashrateResales(params: GetHashrateResaleListParams): Promise; getMiners(params: GetMinerListParams): Promise; getMinerDetails(params: GetMinerDetailsParams): Promise; getExtraBonuses(params: GetExtraBonusListParams): Promise; getMiningEarnings(params: GetEarningsListParams): Promise; cancelHashrateResaleConfig(params: CancelHashrateResaleConfigParams): Promise; getHashrateResale(params: GetHashrateResaleDetailParams): Promise; getMiningAccountEarnings(params: GetMiningAccountEarningParams): Promise; getMiningStatistics(params: GetStatisticListParams): Promise; submitHashrateResale(params: SubmitHashrateResaleParams): Promise; getMiningAccounts(params: getMiningAccountsListParams): Promise; /** * * ALGO TRADING Endpoints - Future algo * **/ submitVpNewOrder(params: SubmitVpNewOrderParams): Promise; submitTwapNewOrder(params: SubmitTwapNewOrderParams): Promise; cancelAlgoOrder(params: { algoId: number; }): Promise; getAlgoSubOrders(params: GetAlgoSubOrdersParams): Promise; getAlgoOpenOrders(): Promise<{ total: number; orders: AlgoOrder[]; }>; getAlgoHistoricalOrders(params: GetAlgoHistoricalOrdersParams): Promise<{ total: number; orders: HistoricalAlgoOrder[]; }>; /** * * ALGO TRADING Endpoints - Spot algo * **/ submitSpotAlgoTwapOrder(params: SubmitSpotTwapNewOrderParams): Promise; cancelSpotAlgoOrder(params: { algoId: number; }): Promise; getSpotAlgoSubOrders(params: GetSpotAlgoSubOrdersParams): Promise; getSpotAlgoOpenOrders(): Promise<{ total: number; orders: SpotAlgoOrder[]; }>; getSpotAlgoHistoricalOrders(params: GetSpotAlgoHistoricalOrdersParams): Promise<{ total: number; orders: HistoricalSpotAlgoOrder[]; }>; /** * * CRYPTO LOAN Endpoints - Flexible rate - Market data * **/ getCryptoLoanFlexibleCollateralAssets(params: { collateralCoin?: string; }): Promise<{ rows: FlexibleLoanCollateralAssetData[]; total: number; }>; getCryptoLoanFlexibleAssets(params: { loanCoin?: string; }): Promise<{ rows: FlexibleLoanAssetData[]; total: number; }>; /** * * CRYPTO LOAN Endpoints - Flexible rate - Trade * **/ borrowCryptoLoanFlexible(params: BorrowFlexibleLoanParams): Promise; repayCryptoLoanFlexible(params: RepayCryptoFlexibleLoanParams): Promise; adjustCryptoLoanFlexibleLTV(params: AdjustFlexibleCryptoLoanLTVParams): Promise; /** * * CRYPTO LOAN Endpoints - Flexible rate - User info * **/ getCryptoLoanFlexibleLTVAdjustmentHistory(params: GetFlexibleLoanLTVAdjustmentHistoryParams): Promise<{ rows: FlexibleLoanLTVAdjustmentHistory[]; total: number; }>; getLoanFlexibleBorrowHistory(params: GetFlexibleCryptoLoanBorrowHistoryParams): Promise<{ rows: FlexibleCryptoLoanBorrowHistory[]; total: number; }>; getCryptoLoanFlexibleOngoingOrders(params: GetFlexibleLoanOngoingOrdersParams): Promise<{ rows: FlexibleLoanOngoingOrder[]; total: number; }>; getLoanFlexibleRepaymentHistory(params: GetLoanRepaymentHistoryParams): Promise<{ rows: LoanRepaymentHistory[]; total: number; }>; /** * * CRYPTO LOAN Endpoints - Stable rate - Market data * **/ /** * @deprecated */ getCryptoLoanLoanableAssets(params: GetLoanableAssetsDataParams): Promise<{ rows: LoanableAssetData[]; total: number; }>; getCryptoLoanCollateralRepayRate(params: CheckCollateralRepayRateParams): Promise; /** * @deprecated */ getCryptoLoanCollateralAssetsData(params: GetCollateralAssetDataParams): Promise<{ rows: CollateralAssetData[]; total: number; }>; getCryptoLoansIncomeHistory(params: GetCryptoLoansIncomeHistoryParams): Promise; /** * * CRYPTO LOAN Endpoints - Stable rate - Trade * **/ /** * @deprecated */ borrowCryptoLoan(params: BorrowCryptoLoanParams): Promise; /** * @deprecated */ repayCryptoLoan(params: RepayCryptoLoanParams): Promise; /** * @deprecated */ adjustCryptoLoanLTV(params: AdjustCryptoLoanLTVParams): Promise; /** * @deprecated */ customizeCryptoLoanMarginCall(params: CustomizeMarginCallParams): Promise<{ rows: CustomizeMarginCall[]; total: number; }>; /** * * CRYPTO LOAN Endpoints - Stable rate - User info * **/ /** * @deprecated */ getCryptoLoanOngoingOrders(params: GetLoanOngoingOrdersParams): Promise<{ rows: LoanOngoingOrder[]; total: number; }>; getCryptoLoanBorrowHistory(params: GetLoanBorrowHistoryParams): Promise<{ rows: LoanBorrowHistory[]; total: number; }>; getCryptoLoanLTVAdjustmentHistory(params: GetLoanLTVAdjustmentHistoryParams): Promise<{ rows: LoanLTVAdjustmentHistory[]; total: number; }>; getCryptoLoanRepaymentHistory(params: GetLoanRepaymentHistoryParams): Promise; /** * * SIMPLE EARN Endpoints - Account * **/ getSimpleEarnAccount(): Promise; getFlexibleSavingProducts(params?: SimpleEarnProductListParams): Promise<{ rows: SimpleEarnFlexibleProduct[]; total: number; }>; getSimpleEarnLockedProductList(params?: SimpleEarnProductListParams): Promise<{ rows: SimpleEarnLockedProduct[]; total: number; }>; getFlexibleProductPosition(params?: SimpleEarnFlexibleProductPositionParams): Promise<{ rows: any[]; total: number; }>; getLockedProductPosition(params?: SimpleEarnLockedProductPositionParams): Promise<{ rows: SimpleEarnLockedProductPosition[]; total: number; }>; getFlexiblePersonalLeftQuota(params: { productId: string; }): Promise<{ leftPersonalQuota: string; }>; getLockedPersonalLeftQuota(params: { projectId: string; }): Promise<{ leftPersonalQuota: string; }>; /** * * SIMPLE EARN Endpoints - Earn * **/ purchaseFlexibleProduct(params: SimpleEarnSubscribeProductParams): Promise; subscribeSimpleEarnLockedProduct(params: SimpleEarnSubscribeProductParams): Promise; redeemFlexibleProduct(params: SimpleEarnRedeemFlexibleProductParams): Promise; redeemLockedProduct(params: { positionId: string; }): Promise; setFlexibleAutoSubscribe(params: SetAutoSubscribeParams): Promise<{ success: boolean; }>; setLockedAutoSubscribe(params: SetAutoSubscribeParams): Promise<{ success: boolean; }>; getFlexibleSubscriptionPreview(params: GetFlexibleSubscriptionPreviewParams): Promise; getLockedSubscriptionPreview(params: GetLockedSubscriptionPreviewParams): Promise; setLockedProductRedeemOption(params: { positionId: string; redeemTo: 'SPOT' | 'FLEXIBLE'; }): Promise<{ success: boolean; }>; /** * * SIMPLE EARN Endpoints - History * **/ getFlexibleSubscriptionRecord(params: GetFlexibleSubscriptionRecordParams): Promise<{ rows: GetFlexibleSubscriptionRecordResponse[]; total: number; }>; getLockedSubscriptionRecord(params: GetLockedSubscriptionRecordParams): Promise<{ rows: LockedSubscriptionRecord[]; total: number; }>; getFlexibleRedemptionRecord(params: GetFlexibleRedemptionRecordParams): Promise<{ rows: FlexibleRedemptionRecord[]; total: number; }>; getLockedRedemptionRecord(params: GetLockedRedemptionRecordParams): Promise<{ rows: LockedRedemptionRecord[]; total: number; }>; getFlexibleRewardsHistory(params: GetFlexibleRewardsHistoryParams): Promise<{ rows: FlexibleRewardsHistory[]; total: number; }>; getLockedRewardsHistory(params: GetLockedRewardsHistoryParams): Promise<{ rows: GetLockedRewardsHistory[]; total: number; }>; getCollateralRecord(params: GetCollateralRecordParams): Promise<{ rows: CollateralRecord[]; total: string; }>; getRateHistory(params: GetRateHistoryParams): Promise<{ rows: GetRateHistory[]; total: string; }>; /** * * VIP LOAN Endpoints - Market Data * **/ getVipBorrowInterestRate(params: { loanCoin: string; }): Promise; getVipLoanInterestRateHistory(params: VipLoanInterestRateHistoryParams): Promise<{ rows: VipLoanInterestRateRecord[]; total: number; }>; getVipLoanableAssets(params: GetLoanableAssetsDataParams): Promise<{ rows: LoanableAssetData[]; total: number; }>; getVipCollateralAssets(params: { collateralCoin?: string; }): Promise<{ rows: CollateralAssetData[]; total: number; }>; /** * * VIP LOAN Endpoints - User Info * **/ getVipLoanOpenOrders(params: GetVipLoanOngoingOrdersParams): Promise<{ rows: VipOngoingOrder[]; total: number; }>; getVipLoanRepaymentHistory(params: GetVipLoanRepaymentHistoryParams): Promise<{ rows: VipLoanRepaymentHistory[]; total: number; }>; checkVipCollateralAccount(params: CheckVipCollateralAccountParams): Promise<{ rows: VipCollateralAccount[]; total: number; }>; getVipApplicationStatus(params: GetApplicationStatusParams): Promise<{ rows: ApplicationStatus[]; total: number; }>; /** * * VIP LOAN Endpoints - Trade * **/ renewVipLoan(params: VipLoanRenewParams): Promise; repayVipLoan(params: VipLoanRepayParams): Promise; borrowVipLoan(params: VipLoanBorrowParams): Promise; /** * * DUAL INVESTMENT Endpoints - Market Data * **/ getDualInvestmentProducts(params: GetDualInvestmentProductListParams): Promise<{ total: number; list: DualInvestmentProduct[]; }>; /** * * DUAL INVESTMENT Endpoints - Trade * **/ subscribeDualInvestmentProduct(params: SubscribeDualInvestmentProductParams): Promise; getDualInvestmentPositions(params: GetDualInvestmentPositionsParams): Promise<{ total: number; list: DualInvestmentPosition[]; }>; getDualInvestmentAccounts(): Promise; getVipLoanAccruedInterest(params?: VipLoanAccruedInterestParams): Promise<{ rows: VipLoanAccruedInterestRecord[]; total: number; }>; updateAutoCompoundStatus(params: ChangeAutoCompoundStatusParams): Promise; /** * * GIFT CARD Endpoints - Market Data * **/ createGiftCard(params: CreateGiftCardParams): Promise; createDualTokenGiftCard(params: CreateDualTokenGiftCardParams): Promise; redeemGiftCard(params: RedeemGiftCardParams): Promise; verifyGiftCard(params: { referenceNo: string; }): Promise; getTokenLimit(params: { baseToken: string; }): Promise; getRsaPublicKey(): Promise; /** * * NFT Endpoints - REST api * **/ getNftTransactionHistory(params: GetNftTransactionHistoryParams): Promise<{ total: number; list: NftTransaction[]; }>; getNftDepositHistory(params: GetNftDepositHistoryParams): Promise<{ total: number; list: NftDeposit[]; }>; getNftWithdrawHistory(params: GetNftWithdrawHistoryParams): Promise<{ total: number; list: NftWithdraw[]; }>; getNftAsset(params: GetNftAssetParams): Promise<{ total: number; list: NftAsset[]; }>; /** * * C2C Endpoints * **/ getC2CTradeHistory(params: GetC2CTradeHistoryParams): Promise; /** * * FIAT Endpoints - REST api * **/ getFiatOrderHistory(params: GetFiatOrderHistoryParams): Promise; getFiatPaymentsHistory(params: GetFiatOrderHistoryParams): Promise; /** * * Rebate Endpoints * **/ getSpotRebateHistoryRecords(params: GetSpotRebateHistoryRecordsParams): Promise; /** * * DERIVATIVES - Portfolio Margin Pro - Market Data * This is in mainclient because it shares the same base url * **/ getPortfolioMarginIndexPrice(params?: { asset?: string; }): Promise; getPortfolioMarginAssetLeverage(): Promise; getPortfolioMarginProCollateralRate(): Promise; getPortfolioMarginProTieredCollateralRate(): Promise; /** * * DERIVATIVES - Portfolio Margin Pro - Account * This is in mainclient because it shares the same base url * **/ getPortfolioMarginProAccountInfo(): Promise; bnbTransfer(params: BnbTransferParams): Promise<{ tranId: number; }>; submitPortfolioMarginProFullTransfer(): Promise<{ msg: string; }>; submitPortfolioMarginProSpecificTransfer(params: { asset: string; }): Promise<{ msg: string; }>; repayPortfolioMarginProBankruptcyLoan(params: { from?: 'SPOT' | 'MARGIN'; }): Promise<{ tranId: number; }>; getPortfolioMarginProBankruptcyLoanAmount(): Promise; repayFuturesNegativeBalance(): Promise<{ msg: string; }>; updateAutoRepayFuturesStatus(params: { autoRepay: string; }): Promise<{ msg: string; }>; getAutoRepayFuturesStatus(): Promise<{ autoRepay: boolean; }>; getPortfolioMarginProInterestHistory(params: GetPortfolioMarginProInterestHistoryParams): Promise; getPortfolioMarginProSpanAccountInfo(): Promise; getPortfolioMarginProAccountBalance(params?: { asset?: string; }): Promise; /** * * DERIVATIVES - Futures Data - Market * This is in mainclient because it shares the same base url * **/ getFuturesTickLevelOrderbookDataLink(params: GetFutureTickLevelOrderbookDataLinkParams): Promise<{ data: HistoricalDataLink[]; }>; /** * * BLVT Endpoints * BLVT category is possibly @deprecated, found only in old docs **/ getBlvtInfo(params?: { tokenName?: string; }): Promise; subscribeBlvt(params: SubscribeBlvtParams): Promise; getBlvtSubscriptionRecord(params: GetBlvtSubscriptionRecordParams): Promise; redeemBlvt(params: RedeemBlvtParams): Promise; getBlvtRedemptionRecord(params: GetBlvtRedemptionRecordParams): Promise; getBlvtUserLimitInfo(params: { tokenName?: string; }): Promise; /** * * Pay endpoints * Found only in old docs, possibly @deprecated **/ getPayTransactions(params: GetPayTradeHistoryParams): Promise; /** * * EXCHANGE LINK - Account Endpoints * https://developers.binance.com/docs/binance_link */ createBrokerSubAccount(params: CreateBrokerSubAccountParams): Promise; getBrokerSubAccount(params: GetBrokerSubAccountParams): Promise; enableMarginBrokerSubAccount(params: EnableMarginBrokerSubAccountParams): Promise; createApiKeyBrokerSubAccount(params: CreateApiKeyBrokerSubAccountParams): Promise; changePermissionApiKeyBrokerSubAccount(params: ChangePermissionApiKeyBrokerSubAccountParams): Promise; changeComissionBrokerSubAccount(params: ChangePermissionApiKeyBrokerSubAccountParams): Promise; enableUniversalTransferApiKeyBrokerSubAccount(params: EnableUniversalTransferApiKeyBrokerSubAccountParams): Promise; updateIpRestrictionForSubAccountApiKey(params: UpdateIpRestrictionForSubApiKey): Promise<{ status: string; ipList?: string[]; updateTime: number; apiKey: string; }>; deleteIPRestrictionForSubAccountApiKey(params: { subAccountId: string; subAccountApiKey: string; ipAddress?: string; }): Promise<{ subaccountId: string; apikey: string; ipList: string[]; updateTime: number; }>; deleteApiKeyBrokerSubAccount(params: DeleteApiKeyBrokerSubAccountParams): Promise; getSubAccountBrokerIpRestriction(params: { subAccountId: string; subAccountApiKey: string; }): Promise<{ subaccountId: string; ipRestrict: boolean; apikey: string; ipList: string[]; updateTime: number; }>; getApiKeyBrokerSubAccount(params: GetApiKeyBrokerSubAccountParams): Promise; getBrokerInfo(): Promise; updateSubAccountBNBBurn(params: { subAccountId: string; spotBNBBurn: 'true' | 'false'; }): Promise<{ subAccountId: string; spotBNBBurn: boolean; }>; updateSubAccountMarginInterestBNBBurn(params: { subAccountId: string; interestBNBBurn: 'true' | 'false'; }): Promise<{ subAccountId: string; interestBNBBurn: boolean; }>; getSubAccountBNBBurnStatus(params: { subAccountId: string; }): Promise<{ subAccountId: string; spotBNBBurn: boolean; interestBNBBurn: boolean; }>; /** * * EXCHANGE LINK - Account Endpoints * https://developers.binance.com/docs/binance_link */ transferBrokerSubAccount(params: TransferBrokerSubAccountParams): Promise; getBrokerSubAccountHistory(params: GetBrokerSubAccountHistoryParams): Promise; submitBrokerSubFuturesTransfer(params: { fromId?: string; toId?: string; futuresType: number; asset: string; amount: number; clientTranId?: string; }): Promise<{ success: boolean; txnId: string; clientTranId?: string; }>; getSubAccountFuturesTransferHistory(params: { subAccountId: string; futuresType: number; clientTranId?: string; startTime?: number; endTime?: number; page?: number; limit?: number; }): Promise; getBrokerSubDepositHistory(params: GetSubAccountDepositHistoryParams): Promise; getBrokerSubAccountSpotAssets(params: QuerySubAccountSpotMarginAssetInfoParams): Promise<{ data: SubaccountBrokerSpotAsset[]; timestamp: number; }>; getSubAccountMarginAssetInfo(params: QuerySubAccountSpotMarginAssetInfoParams): Promise<{ data: SubAccountBrokerMarginAsset[]; timestamp: number; }>; querySubAccountFuturesAssetInfo(params: QuerySubAccountFuturesAssetInfoParams): Promise<{ data: (UsdtMarginedFuturesResponse | CoinMarginedFuturesResponse)[]; timestamp: number; }>; universalTransferBroker(params: UniversalTransferBrokerParams): Promise<{ txnId: number; clientTranId: string; }>; getUniversalTransferBroker(params: GetUniversalTransferBrokerParams): Promise; /** * * EXCHANGE LINK - Fee Endpoints * https://developers.binance.com/docs/binance_link */ updateBrokerSubAccountCommission(params: ChangeSubAccountCommissionParams): Promise; updateBrokerSubAccountFuturesCommission(params: ChangeSubAccountFuturesCommissionParams): Promise; getBrokerSubAccountFuturesCommission(params: QuerySubAccountFuturesCommissionParams): Promise; updateBrokerSubAccountCoinFuturesCommission(params: ChangeSubAccountCoinFuturesCommissionParams): Promise; getBrokerSubAccountCoinFuturesCommission(params: QuerySubAccountCoinFuturesCommissionParams): Promise; getBrokerSpotCommissionRebate(params: QueryBrokerSpotCommissionRebateParams): Promise; getBrokerFuturesCommissionRebate(params: QueryBrokerFuturesCommissionRebateParams): Promise; /** * * @deprecated */ getBrokerSpotRebateHistory(days: 7 | 30, customerId?: string): import("./util/requestUtils").GenericAPIResponse | undefined; /** * Broker Endpoints - only on old docs * @deprecated, found only in old docs * Use EXCHANGE LINK endpoints instead - https://developers.binance.com/docs/binance_link */ /** * @deprecated, found only in old docs * Use EXCHANGE LINK endpoints instead **/ getBrokerIfNewSpotUser(): Promise<{ rebateWorking: boolean; ifNewUser: boolean; }>; /** * @deprecated, found only in old docs * Use EXCHANGE LINK endpoints instead **/ getBrokerSubAccountDepositHistory(params?: GetBrokerSubAccountDepositHistoryParams): Promise; /** * @deprecated, found only in old docs * Use EXCHANGE LINK endpoints instead **/ getBrokerUserCustomisedId(market: 'spot' | 'futures'): import("./util/requestUtils").GenericAPIResponse; /** * @deprecated, found only in old docs * Use EXCHANGE LINK endpoints instead **/ enableFuturesBrokerSubAccount(params: EnableFuturesBrokerSubAccountParams): Promise; /** * @deprecated, found only in old docs * Use EXCHANGE LINK endpoints instead **/ enableMarginApiKeyBrokerSubAccount(params: EnableMarginApiKeyBrokerSubAccountParams): Promise; /** * Validate syntax meets requirements set by binance. Log warning if not. */ private validateOrderId; /** * * User Data Stream Endpoints * **/ getSpotUserDataListenKey(): Promise<{ listenKey: string; }>; keepAliveSpotUserDataListenKey(listenKey: string): Promise; closeSpotUserDataListenKey(listenKey: string): Promise; getMarginUserDataListenKey(): Promise<{ listenKey: string; }>; keepAliveMarginUserDataListenKey(listenKey: string): Promise; closeMarginUserDataListenKey(listenKey: string): Promise; getIsolatedMarginUserDataListenKey(params: { symbol: string; }): Promise<{ listenKey: string; }>; keepAliveIsolatedMarginUserDataListenKey(params: { symbol: string; listenKey: string; }): Promise; closeIsolatedMarginUserDataListenKey(params: { symbol: string; listenKey: string; }): Promise; /** * * DEPRECATED ENDPOINTS * **/ /** * * BSwap Endpoints * @deprecated as of 2024-01-19 **/ /** * @deprecated as of 2024-01-19 **/ getBSwapLiquidity(params?: { poolId: number; }): Promise; /** * @deprecated as of 2024-01-19 **/ addBSwapLiquidity(params: AddBSwapLiquidityParams): Promise<{ operationId: number; }>; /** * @deprecated as of 2024-01-19 **/ removeBSwapLiquidity(params: RemoveBSwapLiquidityParams): Promise<{ operationId: number; }>; /** * @deprecated as of 2024-01-19 **/ getBSwapOperations(params?: BSwapOperationsParams): Promise; /** * * Savings Endpoints * @deprecated as of 2023-06-22, now Simple Earn **/ /** * @deprecated as of 2023-06-22, now Simple Earn */ getLeftDailyPurchaseQuotaFlexibleProduct(params: { productId: string; }): Promise; /** * @deprecated as of 2023-06-22, now Simple Earn */ getLeftDailyRedemptionQuotaFlexibleProduct(params: { productId: string; }): Promise; /** * @deprecated as of 2023-06-22, now Simple Earn */ purchaseFixedAndActivityProject(params: { projectId: string; lot: number; }): Promise; /** * @deprecated as of 2023-06-22, now Simple Earn */ getFixedAndActivityProjects(params: FixedAndActivityProjectParams): Promise; /** * @deprecated as of 2023-06-22, now Simple Earn */ getFixedAndActivityProductPosition(params: FixedAndActivityProjectPositionParams): Promise; /** * @deprecated as of 2023-06-22, now Simple Earn */ getLendingAccount(): Promise; /** * @deprecated as of 2023-06-22, now Simple Earn */ getPurchaseRecord(params: PurchaseRecordParams): Promise; /** * @deprecated as of 2023-06-22, now Simple Earn */ getRedemptionRecord(params: PurchaseRecordParams): Promise; /** * @deprecated as of 2023-06-22, now Simple Earn */ getInterestHistory(params: PurchaseRecordParams): Promise; /** * @deprecated as of 2023-06-22, now Simple Earn */ changeFixedAndActivityPositionToDailyPosition(params: { projectId: string; lot: number; positionId?: number; }): Promise; /** * * Wallet Endpoints * @deprecated **/ /** * @deprecated */ enableConvertSubAccount(params: EnableConvertSubAccountParams): Promise; /** * @deprecated - deleted as of 2024-11-21 * */ convertBUSD(params: ConvertTransfer): Promise; /** * @deprecated */ getConvertBUSDHistory(params: GetConvertBUSDHistoryParams): Promise<{ total: number; rows: BUSDConversionRecord[]; }>; } /** * @deprecated use MainClient instead of SpotClient (it is the same) */ export declare const SpotClient: typeof MainClient;