binance 2.12.3 → 2.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/coinm-client.d.ts +79 -37
- package/lib/coinm-client.js +102 -59
- package/lib/coinm-client.js.map +1 -1
- package/lib/main-client.d.ts +979 -682
- package/lib/main-client.js +1311 -1048
- package/lib/main-client.js.map +1 -1
- package/lib/types/futures.d.ts +23 -0
- package/lib/types/spot.d.ts +177 -3
- package/lib/usdm-client.d.ts +108 -49
- package/lib/usdm-client.js +152 -89
- package/lib/usdm-client.js.map +1 -1
- package/package.json +1 -1
package/lib/main-client.d.ts
CHANGED
|
@@ -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, GetSubAccountDepositHistoryParams, QuerySubAccountSpotMarginAssetInfoParams, QuerySubAccountFuturesAssetInfoParams, BrokerUniversalTransfer, ChangeSubAccountCommissionParams, ChangeSubAccountCommissionResponse, ChangeSubAccountFuturesCommissionParams, ChangeSubAccountFuturesCommissionResponse, QuerySubAccountFuturesCommissionParams, BrokerSubAccountFuturesCommission, ChangeSubAccountCoinFuturesCommissionParams, BrokerSubAccountCoinFuturesCommission, QuerySubAccountCoinFuturesCommissionParams, BrokerCommissionRebate, QueryBrokerSpotCommissionRebateParams, QueryBrokerFuturesCommissionRebateParams, UsdtMarginedFuturesResponse, CoinMarginedFuturesResponse, SubAccountDeposit, SubaccountBrokerSpotAsset, SubAccountBrokerMarginAsset } 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
|
-
*
|
|
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
|
-
|
|
71
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
95
|
+
* MARGIN TRADING Endpoints - Market Data endpoints
|
|
250
96
|
*
|
|
251
97
|
**/
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
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
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
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
|
-
|
|
274
|
-
|
|
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
|
-
*
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
308
|
-
*/
|
|
158
|
+
queryMarginAccountOpenOrders(params: BasicSymbolParam): Promise<SpotOrder[]>;
|
|
159
|
+
queryMarginAccountOrder(params: GetOrderParams): Promise<SpotOrder>;
|
|
309
160
|
queryMarginAccountTradeList(params: QueryMarginAccountTradeListParams): Promise<any>;
|
|
310
|
-
|
|
311
|
-
|
|
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
|
-
|
|
165
|
+
message: string;
|
|
327
166
|
}>;
|
|
167
|
+
submitManualLiquidation(params: ManualLiquidationParams): Promise<ManualLiquidationResponse[]>;
|
|
328
168
|
/**
|
|
329
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
346
|
-
|
|
347
|
-
|
|
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
|
-
*
|
|
211
|
+
* Possibly @deprecated
|
|
212
|
+
* Only existing in old documentation, not in new documentation
|
|
356
213
|
*/
|
|
357
|
-
|
|
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
|
-
*
|
|
216
|
+
* @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead
|
|
368
217
|
*/
|
|
369
|
-
|
|
218
|
+
queryLoanRecord(params: QueryMarginRecordParams): Promise<{
|
|
219
|
+
rows: MarginAccountRecord[];
|
|
220
|
+
total: number;
|
|
221
|
+
}>;
|
|
370
222
|
/**
|
|
371
|
-
*
|
|
223
|
+
* @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead
|
|
372
224
|
*/
|
|
373
|
-
|
|
374
|
-
|
|
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
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
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
|
-
*
|
|
235
|
+
* WALLET Endpoints - Capital endpoints
|
|
401
236
|
*
|
|
402
237
|
**/
|
|
403
|
-
|
|
404
|
-
|
|
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
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
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
|
-
*
|
|
252
|
+
* WALLET Endpoints - Asset endpoints
|
|
429
253
|
*
|
|
430
254
|
**/
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
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
|
-
|
|
477
|
-
|
|
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
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
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
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
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
|
-
|
|
492
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
424
|
+
* SUB ACCOUNT Endpoints - Managed Sub Account
|
|
509
425
|
*
|
|
510
426
|
**/
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
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
|
-
|
|
516
|
-
|
|
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
|
-
|
|
444
|
+
managerSubUserInfoVoList: ManagerSubUserInfoVo[];
|
|
519
445
|
}>;
|
|
520
|
-
|
|
521
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
535
|
-
|
|
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
|
-
|
|
548
|
-
|
|
549
|
-
}): Promise<
|
|
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
|
-
|
|
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
|
-
*
|
|
511
|
+
* CONVERT Endpoints - Market Data
|
|
512
|
+
*
|
|
513
|
+
**/
|
|
514
|
+
getConvertPairs(params: GetAllConvertPairsParams): Promise<any>;
|
|
515
|
+
getConvertAssetInfo(): Promise<any>;
|
|
516
|
+
/**
|
|
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
|
+
}>;
|
|
532
|
+
/**
|
|
533
|
+
*
|
|
534
|
+
* STAKING Endpoints - Account
|
|
535
|
+
*
|
|
536
|
+
**/
|
|
537
|
+
/**
|
|
538
|
+
* @deprecated use getEthStakingAccountV2 instead
|
|
539
|
+
**/
|
|
540
|
+
getEthStakingAccount(): Promise<GetEthStakingAccountResponse>;
|
|
541
|
+
getEthStakingAccountV2(): Promise<GetEthStakingAccountV2Response>;
|
|
542
|
+
getEthStakingQuota(): Promise<GetEthStakingQuotaResponse>;
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
* STAKING Endpoints - Staking
|
|
566
546
|
*
|
|
567
547
|
**/
|
|
568
548
|
/**
|
|
569
|
-
* @deprecated
|
|
570
|
-
|
|
571
|
-
getStakingProducts(params: StakingBasicParams & {
|
|
572
|
-
asset?: string;
|
|
573
|
-
}): Promise<StakingProduct[]>;
|
|
574
|
-
/**
|
|
575
|
-
* @deprecated as of 2024-01-19
|
|
576
|
-
*/
|
|
577
|
-
getStakingProductPosition(params: StakingBasicParams & {
|
|
578
|
-
productId?: string;
|
|
579
|
-
asset?: string;
|
|
580
|
-
}): Promise<StakingProductPosition[]>;
|
|
581
|
-
/**
|
|
582
|
-
* @deprecated as of 2024-01-19
|
|
583
|
-
*/
|
|
584
|
-
getStakingHistory(params: StakingHistoryParams): Promise<StakingHistory[]>;
|
|
585
|
-
/**
|
|
586
|
-
* @deprecated as of 2024-01-19
|
|
587
|
-
*/
|
|
588
|
-
getPersonalLeftQuotaOfStakingProduct(params: {
|
|
589
|
-
product: StakingProductType;
|
|
590
|
-
productId: string;
|
|
591
|
-
}): Promise<StakingPersonalLeftQuota>;
|
|
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
|
-
|
|
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,136 +590,58 @@ 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
|
|
594
|
+
* @deprecated as of 2024-01-19
|
|
669
595
|
*/
|
|
670
|
-
|
|
596
|
+
getStakingProducts(params: StakingBasicParams & {
|
|
597
|
+
asset?: string;
|
|
598
|
+
}): Promise<StakingProduct[]>;
|
|
671
599
|
/**
|
|
672
|
-
* @deprecated as of
|
|
600
|
+
* @deprecated as of 2024-01-19
|
|
673
601
|
*/
|
|
674
|
-
|
|
602
|
+
getStakingProductPosition(params: StakingBasicParams & {
|
|
603
|
+
productId?: string;
|
|
604
|
+
asset?: string;
|
|
605
|
+
}): Promise<StakingProductPosition[]>;
|
|
675
606
|
/**
|
|
676
|
-
* @deprecated as of
|
|
607
|
+
* @deprecated as of 2024-01-19
|
|
677
608
|
*/
|
|
678
|
-
|
|
609
|
+
getStakingHistory(params: StakingHistoryParams): Promise<StakingHistory[]>;
|
|
679
610
|
/**
|
|
680
|
-
* @deprecated as of
|
|
611
|
+
* @deprecated as of 2024-01-19
|
|
681
612
|
*/
|
|
682
|
-
|
|
613
|
+
getPersonalLeftQuotaOfStakingProduct(params: {
|
|
614
|
+
product: StakingProductType;
|
|
615
|
+
productId: string;
|
|
616
|
+
}): Promise<StakingPersonalLeftQuota>;
|
|
683
617
|
/**
|
|
684
|
-
*
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
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
|
-
*
|
|
626
|
+
* MINING Endpoints - rest api
|
|
694
627
|
*
|
|
695
628
|
**/
|
|
696
629
|
getMiningAlgos(): Promise<GetMiningAlgoListResponse[]>;
|
|
697
630
|
getMiningCoins(): Promise<GetMiningCoinListResponse[]>;
|
|
698
|
-
|
|
631
|
+
getHashrateResales(params: GetHashrateResaleListParams): Promise<GetHashrateResaleListResponse>;
|
|
699
632
|
getMiners(params: GetMinerListParams): Promise<GetMinerListResponse>;
|
|
700
|
-
|
|
633
|
+
getMinerDetails(params: GetMinerDetailsParams): Promise<GetMinerDetailsResponse[]>;
|
|
701
634
|
getExtraBonuses(params: GetExtraBonusListParams): Promise<GetExtraBonusListResponse>;
|
|
702
|
-
|
|
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
|
-
/**
|
|
710
|
-
*
|
|
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.
|
|
716
|
-
*
|
|
717
|
-
**/
|
|
718
|
-
/**
|
|
719
|
-
* Execute transfer between spot account and futures account.
|
|
720
|
-
*
|
|
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;
|
|
729
|
-
}>;
|
|
730
|
-
getFutureAccountTransferHistory(params: GetFutureAccountTransferHistoryParams): Promise<RowsWithTotal<FutureAccountTransfer>>;
|
|
731
|
-
getFuturesTickLevelOrderbookDataLink(params: GetFutureTickLevelOrderbookDataLinkParams): Promise<{
|
|
732
|
-
data: HistoricalDataLink[];
|
|
733
|
-
}>;
|
|
734
|
-
/**
|
|
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>;
|
|
742
|
-
/**
|
|
743
|
-
* @deprecated as of 2023-09-25
|
|
744
|
-
*/
|
|
745
|
-
getCrossCollateralWalletV2(): Promise<any>;
|
|
746
|
-
/**
|
|
747
|
-
* @deprecated as of 2023-09-25
|
|
748
|
-
*/
|
|
749
|
-
getAdjustCrossCollateralLTVHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
|
|
750
|
-
/**
|
|
751
|
-
* @deprecated as of 2023-09-25
|
|
752
|
-
*/
|
|
753
|
-
getCrossCollateralLiquidationHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
|
|
754
|
-
/**
|
|
755
|
-
* @deprecated as of 2023-09-25
|
|
756
|
-
*/
|
|
757
|
-
getCrossCollateralInterestHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
|
|
758
642
|
/**
|
|
759
643
|
*
|
|
760
|
-
*
|
|
644
|
+
* ALGO TRADING Endpoints - Future algo
|
|
761
645
|
*
|
|
762
646
|
**/
|
|
763
647
|
submitVpNewOrder(params: SubmitVpNewOrderParams): Promise<SubmitVpNewOrderResponse>;
|
|
@@ -765,6 +649,7 @@ export declare class MainClient extends BaseRestClient {
|
|
|
765
649
|
cancelAlgoOrder(params: {
|
|
766
650
|
algoId: number;
|
|
767
651
|
}): Promise<CancelAlgoOrderResponse>;
|
|
652
|
+
getAlgoSubOrders(params: GetAlgoSubOrdersParams): Promise<GetAlgoSubOrdersResponse>;
|
|
768
653
|
getAlgoOpenOrders(): Promise<{
|
|
769
654
|
total: number;
|
|
770
655
|
orders: AlgoOrder[];
|
|
@@ -773,269 +658,606 @@ export declare class MainClient extends BaseRestClient {
|
|
|
773
658
|
total: number;
|
|
774
659
|
orders: HistoricalAlgoOrder[];
|
|
775
660
|
}>;
|
|
776
|
-
getAlgoSubOrders(params: GetAlgoSubOrdersParams): Promise<GetAlgoSubOrdersResponse>;
|
|
777
661
|
/**
|
|
778
662
|
*
|
|
779
|
-
*
|
|
663
|
+
* ALGO TRADING Endpoints - Spot algo
|
|
780
664
|
*
|
|
781
665
|
**/
|
|
782
666
|
submitSpotAlgoTwapOrder(params: SubmitSpotTwapNewOrderParams): Promise<SubmitSpotTwapNewOrderResponse>;
|
|
783
667
|
cancelSpotAlgoOrder(params: {
|
|
784
668
|
algoId: number;
|
|
785
669
|
}): Promise<CancelSpotAlgoOrderResponse>;
|
|
670
|
+
getSpotAlgoSubOrders(params: GetSpotAlgoSubOrdersParams): Promise<GetSpotAlgoSubOrdersResponse>;
|
|
786
671
|
getSpotAlgoOpenOrders(): Promise<{
|
|
787
672
|
total: number;
|
|
788
|
-
orders: SpotAlgoOrder[];
|
|
673
|
+
orders: SpotAlgoOrder[];
|
|
674
|
+
}>;
|
|
675
|
+
getSpotAlgoHistoricalOrders(params: GetSpotAlgoHistoricalOrdersParams): Promise<{
|
|
676
|
+
total: number;
|
|
677
|
+
orders: HistoricalSpotAlgoOrder[];
|
|
678
|
+
}>;
|
|
679
|
+
/**
|
|
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
|
+
}>;
|
|
696
|
+
/**
|
|
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>;
|
|
704
|
+
/**
|
|
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
|
+
}>;
|
|
725
|
+
/**
|
|
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[]>;
|
|
740
|
+
/**
|
|
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
|
+
}>;
|
|
752
|
+
/**
|
|
753
|
+
*
|
|
754
|
+
* CRYPTO LOAN Endpoints - Stable rate - User info
|
|
755
|
+
*
|
|
756
|
+
**/
|
|
757
|
+
getCryptoLoanOngoingOrders(params: GetLoanOngoingOrdersParams): Promise<{
|
|
758
|
+
rows: LoanOngoingOrder[];
|
|
759
|
+
total: number;
|
|
789
760
|
}>;
|
|
790
|
-
|
|
761
|
+
getCryptoLoanBorrowHistory(params: GetLoanBorrowHistoryParams): Promise<{
|
|
762
|
+
rows: LoanBorrowHistory[];
|
|
791
763
|
total: number;
|
|
792
|
-
orders: HistoricalSpotAlgoOrder[];
|
|
793
764
|
}>;
|
|
794
|
-
|
|
765
|
+
getCryptoLoanLTVAdjustmentHistory(params: GetLoanLTVAdjustmentHistoryParams): Promise<{
|
|
766
|
+
rows: LoanLTVAdjustmentHistory[];
|
|
767
|
+
total: number;
|
|
768
|
+
}>;
|
|
769
|
+
getCryptoLoanRepaymentHistory(params: GetLoanRepaymentHistoryParams): Promise<any>;
|
|
795
770
|
/**
|
|
796
771
|
*
|
|
797
|
-
*
|
|
772
|
+
* SIMPLE EARN Endpoints - Account
|
|
798
773
|
*
|
|
799
774
|
**/
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
from?: 'SPOT' | 'MARGIN';
|
|
805
|
-
}): Promise<{
|
|
806
|
-
tranId: number;
|
|
775
|
+
getSimpleEarnAccount(): Promise<SimpleEarnAccountResponse>;
|
|
776
|
+
getFlexibleSavingProducts(params?: SimpleEarnProductListParams): Promise<{
|
|
777
|
+
rows: SimpleEarnFlexibleProduct[];
|
|
778
|
+
total: number;
|
|
807
779
|
}>;
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
}): Promise<GetPortfolioMarginAssetIndexPriceResponse[]>;
|
|
812
|
-
submitPortfolioMarginProFullTransfer(): Promise<{
|
|
813
|
-
msg: string;
|
|
780
|
+
getSimpleEarnLockedProductList(params?: SimpleEarnProductListParams): Promise<{
|
|
781
|
+
rows: SimpleEarnLockedProduct[];
|
|
782
|
+
total: number;
|
|
814
783
|
}>;
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
msg: string;
|
|
784
|
+
getFlexibleProductPosition(params?: SimpleEarnFlexibleProductPositionParams): Promise<{
|
|
785
|
+
rows: any[];
|
|
786
|
+
total: number;
|
|
819
787
|
}>;
|
|
820
|
-
|
|
821
|
-
|
|
788
|
+
getLockedProductPosition(params?: SimpleEarnLockedProductPositionParams): Promise<{
|
|
789
|
+
rows: SimpleEarnLockedProductPosition[];
|
|
790
|
+
total: number;
|
|
822
791
|
}>;
|
|
823
|
-
|
|
824
|
-
|
|
792
|
+
getFlexiblePersonalLeftQuota(params: {
|
|
793
|
+
productId: string;
|
|
825
794
|
}): Promise<{
|
|
826
|
-
|
|
827
|
-
}>;
|
|
828
|
-
getAutoRepayFuturesStatus(): Promise<{
|
|
829
|
-
autoRepay: boolean;
|
|
795
|
+
leftPersonalQuota: string;
|
|
830
796
|
}>;
|
|
831
|
-
|
|
832
|
-
|
|
797
|
+
getLockedPersonalLeftQuota(params: {
|
|
798
|
+
projectId: string;
|
|
799
|
+
}): Promise<{
|
|
800
|
+
leftPersonalQuota: string;
|
|
833
801
|
}>;
|
|
834
|
-
getPortfolioMarginAssetLeverage(): Promise<GetPortfolioMarginAssetLeverageResponse[]>;
|
|
835
802
|
/**
|
|
836
803
|
*
|
|
837
|
-
*
|
|
804
|
+
* SIMPLE EARN Endpoints - Earn
|
|
838
805
|
*
|
|
839
806
|
**/
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
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
|
-
*
|
|
831
|
+
* SIMPLE EARN Endpoints - History
|
|
853
832
|
*
|
|
854
833
|
**/
|
|
855
|
-
|
|
856
|
-
|
|
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
|
-
*
|
|
868
|
+
* VIP LOAN Endpoints - Market Data
|
|
860
869
|
*
|
|
861
870
|
**/
|
|
862
|
-
|
|
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
|
|
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
|
-
*
|
|
907
|
+
* VIP LOAN Endpoints - Trade
|
|
903
908
|
*
|
|
904
909
|
**/
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
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<{
|
|
913
919
|
total: number;
|
|
920
|
+
list: DualInvestmentProduct[];
|
|
914
921
|
}>;
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
922
|
+
/**
|
|
923
|
+
*
|
|
924
|
+
* DUAL INVESTMENT Endpoints - Trade
|
|
925
|
+
*
|
|
926
|
+
**/
|
|
927
|
+
subscribeDualInvestmentProduct(params: SubscribeDualInvestmentProductParams): Promise<SubscribeDualInvestmentProductResponse>;
|
|
928
|
+
getDualInvestmentPositions(params: GetDualInvestmentPositionsParams): Promise<{
|
|
920
929
|
total: number;
|
|
930
|
+
list: DualInvestmentPosition[];
|
|
921
931
|
}>;
|
|
922
|
-
|
|
923
|
-
|
|
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<{
|
|
924
955
|
total: number;
|
|
956
|
+
list: NftTransaction[];
|
|
925
957
|
}>;
|
|
926
|
-
|
|
927
|
-
rows: CollateralAssetData[];
|
|
958
|
+
getNftDepositHistory(params: GetNftDepositHistoryParams): Promise<{
|
|
928
959
|
total: number;
|
|
960
|
+
list: NftDeposit[];
|
|
929
961
|
}>;
|
|
930
|
-
|
|
931
|
-
customizeCryptoLoanMarginCall(params: CustomizeMarginCallParams): Promise<{
|
|
932
|
-
rows: CustomizeMarginCall[];
|
|
962
|
+
getNftWithdrawHistory(params: GetNftWithdrawHistoryParams): Promise<{
|
|
933
963
|
total: number;
|
|
964
|
+
list: NftWithdraw[];
|
|
934
965
|
}>;
|
|
935
|
-
|
|
936
|
-
getCryptoLoanFlexibleOngoingOrders(params: GetFlexibleLoanOngoingOrdersParams): Promise<{
|
|
937
|
-
rows: FlexibleLoanOngoingOrder[];
|
|
966
|
+
getNftAsset(params: GetNftAssetParams): Promise<{
|
|
938
967
|
total: number;
|
|
968
|
+
list: NftAsset[];
|
|
939
969
|
}>;
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
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;
|
|
943
1009
|
}>;
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
rows: LoanRepaymentHistory[];
|
|
947
|
-
total: number;
|
|
1010
|
+
submitPortfolioMarginProFullTransfer(): Promise<{
|
|
1011
|
+
msg: string;
|
|
948
1012
|
}>;
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
1013
|
+
submitPortfolioMarginProSpecificTransfer(params: {
|
|
1014
|
+
asset: string;
|
|
1015
|
+
}): Promise<{
|
|
1016
|
+
msg: string;
|
|
953
1017
|
}>;
|
|
954
|
-
|
|
955
|
-
|
|
1018
|
+
repayPortfolioMarginProBankruptcyLoan(params: {
|
|
1019
|
+
from?: 'SPOT' | 'MARGIN';
|
|
956
1020
|
}): Promise<{
|
|
957
|
-
|
|
958
|
-
total: number;
|
|
1021
|
+
tranId: number;
|
|
959
1022
|
}>;
|
|
960
|
-
|
|
961
|
-
|
|
1023
|
+
getPortfolioMarginProBankruptcyLoanAmount(): Promise<GetPortfolioMarginProBankruptcyLoanAmountResponse>;
|
|
1024
|
+
repayFuturesNegativeBalance(): Promise<{
|
|
1025
|
+
msg: string;
|
|
1026
|
+
}>;
|
|
1027
|
+
updateAutoRepayFuturesStatus(params: {
|
|
1028
|
+
autoRepay: string;
|
|
962
1029
|
}): Promise<{
|
|
963
|
-
|
|
964
|
-
|
|
1030
|
+
msg: string;
|
|
1031
|
+
}>;
|
|
1032
|
+
getAutoRepayFuturesStatus(): Promise<{
|
|
1033
|
+
autoRepay: boolean;
|
|
965
1034
|
}>;
|
|
1035
|
+
getPortfolioMarginProInterestHistory(params: GetPortfolioMarginProInterestHistoryParams): Promise<GetPortfolioMarginProInterestHistoryResponse[]>;
|
|
966
1036
|
/**
|
|
967
1037
|
*
|
|
968
|
-
*
|
|
1038
|
+
* DERIVATIVES - Futures Data - Market
|
|
1039
|
+
* This is in mainclient because it shares the same base url
|
|
969
1040
|
*
|
|
970
1041
|
**/
|
|
971
|
-
|
|
972
|
-
|
|
1042
|
+
getFuturesTickLevelOrderbookDataLink(params: GetFutureTickLevelOrderbookDataLinkParams): Promise<{
|
|
1043
|
+
data: HistoricalDataLink[];
|
|
1044
|
+
}>;
|
|
973
1045
|
/**
|
|
974
1046
|
*
|
|
975
|
-
*
|
|
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
|
-
*
|
|
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
|
+
updateSubAccountBNBBurn(params: {
|
|
1108
|
+
subAccountId: string;
|
|
1109
|
+
spotBNBBurn: 'true' | 'false';
|
|
1110
|
+
}): Promise<{
|
|
1111
|
+
subAccountId: string;
|
|
1112
|
+
spotBNBBurn: boolean;
|
|
1113
|
+
}>;
|
|
1114
|
+
updateSubAccountMarginInterestBNBBurn(params: {
|
|
1115
|
+
subAccountId: string;
|
|
1116
|
+
interestBNBBurn: 'true' | 'false';
|
|
1117
|
+
}): Promise<{
|
|
1118
|
+
subAccountId: string;
|
|
1119
|
+
interestBNBBurn: boolean;
|
|
1120
|
+
}>;
|
|
1121
|
+
getSubAccountBNBBurnStatus(params: {
|
|
1122
|
+
subAccountId: string;
|
|
1123
|
+
}): Promise<{
|
|
1124
|
+
subAccountId: string;
|
|
1125
|
+
spotBNBBurn: boolean;
|
|
1126
|
+
interestBNBBurn: boolean;
|
|
1127
|
+
}>;
|
|
1128
|
+
/**
|
|
982
1129
|
*
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
1130
|
+
* EXCHANGE LINK - Account Endpoints
|
|
1131
|
+
* https://developers.binance.com/docs/binance_link
|
|
1132
|
+
*/
|
|
1133
|
+
transferBrokerSubAccount(params: TransferBrokerSubAccountParams): Promise<TransferBrokerSubAccount>;
|
|
1134
|
+
getBrokerSubAccountHistory(params: GetBrokerSubAccountHistoryParams): Promise<BrokerSubAccountHistory[]>;
|
|
1135
|
+
submitBrokerSubFuturesTransfer(params: {
|
|
1136
|
+
fromId?: string;
|
|
1137
|
+
toId?: string;
|
|
1138
|
+
futuresType: number;
|
|
1139
|
+
asset: string;
|
|
1140
|
+
amount: number;
|
|
1141
|
+
clientTranId?: string;
|
|
1142
|
+
}): Promise<{
|
|
1143
|
+
success: boolean;
|
|
1144
|
+
txnId: string;
|
|
1145
|
+
clientTranId?: string;
|
|
1146
|
+
}>;
|
|
1147
|
+
getSubAccountFuturesTransferHistory(params: {
|
|
1148
|
+
subAccountId: string;
|
|
1149
|
+
futuresType: number;
|
|
1150
|
+
clientTranId?: string;
|
|
1151
|
+
startTime?: number;
|
|
1152
|
+
endTime?: number;
|
|
1153
|
+
page?: number;
|
|
1154
|
+
limit?: number;
|
|
992
1155
|
}): Promise<any>;
|
|
993
|
-
|
|
994
|
-
|
|
1156
|
+
getBrokerSubDepositHistory(params: GetSubAccountDepositHistoryParams): Promise<SubAccountDeposit[]>;
|
|
1157
|
+
getBrokerSubAccountSpotAssets(params: QuerySubAccountSpotMarginAssetInfoParams): Promise<{
|
|
1158
|
+
data: SubaccountBrokerSpotAsset[];
|
|
1159
|
+
timestamp: number;
|
|
995
1160
|
}>;
|
|
996
|
-
|
|
1161
|
+
getSubAccountMarginAssetInfo(params: QuerySubAccountSpotMarginAssetInfoParams): Promise<{
|
|
1162
|
+
data: SubAccountBrokerMarginAsset[];
|
|
1163
|
+
timestamp: number;
|
|
1164
|
+
}>;
|
|
1165
|
+
querySubAccountFuturesAssetInfo(params: QuerySubAccountFuturesAssetInfoParams): Promise<{
|
|
1166
|
+
data: (UsdtMarginedFuturesResponse | CoinMarginedFuturesResponse)[];
|
|
1167
|
+
timestamp: number;
|
|
1168
|
+
}>;
|
|
1169
|
+
universalTransferBroker(params: UniversalTransferBrokerParams): Promise<{
|
|
1170
|
+
txnId: number;
|
|
1171
|
+
clientTranId: string;
|
|
1172
|
+
}>;
|
|
1173
|
+
getUniversalTransferBroker(params: GetUniversalTransferBrokerParams): Promise<BrokerUniversalTransfer[]>;
|
|
997
1174
|
/**
|
|
998
1175
|
*
|
|
999
|
-
*
|
|
1176
|
+
* EXCHANGE LINK - Fee Endpoints
|
|
1177
|
+
* https://developers.binance.com/docs/binance_link
|
|
1178
|
+
*/
|
|
1179
|
+
updateBrokerSubAccountCommission(params: ChangeSubAccountCommissionParams): Promise<ChangeSubAccountCommissionResponse>;
|
|
1180
|
+
updateBrokerSubAccountFuturesCommission(params: ChangeSubAccountFuturesCommissionParams): Promise<ChangeSubAccountFuturesCommissionResponse>;
|
|
1181
|
+
getBrokerSubAccountFuturesCommission(params: QuerySubAccountFuturesCommissionParams): Promise<BrokerSubAccountFuturesCommission[]>;
|
|
1182
|
+
updateBrokerSubAccountCoinFuturesCommission(params: ChangeSubAccountCoinFuturesCommissionParams): Promise<ChangeSubAccountFuturesCommissionResponse>;
|
|
1183
|
+
getBrokerSubAccountCoinFuturesCommission(params: QuerySubAccountCoinFuturesCommissionParams): Promise<BrokerSubAccountCoinFuturesCommission[]>;
|
|
1184
|
+
getBrokerSpotCommissionRebate(params: QueryBrokerSpotCommissionRebateParams): Promise<BrokerCommissionRebate[]>;
|
|
1185
|
+
getBrokerFuturesCommissionRebate(params: QueryBrokerFuturesCommissionRebateParams): Promise<BrokerCommissionRebate[]>;
|
|
1186
|
+
/**
|
|
1000
1187
|
*
|
|
1188
|
+
* @deprecated
|
|
1189
|
+
*/
|
|
1190
|
+
getBrokerSpotRebateHistory(days: 7 | 30, customerId?: string): import("./util/requestUtils").GenericAPIResponse<any> | undefined;
|
|
1191
|
+
/**
|
|
1192
|
+
* Broker Endpoints - only on old docs
|
|
1193
|
+
* @deprecated, found only in old docs
|
|
1194
|
+
* Use EXCHANGE LINK endpoints instead - https://developers.binance.com/docs/binance_link
|
|
1195
|
+
*/
|
|
1196
|
+
/**
|
|
1197
|
+
* @deprecated, found only in old docs
|
|
1198
|
+
* Use EXCHANGE LINK endpoints instead
|
|
1001
1199
|
**/
|
|
1002
|
-
|
|
1200
|
+
getBrokerIfNewSpotUser(): Promise<{
|
|
1201
|
+
rebateWorking: boolean;
|
|
1202
|
+
ifNewUser: boolean;
|
|
1203
|
+
}>;
|
|
1204
|
+
/**
|
|
1205
|
+
* @deprecated, found only in old docs
|
|
1206
|
+
* Use EXCHANGE LINK endpoints instead
|
|
1207
|
+
**/
|
|
1208
|
+
getBrokerSubAccountDepositHistory(params?: GetBrokerSubAccountDepositHistoryParams): Promise<SubAccountDepositHistoryList[]>;
|
|
1209
|
+
/**
|
|
1210
|
+
* @deprecated, found only in old docs
|
|
1211
|
+
* Use EXCHANGE LINK endpoints instead
|
|
1212
|
+
**/
|
|
1213
|
+
getBrokerUserCustomisedId(market: 'spot' | 'futures'): import("./util/requestUtils").GenericAPIResponse<any>;
|
|
1214
|
+
/**
|
|
1215
|
+
* @deprecated, found only in old docs
|
|
1216
|
+
* Use EXCHANGE LINK endpoints instead
|
|
1217
|
+
**/
|
|
1218
|
+
enableFuturesBrokerSubAccount(params: EnableFuturesBrokerSubAccountParams): Promise<EnableFuturesBrokerSubAccountResponse>;
|
|
1219
|
+
/**
|
|
1220
|
+
* @deprecated, found only in old docs
|
|
1221
|
+
* Use EXCHANGE LINK endpoints instead
|
|
1222
|
+
**/
|
|
1223
|
+
enableMarginApiKeyBrokerSubAccount(params: EnableMarginApiKeyBrokerSubAccountParams): Promise<BrokerSubAccount>;
|
|
1224
|
+
/**
|
|
1225
|
+
* Validate syntax meets requirements set by binance. Log warning if not.
|
|
1226
|
+
*/
|
|
1227
|
+
private validateOrderId;
|
|
1003
1228
|
/**
|
|
1004
1229
|
*
|
|
1005
|
-
*
|
|
1230
|
+
* User Data Stream Endpoints
|
|
1006
1231
|
*
|
|
1007
1232
|
**/
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
list: NftTransaction[];
|
|
1011
|
-
}>;
|
|
1012
|
-
getNftDepositHistory(params: GetNftDepositHistoryParams): Promise<{
|
|
1013
|
-
total: number;
|
|
1014
|
-
list: NftDeposit[];
|
|
1233
|
+
getSpotUserDataListenKey(): Promise<{
|
|
1234
|
+
listenKey: string;
|
|
1015
1235
|
}>;
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1236
|
+
keepAliveSpotUserDataListenKey(listenKey: string): Promise<{}>;
|
|
1237
|
+
closeSpotUserDataListenKey(listenKey: string): Promise<{}>;
|
|
1238
|
+
getMarginUserDataListenKey(): Promise<{
|
|
1239
|
+
listenKey: string;
|
|
1019
1240
|
}>;
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1241
|
+
keepAliveMarginUserDataListenKey(listenKey: string): Promise<{}>;
|
|
1242
|
+
closeMarginUserDataListenKey(listenKey: string): Promise<{}>;
|
|
1243
|
+
getIsolatedMarginUserDataListenKey(params: {
|
|
1244
|
+
symbol: string;
|
|
1245
|
+
}): Promise<{
|
|
1246
|
+
listenKey: string;
|
|
1023
1247
|
}>;
|
|
1248
|
+
keepAliveIsolatedMarginUserDataListenKey(params: {
|
|
1249
|
+
symbol: string;
|
|
1250
|
+
listenKey: string;
|
|
1251
|
+
}): Promise<{}>;
|
|
1252
|
+
closeIsolatedMarginUserDataListenKey(params: {
|
|
1253
|
+
symbol: string;
|
|
1254
|
+
listenKey: string;
|
|
1255
|
+
}): Promise<{}>;
|
|
1024
1256
|
/**
|
|
1025
1257
|
*
|
|
1026
|
-
*
|
|
1258
|
+
* DEPRECATED ENDPOINTS
|
|
1027
1259
|
*
|
|
1028
1260
|
**/
|
|
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
1261
|
/**
|
|
1040
1262
|
*
|
|
1041
1263
|
* BSwap Endpoints
|
|
@@ -1064,9 +1286,84 @@ export declare class MainClient extends BaseRestClient {
|
|
|
1064
1286
|
**/
|
|
1065
1287
|
getBSwapOperations(params?: BSwapOperationsParams): Promise<BSwapOperations[]>;
|
|
1066
1288
|
/**
|
|
1067
|
-
*
|
|
1289
|
+
*
|
|
1290
|
+
* Savings Endpoints
|
|
1291
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
1292
|
+
**/
|
|
1293
|
+
/**
|
|
1294
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
1068
1295
|
*/
|
|
1069
|
-
|
|
1296
|
+
getLeftDailyPurchaseQuotaFlexibleProduct(params: {
|
|
1297
|
+
productId: string;
|
|
1298
|
+
}): Promise<LeftDailyPurchaseQuotaFlexibleProductResponse>;
|
|
1299
|
+
/**
|
|
1300
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
1301
|
+
*/
|
|
1302
|
+
getLeftDailyRedemptionQuotaFlexibleProduct(params: {
|
|
1303
|
+
productId: string;
|
|
1304
|
+
}): Promise<LeftDailyPurchaseQuotaFlexibleProductResponse & {
|
|
1305
|
+
dailyQuota: string;
|
|
1306
|
+
minRedemptionAmount: string;
|
|
1307
|
+
}>;
|
|
1308
|
+
/**
|
|
1309
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
1310
|
+
*/
|
|
1311
|
+
purchaseFixedAndActivityProject(params: {
|
|
1312
|
+
projectId: string;
|
|
1313
|
+
lot: number;
|
|
1314
|
+
}): Promise<PurchaseFlexibleProductResponse>;
|
|
1315
|
+
/**
|
|
1316
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
1317
|
+
*/
|
|
1318
|
+
getFixedAndActivityProjects(params: FixedAndActivityProjectParams): Promise<any[]>;
|
|
1319
|
+
/**
|
|
1320
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
1321
|
+
*/
|
|
1322
|
+
getFixedAndActivityProductPosition(params: FixedAndActivityProjectPositionParams): Promise<any[]>;
|
|
1323
|
+
/**
|
|
1324
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
1325
|
+
*/
|
|
1326
|
+
getLendingAccount(): Promise<StakingProduct[]>;
|
|
1327
|
+
/**
|
|
1328
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
1329
|
+
*/
|
|
1330
|
+
getPurchaseRecord(params: PurchaseRecordParams): Promise<any[]>;
|
|
1331
|
+
/**
|
|
1332
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
1333
|
+
*/
|
|
1334
|
+
getRedemptionRecord(params: PurchaseRecordParams): Promise<any[]>;
|
|
1335
|
+
/**
|
|
1336
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
1337
|
+
*/
|
|
1338
|
+
getInterestHistory(params: PurchaseRecordParams): Promise<any[]>;
|
|
1339
|
+
/**
|
|
1340
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
1341
|
+
*/
|
|
1342
|
+
changeFixedAndActivityPositionToDailyPosition(params: {
|
|
1343
|
+
projectId: string;
|
|
1344
|
+
lot: number;
|
|
1345
|
+
positionId?: number;
|
|
1346
|
+
}): Promise<PurchaseFlexibleProductResponse>;
|
|
1347
|
+
/**
|
|
1348
|
+
*
|
|
1349
|
+
* Wallet Endpoints
|
|
1350
|
+
* @deprecated
|
|
1351
|
+
**/
|
|
1352
|
+
/**
|
|
1353
|
+
* @deprecated
|
|
1354
|
+
*/
|
|
1355
|
+
enableConvertSubAccount(params: EnableConvertSubAccountParams): Promise<any>;
|
|
1356
|
+
/**
|
|
1357
|
+
* @deprecated
|
|
1358
|
+
*/
|
|
1359
|
+
convertBUSD(params: ConvertTransfer): Promise<ConvertTransferResponse>;
|
|
1360
|
+
/**
|
|
1361
|
+
* @deprecated
|
|
1362
|
+
*/
|
|
1363
|
+
getConvertBUSDHistory(params: GetConvertBUSDHistoryParams): Promise<{
|
|
1364
|
+
total: number;
|
|
1365
|
+
rows: BUSDConversionRecord[];
|
|
1366
|
+
}>;
|
|
1070
1367
|
}
|
|
1071
1368
|
/**
|
|
1072
1369
|
* @deprecated use MainClient instead of SpotClient (it is the same)
|