binance 2.11.5 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,8 @@
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, BasicBSwapResp, 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 } 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, AccountInfoResponse, ManagedSubAccountSnapshotParams, ManagedSubAccountSnapshotResponse, ManagedSubAccountTransferLogParams, ManagedSubAccountFuturesAssetsResponse, ManagedSubAccountMarginAssetsResponse, ManagedSubAccountListParams, SubAccountTransactionStatisticsResponse, ManagedSubAccountDepositAddressParams, ManagedSubAccountDepositAddressResponse, EnableOptionsForSubAccountResponse, ManagedSubAccountTransferTTLogParams, TradingDayTickerParams, RollingWindowTickerParams, NewOrderListOTOParams, NewOrderListOTOResponse, NewOrderListOTOCOParams, NewOrderListOTOCOResponse, PreventedMatchesParams, PreventedMatch, AllocationsParams, CommissionRatesResponse, 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';
4
4
  import { RestClientOptions } from './util/requestUtils';
5
5
  import BaseRestClient from './util/BaseRestClient';
6
- import { SimpleEarnAccountResponse, SimpleEarnFlexibleProductListResponse, SimpleEarnFlexibleProductPositionParams, SimpleEarnLockedProductListResponse, SimpleEarnLockedProductPositionParams, SimpleEarnLockedProductPositionResponse, SimpleEarnProductListParams, SimpleEarnRedeemParams, SimpleEarnRedeemResponse, SimpleEarnSubscribeFlexibleProductResponse, SimpleEarnSubscribeLockedProductResponse, SimpleEarnSubscribeProductParams } from './types/simpleEarn';
7
6
  export declare class MainClient extends BaseRestClient {
8
7
  constructor(restClientOptions?: RestClientOptions, requestOptions?: AxiosRequestConfig);
9
8
  /**
@@ -41,12 +40,29 @@ export declare class MainClient extends BaseRestClient {
41
40
  getUniversalTransferHistory(params: UniversalTransferHistoryParams): Promise<any>;
42
41
  getApiTradingStatus(): Promise<APITradingStatus>;
43
42
  getApiKeyPermissions(): Promise<APIPermissions>;
44
- acceptQuoteRequest(params: AcceptQuoteRequestParams): Promise<any>;
45
43
  enableConvertSubAccount(params: EnableConvertSubAccountParams): Promise<any>;
46
- convertQuoteRequest(params: ConvertQuoteRequestParams): Promise<any>;
47
- getOrderStatus(params: GetOrderStatusParams): Promise<any>;
48
- getConvertTradeHistory(params: GetConvertTradeHistoryParams): 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<AccountInfoResponse>;
49
64
  /**
65
+ *
50
66
  *
51
67
  * Sub-Account Endpoints
52
68
  *
@@ -89,6 +105,41 @@ export declare class MainClient extends BaseRestClient {
89
105
  depositAssetsIntoManagedSubAccount(params: SubAccountTransferToSameMasterParams): Promise<MarginTransactionResponse>;
90
106
  getManagedSubAccountAssetDetails(email: string): Promise<SubAccountAssetDetails[]>;
91
107
  withdrawAssetsFromManagedSubAccount(params: WithdrawAssetsFromManagedSubAccountParams): Promise<MarginTransactionResponse>;
108
+ getManagedSubAccountSnapshot(params: ManagedSubAccountSnapshotParams): Promise<ManagedSubAccountSnapshotResponse>;
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<SubAccountTransactionStatisticsResponse>;
135
+ getManagedSubAccountDepositAddress(params: ManagedSubAccountDepositAddressParams): Promise<ManagedSubAccountDepositAddressResponse>;
136
+ enableOptionsForSubAccount(params: {
137
+ email: string;
138
+ }): Promise<EnableOptionsForSubAccountResponse>;
139
+ getManagedSubAccountTransferLog(params: ManagedSubAccountTransferTTLogParams): Promise<{
140
+ managerSubTransferHistoryVos: ManagerSubTransferHistoryVos[];
141
+ count: number;
142
+ }>;
92
143
  /**
93
144
  * Broker Endpoints
94
145
  */
@@ -127,11 +178,14 @@ export declare class MainClient extends BaseRestClient {
127
178
  getHistoricalTrades(params: HistoricalTradesParams): Promise<RawTrade[]>;
128
179
  getAggregateTrades(params: SymbolFromPaginatedRequestFromId): Promise<AggregateTrade[]>;
129
180
  getKlines(params: KlinesParams): Promise<Kline[]>;
181
+ getUIKlines(params: KlinesParams): Promise<Kline[]>;
130
182
  getAvgPrice(params: BasicSymbolParam): Promise<CurrentAvgPrice>;
131
183
  get24hrChangeStatististics(params: BasicSymbolParam): Promise<DailyChangeStatistic>;
132
184
  get24hrChangeStatististics(params?: SymbolArrayParam): Promise<DailyChangeStatistic[]>;
185
+ getTradingDayTicker(params: TradingDayTickerParams): Promise<TradingDayTickerFull[] | TradingDayTickerMini[]>;
133
186
  getSymbolPriceTicker(params?: Partial<BasicSymbolParam>): Promise<SymbolPrice | SymbolPrice[]>;
134
187
  getSymbolOrderBookTicker(params?: Partial<BasicSymbolParam>): Promise<SymbolOrderBookTicker | SymbolOrderBookTicker[]>;
188
+ getRollingWindowTicker(params: RollingWindowTickerParams): Promise<TradingDayTickerFull[] | TradingDayTickerMini[]>;
135
189
  /**
136
190
  *
137
191
  * Spot Account/Trade Endpoints
@@ -145,8 +199,13 @@ export declare class MainClient extends BaseRestClient {
145
199
  getOrder(params: GetOrderParams): Promise<SpotOrder>;
146
200
  getOpenOrders(params?: Partial<BasicSymbolParam>): Promise<SpotOrder[]>;
147
201
  getAllOrders(params: GetAllOrdersParams): Promise<SpotOrder[]>;
202
+ /**
203
+ * @deprecated
204
+ */
148
205
  submitNewOCO(params: NewOCOParams): Promise<any>;
149
206
  submitNewOrderList<T extends OrderResponseType>(params: NewOrderListParams<T>): Promise<OrderListResponse<T>>;
207
+ submitNewOrderListOTO(params: NewOrderListOTOParams): Promise<NewOrderListOTOResponse>;
208
+ submitNewOrderListOTOCO(params: NewOrderListOTOCOParams): Promise<NewOrderListOTOCOResponse>;
150
209
  cancelOCO(params: CancelOCOParams): Promise<CancelOrderListResult>;
151
210
  getOCO(params?: GetOCOParams): Promise<OrderList>;
152
211
  getAllOCO(params?: BasicFromPaginatedParams): Promise<OrderList[]>;
@@ -179,6 +238,12 @@ export declare class MainClient extends BaseRestClient {
179
238
  getAccountTradeList(params: SymbolFromPaginatedRequestFromId & {
180
239
  orderId?: number;
181
240
  }): Promise<RawAccountTrade[]>;
241
+ getOrderRateLimit(): Promise<OrderRateLimitUsage[]>;
242
+ getPreventedMatches(params: PreventedMatchesParams): Promise<PreventedMatch[]>;
243
+ getAllocations(params: AllocationsParams): Promise<any>;
244
+ getCommissionRates(params: {
245
+ symbol: string;
246
+ }): Promise<CommissionRatesResponse>;
182
247
  /**
183
248
  *
184
249
  * Margin Account/Trade Endpoints
@@ -195,6 +260,20 @@ export declare class MainClient extends BaseRestClient {
195
260
  marginAccountNewOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: NewSpotOrderParams<T, RT>): Promise<OrderResponseTypeFor<RT, T>>;
196
261
  marginAccountCancelOrder(params: CancelOrderParams): Promise<CancelSpotOrderResult>;
197
262
  marginAccountCancelOpenOrders(params: BasicSymbolParam): Promise<CancelSpotOrderResult[]>;
263
+ updateCrossMarginMaxLeverage(params: {
264
+ maxLeverage: number;
265
+ }): Promise<{
266
+ success: boolean;
267
+ }>;
268
+ getCrossMarginTransferHistory(params: GetCrossMarginTransferHistoryParams): Promise<RowsWithTotal<CrossMarginTransferHistory>>;
269
+ getMarginInterestHistory(params: GetMarginInterestHistoryParams): Promise<{
270
+ rows: MarginInterestHistory[];
271
+ total: number;
272
+ }>;
273
+ getMarginForceLiquidationRecord(params: GetForceLiquidationRecordParams): Promise<{
274
+ rows: ForceLiquidationRecord[];
275
+ total: number;
276
+ }>;
198
277
  /**
199
278
  * @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead
200
279
  */
@@ -216,6 +295,18 @@ export declare class MainClient extends BaseRestClient {
216
295
  marginAccountNewOCO(params: NewOCOParams): Promise<any>;
217
296
  marginAccountCancelOCO(params: CancelOCOParams): Promise<any>;
218
297
  queryMarginAccountOCO(params: GetOCOParams): Promise<any>;
298
+ queryMarginAccountAllOCO(params: QueryMarginAccountAllOCOParams): Promise<any>;
299
+ /**
300
+ * Query margin account's open OCO
301
+ */
302
+ queryMarginAccountOpenOCO(params: {
303
+ isIsolated?: 'TRUE' | 'FALSE';
304
+ symbol?: string;
305
+ }): Promise<any>;
306
+ /**
307
+ * Query margin account's trade list
308
+ */
309
+ queryMarginAccountTradeList(params: QueryMarginAccountTradeListParams): Promise<any>;
219
310
  queryMaxBorrow(params: BasicMarginAssetParams): Promise<QueryMaxBorrowResponse>;
220
311
  queryMaxTransferOutAmount(params: BasicMarginAssetParams): Promise<QueryMaxTransferOutAmountResponse>;
221
312
  /**
@@ -225,6 +316,85 @@ export declare class MainClient extends BaseRestClient {
225
316
  getIsolatedMarginAccountInfo(params?: {
226
317
  symbols?: string;
227
318
  }): Promise<IsolatedMarginAccountInfo>;
319
+ /**
320
+ * Disable isolated margin account
321
+ */
322
+ disableIsolatedMarginAccount(params: {
323
+ symbol: string;
324
+ }): Promise<{
325
+ success: boolean;
326
+ symbol: string;
327
+ }>;
328
+ /**
329
+ * Enable isolated margin account
330
+ */
331
+ enableIsolatedMarginAccount(params: {
332
+ symbols: string;
333
+ }): Promise<{
334
+ success: boolean;
335
+ symbol: string;
336
+ }>;
337
+ /**
338
+ * Query enabled isolated margin account limit
339
+ */
340
+ getIsolatedMarginAccountLimit(): Promise<{
341
+ enabledAccount: number;
342
+ maxAccount: number;
343
+ }>;
344
+ /**
345
+ * Get all isolated margin symbols
346
+ */
347
+ getIsolatedMarginAllSymbols(params?: {
348
+ symbol?: string;
349
+ }): Promise<IsolatedMarginSymbol[]>;
350
+ /**
351
+ * Toggle BNB burn on spot trade and margin interest
352
+ */
353
+ toggleBNBBurn(params: ToggleBNBBurnParams): Promise<BNBBurnResponse>;
354
+ /**
355
+ * Get BNB burn status
356
+ */
357
+ getBNBBurn(): Promise<BNBBurnResponse>;
358
+ /**
359
+ * Query margin interest rate history
360
+ */
361
+ getMarginInterestRateHistory(params: QueryMarginInterestRateHistoryParams): Promise<MarginInterestRateHistory[]>;
362
+ /**
363
+ * Query cross margin fee data
364
+ */
365
+ getCrossMarginFeeData(params: QueryCrossMarginFeeDataParams): Promise<CrossMarginFeeData[]>;
366
+ /**
367
+ * Query isolated margin fee data
368
+ */
369
+ getIsolatedMarginFeeData(params: QueryCrossMarginFeeDataParams): Promise<IsolatedMarginFeeData[]>;
370
+ /**
371
+ * Query isolated margin tier data
372
+ */
373
+ getIsolatedMarginTierData(params: QueryIsolatedMarginTierDataParams): Promise<IsolatedMarginTierData[]>;
374
+ getMarginOrderCountUsage(params: GetMarginOrderCountUsageParams): Promise<MarginOrderCountUsageResponse[]>;
375
+ getCrossMarginCollateralRatio(): Promise<{
376
+ collaterals: Collateral[];
377
+ assetNames: string[];
378
+ }[]>;
379
+ getSmallLiabilityExchangeCoins(): Promise<SmallLiabilityExchangeCoin[]>;
380
+ submitSmallLiabilityExchange(params: {
381
+ assetNames: string[];
382
+ }): Promise<{
383
+ success: boolean;
384
+ message: string;
385
+ }>;
386
+ getSmallLiabilityExchangeHistory(params: GetSmallLiabilityExchangeHistoryParams): Promise<{
387
+ total: number;
388
+ rows: SmallLiabilityExchangeHistory[];
389
+ }>;
390
+ getNextHourlyInterestRate(params: GetNextHourlyInterestRateParams): Promise<NextHourlyInterestRate[]>;
391
+ getMarginCapitalFlow(params: GetMarginCapitalFlowParams): Promise<MarginCapitalFlow[]>;
392
+ getMarginDelistSchedule(): Promise<MarginDelistSchedule[]>;
393
+ getMarginAvailableInventory(params: {
394
+ type: string;
395
+ }): Promise<MarginAvailableInventoryResponse>;
396
+ submitManualLiquidation(params: ManualLiquidationParams): Promise<ManualLiquidationResponse[]>;
397
+ getLeverageBracket(): Promise<LiabilityCoinLeverageBracket[]>;
228
398
  /**
229
399
  *
230
400
  * User Data Stream Endpoints
@@ -258,56 +428,253 @@ export declare class MainClient extends BaseRestClient {
258
428
  * Simple earn Endpoints
259
429
  *
260
430
  **/
261
- getFlexibleSavingProducts(params?: SimpleEarnProductListParams): Promise<SimpleEarnFlexibleProductListResponse>;
262
- getSimpleEarnLockedProductList(params?: SimpleEarnProductListParams): Promise<SimpleEarnLockedProductListResponse>;
431
+ getFlexibleSavingProducts(params?: SimpleEarnProductListParams): Promise<{
432
+ rows: SimpleEarnFlexibleProduct[];
433
+ total: number;
434
+ }>;
435
+ getSimpleEarnLockedProductList(params?: SimpleEarnProductListParams): Promise<{
436
+ rows: SimpleEarnLockedProduct[];
437
+ total: number;
438
+ }>;
263
439
  purchaseFlexibleProduct(params: SimpleEarnSubscribeProductParams): Promise<SimpleEarnSubscribeFlexibleProductResponse>;
264
440
  subscribeSimpleEarnLockedProduct(params: SimpleEarnSubscribeProductParams): Promise<SimpleEarnSubscribeLockedProductResponse>;
265
- redeemLockedProduct(params: SimpleEarnRedeemParams): Promise<SimpleEarnRedeemResponse>;
266
- redeemFlexibleProduct(params: SimpleEarnRedeemParams): Promise<SimpleEarnRedeemResponse>;
267
- getFlexibleProductPosition(params?: SimpleEarnFlexibleProductPositionParams): Promise<SimpleEarnFlexibleProductListResponse>;
268
- getLockedProductPosition(params?: SimpleEarnLockedProductPositionParams): Promise<SimpleEarnLockedProductPositionResponse>;
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
+ }>;
269
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;
475
+ }>;
476
+ getLockedRewardsHistory(params: GetLockedRewardsHistoryParams): Promise<{
477
+ rows: GetLockedRewardsHistory[];
478
+ total: number;
479
+ }>;
480
+ setFlexibleAutoSubscribe(params: SetAutoSubscribeParams): Promise<{
481
+ success: boolean;
482
+ }>;
483
+ setLockedAutoSubscribe(params: SetAutoSubscribeParams): Promise<{
484
+ success: boolean;
485
+ }>;
486
+ getFlexiblePersonalLeftQuota(params: {
487
+ productId: string;
488
+ }): Promise<{
489
+ leftPersonalQuota: string;
490
+ }>;
491
+ getLockedPersonalLeftQuota(params: {
492
+ projectId: string;
493
+ }): Promise<{
494
+ leftPersonalQuota: string;
495
+ }>;
496
+ getFlexibleSubscriptionPreview(params: GetFlexibleSubscriptionPreviewParams): Promise<FlexibleSubscriptionPreview>;
497
+ getLockedSubscriptionPreview(params: GetLockedSubscriptionPreviewParams): Promise<LockedSubscriptionPreview[]>;
498
+ getRateHistory(params: GetRateHistoryParams): Promise<{
499
+ rows: GetRateHistory[];
500
+ total: string;
501
+ }>;
502
+ getCollateralRecord(params: GetCollateralRecordParams): Promise<{
503
+ rows: CollateralRecord[];
504
+ total: string;
505
+ }>;
506
+ /**
507
+ *
508
+ * Dual Investment Endpoints
509
+ *
510
+ **/
511
+ getDualInvestmentProducts(params: GetDualInvestmentProductListParams): Promise<{
512
+ total: number;
513
+ list: DualInvestmentProduct[];
514
+ }>;
515
+ subscribeDualInvestmentProduct(params: SubscribeDualInvestmentProductParams): Promise<SubscribeDualInvestmentProductResponse>;
516
+ getDualInvestmentPositions(params: GetDualInvestmentPositionsParams): Promise<{
517
+ total: number;
518
+ list: DualInvestmentPosition[];
519
+ }>;
520
+ getDualInvestmentAccounts(): Promise<CheckDualInvestmentAccountsResponse>;
521
+ updateAutoCompoundStatus(params: ChangeAutoCompoundStatusParams): Promise<ChangeAutoCompoundStatusResponse>;
522
+ /**
523
+ *
524
+ * Auto Invest Enpoints
525
+ *
526
+ **/
527
+ getAutoInvestTargetAssets(params: GetTargetAssetListParams): Promise<GetTargetAssetListResponse>;
528
+ getAutoInvestTargetAssetsROI(params: GetTargetAssetROIParams): Promise<TargetAssetROI[]>;
529
+ getAutoInvestAssets(): Promise<{
530
+ targetAssets: string[];
531
+ sourceAssets: string[];
532
+ }>;
533
+ getAutoInvestSourceAssets(params: GetSourceAssetListParams): Promise<GetSourceAssetListResponse>;
534
+ submitAutoInvestmentPlan(params: CreateInvestmentPlanParams): Promise<CreateInvestmentPlanResponse>;
535
+ updateAutoInvestmentPlan(params: EditInvestmentPlanParams): Promise<EditInvestmentPlanResponse>;
536
+ updateAutoInvestPlanStatus(params: ChangePlanStatusParams): Promise<ChangePlanStatusResponse>;
537
+ getAutoInvestPlans(params: {
538
+ planType: 'SINGLE' | 'PORTFOLIO' | 'INDEX';
539
+ }): Promise<any>;
540
+ getAutoInvestPlan(params: GetPlanDetailsParams): Promise<any>;
541
+ getAutoInvestSubscriptionTransactions(params: GetSubscriptionTransactionHistoryParams): Promise<any>;
542
+ getAutoInvestIndex(params: {
543
+ indexId: number;
544
+ }): Promise<GetIndexDetailsResponse>;
545
+ getAutoInvestUserIndex(params: {
546
+ indexId: number;
547
+ }): Promise<GetIndexLinkedPlanPositionDetailsResponse>;
548
+ submitAutoInvestOneTimeTransaction(params: SubmitOneTimeTransactionParams): Promise<SubmitOneTimeTransactionResponse>;
549
+ getOneTimeTransactionStatus(params: GetOneTimeTransactionStatusParams): Promise<GetOneTimeTransactionStatusResponse>;
550
+ submitAutoInvestRedemption(params: SubmitIndexLinkedPlanRedemptionParams): Promise<{
551
+ redemptionId: number;
552
+ }>;
553
+ getAutoInvestRedemptionHistory(params: GetIndexLinkedPlanRedemptionHistoryParams): Promise<IndexLinkedPlanRedemptionRecord[]>;
554
+ getAutoInvestRebalanceHistory(params: GetIndexLinkedPlanRebalanceHistoryParams): Promise<GetIndexLinkedPlanRebalanceHistoryParams[]>;
270
555
  /**
271
556
  *
272
557
  * Staking Endpoints
273
558
  *
274
559
  **/
560
+ /**
561
+ * @deprecated as of 2024-01-19
562
+ */
275
563
  getStakingProducts(params: StakingBasicParams & {
276
564
  asset?: string;
277
565
  }): Promise<StakingProduct[]>;
566
+ /**
567
+ * @deprecated as of 2024-01-19
568
+ */
278
569
  getStakingProductPosition(params: StakingBasicParams & {
279
570
  productId?: string;
280
571
  asset?: string;
281
572
  }): Promise<StakingProductPosition[]>;
573
+ /**
574
+ * @deprecated as of 2024-01-19
575
+ */
282
576
  getStakingHistory(params: StakingHistoryParams): Promise<StakingHistory[]>;
577
+ /**
578
+ * @deprecated as of 2024-01-19
579
+ */
283
580
  getPersonalLeftQuotaOfStakingProduct(params: {
284
581
  product: StakingProductType;
285
582
  productId: string;
286
583
  }): Promise<StakingPersonalLeftQuota>;
584
+ subscribeEthStakingV1(params: {
585
+ amount: number;
586
+ }): Promise<{
587
+ success: boolean;
588
+ }>;
589
+ subscribeEthStakingV2(params: {
590
+ amount: number;
591
+ }): Promise<SubscribeEthStakingV2Response>;
592
+ redeemEth(params: RedeemEthParams): Promise<RedeemEthResponse>;
593
+ getEthStakingHistory(params: GetEthStakingHistoryParams): Promise<{
594
+ rows: EthStakingHistory[];
595
+ total: number;
596
+ }>;
597
+ getEthRedemptionHistory(params: GetEthRedemptionHistoryParams): Promise<{
598
+ rows: EthRedemptionHistory[];
599
+ total: number;
600
+ }>;
601
+ getBethRewardsHistory(params: GetBethRewardsHistoryParams): Promise<{
602
+ rows: BethRewardsHistory[];
603
+ total: number;
604
+ }>;
605
+ getEthStakingQuota(): Promise<GetEthStakingQuotaResponse>;
606
+ getEthRateHistory(params: GetETHRateHistoryParams): Promise<{
607
+ rows: ETHRateHistory[];
608
+ total: string;
609
+ }>;
610
+ getEthStakingAccount(): Promise<GetEthStakingAccountResponse>;
611
+ getEthStakingAccountV2(): Promise<GetEthStakingAccountV2Response>;
612
+ wrapBeth(params: {
613
+ amount: number;
614
+ }): Promise<WrapBethResponse>;
615
+ getBethWrapHistory(params: GetWrapHistoryParams): Promise<{
616
+ rows: WrapHistory[];
617
+ total: number;
618
+ }>;
619
+ getBethUnwrapHistory(params: GetWrapHistoryParams): Promise<{
620
+ rows: WrapHistory[];
621
+ total: number;
622
+ }>;
623
+ getWbethRewardsHistory(params: GetWrapHistoryParams): Promise<GetWbethRewardsHistoryResponse>;
287
624
  /**
288
625
  *
289
626
  * Savings Endpoints
290
- *
627
+ * @deprecated as of 2023-06-22, now Simple Earn
291
628
  **/
629
+ /**
630
+ * @deprecated as of 2023-06-22, now Simple Earn
631
+ */
292
632
  getLeftDailyPurchaseQuotaFlexibleProduct(params: {
293
633
  productId: string;
294
634
  }): Promise<LeftDailyPurchaseQuotaFlexibleProductResponse>;
635
+ /**
636
+ * @deprecated as of 2023-06-22, now Simple Earn
637
+ */
295
638
  getLeftDailyRedemptionQuotaFlexibleProduct(params: {
296
639
  productId: string;
297
640
  }): Promise<LeftDailyPurchaseQuotaFlexibleProductResponse & {
298
641
  dailyQuota: string;
299
642
  minRedemptionAmount: string;
300
643
  }>;
644
+ /**
645
+ * @deprecated as of 2023-06-22, now Simple Earn
646
+ */
301
647
  purchaseFixedAndActivityProject(params: {
302
648
  projectId: string;
303
649
  lot: number;
304
650
  }): Promise<PurchaseFlexibleProductResponse>;
651
+ /**
652
+ * @deprecated as of 2023-06-22, now Simple Earn
653
+ */
305
654
  getFixedAndActivityProjects(params: FixedAndActivityProjectParams): Promise<any[]>;
655
+ /**
656
+ * @deprecated as of 2023-06-22, now Simple Earn
657
+ */
306
658
  getFixedAndActivityProductPosition(params: FixedAndActivityProjectPositionParams): Promise<any[]>;
659
+ /**
660
+ * @deprecated as of 2023-06-22, now Simple Earn
661
+ */
307
662
  getLendingAccount(): Promise<StakingProduct[]>;
663
+ /**
664
+ * @deprecated as of 2023-06-22, now Simple Earn
665
+ */
308
666
  getPurchaseRecord(params: PurchaseRecordParams): Promise<any[]>;
667
+ /**
668
+ * @deprecated as of 2023-06-22, now Simple Earn
669
+ */
309
670
  getRedemptionRecord(params: PurchaseRecordParams): Promise<any[]>;
671
+ /**
672
+ * @deprecated as of 2023-06-22, now Simple Earn
673
+ */
310
674
  getInterestHistory(params: PurchaseRecordParams): Promise<any[]>;
675
+ /**
676
+ * @deprecated as of 2023-06-22, now Simple Earn
677
+ */
311
678
  changeFixedAndActivityPositionToDailyPosition(params: {
312
679
  projectId: string;
313
680
  lot: number;
@@ -318,6 +685,19 @@ export declare class MainClient extends BaseRestClient {
318
685
  * Mining Endpoints
319
686
  *
320
687
  **/
688
+ getMiningAlgos(): Promise<GetMiningAlgoListResponse[]>;
689
+ getMiningCoins(): Promise<GetMiningCoinListResponse[]>;
690
+ getMinerDetails(params: GetMinerDetailsParams): Promise<GetMinerDetailsResponse[]>;
691
+ getMiners(params: GetMinerListParams): Promise<GetMinerListResponse>;
692
+ getMiningEarnings(params: GetEarningsListParams): Promise<GetEarningsListResponse>;
693
+ getExtraBonuses(params: GetExtraBonusListParams): Promise<GetExtraBonusListResponse>;
694
+ getHashrateResales(params: GetHashrateResaleListParams): Promise<GetHashrateResaleListResponse>;
695
+ getHashrateResale(params: GetHashrateResaleDetailParams): Promise<GetHashrateResaleDetailResponse>;
696
+ submitHashrateResale(params: SubmitHashrateResaleParams): Promise<number>;
697
+ cancelHashrateResaleConfig(params: CancelHashrateResaleConfigParams): Promise<boolean>;
698
+ getMiningStatistics(params: GetStatisticListParams): Promise<GetStatisticListResponse>;
699
+ getMiningAccounts(params: getMiningAccountsListParams): Promise<getMiningAccountsListResponse>;
700
+ getMiningAccountEarnings(params: GetMiningAccountEarningParams): Promise<GetMiningAccountEarningResponse>;
321
701
  /**
322
702
  *
323
703
  * Futures Management Endpoints:
@@ -340,27 +720,340 @@ export declare class MainClient extends BaseRestClient {
340
720
  tranId: number;
341
721
  }>;
342
722
  getFutureAccountTransferHistory(params: GetFutureAccountTransferHistoryParams): Promise<RowsWithTotal<FutureAccountTransfer>>;
723
+ getFuturesTickLevelOrderbookDataLink(params: GetFutureTickLevelOrderbookDataLinkParams): Promise<{
724
+ data: HistoricalDataLink[];
725
+ }>;
726
+ /**
727
+ * @deprecated as of 2023-09-25
728
+ */
343
729
  getCrossCollateralBorrowHistory(params?: CoinStartEndLimit): Promise<any>;
730
+ /**
731
+ * @deprecated as of 2023-09-25
732
+ */
344
733
  getCrossCollateralRepaymentHistory(params?: CoinStartEndLimit): Promise<any>;
734
+ /**
735
+ * @deprecated as of 2023-09-25
736
+ */
345
737
  getCrossCollateralWalletV2(): Promise<any>;
738
+ /**
739
+ * @deprecated as of 2023-09-25
740
+ */
346
741
  getAdjustCrossCollateralLTVHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
742
+ /**
743
+ * @deprecated as of 2023-09-25
744
+ */
347
745
  getCrossCollateralLiquidationHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
746
+ /**
747
+ * @deprecated as of 2023-09-25
748
+ */
348
749
  getCrossCollateralInterestHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
750
+ /**
751
+ *
752
+ * Futures Algo Endpoints
753
+ *
754
+ **/
755
+ submitVpNewOrder(params: SubmitVpNewOrderParams): Promise<SubmitVpNewOrderResponse>;
756
+ submitTwapNewOrder(params: SubmitTwapNewOrderParams): Promise<SubmitTwapNewOrderResponse>;
757
+ cancelAlgoOrder(params: {
758
+ algoId: number;
759
+ }): Promise<CancelAlgoOrderResponse>;
760
+ getAlgoOpenOrders(): Promise<{
761
+ total: number;
762
+ orders: AlgoOrder[];
763
+ }>;
764
+ getAlgoHistoricalOrders(params: GetAlgoHistoricalOrdersParams): Promise<{
765
+ total: number;
766
+ orders: HistoricalAlgoOrder[];
767
+ }>;
768
+ getAlgoSubOrders(params: GetAlgoSubOrdersParams): Promise<GetAlgoSubOrdersResponse>;
769
+ /**
770
+ *
771
+ * Spot Algo Endpoints
772
+ *
773
+ **/
774
+ submitSpotAlgoTwapOrder(params: SubmitSpotTwapNewOrderParams): Promise<SubmitSpotTwapNewOrderResponse>;
775
+ cancelSpotAlgoOrder(params: {
776
+ algoId: number;
777
+ }): Promise<CancelSpotAlgoOrderResponse>;
778
+ getSpotAlgoOpenOrders(): Promise<{
779
+ total: number;
780
+ orders: SpotAlgoOrder[];
781
+ }>;
782
+ getSpotAlgoHistoricalOrders(params: GetSpotAlgoHistoricalOrdersParams): Promise<{
783
+ total: number;
784
+ orders: HistoricalSpotAlgoOrder[];
785
+ }>;
786
+ getSpotAlgoSubOrders(params: GetSpotAlgoSubOrdersParams): Promise<GetSpotAlgoSubOrdersResponse>;
787
+ /**
788
+ *
789
+ * Portfolio Margin Pro
790
+ *
791
+ **/
792
+ getPortfolioMarginProAccountInfo(): Promise<GetPortfolioMarginProAccountInfoResponse>;
793
+ getPortfolioMarginProCollateralRate(): Promise<GetPortfolioMarginProCollateralRateResponse[]>;
794
+ getPortfolioMarginProBankruptcyLoanAmount(): Promise<GetPortfolioMarginProBankruptcyLoanAmountResponse>;
795
+ repayPortfolioMarginProBankruptcyLoan(params: {
796
+ from?: 'SPOT' | 'MARGIN';
797
+ }): Promise<{
798
+ tranId: number;
799
+ }>;
800
+ getPortfolioMarginProInterestHistory(params: GetPortfolioMarginProInterestHistoryParams): Promise<GetPortfolioMarginProInterestHistoryResponse[]>;
801
+ getPortfolioMarginIndexPrice(params?: {
802
+ asset?: string;
803
+ }): Promise<GetPortfolioMarginAssetIndexPriceResponse[]>;
804
+ submitPortfolioMarginProFullTransfer(): Promise<{
805
+ msg: string;
806
+ }>;
807
+ submitPortfolioMarginProSpecificTransfer(params: {
808
+ asset: string;
809
+ }): Promise<{
810
+ msg: string;
811
+ }>;
812
+ bnbTransfer(params: BnbTransferParams): Promise<{
813
+ tranId: number;
814
+ }>;
815
+ updateAutoRepayFuturesStatus(params: {
816
+ autoRepay: string;
817
+ }): Promise<{
818
+ msg: string;
819
+ }>;
820
+ getAutoRepayFuturesStatus(): Promise<{
821
+ autoRepay: boolean;
822
+ }>;
823
+ repayFuturesNegativeBalance(): Promise<{
824
+ msg: string;
825
+ }>;
826
+ getPortfolioMarginAssetLeverage(): Promise<GetPortfolioMarginAssetLeverageResponse[]>;
349
827
  /**
350
828
  *
351
829
  * BLVT Endpoints
352
830
  *
353
831
  **/
832
+ getBlvtInfo(params?: {
833
+ tokenName?: string;
834
+ }): Promise<any[]>;
835
+ subscribeBlvt(params: SubscribeBlvtParams): Promise<SubscribeBlvtResponse>;
836
+ getBlvtSubscriptionRecord(params: GetBlvtSubscriptionRecordParams): Promise<BlvtSubscriptionRecord[]>;
837
+ redeemBlvt(params: RedeemBlvtParams): Promise<RedeemBlvtResponse>;
838
+ getBlvtRedemptionRecord(params: GetBlvtRedemptionRecordParams): Promise<BlvtRedemptionRecord[]>;
839
+ getBlvtUserLimitInfo(params: {
840
+ tokenName?: string;
841
+ }): Promise<BlvtUserLimitInfo[]>;
354
842
  /**
355
843
  *
356
- * BSwap Endpoints
844
+ * Fiat Endpoints
845
+ *
846
+ **/
847
+ getFiatOrderHistory(params: GetFiatOrderHistoryParams): Promise<GetFiatOrderHistoryResponse>;
848
+ getFiatPaymentsHistory(params: GetFiatOrderHistoryParams): Promise<GetFiatPaymentsHistoryResponse>;
849
+ /**
850
+ *
851
+ * C2C Endpoints
852
+ *
853
+ **/
854
+ getC2CTradeHistory(params: GetC2CTradeHistoryParams): Promise<GetC2CTradeHistoryResponse>;
855
+ /**
856
+ *
857
+ * VIP Loans Endpoints
858
+ *
859
+ **/
860
+ getVipLoanOpenOrders(params: GetVipLoanOngoingOrdersParams): Promise<{
861
+ rows: VipOngoingOrder[];
862
+ total: number;
863
+ }>;
864
+ repayVipLoan(params: VipLoanRepayParams): Promise<VipLoanRepayResponse>;
865
+ getVipLoanRepaymentHistory(params: GetVipLoanRepaymentHistoryParams): Promise<{
866
+ rows: VipLoanRepaymentHistory[];
867
+ total: number;
868
+ }>;
869
+ renewVipLoan(params: VipLoanRenewParams): Promise<VipLoanRenewResponse>;
870
+ checkVipCollateralAccount(params: CheckVipCollateralAccountParams): Promise<{
871
+ rows: VipCollateralAccount[];
872
+ total: number;
873
+ }>;
874
+ borrowVipLoan(params: VipLoanBorrowParams): Promise<VipLoanBorrowResponse>;
875
+ getVipLoanableAssets(params: GetLoanableAssetsDataParams): Promise<{
876
+ rows: LoanableAssetData[];
877
+ total: number;
878
+ }>;
879
+ getVipCollateralAssets(params: {
880
+ collateralCoin?: string;
881
+ }): Promise<{
882
+ rows: CollateralAssetData[];
883
+ total: number;
884
+ }>;
885
+ getVipApplicationStatus(params: GetApplicationStatusParams): Promise<{
886
+ rows: ApplicationStatus[];
887
+ total: number;
888
+ }>;
889
+ getVipBorrowInterestRate(params: {
890
+ loanCoin: string;
891
+ }): Promise<BorrowInterestRate[]>;
892
+ /**
893
+ *
894
+ * Crypto Loans Endpoints
895
+ *
896
+ **/
897
+ getCryptoLoansIncomeHistory(params: GetCryptoLoansIncomeHistoryParams): Promise<GetCryptoLoansIncomeHistoryResponse[]>;
898
+ borrowCryptoLoan(params: BorrowCryptoLoanParams): Promise<BorrowCryptoLoanResponse>;
899
+ getCryptoLoanBorrowHistory(params: GetLoanBorrowHistoryParams): Promise<{
900
+ rows: LoanBorrowHistory[];
901
+ total: number;
902
+ }>;
903
+ getCryptoLoanOngoingOrders(params: GetLoanOngoingOrdersParams): Promise<{
904
+ rows: LoanOngoingOrder[];
905
+ total: number;
906
+ }>;
907
+ repayCryptoLoan(params: RepayCryptoLoanParams): Promise<RepayCryptoLoanResponse>;
908
+ getCryptoLoanRepaymentHistory(params: GetLoanRepaymentHistoryParams): Promise<any>;
909
+ adjustCryptoLoanLTV(params: AdjustCryptoLoanLTVParams): Promise<AdjustCryptoLoanLTVResponse>;
910
+ getCryptoLoanLTVAdjustmentHistory(params: GetLoanLTVAdjustmentHistoryParams): Promise<{
911
+ rows: LoanLTVAdjustmentHistory[];
912
+ total: number;
913
+ }>;
914
+ getCryptoLoanLoanableAssets(params: GetLoanableAssetsDataParams): Promise<{
915
+ rows: LoanableAssetData[];
916
+ total: number;
917
+ }>;
918
+ getCryptoLoanCollateralAssetsData(params: GetCollateralAssetDataParams): Promise<{
919
+ rows: CollateralAssetData[];
920
+ total: number;
921
+ }>;
922
+ getCryptoLoanCollateralRepayRate(params: CheckCollateralRepayRateParams): Promise<CheckCollateralRepayRateResponse>;
923
+ customizeCryptoLoanMarginCall(params: CustomizeMarginCallParams): Promise<{
924
+ rows: CustomizeMarginCall[];
925
+ total: number;
926
+ }>;
927
+ borrowCryptoLoanFlexible(params: BorrowFlexibleLoanParams): Promise<BorrowFlexibleLoanResponse>;
928
+ getCryptoLoanFlexibleOngoingOrders(params: GetFlexibleLoanOngoingOrdersParams): Promise<{
929
+ rows: FlexibleLoanOngoingOrder[];
930
+ total: number;
931
+ }>;
932
+ getLoanFlexibleBorrowHistory(params: GetFlexibleCryptoLoanBorrowHistoryParams): Promise<{
933
+ rows: FlexibleCryptoLoanBorrowHistory[];
934
+ total: number;
935
+ }>;
936
+ repayCryptoLoanFlexible(params: RepayCryptoFlexibleLoanParams): Promise<RepayCryptoFlexibleLoanResponse>;
937
+ getLoanFlexibleRepaymentHistory(params: GetLoanRepaymentHistoryParams): Promise<{
938
+ rows: LoanRepaymentHistory[];
939
+ total: number;
940
+ }>;
941
+ adjustCryptoLoanFlexibleLTV(params: AdjustFlexibleCryptoLoanLTVParams): Promise<AdjustFlexibleCryptoLoanLTVResponse>;
942
+ getCryptoLoanFlexibleLTVAdjustmentHistory(params: GetFlexibleLoanLTVAdjustmentHistoryParams): Promise<{
943
+ rows: FlexibleLoanLTVAdjustmentHistory[];
944
+ total: number;
945
+ }>;
946
+ getCryptoLoanFlexibleAssets(params: {
947
+ loanCoin?: string;
948
+ }): Promise<{
949
+ rows: FlexibleLoanAssetData[];
950
+ total: number;
951
+ }>;
952
+ getCryptoLoanFlexibleCollateralAssets(params: {
953
+ collateralCoin?: string;
954
+ }): Promise<{
955
+ rows: FlexibleLoanCollateralAssetData[];
956
+ total: number;
957
+ }>;
958
+ /**
959
+ *
960
+ * Copy trading endpoints
961
+ *
962
+ **/
963
+ getFuturesLeadTraderStatus(): Promise<GetFuturesLeadTraderStatusResponse>;
964
+ getFuturesLeadTradingSymbolWhitelist(): Promise<GetFuturesLeadTradingSymbolWhitelistResponse[]>;
965
+ /**
966
+ *
967
+ * Pay endpoints
968
+ *
969
+ **/
970
+ getPayTransactions(params: GetPayTradeHistoryParams): Promise<any>;
971
+ /**
972
+ *
973
+ * Convert endpoints
974
+ *
975
+ **/
976
+ getConvertPairs(params: GetAllConvertPairsParams): Promise<any>;
977
+ getConvertAssetInfo(): Promise<any>;
978
+ convertQuoteRequest(params: ConvertQuoteRequestParams): Promise<any>;
979
+ acceptQuoteRequest(params: AcceptQuoteRequestParams): Promise<any>;
980
+ getOrderStatus(params: GetOrderStatusParams): Promise<any>;
981
+ submitConvertLimitOrder(params: SubmitConvertLimitOrderParams): Promise<any>;
982
+ cancelConvertLimitOrder(params: {
983
+ orderId: number;
984
+ }): Promise<any>;
985
+ getConvertLimitOpenOrders(): Promise<{
986
+ list: ConvertLimitOpenOrder[];
987
+ }>;
988
+ getConvertTradeHistory(params: GetConvertTradeHistoryParams): Promise<any>;
989
+ /**
990
+ *
991
+ * Rebate Endpoints
357
992
  *
358
993
  **/
994
+ getSpotRebateHistoryRecords(params: GetSpotRebateHistoryRecordsParams): Promise<GetSpotRebateHistoryRecordsResponse>;
995
+ /**
996
+ *
997
+ * NFT Endpoints
998
+ *
999
+ **/
1000
+ getNftTransactionHistory(params: GetNftTransactionHistoryParams): Promise<{
1001
+ total: number;
1002
+ list: NftTransaction[];
1003
+ }>;
1004
+ getNftDepositHistory(params: GetNftDepositHistoryParams): Promise<{
1005
+ total: number;
1006
+ list: NftDeposit[];
1007
+ }>;
1008
+ getNftWithdrawHistory(params: GetNftWithdrawHistoryParams): Promise<{
1009
+ total: number;
1010
+ list: NftWithdraw[];
1011
+ }>;
1012
+ getNftAsset(params: GetNftAssetParams): Promise<{
1013
+ total: number;
1014
+ list: NftAsset[];
1015
+ }>;
1016
+ /**
1017
+ *
1018
+ * Binance GiftCard Endpoints
1019
+ *
1020
+ **/
1021
+ createGiftCard(params: CreateGiftCardParams): Promise<any>;
1022
+ createDualTokenGiftCard(params: CreateDualTokenGiftCardParams): Promise<any>;
1023
+ redeemGiftCard(params: RedeemGiftCardParams): Promise<any>;
1024
+ verifyGiftCard(params: {
1025
+ referenceNo: string;
1026
+ }): Promise<any>;
1027
+ getRsaPublicKey(): Promise<any>;
1028
+ getTokenLimit(params: {
1029
+ baseToken: string;
1030
+ }): Promise<any>;
1031
+ /**
1032
+ *
1033
+ * BSwap Endpoints
1034
+ * @deprecated as of 2024-01-19
1035
+ **/
1036
+ /**
1037
+ * @deprecated as of 2024-01-19
1038
+ **/
359
1039
  getBSwapLiquidity(params?: {
360
1040
  poolId: number;
361
1041
  }): Promise<BSwapLiquidity[]>;
362
- addBSwapLiquidity(params: AddBSwapLiquidityParams): Promise<BasicBSwapResp>;
363
- removeBSwapLiquidity(params: RemoveBSwapLiquidityParams): Promise<BasicBSwapResp>;
1042
+ /**
1043
+ * @deprecated as of 2024-01-19
1044
+ **/
1045
+ addBSwapLiquidity(params: AddBSwapLiquidityParams): Promise<{
1046
+ operationId: number;
1047
+ }>;
1048
+ /**
1049
+ * @deprecated as of 2024-01-19
1050
+ **/
1051
+ removeBSwapLiquidity(params: RemoveBSwapLiquidityParams): Promise<{
1052
+ operationId: number;
1053
+ }>;
1054
+ /**
1055
+ * @deprecated as of 2024-01-19
1056
+ **/
364
1057
  getBSwapOperations(params?: BSwapOperationsParams): Promise<BSwapOperations[]>;
365
1058
  /**
366
1059
  * Validate syntax meets requirements set by binance. Log warning if not.