binance 2.12.3 → 2.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
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, NewOrderListOTOResponse, 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 } from './types/spot';
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, NewOrderListOTOResponse, 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 } from './types/spot';
4
4
  import { RestClientOptions } from './util/requestUtils';
5
5
  import BaseRestClient from './util/BaseRestClient';
6
6
  export declare class MainClient extends BaseRestClient {
@@ -11,168 +11,16 @@ export declare class MainClient extends BaseRestClient {
11
11
  getServerTime(baseUrlKeyOverride?: BinanceBaseUrlKey): Promise<number>;
12
12
  /**
13
13
  *
14
- * Wallet Endpoints
15
- *
16
- **/
17
- getSystemStatus(): Promise<SystemStatusResponse>;
18
- getBalances(): Promise<AllCoinsInformationResponse[]>;
19
- getDailyAccountSnapshot(params: DailyAccountSnapshotParams): Promise<DailyAccountSnapshot>;
20
- disableFastWithdrawSwitch(): Promise<{}>;
21
- enableFastWithdrawSwitch(): Promise<{}>;
22
- withdraw(params: WithdrawParams): Promise<{
23
- id: string;
24
- }>;
25
- getDepositHistory(params?: DepositHistoryParams): Promise<DepositHistory[]>;
26
- getWithdrawHistory(params?: WithdrawHistoryParams): Promise<WithdrawHistory[]>;
27
- getDepositAddress(params: DepositAddressParams): Promise<DepositAddressResponse>;
28
- getAccountStatus(): Promise<{
29
- data: string;
30
- }>;
31
- getDustLog(params?: BasicTimeRangeParam): Promise<DustLog>;
32
- convertDustToBnb(params: ConvertDustParams): Promise<DustConversion>;
33
- getDust(): Promise<DustInfo>;
34
- getAssetDividendRecord(params?: BasicAssetPaginatedParams): Promise<any>;
35
- getAssetDetail(params?: Partial<BasicAssetParam>): Promise<Record<ExchangeSymbol, AssetDetail>>;
36
- getTradeFee(params?: Partial<BasicSymbolParam>): Promise<SymbolTradeFee[]>;
37
- submitUniversalTransfer(params: UniversalTransferParams): Promise<{
38
- tranId: number;
39
- }>;
40
- getUniversalTransferHistory(params: UniversalTransferHistoryParams): Promise<any>;
41
- getApiTradingStatus(): Promise<APITradingStatus>;
42
- getApiKeyPermissions(): Promise<APIPermissions>;
43
- enableConvertSubAccount(params: EnableConvertSubAccountParams): Promise<any>;
44
- getFundingAsset(params: GetAssetParams): Promise<FundingAsset[]>;
45
- getUserAsset(params: GetAssetParams): Promise<UserAsset[]>;
46
- convertBUSD(params: ConvertTransfer): Promise<ConvertTransferResponse>;
47
- getConvertBUSDHistory(params: GetConvertBUSDHistoryParams): Promise<{
48
- total: number;
49
- rows: BUSDConversionRecord[];
50
- }>;
51
- getCloudMiningHistory(params: CloudMiningHistoryParams): Promise<{
52
- total: number;
53
- rows: CloudMining[];
54
- }>;
55
- getAutoConvertStablecoins(): Promise<ConvertibleCoinsResponse>;
56
- setConvertibleCoins(params: ConvertibleCoinsParams): Promise<void>;
57
- submitDepositCredit(params: SubmitDepositCreditParams): Promise<SubmitDepositCreditResponse>;
58
- getDepositAddresses(params: DepositAddressListParams): Promise<DepositAddress[]>;
59
- getWalletBalances(): Promise<WalletBalance[]>;
60
- getDelegationHistory(params: DelegationHistoryParams): Promise<RowsWithTotal<DelegationHistory>>;
61
- getDelistSchedule(): Promise<DelistScheduleResponse[]>;
62
- getWithdrawAddresses(): Promise<WithdrawAddress[]>;
63
- getAccountInfo(): Promise<AccountInfo>;
64
- /**
65
- *
66
- *
67
- * Sub-Account Endpoints
14
+ * SPOT TRADING Endpoints - General endpoints
68
15
  *
69
16
  **/
70
- createVirtualSubAccount(params: CreateSubAccountParams): Promise<VirtualSubAccount>;
71
- getSubAccountList(params?: SubAccountListParams): Promise<SubAccountListResponse>;
72
- getSubAccountSpotAssetTransferHistory(params?: SubAccountSpotAssetTransferHistoryParams): Promise<SubAccountSpotAssetTransferHistory>;
73
- getSubAccountFuturesAssetTransferHistory(params: SubAccountFuturesAssetTransferHistoryParams): Promise<SubAccountFuturesAssetTransferHistory>;
74
- subAccountFuturesAssetTransfer(params: SubAccountFuturesAssetTransferParams): Promise<SubAccountFuturesAssetTransfer>;
75
- getSubAccountAssets(params: SubAccountAssetsParams): Promise<SubAccountAssets>;
76
- getSubAccountSpotAssetsSummary(params?: SubAccountSpotAssetsSummaryParams): Promise<SubAccountSpotAssetsSummary>;
77
- getSubAccountDepositAddress(params: SubAccountDepositAddressParams): Promise<SubAccountDepositAddress>;
78
- getSubAccountDepositHistory(params: SubAccountDepositHistoryParams): Promise<DepositHistory[]>;
79
- getSubAccountStatusOnMarginOrFutures(params?: {
80
- email?: string;
81
- }): Promise<SubAccountStatus[]>;
82
- subAccountEnableMargin(email: string): Promise<SubAccountEnableMargin>;
83
- getSubAccountDetailOnMarginAccount(email: string): Promise<SubAccountMarginAccountDetail>;
84
- getSubAccountsSummaryOfMarginAccount(): Promise<SubAccountsMarginAccountSummary>;
85
- subAccountEnableFutures(email: string): Promise<SubAccountEnableFutures>;
86
- getSubAccountFuturesAccountDetail(email: string): Promise<SubAccountFuturesAccountDetail>;
87
- getSubAccountFuturesAccountSummary(): Promise<SubAccountFuturesAccountSummary>;
88
- getSubAccountFuturesPositionRisk(email: string): Promise<FuturesPositionRisk[]>;
89
- subAccountFuturesTransfer(params: SubAccountTransferParams): Promise<SubAccountTransfer>;
90
- subAccountMarginTransfer(params: SubAccountTransferParams): Promise<SubAccountTransfer>;
91
- subAccountTransferToSameMaster(params: SubAccountTransferToSameMasterParams): Promise<SubAccountTransfer>;
92
- subAccountTransferToMaster(params: SubAccountTransferToMasterParams): Promise<SubAccountTransfer>;
93
- subAccountTransferHistory(params?: SubAccountTransferHistoryParams): Promise<SubAccountTransferHistory[]>;
94
- subAccountUniversalTransfer(params: SubAccountUniversalTransferParams): Promise<SubAccountUniversalTransfer>;
95
- getSubAccountUniversalTransferHistory(params?: SubAccountUniversalTransferHistoryParams): Promise<SubAccountUniversalTransferHistoryResponse>;
96
- getSubAccountDetailOnFuturesAccountV2(params: BasicFuturesSubAccountParams): Promise<SubAccountUSDMDetail | SubAccountCOINMDetail>;
97
- getSubAccountSummaryOnFuturesAccountV2(params: SubAccountSummaryOnFuturesAccountV2Params): Promise<SubAccountUSDMSummary | SubAccountCOINMSummary>;
98
- getSubAccountFuturesPositionRiskV2(params: BasicFuturesSubAccountParams): Promise<SubAccountUSDMPositionRisk | SubAccountCOINMPositionRisk>;
99
- subAccountEnableLeverageToken(params: SubAccountEnableLeverageToken): Promise<SubAccountEnableLeverageToken>;
100
- subAccountEnableOrDisableIPRestriction(params: EnableOrDisableIPRestrictionForSubAccountParams): Promise<SubAccountEnableOrDisableIPRestriction>;
101
- subAccountAddIPList(params: SubAccountEnableOrDisableIPRestriction): Promise<SubAccountAddOrDeleteIPList>;
102
- subAccountAddIPRestriction(params: AddIpRestriction): Promise<SubAccountEnableOrDisableIPRestriction>;
103
- getSubAccountIPRestriction(params: BasicSubAccount): Promise<SubAccountEnableOrDisableIPRestriction>;
104
- subAccountDeleteIPList(params: SubAccountEnableOrDisableIPRestriction): Promise<SubAccountEnableOrDisableIPRestriction>;
105
- depositAssetsIntoManagedSubAccount(params: SubAccountTransferToSameMasterParams): Promise<MarginTransactionResponse>;
106
- getManagedSubAccountAssetDetails(email: string): Promise<SubAccountAssetDetails[]>;
107
- withdrawAssetsFromManagedSubAccount(params: WithdrawAssetsFromManagedSubAccountParams): Promise<MarginTransactionResponse>;
108
- getManagedSubAccountSnapshot(params: ManagedSubAccountSnapshotParams): Promise<ManagedSubAccountSnapshot>;
109
- getManagedSubAccountTransfersInvestor(params: ManagedSubAccountTransferLogParams): Promise<{
110
- managerSubTransferHistoryVos: ManagerSubTransferHistoryVos[];
111
- count: number;
112
- }>;
113
- getManagedSubAccountTransfersParent(params: ManagedSubAccountTransferLogParams): Promise<{
114
- managerSubTransferHistoryVos: ManagerSubTransferHistoryVos[];
115
- count: number;
116
- }>;
117
- getManagedSubAccountFuturesAssets(params: {
118
- email: string;
119
- }): Promise<ManagedSubAccountFuturesAssetsResponse>;
120
- getManagedSubAccountMarginAssets(params: {
121
- email: string;
122
- }): Promise<ManagedSubAccountMarginAssetsResponse>;
123
- getSubAccountAssetsMaster(params: {
124
- email: string;
125
- }): Promise<{
126
- balances: SubaccountBalances[];
127
- }>;
128
- getManagedSubAccounts(params: ManagedSubAccountListParams): Promise<{
129
- total: number;
130
- managerSubUserInfoVoList: ManagerSubUserInfoVo[];
131
- }>;
132
- getSubAccountTransactionStatistics(params: {
133
- email: string;
134
- }): Promise<SubAccountTransactionStatistics>;
135
- getManagedSubAccountDepositAddress(params: ManagedSubAccountDepositAddressParams): Promise<ManagedSubAccountDepositAddress>;
136
- enableOptionsForSubAccount(params: {
137
- email: string;
138
- }): Promise<EnableOptionsForSubAccountResponse>;
139
- getManagedSubAccountTransferLog(params: ManagedSubAccountTransferTTLogParams): Promise<{
140
- managerSubTransferHistoryVos: ManagerSubTransferHistoryVos[];
141
- count: number;
142
- }>;
143
- /**
144
- * Broker Endpoints
145
- */
146
- getBrokerIfNewSpotUser(): Promise<{
147
- rebateWorking: boolean;
148
- ifNewUser: boolean;
149
- }>;
150
- getBrokerSubAccountDepositHistory(params?: GetBrokerSubAccountDepositHistoryParams): Promise<SubAccountDepositHistoryList[]>;
151
- getBrokerUserCustomisedId(market: 'spot' | 'futures'): import("./util/requestUtils").GenericAPIResponse<any>;
152
- createBrokerSubAccount(params: CreateBrokerSubAccountParams): Promise<BrokerSubAccount>;
153
- getBrokerSubAccountHistory(params: GetBrokerSubAccountHistoryParams): Promise<BrokerSubAccountHistory[]>;
154
- getBrokerSubAccount(params: GetBrokerSubAccountParams): Promise<BrokerSubAccount[]>;
155
- getApiKeyBrokerSubAccount(params: GetApiKeyBrokerSubAccountParams): Promise<ApiKeyBrokerSubAccount[]>;
156
- createApiKeyBrokerSubAccount(params: CreateApiKeyBrokerSubAccountParams): Promise<CreateApiKeyBrokerSubAccountResponse>;
157
- deleteApiKeyBrokerSubAccount(params: DeleteApiKeyBrokerSubAccountParams): Promise<{}>;
158
- changePermissionApiKeyBrokerSubAccount(params: ChangePermissionApiKeyBrokerSubAccountParams): Promise<ChangePermissionApiKeyBrokerSubAccountResponse>;
159
- changeComissionBrokerSubAccount(params: ChangePermissionApiKeyBrokerSubAccountParams): Promise<ChangePermissionApiKeyBrokerSubAccountResponse>;
160
- enableUniversalTransferApiKeyBrokerSubAccount(params: EnableUniversalTransferApiKeyBrokerSubAccountParams): Promise<EnableUniversalTransferApiKeyBrokerSubAccountResponse>;
161
- enableMarginBrokerSubAccount(params: EnableMarginBrokerSubAccountParams): Promise<EnableMarginBrokerSubAccountResponse>;
162
- enableFuturesBrokerSubAccount(params: EnableFuturesBrokerSubAccountParams): Promise<EnableFuturesBrokerSubAccountResponse>;
163
- enableMarginApiKeyBrokerSubAccount(params: EnableMarginApiKeyBrokerSubAccountParams): Promise<BrokerSubAccount>;
164
- transferBrokerSubAccount(params: TransferBrokerSubAccountParams): Promise<TransferBrokerSubAccount>;
165
- universalTransferBroker(params: UniversalTransferBrokerParams): Promise<BrokerSubAccount>;
166
- getUniversalTransferBroker(params: GetUniversalTransferBrokerParams): Promise<BrokerSubAccount>;
167
- getBrokerInfo(): Promise<GetBrokerInfoResponse>;
168
- getBrokerSpotRebateHistory(days: 7 | 30, customerId?: string): import("./util/requestUtils").GenericAPIResponse<any> | undefined;
17
+ testConnectivity(): Promise<{}>;
18
+ getExchangeInfo(params?: ExchangeInfoParams): Promise<ExchangeInfo>;
169
19
  /**
170
20
  *
171
- * Market Data Endpoints
21
+ * SPOT TRADING Endpoints - Market endpoints
172
22
  *
173
23
  **/
174
- testConnectivity(): Promise<{}>;
175
- getExchangeInfo(params?: ExchangeInfoParams): Promise<ExchangeInfo>;
176
24
  getOrderBook(params: OrderBookParams): Promise<OrderBookResponse>;
177
25
  getRecentTrades(params: RecentTradesParams): Promise<RawTrade[]>;
178
26
  getHistoricalTrades(params: HistoricalTradesParams): Promise<RawTrade[]>;
@@ -188,15 +36,15 @@ export declare class MainClient extends BaseRestClient {
188
36
  getRollingWindowTicker(params: RollingWindowTickerParams): Promise<TradingDayTickerFull[] | TradingDayTickerMini[]>;
189
37
  /**
190
38
  *
191
- * Spot Account/Trade Endpoints
39
+ * SPOT TRADING Endpoints - Trading endpoints
192
40
  *
193
41
  **/
194
- testNewOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: NewSpotOrderParams<T, RT>): Promise<{}>;
195
- replaceOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: ReplaceSpotOrderParams<T, RT>): Promise<ReplaceSpotOrderResultSuccess<T, RT>>;
196
42
  submitNewOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: NewSpotOrderParams<T, RT>): Promise<OrderResponseTypeFor<RT, T>>;
43
+ testNewOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: NewSpotOrderParams<T, RT>): Promise<{}>;
44
+ getOrder(params: GetOrderParams): Promise<SpotOrder>;
197
45
  cancelOrder(params: CancelOrderParams): Promise<CancelSpotOrderResult>;
198
46
  cancelAllSymbolOrders(params: BasicSymbolParam): Promise<CancelSpotOrderResult[]>;
199
- getOrder(params: GetOrderParams): Promise<SpotOrder>;
47
+ replaceOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: ReplaceSpotOrderParams<T, RT>): Promise<ReplaceSpotOrderResultSuccess<T, RT>>;
200
48
  getOpenOrders(params?: Partial<BasicSymbolParam>): Promise<SpotOrder[]>;
201
49
  getAllOrders(params: GetAllOrdersParams): Promise<SpotOrder[]>;
202
50
  /**
@@ -226,11 +74,9 @@ export declare class MainClient extends BaseRestClient {
226
74
  }): Promise<{} | SORTestOrderResponse>;
227
75
  /**
228
76
  *
77
+ * SPOT TRADING Endpoints - Account endpoints
229
78
  *
230
- * Spot Account Endpoints
231
- *
232
- *
233
- */
79
+ **/
234
80
  /**
235
81
  * Get current account information
236
82
  */
@@ -246,307 +92,388 @@ export declare class MainClient extends BaseRestClient {
246
92
  }): Promise<CommissionRates>;
247
93
  /**
248
94
  *
249
- * Margin Account/Trade Endpoints
95
+ * MARGIN TRADING Endpoints - Market Data endpoints
250
96
  *
251
97
  **/
252
- submitMarginAccountBorrowRepay(params: MarginAccountLoanParams): Promise<MarginTransactionResponse>;
253
- getMarginAccountBorrowRepayRecords(params: GetMarginAccountBorrowRepayRecordsParams): Promise<{
254
- rows: MarginAccountRecord[];
255
- total: number;
256
- }>;
257
- getAllMarginAssets(): Promise<QueryMarginAssetResponse[]>;
98
+ getCrossMarginCollateralRatio(): Promise<{
99
+ collaterals: Collateral[];
100
+ assetNames: string[];
101
+ }[]>;
258
102
  getAllCrossMarginPairs(): Promise<QueryCrossMarginPairResponse[]>;
103
+ getIsolatedMarginAllSymbols(params?: {
104
+ symbol?: string;
105
+ }): Promise<IsolatedMarginSymbol[]>;
106
+ getAllMarginAssets(): Promise<QueryMarginAssetResponse[]>;
107
+ getMarginDelistSchedule(): Promise<MarginDelistSchedule[]>;
108
+ getIsolatedMarginTierData(params: QueryIsolatedMarginTierDataParams): Promise<IsolatedMarginTierData[]>;
259
109
  queryMarginPriceIndex(params: BasicSymbolParam): Promise<QueryMarginPriceIndexResponse>;
260
- marginAccountNewOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: NewSpotOrderParams<T, RT>): Promise<OrderResponseTypeFor<RT, T>>;
261
- marginAccountCancelOrder(params: CancelOrderParams): Promise<CancelSpotOrderResult>;
262
- marginAccountCancelOpenOrders(params: BasicSymbolParam): Promise<CancelSpotOrderResult[]>;
263
- updateCrossMarginMaxLeverage(params: {
264
- maxLeverage: number;
265
- }): Promise<{
266
- success: boolean;
267
- }>;
268
- getCrossMarginTransferHistory(params: GetCrossMarginTransferHistoryParams): Promise<RowsWithTotal<CrossMarginTransferHistory>>;
110
+ getMarginAvailableInventory(params: {
111
+ type: string;
112
+ }): Promise<MarginAvailableInventoryResponse>;
113
+ getLeverageBracket(): Promise<LiabilityCoinLeverageBracket[]>;
114
+ /**
115
+ *
116
+ * MARGIN TRADING Endpoints - Borrow and Repay endpoints
117
+ *
118
+ **/
119
+ getNextHourlyInterestRate(params: GetNextHourlyInterestRateParams): Promise<NextHourlyInterestRate[]>;
269
120
  getMarginInterestHistory(params: GetMarginInterestHistoryParams): Promise<{
270
121
  rows: MarginInterestHistory[];
271
122
  total: number;
272
123
  }>;
273
- getMarginForceLiquidationRecord(params: GetForceLiquidationRecordParams): Promise<{
274
- rows: ForceLiquidationRecord[];
124
+ submitMarginAccountBorrowRepay(params: MarginAccountLoanParams): Promise<MarginTransactionResponse>;
125
+ getMarginAccountBorrowRepayRecords(params: GetMarginAccountBorrowRepayRecordsParams): Promise<{
126
+ rows: MarginAccountRecord[];
275
127
  total: number;
276
128
  }>;
129
+ getMarginInterestRateHistory(params: QueryMarginInterestRateHistoryParams): Promise<MarginInterestRateHistory[]>;
130
+ queryMaxBorrow(params: BasicMarginAssetParams): Promise<QueryMaxBorrowResponse>;
277
131
  /**
278
- * @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead
279
- */
280
- queryLoanRecord(params: QueryMarginRecordParams): Promise<{
281
- rows: MarginAccountRecord[];
132
+ *
133
+ * MARGIN TRADING Endpoints - Trade endpoints
134
+ *
135
+ **/
136
+ getMarginForceLiquidationRecord(params: GetForceLiquidationRecordParams): Promise<{
137
+ rows: ForceLiquidationRecord[];
282
138
  total: number;
283
139
  }>;
284
- /**
285
- * @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead
286
- */
287
- queryRepayRecord(params: QueryMarginRecordParams): Promise<{
288
- rows: MarginAccountRecord[];
140
+ getSmallLiabilityExchangeCoins(): Promise<SmallLiabilityExchangeCoin[]>;
141
+ getSmallLiabilityExchangeHistory(params: GetSmallLiabilityExchangeHistoryParams): Promise<{
289
142
  total: number;
143
+ rows: SmallLiabilityExchangeHistory[];
290
144
  }>;
291
- queryCrossMarginAccountDetails(): Promise<QueryCrossMarginAccountDetailsParams>;
292
- queryMarginAccountOrder(params: GetOrderParams): Promise<SpotOrder>;
293
- queryMarginAccountOpenOrders(params: BasicSymbolParam): Promise<SpotOrder[]>;
294
- queryMarginAccountAllOrders(params: GetAllOrdersParams): Promise<SpotOrder[]>;
295
- marginAccountNewOCO(params: NewOCOParams): Promise<any>;
145
+ marginAccountCancelOpenOrders(params: BasicSymbolParam): Promise<CancelSpotOrderResult[]>;
296
146
  marginAccountCancelOCO(params: CancelOCOParams): Promise<any>;
297
- queryMarginAccountOCO(params: GetOCOParams): Promise<any>;
147
+ marginAccountCancelOrder(params: CancelOrderParams): Promise<CancelSpotOrderResult>;
148
+ marginAccountNewOCO(params: NewOCOParams): Promise<any>;
149
+ marginAccountNewOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: NewSpotOrderParams<T, RT>): Promise<OrderResponseTypeFor<RT, T>>;
150
+ getMarginOrderCountUsage(params: GetMarginOrderCountUsageParams): Promise<MarginOrderCountUsageResponse[]>;
298
151
  queryMarginAccountAllOCO(params: QueryMarginAccountAllOCOParams): Promise<any>;
299
- /**
300
- * Query margin account's open OCO
301
- */
152
+ queryMarginAccountAllOrders(params: GetAllOrdersParams): Promise<SpotOrder[]>;
153
+ queryMarginAccountOCO(params: GetOCOParams): Promise<any>;
302
154
  queryMarginAccountOpenOCO(params: {
303
155
  isIsolated?: 'TRUE' | 'FALSE';
304
156
  symbol?: string;
305
157
  }): Promise<any>;
306
- /**
307
- * Query margin account's trade list
308
- */
158
+ queryMarginAccountOpenOrders(params: BasicSymbolParam): Promise<SpotOrder[]>;
159
+ queryMarginAccountOrder(params: GetOrderParams): Promise<SpotOrder>;
309
160
  queryMarginAccountTradeList(params: QueryMarginAccountTradeListParams): Promise<any>;
310
- queryMaxBorrow(params: BasicMarginAssetParams): Promise<QueryMaxBorrowResponse>;
311
- queryMaxTransferOutAmount(params: BasicMarginAssetParams): Promise<QueryMaxTransferOutAmountResponse>;
312
- /**
313
- * @deprecated on 2024-01-09, use submitUniversalTransfer() instead
314
- */
315
- isolatedMarginAccountTransfer(params: IsolatedMarginAccountTransferParams): Promise<MarginTransactionResponse>;
316
- getIsolatedMarginAccountInfo(params?: {
317
- symbols?: string;
318
- }): Promise<IsolatedMarginAccountInfo>;
319
- /**
320
- * Disable isolated margin account
321
- */
322
- disableIsolatedMarginAccount(params: {
323
- symbol: string;
161
+ submitSmallLiabilityExchange(params: {
162
+ assetNames: string[];
324
163
  }): Promise<{
325
164
  success: boolean;
326
- symbol: string;
165
+ message: string;
327
166
  }>;
167
+ submitManualLiquidation(params: ManualLiquidationParams): Promise<ManualLiquidationResponse[]>;
328
168
  /**
329
- * Enable isolated margin account
330
- */
169
+ *
170
+ * MARGIN TRADING Endpoints - Transfer endpoints
171
+ *
172
+ **/
173
+ getCrossMarginTransferHistory(params: GetCrossMarginTransferHistoryParams): Promise<RowsWithTotal<CrossMarginTransferHistory>>;
174
+ queryMaxTransferOutAmount(params: BasicMarginAssetParams): Promise<QueryMaxTransferOutAmountResponse>;
175
+ /**
176
+ *
177
+ * MARGIN TRADING Endpoints - Account endpoints
178
+ *
179
+ **/
180
+ updateCrossMarginMaxLeverage(params: {
181
+ maxLeverage: number;
182
+ }): Promise<{
183
+ success: boolean;
184
+ }>;
185
+ disableIsolatedMarginAccount(params: {
186
+ symbol: string;
187
+ }): Promise<{
188
+ success: boolean;
189
+ symbol: string;
190
+ }>;
331
191
  enableIsolatedMarginAccount(params: {
332
192
  symbols: string;
333
193
  }): Promise<{
334
194
  success: boolean;
335
195
  symbol: string;
336
196
  }>;
337
- /**
338
- * Query enabled isolated margin account limit
339
- */
197
+ getBNBBurn(): Promise<BNBBurnResponse>;
198
+ getMarginSummary(): Promise<any>;
199
+ queryCrossMarginAccountDetails(): Promise<QueryCrossMarginAccountDetailsParams>;
200
+ getCrossMarginFeeData(params: QueryCrossMarginFeeDataParams): Promise<CrossMarginFeeData[]>;
340
201
  getIsolatedMarginAccountLimit(): Promise<{
341
202
  enabledAccount: number;
342
203
  maxAccount: number;
343
204
  }>;
344
- /**
345
- * Get all isolated margin symbols
346
- */
347
- getIsolatedMarginAllSymbols(params?: {
348
- symbol?: string;
349
- }): Promise<IsolatedMarginSymbol[]>;
350
- /**
351
- * Toggle BNB burn on spot trade and margin interest
352
- */
205
+ getIsolatedMarginAccountInfo(params?: {
206
+ symbols?: string;
207
+ }): Promise<IsolatedMarginAccountInfo>;
208
+ getIsolatedMarginFeeData(params: QueryCrossMarginFeeDataParams): Promise<IsolatedMarginFeeData[]>;
353
209
  toggleBNBBurn(params: ToggleBNBBurnParams): Promise<BNBBurnResponse>;
354
210
  /**
355
- * Get BNB burn status
211
+ * Possibly @deprecated
212
+ * Only existing in old documentation, not in new documentation
356
213
  */
357
- getBNBBurn(): Promise<BNBBurnResponse>;
358
- /**
359
- * Query margin interest rate history
360
- */
361
- getMarginInterestRateHistory(params: QueryMarginInterestRateHistoryParams): Promise<MarginInterestRateHistory[]>;
362
- /**
363
- * Query cross margin fee data
364
- */
365
- getCrossMarginFeeData(params: QueryCrossMarginFeeDataParams): Promise<CrossMarginFeeData[]>;
214
+ getMarginCapitalFlow(params: GetMarginCapitalFlowParams): Promise<MarginCapitalFlow[]>;
366
215
  /**
367
- * Query isolated margin fee data
216
+ * @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead
368
217
  */
369
- getIsolatedMarginFeeData(params: QueryCrossMarginFeeDataParams): Promise<IsolatedMarginFeeData[]>;
218
+ queryLoanRecord(params: QueryMarginRecordParams): Promise<{
219
+ rows: MarginAccountRecord[];
220
+ total: number;
221
+ }>;
370
222
  /**
371
- * Query isolated margin tier data
223
+ * @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead
372
224
  */
373
- getIsolatedMarginTierData(params: QueryIsolatedMarginTierDataParams): Promise<IsolatedMarginTierData[]>;
374
- getMarginOrderCountUsage(params: GetMarginOrderCountUsageParams): Promise<MarginOrderCountUsageResponse[]>;
375
- getCrossMarginCollateralRatio(): Promise<{
376
- collaterals: Collateral[];
377
- assetNames: string[];
378
- }[]>;
379
- getSmallLiabilityExchangeCoins(): Promise<SmallLiabilityExchangeCoin[]>;
380
- submitSmallLiabilityExchange(params: {
381
- assetNames: string[];
382
- }): Promise<{
383
- success: boolean;
384
- message: string;
385
- }>;
386
- getSmallLiabilityExchangeHistory(params: GetSmallLiabilityExchangeHistoryParams): Promise<{
225
+ queryRepayRecord(params: QueryMarginRecordParams): Promise<{
226
+ rows: MarginAccountRecord[];
387
227
  total: number;
388
- rows: SmallLiabilityExchangeHistory[];
389
228
  }>;
390
- getNextHourlyInterestRate(params: GetNextHourlyInterestRateParams): Promise<NextHourlyInterestRate[]>;
391
- getMarginCapitalFlow(params: GetMarginCapitalFlowParams): Promise<MarginCapitalFlow[]>;
392
- getMarginDelistSchedule(): Promise<MarginDelistSchedule[]>;
393
- getMarginAvailableInventory(params: {
394
- type: string;
395
- }): Promise<MarginAvailableInventoryResponse>;
396
- submitManualLiquidation(params: ManualLiquidationParams): Promise<ManualLiquidationResponse[]>;
397
- getLeverageBracket(): Promise<LiabilityCoinLeverageBracket[]>;
229
+ /**
230
+ * @deprecated on 2024-01-09, use submitUniversalTransfer() instead
231
+ */
232
+ isolatedMarginAccountTransfer(params: IsolatedMarginAccountTransferParams): Promise<MarginTransactionResponse>;
398
233
  /**
399
234
  *
400
- * User Data Stream Endpoints
235
+ * WALLET Endpoints - Capital endpoints
401
236
  *
402
237
  **/
403
- getSpotUserDataListenKey(): Promise<{
404
- listenKey: string;
405
- }>;
406
- keepAliveSpotUserDataListenKey(listenKey: string): Promise<{}>;
407
- closeSpotUserDataListenKey(listenKey: string): Promise<{}>;
408
- getMarginUserDataListenKey(): Promise<{
409
- listenKey: string;
410
- }>;
411
- keepAliveMarginUserDataListenKey(listenKey: string): Promise<{}>;
412
- closeMarginUserDataListenKey(listenKey: string): Promise<{}>;
413
- getIsolatedMarginUserDataListenKey(params: {
414
- symbol: string;
415
- }): Promise<{
416
- listenKey: string;
238
+ getBalances(): Promise<AllCoinsInformationResponse[]>;
239
+ withdraw(params: WithdrawParams): Promise<{
240
+ id: string;
417
241
  }>;
418
- keepAliveIsolatedMarginUserDataListenKey(params: {
419
- symbol: string;
420
- listenKey: string;
421
- }): Promise<{}>;
422
- closeIsolatedMarginUserDataListenKey(params: {
423
- symbol: string;
424
- listenKey: string;
425
- }): Promise<{}>;
242
+ getWithdrawHistory(params?: WithdrawHistoryParams): Promise<WithdrawHistory[]>;
243
+ getWithdrawAddresses(): Promise<WithdrawAddress[]>;
244
+ getDepositHistory(params?: DepositHistoryParams): Promise<DepositHistory[]>;
245
+ getDepositAddress(params: DepositAddressParams): Promise<DepositAddressResponse>;
246
+ getDepositAddresses(params: DepositAddressListParams): Promise<DepositAddress[]>;
247
+ submitDepositCredit(params: SubmitDepositCreditParams): Promise<SubmitDepositCreditResponse>;
248
+ getAutoConvertStablecoins(): Promise<ConvertibleCoinsResponse>;
249
+ setConvertibleCoins(params: ConvertibleCoinsParams): Promise<void>;
426
250
  /**
427
251
  *
428
- * Simple earn Endpoints
252
+ * WALLET Endpoints - Asset endpoints
429
253
  *
430
254
  **/
431
- getFlexibleSavingProducts(params?: SimpleEarnProductListParams): Promise<{
432
- rows: SimpleEarnFlexibleProduct[];
433
- total: number;
434
- }>;
435
- getSimpleEarnLockedProductList(params?: SimpleEarnProductListParams): Promise<{
436
- rows: SimpleEarnLockedProduct[];
437
- total: number;
438
- }>;
439
- purchaseFlexibleProduct(params: SimpleEarnSubscribeProductParams): Promise<SimpleEarnSubscribeFlexibleProductResponse>;
440
- subscribeSimpleEarnLockedProduct(params: SimpleEarnSubscribeProductParams): Promise<SimpleEarnSubscribeLockedProductResponse>;
441
- redeemLockedProduct(params: {
442
- positionId: string;
443
- }): Promise<SimpleEarnRedeemResponse>;
444
- redeemFlexibleProduct(params: {
445
- positionId: string;
446
- }): Promise<SimpleEarnRedeemResponse>;
447
- getFlexibleProductPosition(params?: SimpleEarnFlexibleProductPositionParams): Promise<{
448
- rows: any[];
449
- total: number;
450
- }>;
451
- getLockedProductPosition(params?: SimpleEarnLockedProductPositionParams): Promise<{
452
- rows: SimpleEarnLockedProductPosition[];
453
- total: number;
454
- }>;
455
- getSimpleEarnAccount(): Promise<SimpleEarnAccountResponse>;
456
- getFlexibleSubscriptionRecord(params: GetFlexibleSubscriptionRecordParams): Promise<{
457
- rows: GetFlexibleSubscriptionRecordResponse[];
458
- total: number;
459
- }>;
460
- getLockedSubscriptionRecord(params: GetLockedSubscriptionRecordParams): Promise<{
461
- rows: LockedSubscriptionRecord[];
462
- total: number;
463
- }>;
464
- getFlexibleRedemptionRecord(params: GetFlexibleRedemptionRecordParams): Promise<{
465
- rows: FlexibleRedemptionRecord[];
466
- total: number;
467
- }>;
468
- getLockedRedemptionRecord(params: GetLockedRedemptionRecordParams): Promise<{
469
- rows: LockedRedemptionRecord[];
470
- total: number;
471
- }>;
472
- getFlexibleRewardsHistory(params: GetFlexibleRewardsHistoryParams): Promise<{
473
- rows: FlexibleRewardsHistory[];
474
- total: number;
255
+ getAssetDetail(params?: Partial<BasicAssetParam>): Promise<Record<ExchangeSymbol, AssetDetail>>;
256
+ getWalletBalances(): Promise<WalletBalance[]>;
257
+ getUserAsset(params: GetAssetParams): Promise<UserAsset[]>;
258
+ submitUniversalTransfer(params: UniversalTransferParams): Promise<{
259
+ tranId: number;
475
260
  }>;
476
- getLockedRewardsHistory(params: GetLockedRewardsHistoryParams): Promise<{
477
- rows: GetLockedRewardsHistory[];
261
+ getUniversalTransferHistory(params: UniversalTransferHistoryParams): Promise<any>;
262
+ getDust(): Promise<DustInfo>;
263
+ convertDustToBnb(params: ConvertDustParams): Promise<DustConversion>;
264
+ getDustLog(params?: BasicTimeRangeParam): Promise<DustLog>;
265
+ getAssetDividendRecord(params?: BasicAssetPaginatedParams): Promise<any>;
266
+ getTradeFee(params?: Partial<BasicSymbolParam>): Promise<SymbolTradeFee[]>;
267
+ getFundingAsset(params: GetAssetParams): Promise<FundingAsset[]>;
268
+ getCloudMiningHistory(params: CloudMiningHistoryParams): Promise<{
478
269
  total: number;
270
+ rows: CloudMining[];
479
271
  }>;
480
- setFlexibleAutoSubscribe(params: SetAutoSubscribeParams): Promise<{
481
- success: boolean;
482
- }>;
483
- setLockedAutoSubscribe(params: SetAutoSubscribeParams): Promise<{
484
- success: boolean;
272
+ getDelegationHistory(params: DelegationHistoryParams): Promise<RowsWithTotal<DelegationHistory>>;
273
+ /**
274
+ *
275
+ * Futures Management Endpoints:
276
+ * https://binance-docs.github.io/apidocs/spot/en/#futures
277
+ *
278
+ * Note: to trade futures use the usdm-client or coinm-client.
279
+ * MainClient only has the futures endpoints listed in the "spot" docs category, primarily used for transfers.
280
+ *
281
+ **/
282
+ /**
283
+ * Execute transfer between spot account and futures account.
284
+ *
285
+ * Type:
286
+ * - 1: transfer from spot account to USDT-Ⓜ futures account.
287
+ * - 2: transfer from USDT-Ⓜ futures account to spot account.
288
+ * - 3: transfer from spot account to COIN-Ⓜ futures account.
289
+ * - 4: transfer from COIN-Ⓜ futures account to spot account.
290
+ */
291
+ /**
292
+ * Possibly @deprecated, found only in old docs only
293
+ * Use sapi/v1/asset/transfer instead
294
+ */
295
+ submitNewFutureAccountTransfer(params: NewFutureAccountTransferParams): Promise<{
296
+ tranId: number;
485
297
  }>;
486
- getFlexiblePersonalLeftQuota(params: {
487
- productId: string;
488
- }): Promise<{
489
- leftPersonalQuota: string;
298
+ /**
299
+ * Possibly @deprecated, found only in old docs only
300
+ * Use sapi/v1/asset/transfer instead
301
+ */
302
+ getFutureAccountTransferHistory(params: GetFutureAccountTransferHistoryParams): Promise<RowsWithTotal<FutureAccountTransfer>>;
303
+ /**
304
+ * @deprecated as of 2023-09-25
305
+ */
306
+ getCrossCollateralBorrowHistory(params?: CoinStartEndLimit): Promise<any>;
307
+ /**
308
+ * @deprecated as of 2023-09-25
309
+ */
310
+ getCrossCollateralRepaymentHistory(params?: CoinStartEndLimit): Promise<any>;
311
+ /**
312
+ * @deprecated as of 2023-09-25
313
+ */
314
+ getCrossCollateralWalletV2(): Promise<any>;
315
+ /**
316
+ * @deprecated as of 2023-09-25
317
+ */
318
+ getAdjustCrossCollateralLTVHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
319
+ /**
320
+ * @deprecated as of 2023-09-25
321
+ */
322
+ getCrossCollateralLiquidationHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
323
+ /**
324
+ * @deprecated as of 2023-09-25
325
+ */
326
+ getCrossCollateralInterestHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
327
+ /**
328
+ *
329
+ * WALLET Endpoints - Account endpoints
330
+ *
331
+ **/
332
+ getAccountInfo(): Promise<AccountInfo>;
333
+ getDailyAccountSnapshot(params: DailyAccountSnapshotParams): Promise<DailyAccountSnapshot>;
334
+ disableFastWithdrawSwitch(): Promise<{}>;
335
+ enableFastWithdrawSwitch(): Promise<{}>;
336
+ getAccountStatus(): Promise<{
337
+ data: string;
490
338
  }>;
491
- getLockedPersonalLeftQuota(params: {
492
- projectId: string;
339
+ getApiTradingStatus(): Promise<APITradingStatus>;
340
+ getApiKeyPermissions(): Promise<APIPermissions>;
341
+ /**
342
+ *
343
+ * WALLET Endpoints - Travel Rule endpoints
344
+ *
345
+ **/
346
+ /**
347
+ *
348
+ * WALLET Endpoints - Other endpoints
349
+ *
350
+ **/
351
+ getSystemStatus(): Promise<SystemStatusResponse>;
352
+ getDelistSchedule(): Promise<DelistScheduleResponse[]>;
353
+ /**
354
+ *
355
+ * SUB ACCOUNT Endpoints - Account management
356
+ *
357
+ **/
358
+ createVirtualSubAccount(params: CreateSubAccountParams): Promise<VirtualSubAccount>;
359
+ getSubAccountList(params?: SubAccountListParams): Promise<SubAccountListResponse>;
360
+ subAccountEnableFutures(email: string): Promise<SubAccountEnableFutures>;
361
+ subAccountEnableMargin(email: string): Promise<SubAccountEnableMargin>;
362
+ enableOptionsForSubAccount(params: {
363
+ email: string;
364
+ }): Promise<EnableOptionsForSubAccountResponse>;
365
+ subAccountEnableLeverageToken(params: SubAccountEnableLeverageToken): Promise<SubAccountEnableLeverageToken>;
366
+ getSubAccountStatusOnMarginOrFutures(params?: {
367
+ email?: string;
368
+ }): Promise<SubAccountStatus[]>;
369
+ getSubAccountFuturesPositionRisk(email: string): Promise<FuturesPositionRisk[]>;
370
+ getSubAccountFuturesPositionRiskV2(params: BasicFuturesSubAccountParams): Promise<SubAccountUSDMPositionRisk | SubAccountCOINMPositionRisk>;
371
+ getSubAccountTransactionStatistics(params: {
372
+ email: string;
373
+ }): Promise<SubAccountTransactionStatistics>;
374
+ /**
375
+ *
376
+ * SUB ACCOUNT Endpoints - API management
377
+ *
378
+ **/
379
+ getSubAccountIPRestriction(params: BasicSubAccount): Promise<SubAccountEnableOrDisableIPRestriction>;
380
+ subAccountDeleteIPList(params: SubAccountAddOrDeleteIPList): Promise<SubAccountEnableOrDisableIPRestriction>;
381
+ subAccountAddIPRestriction(params: AddIpRestriction): Promise<SubAccountEnableOrDisableIPRestriction>;
382
+ /**
383
+ * @deprecated
384
+ * Use subAccountAddIPRestriction instead
385
+ **/
386
+ subAccountAddIPList(params: SubAccountEnableOrDisableIPRestriction): Promise<SubAccountAddOrDeleteIPList>;
387
+ /**
388
+ * @deprecated
389
+ * Use subAccountAddIPRestriction instead, or subAccountDeleteIPList
390
+ **/
391
+ subAccountEnableOrDisableIPRestriction(params: EnableOrDisableIPRestrictionForSubAccountParams): Promise<SubAccountEnableOrDisableIPRestriction>;
392
+ /**
393
+ *
394
+ * SUB ACCOUNT Endpoints - Asset management
395
+ *
396
+ **/
397
+ subAccountFuturesTransfer(params: SubAccountTransferParams): Promise<SubAccountTransfer>;
398
+ getSubAccountFuturesAccountDetail(email: string): Promise<SubAccountFuturesAccountDetail>;
399
+ getSubAccountDetailOnFuturesAccountV2(params: BasicFuturesSubAccountParams): Promise<SubAccountUSDMDetail | SubAccountCOINMDetail>;
400
+ getSubAccountDetailOnMarginAccount(email: string): Promise<SubAccountMarginAccountDetail>;
401
+ getSubAccountDepositAddress(params: SubAccountDepositAddressParams): Promise<SubAccountDepositAddress>;
402
+ getSubAccountDepositHistory(params: SubAccountDepositHistoryParams): Promise<DepositHistory[]>;
403
+ getSubAccountFuturesAccountSummary(): Promise<SubAccountFuturesAccountSummary>;
404
+ getSubAccountSummaryOnFuturesAccountV2(params: SubAccountSummaryOnFuturesAccountV2Params): Promise<SubAccountUSDMSummary | SubAccountCOINMSummary>;
405
+ getSubAccountsSummaryOfMarginAccount(): Promise<SubAccountsMarginAccountSummary>;
406
+ subAccountMarginTransfer(params: SubAccountTransferParams): Promise<SubAccountTransfer>;
407
+ getSubAccountAssets(params: SubAccountAssetsParams): Promise<SubAccountAssets>;
408
+ getSubAccountAssetsMaster(params: {
409
+ email: string;
493
410
  }): Promise<{
494
- leftPersonalQuota: string;
495
- }>;
496
- getFlexibleSubscriptionPreview(params: GetFlexibleSubscriptionPreviewParams): Promise<FlexibleSubscriptionPreview>;
497
- getLockedSubscriptionPreview(params: GetLockedSubscriptionPreviewParams): Promise<LockedSubscriptionPreview[]>;
498
- getRateHistory(params: GetRateHistoryParams): Promise<{
499
- rows: GetRateHistory[];
500
- total: string;
501
- }>;
502
- getCollateralRecord(params: GetCollateralRecordParams): Promise<{
503
- rows: CollateralRecord[];
504
- total: string;
411
+ balances: SubaccountBalances[];
505
412
  }>;
413
+ getSubAccountFuturesAssetTransferHistory(params: SubAccountFuturesAssetTransferHistoryParams): Promise<SubAccountFuturesAssetTransferHistory>;
414
+ getSubAccountSpotAssetTransferHistory(params?: SubAccountSpotAssetTransferHistoryParams): Promise<SubAccountSpotAssetTransferHistory>;
415
+ getSubAccountSpotAssetsSummary(params?: SubAccountSpotAssetsSummaryParams): Promise<SubAccountSpotAssetsSummary>;
416
+ getSubAccountUniversalTransferHistory(params?: SubAccountUniversalTransferHistoryParams): Promise<SubAccountUniversalTransferHistoryResponse>;
417
+ subAccountFuturesAssetTransfer(params: SubAccountFuturesAssetTransferParams): Promise<SubAccountFuturesAssetTransfer>;
418
+ subAccountTransferHistory(params?: SubAccountTransferHistoryParams): Promise<SubAccountTransferHistory[]>;
419
+ subAccountTransferToMaster(params: SubAccountTransferToMasterParams): Promise<SubAccountTransfer>;
420
+ subAccountTransferToSameMaster(params: SubAccountTransferToSameMasterParams): Promise<SubAccountTransfer>;
421
+ subAccountUniversalTransfer(params: SubAccountUniversalTransferParams): Promise<SubAccountUniversalTransfer>;
506
422
  /**
507
423
  *
508
- * Dual Investment Endpoints
424
+ * SUB ACCOUNT Endpoints - Managed Sub Account
509
425
  *
510
426
  **/
511
- getDualInvestmentProducts(params: GetDualInvestmentProductListParams): Promise<{
512
- total: number;
513
- list: DualInvestmentProduct[];
427
+ depositAssetsIntoManagedSubAccount(params: SubAccountTransferToSameMasterParams): Promise<MarginTransactionResponse>;
428
+ getManagedSubAccountDepositAddress(params: ManagedSubAccountDepositAddressParams): Promise<ManagedSubAccountDepositAddress>;
429
+ withdrawAssetsFromManagedSubAccount(params: WithdrawAssetsFromManagedSubAccountParams): Promise<MarginTransactionResponse>;
430
+ getManagedSubAccountTransfersParent(params: ManagedSubAccountTransferLogParams): Promise<{
431
+ managerSubTransferHistoryVos: ManagerSubTransferHistoryVos[];
432
+ count: number;
514
433
  }>;
515
- subscribeDualInvestmentProduct(params: SubscribeDualInvestmentProductParams): Promise<SubscribeDualInvestmentProductResponse>;
516
- getDualInvestmentPositions(params: GetDualInvestmentPositionsParams): Promise<{
434
+ getManagedSubAccountTransferLog(params: ManagedSubAccountTransferTTLogParams): Promise<{
435
+ managerSubTransferHistoryVos: ManagerSubTransferHistoryVos[];
436
+ count: number;
437
+ }>;
438
+ getManagedSubAccountTransfersInvestor(params: ManagedSubAccountTransferLogParams): Promise<{
439
+ managerSubTransferHistoryVos: ManagerSubTransferHistoryVos[];
440
+ count: number;
441
+ }>;
442
+ getManagedSubAccounts(params: ManagedSubAccountListParams): Promise<{
517
443
  total: number;
518
- list: DualInvestmentPosition[];
444
+ managerSubUserInfoVoList: ManagerSubUserInfoVo[];
519
445
  }>;
520
- getDualInvestmentAccounts(): Promise<CheckDualInvestmentAccountsResponse>;
521
- updateAutoCompoundStatus(params: ChangeAutoCompoundStatusParams): Promise<ChangeAutoCompoundStatusResponse>;
446
+ getManagedSubAccountSnapshot(params: ManagedSubAccountSnapshotParams): Promise<ManagedSubAccountSnapshot>;
447
+ getManagedSubAccountAssetDetails(email: string): Promise<SubAccountAssetDetails[]>;
448
+ getManagedSubAccountMarginAssets(params: {
449
+ email: string;
450
+ }): Promise<ManagedSubAccountMarginAssetsResponse>;
451
+ getManagedSubAccountFuturesAssets(params: {
452
+ email: string;
453
+ }): Promise<ManagedSubAccountFuturesAssetsResponse>;
522
454
  /**
523
455
  *
524
- * Auto Invest Enpoints
456
+ * AUTO INVEST Endpoints - Market data
525
457
  *
526
458
  **/
527
- getAutoInvestTargetAssets(params: GetTargetAssetListParams): Promise<GetTargetAssetListResponse>;
528
- getAutoInvestTargetAssetsROI(params: GetTargetAssetROIParams): Promise<TargetAssetROI[]>;
529
459
  getAutoInvestAssets(): Promise<{
530
460
  targetAssets: string[];
531
461
  sourceAssets: string[];
532
462
  }>;
533
463
  getAutoInvestSourceAssets(params: GetSourceAssetListParams): Promise<GetSourceAssetListResponse>;
534
- submitAutoInvestmentPlan(params: CreateInvestmentPlanParams): Promise<CreateInvestmentPlanResponse>;
535
- submitAutoInvestmentPlanOld(params: CreateInvestmentPlanParams): Promise<CreateInvestmentPlanResponse>;
536
- updateAutoInvestmentPlan(params: EditInvestmentPlanParams): Promise<EditInvestmentPlanResponse>;
537
- updateAutoInvestmentPlanOld(params: EditInvestmentPlanParams): Promise<EditInvestmentPlanResponse>;
538
- updateAutoInvestPlanStatus(params: ChangePlanStatusParams): Promise<ChangePlanStatusResponse>;
539
- getAutoInvestPlans(params: {
540
- planType: 'SINGLE' | 'PORTFOLIO' | 'INDEX';
541
- }): Promise<any>;
542
- getAutoInvestPlan(params: GetPlanDetailsParams): Promise<any>;
543
- getAutoInvestSubscriptionTransactions(params: GetSubscriptionTransactionHistoryParams): Promise<any>;
464
+ getAutoInvestTargetAssets(params: GetTargetAssetListParams): Promise<GetTargetAssetListResponse>;
465
+ getAutoInvestTargetAssetsROI(params: GetTargetAssetROIParams): Promise<TargetAssetROI[]>;
544
466
  getAutoInvestIndex(params: {
545
467
  indexId: number;
546
468
  }): Promise<GetIndexDetailsResponse>;
547
- getAutoInvestUserIndex(params: {
548
- indexId: number;
549
- }): Promise<GetIndexLinkedPlanPositionDetailsResponse>;
469
+ getAutoInvestPlans(params: {
470
+ planType: 'SINGLE' | 'PORTFOLIO' | 'INDEX';
471
+ }): Promise<any>;
472
+ /**
473
+ *
474
+ * AUTO INVEST Endpoints - Trade
475
+ *
476
+ **/
550
477
  /**
551
478
  * https://developers.binance.com/docs/auto_invest/trade/One-Time-Transaction
552
479
  *
@@ -554,41 +481,73 @@ export declare class MainClient extends BaseRestClient {
554
481
  * @returns
555
482
  */
556
483
  submitAutoInvestOneTimeTransaction(params: SubmitOneTimeTransactionParams): Promise<SubmitOneTimeTransactionResponse>;
557
- getOneTimeTransactionStatus(params: GetOneTimeTransactionStatusParams): Promise<GetOneTimeTransactionStatusResponse>;
484
+ updateAutoInvestPlanStatus(params: ChangePlanStatusParams): Promise<ChangePlanStatusResponse>;
485
+ /**
486
+ *
487
+ * @deprecated , use updateAutoInvestmentPlan instead
488
+ *
489
+ **/
490
+ updateAutoInvestmentPlanOld(params: EditInvestmentPlanParams): Promise<EditInvestmentPlanResponse>;
491
+ updateAutoInvestmentPlan(params: EditInvestmentPlanParams): Promise<EditInvestmentPlanResponse>;
558
492
  submitAutoInvestRedemption(params: SubmitIndexLinkedPlanRedemptionParams): Promise<{
559
493
  redemptionId: number;
560
494
  }>;
495
+ getAutoInvestSubscriptionTransactions(params: GetSubscriptionTransactionHistoryParams): Promise<any>;
496
+ getOneTimeTransactionStatus(params: GetOneTimeTransactionStatusParams): Promise<GetOneTimeTransactionStatusResponse>;
497
+ /**
498
+ * @deprecated , use submitAutoInvestmentPlan instead
499
+ *
500
+ **/
501
+ submitAutoInvestmentPlanOld(params: CreateInvestmentPlanParams): Promise<CreateInvestmentPlanResponse>;
502
+ submitAutoInvestmentPlan(params: CreateInvestmentPlanParams): Promise<CreateInvestmentPlanResponse>;
561
503
  getAutoInvestRedemptionHistory(params: GetIndexLinkedPlanRedemptionHistoryParams): Promise<IndexLinkedPlanRedemptionRecord[]>;
504
+ getAutoInvestPlan(params: GetPlanDetailsParams): Promise<any>;
505
+ getAutoInvestUserIndex(params: {
506
+ indexId: number;
507
+ }): Promise<GetIndexLinkedPlanPositionDetailsResponse>;
562
508
  getAutoInvestRebalanceHistory(params: GetIndexLinkedPlanRebalanceHistoryParams): Promise<GetIndexLinkedPlanRebalanceHistoryParams[]>;
563
509
  /**
564
510
  *
565
- * Staking Endpoints
511
+ * CONVERT Endpoints - Market Data
566
512
  *
567
513
  **/
514
+ getConvertPairs(params: GetAllConvertPairsParams): Promise<any>;
515
+ getConvertAssetInfo(): Promise<any>;
568
516
  /**
569
- * @deprecated as of 2024-01-19
570
- */
571
- getStakingProducts(params: StakingBasicParams & {
572
- asset?: string;
573
- }): Promise<StakingProduct[]>;
517
+ *
518
+ * CONVERT Endpoints - Trade
519
+ *
520
+ **/
521
+ convertQuoteRequest(params: ConvertQuoteRequestParams): Promise<any>;
522
+ acceptQuoteRequest(params: AcceptQuoteRequestParams): Promise<any>;
523
+ getConvertTradeHistory(params: GetConvertTradeHistoryParams): Promise<any>;
524
+ getOrderStatus(params: GetOrderStatusParams): Promise<any>;
525
+ submitConvertLimitOrder(params: SubmitConvertLimitOrderParams): Promise<any>;
526
+ cancelConvertLimitOrder(params: {
527
+ orderId: number;
528
+ }): Promise<any>;
529
+ getConvertLimitOpenOrders(): Promise<{
530
+ list: ConvertLimitOpenOrder[];
531
+ }>;
574
532
  /**
575
- * @deprecated as of 2024-01-19
576
- */
577
- getStakingProductPosition(params: StakingBasicParams & {
578
- productId?: string;
579
- asset?: string;
580
- }): Promise<StakingProductPosition[]>;
533
+ *
534
+ * STAKING Endpoints - Account
535
+ *
536
+ **/
581
537
  /**
582
- * @deprecated as of 2024-01-19
583
- */
584
- getStakingHistory(params: StakingHistoryParams): Promise<StakingHistory[]>;
538
+ * @deprecated use getEthStakingAccountV2 instead
539
+ **/
540
+ getEthStakingAccount(): Promise<GetEthStakingAccountResponse>;
541
+ getEthStakingAccountV2(): Promise<GetEthStakingAccountV2Response>;
542
+ getEthStakingQuota(): Promise<GetEthStakingQuotaResponse>;
585
543
  /**
586
- * @deprecated as of 2024-01-19
587
- */
588
- getPersonalLeftQuotaOfStakingProduct(params: {
589
- product: StakingProductType;
590
- productId: string;
591
- }): Promise<StakingPersonalLeftQuota>;
544
+ *
545
+ * STAKING Endpoints - Staking
546
+ *
547
+ **/
548
+ /**
549
+ * @deprecated use subscribeEthStakingV2 instead
550
+ **/
592
551
  subscribeEthStakingV1(params: {
593
552
  amount: number;
594
553
  }): Promise<{
@@ -598,6 +557,14 @@ export declare class MainClient extends BaseRestClient {
598
557
  amount: number;
599
558
  }): Promise<SubscribeEthStakingV2Response>;
600
559
  redeemEth(params: RedeemEthParams): Promise<RedeemEthResponse>;
560
+ wrapBeth(params: {
561
+ amount: number;
562
+ }): Promise<WrapBethResponse>;
563
+ /**
564
+ *
565
+ * STAKING Endpoints - History
566
+ *
567
+ **/
601
568
  getEthStakingHistory(params: GetEthStakingHistoryParams): Promise<{
602
569
  rows: EthStakingHistory[];
603
570
  total: number;
@@ -610,16 +577,11 @@ export declare class MainClient extends BaseRestClient {
610
577
  rows: BethRewardsHistory[];
611
578
  total: number;
612
579
  }>;
613
- getEthStakingQuota(): Promise<GetEthStakingQuotaResponse>;
580
+ getWbethRewardsHistory(params: GetWrapHistoryParams): Promise<GetWbethRewardsHistoryResponse>;
614
581
  getEthRateHistory(params: GetETHRateHistoryParams): Promise<{
615
582
  rows: ETHRateHistory[];
616
583
  total: string;
617
584
  }>;
618
- getEthStakingAccount(): Promise<GetEthStakingAccountResponse>;
619
- getEthStakingAccountV2(): Promise<GetEthStakingAccountV2Response>;
620
- wrapBeth(params: {
621
- amount: number;
622
- }): Promise<WrapBethResponse>;
623
585
  getBethWrapHistory(params: GetWrapHistoryParams): Promise<{
624
586
  rows: WrapHistory[];
625
587
  total: number;
@@ -628,414 +590,630 @@ export declare class MainClient extends BaseRestClient {
628
590
  rows: WrapHistory[];
629
591
  total: number;
630
592
  }>;
631
- getWbethRewardsHistory(params: GetWrapHistoryParams): Promise<GetWbethRewardsHistoryResponse>;
632
- /**
633
- *
634
- * Savings Endpoints
635
- * @deprecated as of 2023-06-22, now Simple Earn
636
- **/
637
- /**
638
- * @deprecated as of 2023-06-22, now Simple Earn
639
- */
640
- getLeftDailyPurchaseQuotaFlexibleProduct(params: {
641
- productId: string;
642
- }): Promise<LeftDailyPurchaseQuotaFlexibleProductResponse>;
643
- /**
644
- * @deprecated as of 2023-06-22, now Simple Earn
645
- */
646
- getLeftDailyRedemptionQuotaFlexibleProduct(params: {
647
- productId: string;
648
- }): Promise<LeftDailyPurchaseQuotaFlexibleProductResponse & {
649
- dailyQuota: string;
650
- minRedemptionAmount: string;
651
- }>;
652
- /**
653
- * @deprecated as of 2023-06-22, now Simple Earn
654
- */
655
- purchaseFixedAndActivityProject(params: {
656
- projectId: string;
657
- lot: number;
658
- }): Promise<PurchaseFlexibleProductResponse>;
659
- /**
660
- * @deprecated as of 2023-06-22, now Simple Earn
661
- */
662
- getFixedAndActivityProjects(params: FixedAndActivityProjectParams): Promise<any[]>;
663
- /**
664
- * @deprecated as of 2023-06-22, now Simple Earn
665
- */
666
- getFixedAndActivityProductPosition(params: FixedAndActivityProjectPositionParams): Promise<any[]>;
667
593
  /**
668
- * @deprecated as of 2023-06-22, now Simple Earn
594
+ * @deprecated as of 2024-01-19
669
595
  */
670
- getLendingAccount(): Promise<StakingProduct[]>;
596
+ getStakingProducts(params: StakingBasicParams & {
597
+ asset?: string;
598
+ }): Promise<StakingProduct[]>;
671
599
  /**
672
- * @deprecated as of 2023-06-22, now Simple Earn
600
+ * @deprecated as of 2024-01-19
673
601
  */
674
- getPurchaseRecord(params: PurchaseRecordParams): Promise<any[]>;
602
+ getStakingProductPosition(params: StakingBasicParams & {
603
+ productId?: string;
604
+ asset?: string;
605
+ }): Promise<StakingProductPosition[]>;
675
606
  /**
676
- * @deprecated as of 2023-06-22, now Simple Earn
607
+ * @deprecated as of 2024-01-19
677
608
  */
678
- getRedemptionRecord(params: PurchaseRecordParams): Promise<any[]>;
609
+ getStakingHistory(params: StakingHistoryParams): Promise<StakingHistory[]>;
679
610
  /**
680
- * @deprecated as of 2023-06-22, now Simple Earn
611
+ * @deprecated as of 2024-01-19
681
612
  */
682
- getInterestHistory(params: PurchaseRecordParams): Promise<any[]>;
613
+ getPersonalLeftQuotaOfStakingProduct(params: {
614
+ product: StakingProductType;
615
+ productId: string;
616
+ }): Promise<StakingPersonalLeftQuota>;
683
617
  /**
684
- * @deprecated as of 2023-06-22, now Simple Earn
685
- */
686
- changeFixedAndActivityPositionToDailyPosition(params: {
687
- projectId: string;
688
- lot: number;
689
- positionId?: number;
690
- }): Promise<PurchaseFlexibleProductResponse>;
618
+ *
619
+ * COPY TRADING Endpoints - Future copy trading
620
+ *
621
+ **/
622
+ getFuturesLeadTraderStatus(): Promise<GetFuturesLeadTraderStatusResponse>;
623
+ getFuturesLeadTradingSymbolWhitelist(): Promise<GetFuturesLeadTradingSymbolWhitelistResponse[]>;
691
624
  /**
692
625
  *
693
- * Mining Endpoints
626
+ * MINING Endpoints - rest api
694
627
  *
695
628
  **/
696
629
  getMiningAlgos(): Promise<GetMiningAlgoListResponse[]>;
697
630
  getMiningCoins(): Promise<GetMiningCoinListResponse[]>;
698
- getMinerDetails(params: GetMinerDetailsParams): Promise<GetMinerDetailsResponse[]>;
631
+ getHashrateResales(params: GetHashrateResaleListParams): Promise<GetHashrateResaleListResponse>;
699
632
  getMiners(params: GetMinerListParams): Promise<GetMinerListResponse>;
700
- getMiningEarnings(params: GetEarningsListParams): Promise<GetEarningsListResponse>;
633
+ getMinerDetails(params: GetMinerDetailsParams): Promise<GetMinerDetailsResponse[]>;
701
634
  getExtraBonuses(params: GetExtraBonusListParams): Promise<GetExtraBonusListResponse>;
702
- getHashrateResales(params: GetHashrateResaleListParams): Promise<GetHashrateResaleListResponse>;
703
- getHashrateResale(params: GetHashrateResaleDetailParams): Promise<GetHashrateResaleDetailResponse>;
704
- submitHashrateResale(params: SubmitHashrateResaleParams): Promise<number>;
635
+ getMiningEarnings(params: GetEarningsListParams): Promise<GetEarningsListResponse>;
705
636
  cancelHashrateResaleConfig(params: CancelHashrateResaleConfigParams): Promise<boolean>;
637
+ getHashrateResale(params: GetHashrateResaleDetailParams): Promise<GetHashrateResaleDetailResponse>;
638
+ getMiningAccountEarnings(params: GetMiningAccountEarningParams): Promise<GetMiningAccountEarningResponse>;
706
639
  getMiningStatistics(params: GetStatisticListParams): Promise<GetStatisticListResponse>;
640
+ submitHashrateResale(params: SubmitHashrateResaleParams): Promise<number>;
707
641
  getMiningAccounts(params: getMiningAccountsListParams): Promise<getMiningAccountsListResponse>;
708
- getMiningAccountEarnings(params: GetMiningAccountEarningParams): Promise<GetMiningAccountEarningResponse>;
709
642
  /**
710
643
  *
711
- * Futures Management Endpoints:
712
- * https://binance-docs.github.io/apidocs/spot/en/#futures
713
- *
714
- * Note: to trade futures use the usdm-client or coinm-client.
715
- * MainClient only has the futures endpoints listed in the "spot" docs category, primarily used for transfers.
644
+ * ALGO TRADING Endpoints - Future algo
716
645
  *
717
646
  **/
647
+ submitVpNewOrder(params: SubmitVpNewOrderParams): Promise<SubmitVpNewOrderResponse>;
648
+ submitTwapNewOrder(params: SubmitTwapNewOrderParams): Promise<SubmitTwapNewOrderResponse>;
649
+ cancelAlgoOrder(params: {
650
+ algoId: number;
651
+ }): Promise<CancelAlgoOrderResponse>;
652
+ getAlgoSubOrders(params: GetAlgoSubOrdersParams): Promise<GetAlgoSubOrdersResponse>;
653
+ getAlgoOpenOrders(): Promise<{
654
+ total: number;
655
+ orders: AlgoOrder[];
656
+ }>;
657
+ getAlgoHistoricalOrders(params: GetAlgoHistoricalOrdersParams): Promise<{
658
+ total: number;
659
+ orders: HistoricalAlgoOrder[];
660
+ }>;
718
661
  /**
719
- * Execute transfer between spot account and futures account.
720
662
  *
721
- * Type:
722
- * - 1: transfer from spot account to USDT-Ⓜ futures account.
723
- * - 2: transfer from USDT-Ⓜ futures account to spot account.
724
- * - 3: transfer from spot account to COIN-Ⓜ futures account.
725
- * - 4: transfer from COIN-Ⓜ futures account to spot account.
726
- */
727
- submitNewFutureAccountTransfer(params: NewFutureAccountTransferParams): Promise<{
728
- tranId: number;
663
+ * ALGO TRADING Endpoints - Spot algo
664
+ *
665
+ **/
666
+ submitSpotAlgoTwapOrder(params: SubmitSpotTwapNewOrderParams): Promise<SubmitSpotTwapNewOrderResponse>;
667
+ cancelSpotAlgoOrder(params: {
668
+ algoId: number;
669
+ }): Promise<CancelSpotAlgoOrderResponse>;
670
+ getSpotAlgoSubOrders(params: GetSpotAlgoSubOrdersParams): Promise<GetSpotAlgoSubOrdersResponse>;
671
+ getSpotAlgoOpenOrders(): Promise<{
672
+ total: number;
673
+ orders: SpotAlgoOrder[];
729
674
  }>;
730
- getFutureAccountTransferHistory(params: GetFutureAccountTransferHistoryParams): Promise<RowsWithTotal<FutureAccountTransfer>>;
731
- getFuturesTickLevelOrderbookDataLink(params: GetFutureTickLevelOrderbookDataLinkParams): Promise<{
732
- data: HistoricalDataLink[];
675
+ getSpotAlgoHistoricalOrders(params: GetSpotAlgoHistoricalOrdersParams): Promise<{
676
+ total: number;
677
+ orders: HistoricalSpotAlgoOrder[];
733
678
  }>;
734
679
  /**
735
- * @deprecated as of 2023-09-25
736
- */
737
- getCrossCollateralBorrowHistory(params?: CoinStartEndLimit): Promise<any>;
738
- /**
739
- * @deprecated as of 2023-09-25
740
- */
741
- getCrossCollateralRepaymentHistory(params?: CoinStartEndLimit): Promise<any>;
680
+ *
681
+ * CRYPTO LOAN Endpoints - Flexible rate - Market data
682
+ *
683
+ **/
684
+ getCryptoLoanFlexibleCollateralAssets(params: {
685
+ collateralCoin?: string;
686
+ }): Promise<{
687
+ rows: FlexibleLoanCollateralAssetData[];
688
+ total: number;
689
+ }>;
690
+ getCryptoLoanFlexibleAssets(params: {
691
+ loanCoin?: string;
692
+ }): Promise<{
693
+ rows: FlexibleLoanAssetData[];
694
+ total: number;
695
+ }>;
742
696
  /**
743
- * @deprecated as of 2023-09-25
744
- */
745
- getCrossCollateralWalletV2(): Promise<any>;
697
+ *
698
+ * CRYPTO LOAN Endpoints - Flexible rate - Trade
699
+ *
700
+ **/
701
+ borrowCryptoLoanFlexible(params: BorrowFlexibleLoanParams): Promise<BorrowFlexibleLoanResponse>;
702
+ repayCryptoLoanFlexible(params: RepayCryptoFlexibleLoanParams): Promise<RepayCryptoFlexibleLoanResponse>;
703
+ adjustCryptoLoanFlexibleLTV(params: AdjustFlexibleCryptoLoanLTVParams): Promise<AdjustFlexibleCryptoLoanLTVResponse>;
746
704
  /**
747
- * @deprecated as of 2023-09-25
748
- */
749
- getAdjustCrossCollateralLTVHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
705
+ *
706
+ * CRYPTO LOAN Endpoints - Flexible rate - User info
707
+ *
708
+ **/
709
+ getCryptoLoanFlexibleLTVAdjustmentHistory(params: GetFlexibleLoanLTVAdjustmentHistoryParams): Promise<{
710
+ rows: FlexibleLoanLTVAdjustmentHistory[];
711
+ total: number;
712
+ }>;
713
+ getLoanFlexibleBorrowHistory(params: GetFlexibleCryptoLoanBorrowHistoryParams): Promise<{
714
+ rows: FlexibleCryptoLoanBorrowHistory[];
715
+ total: number;
716
+ }>;
717
+ getCryptoLoanFlexibleOngoingOrders(params: GetFlexibleLoanOngoingOrdersParams): Promise<{
718
+ rows: FlexibleLoanOngoingOrder[];
719
+ total: number;
720
+ }>;
721
+ getLoanFlexibleRepaymentHistory(params: GetLoanRepaymentHistoryParams): Promise<{
722
+ rows: LoanRepaymentHistory[];
723
+ total: number;
724
+ }>;
750
725
  /**
751
- * @deprecated as of 2023-09-25
752
- */
753
- getCrossCollateralLiquidationHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
726
+ *
727
+ * CRYPTO LOAN Endpoints - Stable rate - Market data
728
+ *
729
+ **/
730
+ getCryptoLoanLoanableAssets(params: GetLoanableAssetsDataParams): Promise<{
731
+ rows: LoanableAssetData[];
732
+ total: number;
733
+ }>;
734
+ getCryptoLoanCollateralRepayRate(params: CheckCollateralRepayRateParams): Promise<CheckCollateralRepayRateResponse>;
735
+ getCryptoLoanCollateralAssetsData(params: GetCollateralAssetDataParams): Promise<{
736
+ rows: CollateralAssetData[];
737
+ total: number;
738
+ }>;
739
+ getCryptoLoansIncomeHistory(params: GetCryptoLoansIncomeHistoryParams): Promise<GetCryptoLoansIncomeHistoryResponse[]>;
754
740
  /**
755
- * @deprecated as of 2023-09-25
756
- */
757
- getCrossCollateralInterestHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
741
+ *
742
+ * CRYPTO LOAN Endpoints - Stable rate - Trade
743
+ *
744
+ **/
745
+ borrowCryptoLoan(params: BorrowCryptoLoanParams): Promise<BorrowCryptoLoanResponse>;
746
+ repayCryptoLoan(params: RepayCryptoLoanParams): Promise<RepayCryptoLoanResponse>;
747
+ adjustCryptoLoanLTV(params: AdjustCryptoLoanLTVParams): Promise<AdjustCryptoLoanLTVResponse>;
748
+ customizeCryptoLoanMarginCall(params: CustomizeMarginCallParams): Promise<{
749
+ rows: CustomizeMarginCall[];
750
+ total: number;
751
+ }>;
758
752
  /**
759
753
  *
760
- * Futures Algo Endpoints
754
+ * CRYPTO LOAN Endpoints - Stable rate - User info
761
755
  *
762
756
  **/
763
- submitVpNewOrder(params: SubmitVpNewOrderParams): Promise<SubmitVpNewOrderResponse>;
764
- submitTwapNewOrder(params: SubmitTwapNewOrderParams): Promise<SubmitTwapNewOrderResponse>;
765
- cancelAlgoOrder(params: {
766
- algoId: number;
767
- }): Promise<CancelAlgoOrderResponse>;
768
- getAlgoOpenOrders(): Promise<{
757
+ getCryptoLoanOngoingOrders(params: GetLoanOngoingOrdersParams): Promise<{
758
+ rows: LoanOngoingOrder[];
759
+ total: number;
760
+ }>;
761
+ getCryptoLoanBorrowHistory(params: GetLoanBorrowHistoryParams): Promise<{
762
+ rows: LoanBorrowHistory[];
769
763
  total: number;
770
- orders: AlgoOrder[];
771
764
  }>;
772
- getAlgoHistoricalOrders(params: GetAlgoHistoricalOrdersParams): Promise<{
765
+ getCryptoLoanLTVAdjustmentHistory(params: GetLoanLTVAdjustmentHistoryParams): Promise<{
766
+ rows: LoanLTVAdjustmentHistory[];
773
767
  total: number;
774
- orders: HistoricalAlgoOrder[];
775
768
  }>;
776
- getAlgoSubOrders(params: GetAlgoSubOrdersParams): Promise<GetAlgoSubOrdersResponse>;
769
+ getCryptoLoanRepaymentHistory(params: GetLoanRepaymentHistoryParams): Promise<any>;
777
770
  /**
778
771
  *
779
- * Spot Algo Endpoints
772
+ * SIMPLE EARN Endpoints - Account
780
773
  *
781
774
  **/
782
- submitSpotAlgoTwapOrder(params: SubmitSpotTwapNewOrderParams): Promise<SubmitSpotTwapNewOrderResponse>;
783
- cancelSpotAlgoOrder(params: {
784
- algoId: number;
785
- }): Promise<CancelSpotAlgoOrderResponse>;
786
- getSpotAlgoOpenOrders(): Promise<{
775
+ getSimpleEarnAccount(): Promise<SimpleEarnAccountResponse>;
776
+ getFlexibleSavingProducts(params?: SimpleEarnProductListParams): Promise<{
777
+ rows: SimpleEarnFlexibleProduct[];
787
778
  total: number;
788
- orders: SpotAlgoOrder[];
789
779
  }>;
790
- getSpotAlgoHistoricalOrders(params: GetSpotAlgoHistoricalOrdersParams): Promise<{
780
+ getSimpleEarnLockedProductList(params?: SimpleEarnProductListParams): Promise<{
781
+ rows: SimpleEarnLockedProduct[];
791
782
  total: number;
792
- orders: HistoricalSpotAlgoOrder[];
793
783
  }>;
794
- getSpotAlgoSubOrders(params: GetSpotAlgoSubOrdersParams): Promise<GetSpotAlgoSubOrdersResponse>;
795
- /**
796
- *
797
- * Portfolio Margin Pro
798
- *
799
- **/
800
- getPortfolioMarginProAccountInfo(): Promise<GetPortfolioMarginProAccountInfoResponse>;
801
- getPortfolioMarginProCollateralRate(): Promise<GetPortfolioMarginProCollateralRateResponse[]>;
802
- getPortfolioMarginProBankruptcyLoanAmount(): Promise<GetPortfolioMarginProBankruptcyLoanAmountResponse>;
803
- repayPortfolioMarginProBankruptcyLoan(params: {
804
- from?: 'SPOT' | 'MARGIN';
805
- }): Promise<{
806
- tranId: number;
784
+ getFlexibleProductPosition(params?: SimpleEarnFlexibleProductPositionParams): Promise<{
785
+ rows: any[];
786
+ total: number;
807
787
  }>;
808
- getPortfolioMarginProInterestHistory(params: GetPortfolioMarginProInterestHistoryParams): Promise<GetPortfolioMarginProInterestHistoryResponse[]>;
809
- getPortfolioMarginIndexPrice(params?: {
810
- asset?: string;
811
- }): Promise<GetPortfolioMarginAssetIndexPriceResponse[]>;
812
- submitPortfolioMarginProFullTransfer(): Promise<{
813
- msg: string;
788
+ getLockedProductPosition(params?: SimpleEarnLockedProductPositionParams): Promise<{
789
+ rows: SimpleEarnLockedProductPosition[];
790
+ total: number;
814
791
  }>;
815
- submitPortfolioMarginProSpecificTransfer(params: {
816
- asset: string;
792
+ getFlexiblePersonalLeftQuota(params: {
793
+ productId: string;
817
794
  }): Promise<{
818
- msg: string;
819
- }>;
820
- bnbTransfer(params: BnbTransferParams): Promise<{
821
- tranId: number;
795
+ leftPersonalQuota: string;
822
796
  }>;
823
- updateAutoRepayFuturesStatus(params: {
824
- autoRepay: string;
797
+ getLockedPersonalLeftQuota(params: {
798
+ projectId: string;
825
799
  }): Promise<{
826
- msg: string;
827
- }>;
828
- getAutoRepayFuturesStatus(): Promise<{
829
- autoRepay: boolean;
830
- }>;
831
- repayFuturesNegativeBalance(): Promise<{
832
- msg: string;
800
+ leftPersonalQuota: string;
833
801
  }>;
834
- getPortfolioMarginAssetLeverage(): Promise<GetPortfolioMarginAssetLeverageResponse[]>;
835
802
  /**
836
803
  *
837
- * BLVT Endpoints
804
+ * SIMPLE EARN Endpoints - Earn
838
805
  *
839
806
  **/
840
- getBlvtInfo(params?: {
841
- tokenName?: string;
842
- }): Promise<any[]>;
843
- subscribeBlvt(params: SubscribeBlvtParams): Promise<SubscribeBlvtResponse>;
844
- getBlvtSubscriptionRecord(params: GetBlvtSubscriptionRecordParams): Promise<BlvtSubscriptionRecord[]>;
845
- redeemBlvt(params: RedeemBlvtParams): Promise<RedeemBlvtResponse>;
846
- getBlvtRedemptionRecord(params: GetBlvtRedemptionRecordParams): Promise<BlvtRedemptionRecord[]>;
847
- getBlvtUserLimitInfo(params: {
848
- tokenName?: string;
849
- }): Promise<BlvtUserLimitInfo[]>;
807
+ purchaseFlexibleProduct(params: SimpleEarnSubscribeProductParams): Promise<SimpleEarnSubscribeFlexibleProductResponse>;
808
+ subscribeSimpleEarnLockedProduct(params: SimpleEarnSubscribeProductParams): Promise<SimpleEarnSubscribeLockedProductResponse>;
809
+ redeemFlexibleProduct(params: {
810
+ positionId: string;
811
+ }): Promise<SimpleEarnRedeemResponse>;
812
+ redeemLockedProduct(params: {
813
+ positionId: string;
814
+ }): Promise<SimpleEarnRedeemResponse>;
815
+ setFlexibleAutoSubscribe(params: SetAutoSubscribeParams): Promise<{
816
+ success: boolean;
817
+ }>;
818
+ setLockedAutoSubscribe(params: SetAutoSubscribeParams): Promise<{
819
+ success: boolean;
820
+ }>;
821
+ getFlexibleSubscriptionPreview(params: GetFlexibleSubscriptionPreviewParams): Promise<FlexibleSubscriptionPreview>;
822
+ getLockedSubscriptionPreview(params: GetLockedSubscriptionPreviewParams): Promise<LockedSubscriptionPreview[]>;
823
+ setLockedProductRedeemOption(params: {
824
+ positionId: string;
825
+ redeemTo: 'SPOT' | 'FLEXIBLE';
826
+ }): Promise<{
827
+ success: boolean;
828
+ }>;
850
829
  /**
851
830
  *
852
- * Fiat Endpoints
831
+ * SIMPLE EARN Endpoints - History
853
832
  *
854
833
  **/
855
- getFiatOrderHistory(params: GetFiatOrderHistoryParams): Promise<GetFiatOrderHistoryResponse>;
856
- getFiatPaymentsHistory(params: GetFiatOrderHistoryParams): Promise<GetFiatPaymentsHistoryResponse>;
834
+ getFlexibleSubscriptionRecord(params: GetFlexibleSubscriptionRecordParams): Promise<{
835
+ rows: GetFlexibleSubscriptionRecordResponse[];
836
+ total: number;
837
+ }>;
838
+ getLockedSubscriptionRecord(params: GetLockedSubscriptionRecordParams): Promise<{
839
+ rows: LockedSubscriptionRecord[];
840
+ total: number;
841
+ }>;
842
+ getFlexibleRedemptionRecord(params: GetFlexibleRedemptionRecordParams): Promise<{
843
+ rows: FlexibleRedemptionRecord[];
844
+ total: number;
845
+ }>;
846
+ getLockedRedemptionRecord(params: GetLockedRedemptionRecordParams): Promise<{
847
+ rows: LockedRedemptionRecord[];
848
+ total: number;
849
+ }>;
850
+ getFlexibleRewardsHistory(params: GetFlexibleRewardsHistoryParams): Promise<{
851
+ rows: FlexibleRewardsHistory[];
852
+ total: number;
853
+ }>;
854
+ getLockedRewardsHistory(params: GetLockedRewardsHistoryParams): Promise<{
855
+ rows: GetLockedRewardsHistory[];
856
+ total: number;
857
+ }>;
858
+ getCollateralRecord(params: GetCollateralRecordParams): Promise<{
859
+ rows: CollateralRecord[];
860
+ total: string;
861
+ }>;
862
+ getRateHistory(params: GetRateHistoryParams): Promise<{
863
+ rows: GetRateHistory[];
864
+ total: string;
865
+ }>;
857
866
  /**
858
867
  *
859
- * C2C Endpoints
868
+ * VIP LOAN Endpoints - Market Data
860
869
  *
861
870
  **/
862
- getC2CTradeHistory(params: GetC2CTradeHistoryParams): Promise<GetC2CTradeHistoryResponse>;
871
+ getVipBorrowInterestRate(params: {
872
+ loanCoin: string;
873
+ }): Promise<BorrowInterestRate[]>;
874
+ getVipLoanableAssets(params: GetLoanableAssetsDataParams): Promise<{
875
+ rows: LoanableAssetData[];
876
+ total: number;
877
+ }>;
878
+ getVipCollateralAssets(params: {
879
+ collateralCoin?: string;
880
+ }): Promise<{
881
+ rows: CollateralAssetData[];
882
+ total: number;
883
+ }>;
863
884
  /**
864
885
  *
865
- * VIP Loans Endpoints
886
+ * VIP LOAN Endpoints - User Info
866
887
  *
867
888
  **/
868
889
  getVipLoanOpenOrders(params: GetVipLoanOngoingOrdersParams): Promise<{
869
890
  rows: VipOngoingOrder[];
870
891
  total: number;
871
892
  }>;
872
- repayVipLoan(params: VipLoanRepayParams): Promise<VipLoanRepayResponse>;
873
893
  getVipLoanRepaymentHistory(params: GetVipLoanRepaymentHistoryParams): Promise<{
874
894
  rows: VipLoanRepaymentHistory[];
875
895
  total: number;
876
896
  }>;
877
- renewVipLoan(params: VipLoanRenewParams): Promise<VipLoanRenewResponse>;
878
897
  checkVipCollateralAccount(params: CheckVipCollateralAccountParams): Promise<{
879
898
  rows: VipCollateralAccount[];
880
899
  total: number;
881
900
  }>;
882
- borrowVipLoan(params: VipLoanBorrowParams): Promise<VipLoanBorrowResponse>;
883
- getVipLoanableAssets(params: GetLoanableAssetsDataParams): Promise<{
884
- rows: LoanableAssetData[];
885
- total: number;
886
- }>;
887
- getVipCollateralAssets(params: {
888
- collateralCoin?: string;
889
- }): Promise<{
890
- rows: CollateralAssetData[];
891
- total: number;
892
- }>;
893
901
  getVipApplicationStatus(params: GetApplicationStatusParams): Promise<{
894
902
  rows: ApplicationStatus[];
895
903
  total: number;
896
904
  }>;
897
- getVipBorrowInterestRate(params: {
898
- loanCoin: string;
899
- }): Promise<BorrowInterestRate[]>;
900
905
  /**
901
906
  *
902
- * Crypto Loans Endpoints
907
+ * VIP LOAN Endpoints - Trade
903
908
  *
904
909
  **/
905
- getCryptoLoansIncomeHistory(params: GetCryptoLoansIncomeHistoryParams): Promise<GetCryptoLoansIncomeHistoryResponse[]>;
906
- borrowCryptoLoan(params: BorrowCryptoLoanParams): Promise<BorrowCryptoLoanResponse>;
907
- getCryptoLoanBorrowHistory(params: GetLoanBorrowHistoryParams): Promise<{
908
- rows: LoanBorrowHistory[];
910
+ renewVipLoan(params: VipLoanRenewParams): Promise<VipLoanRenewResponse>;
911
+ repayVipLoan(params: VipLoanRepayParams): Promise<VipLoanRepayResponse>;
912
+ borrowVipLoan(params: VipLoanBorrowParams): Promise<VipLoanBorrowResponse>;
913
+ /**
914
+ *
915
+ * DUAL INVESTMENT Endpoints - Market Data
916
+ *
917
+ **/
918
+ getDualInvestmentProducts(params: GetDualInvestmentProductListParams): Promise<{
909
919
  total: number;
920
+ list: DualInvestmentProduct[];
910
921
  }>;
911
- getCryptoLoanOngoingOrders(params: GetLoanOngoingOrdersParams): Promise<{
912
- rows: LoanOngoingOrder[];
922
+ /**
923
+ *
924
+ * DUAL INVESTMENT Endpoints - Trade
925
+ *
926
+ **/
927
+ subscribeDualInvestmentProduct(params: SubscribeDualInvestmentProductParams): Promise<SubscribeDualInvestmentProductResponse>;
928
+ getDualInvestmentPositions(params: GetDualInvestmentPositionsParams): Promise<{
913
929
  total: number;
930
+ list: DualInvestmentPosition[];
914
931
  }>;
915
- repayCryptoLoan(params: RepayCryptoLoanParams): Promise<RepayCryptoLoanResponse>;
916
- getCryptoLoanRepaymentHistory(params: GetLoanRepaymentHistoryParams): Promise<any>;
917
- adjustCryptoLoanLTV(params: AdjustCryptoLoanLTVParams): Promise<AdjustCryptoLoanLTVResponse>;
918
- getCryptoLoanLTVAdjustmentHistory(params: GetLoanLTVAdjustmentHistoryParams): Promise<{
919
- rows: LoanLTVAdjustmentHistory[];
932
+ getDualInvestmentAccounts(): Promise<CheckDualInvestmentAccountsResponse>;
933
+ updateAutoCompoundStatus(params: ChangeAutoCompoundStatusParams): Promise<ChangeAutoCompoundStatusResponse>;
934
+ /**
935
+ *
936
+ * GIFT CARD Endpoints - Market Data
937
+ *
938
+ **/
939
+ createGiftCard(params: CreateGiftCardParams): Promise<any>;
940
+ createDualTokenGiftCard(params: CreateDualTokenGiftCardParams): Promise<any>;
941
+ redeemGiftCard(params: RedeemGiftCardParams): Promise<any>;
942
+ verifyGiftCard(params: {
943
+ referenceNo: string;
944
+ }): Promise<any>;
945
+ getTokenLimit(params: {
946
+ baseToken: string;
947
+ }): Promise<any>;
948
+ getRsaPublicKey(): Promise<any>;
949
+ /**
950
+ *
951
+ * NFT Endpoints - REST api
952
+ *
953
+ **/
954
+ getNftTransactionHistory(params: GetNftTransactionHistoryParams): Promise<{
920
955
  total: number;
956
+ list: NftTransaction[];
921
957
  }>;
922
- getCryptoLoanLoanableAssets(params: GetLoanableAssetsDataParams): Promise<{
923
- rows: LoanableAssetData[];
958
+ getNftDepositHistory(params: GetNftDepositHistoryParams): Promise<{
924
959
  total: number;
960
+ list: NftDeposit[];
925
961
  }>;
926
- getCryptoLoanCollateralAssetsData(params: GetCollateralAssetDataParams): Promise<{
927
- rows: CollateralAssetData[];
962
+ getNftWithdrawHistory(params: GetNftWithdrawHistoryParams): Promise<{
928
963
  total: number;
964
+ list: NftWithdraw[];
929
965
  }>;
930
- getCryptoLoanCollateralRepayRate(params: CheckCollateralRepayRateParams): Promise<CheckCollateralRepayRateResponse>;
931
- customizeCryptoLoanMarginCall(params: CustomizeMarginCallParams): Promise<{
932
- rows: CustomizeMarginCall[];
966
+ getNftAsset(params: GetNftAssetParams): Promise<{
933
967
  total: number;
968
+ list: NftAsset[];
969
+ }>;
970
+ /**
971
+ *
972
+ * C2C Endpoints
973
+ *
974
+ **/
975
+ getC2CTradeHistory(params: GetC2CTradeHistoryParams): Promise<GetC2CTradeHistoryResponse>;
976
+ /**
977
+ *
978
+ * FIAT Endpoints - REST api
979
+ *
980
+ **/
981
+ getFiatOrderHistory(params: GetFiatOrderHistoryParams): Promise<GetFiatOrderHistoryResponse>;
982
+ getFiatPaymentsHistory(params: GetFiatOrderHistoryParams): Promise<GetFiatPaymentsHistoryResponse>;
983
+ /**
984
+ *
985
+ * Rebate Endpoints
986
+ *
987
+ **/
988
+ getSpotRebateHistoryRecords(params: GetSpotRebateHistoryRecordsParams): Promise<GetSpotRebateHistoryRecordsResponse>;
989
+ /**
990
+ *
991
+ * DERIVATIVES - Portfolio Margin Pro - Market Data
992
+ * This is in mainclient because it shares the same base url
993
+ *
994
+ **/
995
+ getPortfolioMarginIndexPrice(params?: {
996
+ asset?: string;
997
+ }): Promise<GetPortfolioMarginAssetIndexPriceResponse[]>;
998
+ getPortfolioMarginAssetLeverage(): Promise<GetPortfolioMarginAssetLeverageResponse[]>;
999
+ /**
1000
+ *
1001
+ * DERIVATIVES - Portfolio Margin Pro - Account
1002
+ * This is in mainclient because it shares the same base url
1003
+ *
1004
+ **/
1005
+ getPortfolioMarginProCollateralRate(): Promise<GetPortfolioMarginProCollateralRateResponse[]>;
1006
+ getPortfolioMarginProAccountInfo(): Promise<GetPortfolioMarginProAccountInfoResponse>;
1007
+ bnbTransfer(params: BnbTransferParams): Promise<{
1008
+ tranId: number;
934
1009
  }>;
935
- borrowCryptoLoanFlexible(params: BorrowFlexibleLoanParams): Promise<BorrowFlexibleLoanResponse>;
936
- getCryptoLoanFlexibleOngoingOrders(params: GetFlexibleLoanOngoingOrdersParams): Promise<{
937
- rows: FlexibleLoanOngoingOrder[];
938
- total: number;
1010
+ submitPortfolioMarginProFullTransfer(): Promise<{
1011
+ msg: string;
939
1012
  }>;
940
- getLoanFlexibleBorrowHistory(params: GetFlexibleCryptoLoanBorrowHistoryParams): Promise<{
941
- rows: FlexibleCryptoLoanBorrowHistory[];
942
- total: number;
1013
+ submitPortfolioMarginProSpecificTransfer(params: {
1014
+ asset: string;
1015
+ }): Promise<{
1016
+ msg: string;
943
1017
  }>;
944
- repayCryptoLoanFlexible(params: RepayCryptoFlexibleLoanParams): Promise<RepayCryptoFlexibleLoanResponse>;
945
- getLoanFlexibleRepaymentHistory(params: GetLoanRepaymentHistoryParams): Promise<{
946
- rows: LoanRepaymentHistory[];
947
- total: number;
1018
+ repayPortfolioMarginProBankruptcyLoan(params: {
1019
+ from?: 'SPOT' | 'MARGIN';
1020
+ }): Promise<{
1021
+ tranId: number;
948
1022
  }>;
949
- adjustCryptoLoanFlexibleLTV(params: AdjustFlexibleCryptoLoanLTVParams): Promise<AdjustFlexibleCryptoLoanLTVResponse>;
950
- getCryptoLoanFlexibleLTVAdjustmentHistory(params: GetFlexibleLoanLTVAdjustmentHistoryParams): Promise<{
951
- rows: FlexibleLoanLTVAdjustmentHistory[];
952
- total: number;
1023
+ getPortfolioMarginProBankruptcyLoanAmount(): Promise<GetPortfolioMarginProBankruptcyLoanAmountResponse>;
1024
+ repayFuturesNegativeBalance(): Promise<{
1025
+ msg: string;
953
1026
  }>;
954
- getCryptoLoanFlexibleAssets(params: {
955
- loanCoin?: string;
1027
+ updateAutoRepayFuturesStatus(params: {
1028
+ autoRepay: string;
956
1029
  }): Promise<{
957
- rows: FlexibleLoanAssetData[];
958
- total: number;
1030
+ msg: string;
959
1031
  }>;
960
- getCryptoLoanFlexibleCollateralAssets(params: {
961
- collateralCoin?: string;
962
- }): Promise<{
963
- rows: FlexibleLoanCollateralAssetData[];
964
- total: number;
1032
+ getAutoRepayFuturesStatus(): Promise<{
1033
+ autoRepay: boolean;
965
1034
  }>;
1035
+ getPortfolioMarginProInterestHistory(params: GetPortfolioMarginProInterestHistoryParams): Promise<GetPortfolioMarginProInterestHistoryResponse[]>;
966
1036
  /**
967
1037
  *
968
- * Copy trading endpoints
1038
+ * DERIVATIVES - Futures Data - Market
1039
+ * This is in mainclient because it shares the same base url
969
1040
  *
970
1041
  **/
971
- getFuturesLeadTraderStatus(): Promise<GetFuturesLeadTraderStatusResponse>;
972
- getFuturesLeadTradingSymbolWhitelist(): Promise<GetFuturesLeadTradingSymbolWhitelistResponse[]>;
1042
+ getFuturesTickLevelOrderbookDataLink(params: GetFutureTickLevelOrderbookDataLinkParams): Promise<{
1043
+ data: HistoricalDataLink[];
1044
+ }>;
973
1045
  /**
974
1046
  *
975
- * Pay endpoints
1047
+ * BLVT Endpoints
1048
+ * BLVT category is possibly @deprecated, found only in old docs
1049
+ **/
1050
+ getBlvtInfo(params?: {
1051
+ tokenName?: string;
1052
+ }): Promise<any[]>;
1053
+ subscribeBlvt(params: SubscribeBlvtParams): Promise<SubscribeBlvtResponse>;
1054
+ getBlvtSubscriptionRecord(params: GetBlvtSubscriptionRecordParams): Promise<BlvtSubscriptionRecord[]>;
1055
+ redeemBlvt(params: RedeemBlvtParams): Promise<RedeemBlvtResponse>;
1056
+ getBlvtRedemptionRecord(params: GetBlvtRedemptionRecordParams): Promise<BlvtRedemptionRecord[]>;
1057
+ getBlvtUserLimitInfo(params: {
1058
+ tokenName?: string;
1059
+ }): Promise<BlvtUserLimitInfo[]>;
1060
+ /**
976
1061
  *
1062
+ * Pay endpoints
1063
+ * Found only in old docs, possibly @deprecated
977
1064
  **/
978
1065
  getPayTransactions(params: GetPayTradeHistoryParams): Promise<any>;
979
1066
  /**
980
1067
  *
981
- * Convert endpoints
1068
+ * EXCHANGE LINK - Account Endpoints
1069
+ * https://developers.binance.com/docs/binance_link
1070
+ */
1071
+ createBrokerSubAccount(params: CreateBrokerSubAccountParams): Promise<BrokerSubAccount>;
1072
+ getBrokerSubAccount(params: GetBrokerSubAccountParams): Promise<BrokerSubAccount[]>;
1073
+ enableMarginBrokerSubAccount(params: EnableMarginBrokerSubAccountParams): Promise<EnableMarginBrokerSubAccountResponse>;
1074
+ createApiKeyBrokerSubAccount(params: CreateApiKeyBrokerSubAccountParams): Promise<CreateApiKeyBrokerSubAccountResponse>;
1075
+ changePermissionApiKeyBrokerSubAccount(params: ChangePermissionApiKeyBrokerSubAccountParams): Promise<ChangePermissionApiKeyBrokerSubAccountResponse>;
1076
+ changeComissionBrokerSubAccount(params: ChangePermissionApiKeyBrokerSubAccountParams): Promise<ChangePermissionApiKeyBrokerSubAccountResponse>;
1077
+ enableUniversalTransferApiKeyBrokerSubAccount(params: EnableUniversalTransferApiKeyBrokerSubAccountParams): Promise<EnableUniversalTransferApiKeyBrokerSubAccountResponse>;
1078
+ updateIpRestrictionForSubAccountApiKey(params: UpdateIpRestrictionForSubApiKey): Promise<{
1079
+ status: string;
1080
+ ipList?: string[];
1081
+ updateTime: number;
1082
+ apiKey: string;
1083
+ }>;
1084
+ deleteIPRestrictionForSubAccountApiKey(params: {
1085
+ subAccountId: string;
1086
+ subAccountApiKey: string;
1087
+ ipAddress?: string;
1088
+ }): Promise<{
1089
+ subaccountId: string;
1090
+ apikey: string;
1091
+ ipList: string[];
1092
+ updateTime: number;
1093
+ }>;
1094
+ deleteApiKeyBrokerSubAccount(params: DeleteApiKeyBrokerSubAccountParams): Promise<{}>;
1095
+ getSubAccountBrokerIpRestriction(params: {
1096
+ subAccountId: string;
1097
+ subAccountApiKey: string;
1098
+ }): Promise<{
1099
+ subaccountId: string;
1100
+ ipRestrict: boolean;
1101
+ apikey: string;
1102
+ ipList: string[];
1103
+ updateTime: number;
1104
+ }>;
1105
+ getApiKeyBrokerSubAccount(params: GetApiKeyBrokerSubAccountParams): Promise<ApiKeyBrokerSubAccount[]>;
1106
+ getBrokerInfo(): Promise<GetBrokerInfoResponse>;
1107
+ /**
982
1108
  *
983
- **/
984
- getConvertPairs(params: GetAllConvertPairsParams): Promise<any>;
985
- getConvertAssetInfo(): Promise<any>;
986
- convertQuoteRequest(params: ConvertQuoteRequestParams): Promise<any>;
987
- acceptQuoteRequest(params: AcceptQuoteRequestParams): Promise<any>;
988
- getOrderStatus(params: GetOrderStatusParams): Promise<any>;
989
- submitConvertLimitOrder(params: SubmitConvertLimitOrderParams): Promise<any>;
990
- cancelConvertLimitOrder(params: {
991
- orderId: number;
1109
+ * EXCHANGE LINK - Account Endpoints
1110
+ * https://developers.binance.com/docs/binance_link
1111
+ */
1112
+ transferBrokerSubAccount(params: TransferBrokerSubAccountParams): Promise<TransferBrokerSubAccount>;
1113
+ getBrokerSubAccountHistory(params: GetBrokerSubAccountHistoryParams): Promise<BrokerSubAccountHistory[]>;
1114
+ submitBrokerSubFuturesTransfer(params: {
1115
+ fromId?: string;
1116
+ toId?: string;
1117
+ futuresType: number;
1118
+ asset: string;
1119
+ amount: number;
1120
+ clientTranId?: string;
1121
+ }): Promise<{
1122
+ success: boolean;
1123
+ txnId: string;
1124
+ clientTranId?: string;
1125
+ }>;
1126
+ getSubAccountFuturesTransferHistory(params: {
1127
+ subAccountId: string;
1128
+ futuresType: number;
1129
+ clientTranId?: string;
1130
+ startTime?: number;
1131
+ endTime?: number;
1132
+ page?: number;
1133
+ limit?: number;
992
1134
  }): Promise<any>;
993
- getConvertLimitOpenOrders(): Promise<{
994
- list: ConvertLimitOpenOrder[];
995
- }>;
996
- getConvertTradeHistory(params: GetConvertTradeHistoryParams): Promise<any>;
1135
+ universalTransferBroker(params: UniversalTransferBrokerParams): Promise<BrokerSubAccount>;
1136
+ getUniversalTransferBroker(params: GetUniversalTransferBrokerParams): Promise<BrokerSubAccount>;
997
1137
  /**
998
1138
  *
999
- * Rebate Endpoints
1139
+ * EXCHANGE LINK - Fee Endpoints
1140
+ * https://developers.binance.com/docs/binance_link
1141
+ */
1142
+ /**
1000
1143
  *
1144
+ * @deprecated
1145
+ */
1146
+ getBrokerSpotRebateHistory(days: 7 | 30, customerId?: string): import("./util/requestUtils").GenericAPIResponse<any> | undefined;
1147
+ /**
1148
+ * Broker Endpoints - only on old docs
1149
+ * @deprecated, found only in old docs
1150
+ * Use EXCHANGE LINK endpoints instead - https://developers.binance.com/docs/binance_link
1151
+ */
1152
+ /**
1153
+ * @deprecated, found only in old docs
1154
+ * Use EXCHANGE LINK endpoints instead
1001
1155
  **/
1002
- getSpotRebateHistoryRecords(params: GetSpotRebateHistoryRecordsParams): Promise<GetSpotRebateHistoryRecordsResponse>;
1156
+ getBrokerIfNewSpotUser(): Promise<{
1157
+ rebateWorking: boolean;
1158
+ ifNewUser: boolean;
1159
+ }>;
1160
+ /**
1161
+ * @deprecated, found only in old docs
1162
+ * Use EXCHANGE LINK endpoints instead
1163
+ **/
1164
+ getBrokerSubAccountDepositHistory(params?: GetBrokerSubAccountDepositHistoryParams): Promise<SubAccountDepositHistoryList[]>;
1165
+ /**
1166
+ * @deprecated, found only in old docs
1167
+ * Use EXCHANGE LINK endpoints instead
1168
+ **/
1169
+ getBrokerUserCustomisedId(market: 'spot' | 'futures'): import("./util/requestUtils").GenericAPIResponse<any>;
1170
+ /**
1171
+ * @deprecated, found only in old docs
1172
+ * Use EXCHANGE LINK endpoints instead
1173
+ **/
1174
+ enableFuturesBrokerSubAccount(params: EnableFuturesBrokerSubAccountParams): Promise<EnableFuturesBrokerSubAccountResponse>;
1175
+ /**
1176
+ * @deprecated, found only in old docs
1177
+ * Use EXCHANGE LINK endpoints instead
1178
+ **/
1179
+ enableMarginApiKeyBrokerSubAccount(params: EnableMarginApiKeyBrokerSubAccountParams): Promise<BrokerSubAccount>;
1180
+ /**
1181
+ * Validate syntax meets requirements set by binance. Log warning if not.
1182
+ */
1183
+ private validateOrderId;
1003
1184
  /**
1004
1185
  *
1005
- * NFT Endpoints
1186
+ * User Data Stream Endpoints
1006
1187
  *
1007
1188
  **/
1008
- getNftTransactionHistory(params: GetNftTransactionHistoryParams): Promise<{
1009
- total: number;
1010
- list: NftTransaction[];
1011
- }>;
1012
- getNftDepositHistory(params: GetNftDepositHistoryParams): Promise<{
1013
- total: number;
1014
- list: NftDeposit[];
1189
+ getSpotUserDataListenKey(): Promise<{
1190
+ listenKey: string;
1015
1191
  }>;
1016
- getNftWithdrawHistory(params: GetNftWithdrawHistoryParams): Promise<{
1017
- total: number;
1018
- list: NftWithdraw[];
1192
+ keepAliveSpotUserDataListenKey(listenKey: string): Promise<{}>;
1193
+ closeSpotUserDataListenKey(listenKey: string): Promise<{}>;
1194
+ getMarginUserDataListenKey(): Promise<{
1195
+ listenKey: string;
1019
1196
  }>;
1020
- getNftAsset(params: GetNftAssetParams): Promise<{
1021
- total: number;
1022
- list: NftAsset[];
1197
+ keepAliveMarginUserDataListenKey(listenKey: string): Promise<{}>;
1198
+ closeMarginUserDataListenKey(listenKey: string): Promise<{}>;
1199
+ getIsolatedMarginUserDataListenKey(params: {
1200
+ symbol: string;
1201
+ }): Promise<{
1202
+ listenKey: string;
1023
1203
  }>;
1204
+ keepAliveIsolatedMarginUserDataListenKey(params: {
1205
+ symbol: string;
1206
+ listenKey: string;
1207
+ }): Promise<{}>;
1208
+ closeIsolatedMarginUserDataListenKey(params: {
1209
+ symbol: string;
1210
+ listenKey: string;
1211
+ }): Promise<{}>;
1024
1212
  /**
1025
1213
  *
1026
- * Binance GiftCard Endpoints
1214
+ * DEPRECATED ENDPOINTS
1027
1215
  *
1028
1216
  **/
1029
- createGiftCard(params: CreateGiftCardParams): Promise<any>;
1030
- createDualTokenGiftCard(params: CreateDualTokenGiftCardParams): Promise<any>;
1031
- redeemGiftCard(params: RedeemGiftCardParams): Promise<any>;
1032
- verifyGiftCard(params: {
1033
- referenceNo: string;
1034
- }): Promise<any>;
1035
- getRsaPublicKey(): Promise<any>;
1036
- getTokenLimit(params: {
1037
- baseToken: string;
1038
- }): Promise<any>;
1039
1217
  /**
1040
1218
  *
1041
1219
  * BSwap Endpoints
@@ -1064,9 +1242,84 @@ export declare class MainClient extends BaseRestClient {
1064
1242
  **/
1065
1243
  getBSwapOperations(params?: BSwapOperationsParams): Promise<BSwapOperations[]>;
1066
1244
  /**
1067
- * Validate syntax meets requirements set by binance. Log warning if not.
1245
+ *
1246
+ * Savings Endpoints
1247
+ * @deprecated as of 2023-06-22, now Simple Earn
1248
+ **/
1249
+ /**
1250
+ * @deprecated as of 2023-06-22, now Simple Earn
1068
1251
  */
1069
- private validateOrderId;
1252
+ getLeftDailyPurchaseQuotaFlexibleProduct(params: {
1253
+ productId: string;
1254
+ }): Promise<LeftDailyPurchaseQuotaFlexibleProductResponse>;
1255
+ /**
1256
+ * @deprecated as of 2023-06-22, now Simple Earn
1257
+ */
1258
+ getLeftDailyRedemptionQuotaFlexibleProduct(params: {
1259
+ productId: string;
1260
+ }): Promise<LeftDailyPurchaseQuotaFlexibleProductResponse & {
1261
+ dailyQuota: string;
1262
+ minRedemptionAmount: string;
1263
+ }>;
1264
+ /**
1265
+ * @deprecated as of 2023-06-22, now Simple Earn
1266
+ */
1267
+ purchaseFixedAndActivityProject(params: {
1268
+ projectId: string;
1269
+ lot: number;
1270
+ }): Promise<PurchaseFlexibleProductResponse>;
1271
+ /**
1272
+ * @deprecated as of 2023-06-22, now Simple Earn
1273
+ */
1274
+ getFixedAndActivityProjects(params: FixedAndActivityProjectParams): Promise<any[]>;
1275
+ /**
1276
+ * @deprecated as of 2023-06-22, now Simple Earn
1277
+ */
1278
+ getFixedAndActivityProductPosition(params: FixedAndActivityProjectPositionParams): Promise<any[]>;
1279
+ /**
1280
+ * @deprecated as of 2023-06-22, now Simple Earn
1281
+ */
1282
+ getLendingAccount(): Promise<StakingProduct[]>;
1283
+ /**
1284
+ * @deprecated as of 2023-06-22, now Simple Earn
1285
+ */
1286
+ getPurchaseRecord(params: PurchaseRecordParams): Promise<any[]>;
1287
+ /**
1288
+ * @deprecated as of 2023-06-22, now Simple Earn
1289
+ */
1290
+ getRedemptionRecord(params: PurchaseRecordParams): Promise<any[]>;
1291
+ /**
1292
+ * @deprecated as of 2023-06-22, now Simple Earn
1293
+ */
1294
+ getInterestHistory(params: PurchaseRecordParams): Promise<any[]>;
1295
+ /**
1296
+ * @deprecated as of 2023-06-22, now Simple Earn
1297
+ */
1298
+ changeFixedAndActivityPositionToDailyPosition(params: {
1299
+ projectId: string;
1300
+ lot: number;
1301
+ positionId?: number;
1302
+ }): Promise<PurchaseFlexibleProductResponse>;
1303
+ /**
1304
+ *
1305
+ * Wallet Endpoints
1306
+ * @deprecated
1307
+ **/
1308
+ /**
1309
+ * @deprecated
1310
+ */
1311
+ enableConvertSubAccount(params: EnableConvertSubAccountParams): Promise<any>;
1312
+ /**
1313
+ * @deprecated
1314
+ */
1315
+ convertBUSD(params: ConvertTransfer): Promise<ConvertTransferResponse>;
1316
+ /**
1317
+ * @deprecated
1318
+ */
1319
+ getConvertBUSDHistory(params: GetConvertBUSDHistoryParams): Promise<{
1320
+ total: number;
1321
+ rows: BUSDConversionRecord[];
1322
+ }>;
1070
1323
  }
1071
1324
  /**
1072
1325
  * @deprecated use MainClient instead of SpotClient (it is the same)