binance 2.11.4 → 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.
- package/README.md +9 -1
- package/lib/coinm-client.d.ts +23 -2
- package/lib/coinm-client.js +23 -0
- package/lib/coinm-client.js.map +1 -1
- package/lib/main-client.d.ts +714 -20
- package/lib/main-client.js +844 -39
- package/lib/main-client.js.map +1 -1
- package/lib/types/coin.d.ts +20 -0
- package/lib/types/futures.d.ts +69 -0
- package/lib/types/shared.d.ts +1 -1
- package/lib/types/spot.d.ts +2615 -4
- package/lib/usdm-client.d.ts +56 -1
- package/lib/usdm-client.js +67 -0
- package/lib/usdm-client.js.map +1 -1
- package/package.json +1 -1
- package/lib/types/simpleEarn.d.ts +0 -107
- package/lib/types/simpleEarn.js +0 -3
- package/lib/types/simpleEarn.js.map +0 -1
package/lib/main-client.d.ts
CHANGED
|
@@ -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, 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, SubAccountnableOrDisableIPRestriction, 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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
*
|
|
@@ -81,13 +97,49 @@ export declare class MainClient extends BaseRestClient {
|
|
|
81
97
|
getSubAccountSummaryOnFuturesAccountV2(params: SubAccountSummaryOnFuturesAccountV2Params): Promise<SubAccountUSDMSummary | SubAccountCOINMSummary>;
|
|
82
98
|
getSubAccountFuturesPositionRiskV2(params: BasicFuturesSubAccountParams): Promise<SubAccountUSDMPositionRisk | SubAccountCOINMPositionRisk>;
|
|
83
99
|
subAccountEnableLeverageToken(params: SubAccountEnableLeverageToken): Promise<SubAccountEnableLeverageToken>;
|
|
84
|
-
subAccountEnableOrDisableIPRestriction(params: EnableOrDisableIPRestrictionForSubAccountParams): Promise<
|
|
85
|
-
subAccountAddIPList(params:
|
|
86
|
-
|
|
87
|
-
|
|
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>;
|
|
88
105
|
depositAssetsIntoManagedSubAccount(params: SubAccountTransferToSameMasterParams): Promise<MarginTransactionResponse>;
|
|
89
106
|
getManagedSubAccountAssetDetails(email: string): Promise<SubAccountAssetDetails[]>;
|
|
90
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
|
+
}>;
|
|
91
143
|
/**
|
|
92
144
|
* Broker Endpoints
|
|
93
145
|
*/
|
|
@@ -126,11 +178,14 @@ export declare class MainClient extends BaseRestClient {
|
|
|
126
178
|
getHistoricalTrades(params: HistoricalTradesParams): Promise<RawTrade[]>;
|
|
127
179
|
getAggregateTrades(params: SymbolFromPaginatedRequestFromId): Promise<AggregateTrade[]>;
|
|
128
180
|
getKlines(params: KlinesParams): Promise<Kline[]>;
|
|
181
|
+
getUIKlines(params: KlinesParams): Promise<Kline[]>;
|
|
129
182
|
getAvgPrice(params: BasicSymbolParam): Promise<CurrentAvgPrice>;
|
|
130
183
|
get24hrChangeStatististics(params: BasicSymbolParam): Promise<DailyChangeStatistic>;
|
|
131
184
|
get24hrChangeStatististics(params?: SymbolArrayParam): Promise<DailyChangeStatistic[]>;
|
|
185
|
+
getTradingDayTicker(params: TradingDayTickerParams): Promise<TradingDayTickerFull[] | TradingDayTickerMini[]>;
|
|
132
186
|
getSymbolPriceTicker(params?: Partial<BasicSymbolParam>): Promise<SymbolPrice | SymbolPrice[]>;
|
|
133
187
|
getSymbolOrderBookTicker(params?: Partial<BasicSymbolParam>): Promise<SymbolOrderBookTicker | SymbolOrderBookTicker[]>;
|
|
188
|
+
getRollingWindowTicker(params: RollingWindowTickerParams): Promise<TradingDayTickerFull[] | TradingDayTickerMini[]>;
|
|
134
189
|
/**
|
|
135
190
|
*
|
|
136
191
|
* Spot Account/Trade Endpoints
|
|
@@ -144,8 +199,13 @@ export declare class MainClient extends BaseRestClient {
|
|
|
144
199
|
getOrder(params: GetOrderParams): Promise<SpotOrder>;
|
|
145
200
|
getOpenOrders(params?: Partial<BasicSymbolParam>): Promise<SpotOrder[]>;
|
|
146
201
|
getAllOrders(params: GetAllOrdersParams): Promise<SpotOrder[]>;
|
|
202
|
+
/**
|
|
203
|
+
* @deprecated
|
|
204
|
+
*/
|
|
147
205
|
submitNewOCO(params: NewOCOParams): Promise<any>;
|
|
148
206
|
submitNewOrderList<T extends OrderResponseType>(params: NewOrderListParams<T>): Promise<OrderListResponse<T>>;
|
|
207
|
+
submitNewOrderListOTO(params: NewOrderListOTOParams): Promise<NewOrderListOTOResponse>;
|
|
208
|
+
submitNewOrderListOTOCO(params: NewOrderListOTOCOParams): Promise<NewOrderListOTOCOResponse>;
|
|
149
209
|
cancelOCO(params: CancelOCOParams): Promise<CancelOrderListResult>;
|
|
150
210
|
getOCO(params?: GetOCOParams): Promise<OrderList>;
|
|
151
211
|
getAllOCO(params?: BasicFromPaginatedParams): Promise<OrderList[]>;
|
|
@@ -178,6 +238,12 @@ export declare class MainClient extends BaseRestClient {
|
|
|
178
238
|
getAccountTradeList(params: SymbolFromPaginatedRequestFromId & {
|
|
179
239
|
orderId?: number;
|
|
180
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>;
|
|
181
247
|
/**
|
|
182
248
|
*
|
|
183
249
|
* Margin Account/Trade Endpoints
|
|
@@ -194,6 +260,20 @@ export declare class MainClient extends BaseRestClient {
|
|
|
194
260
|
marginAccountNewOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: NewSpotOrderParams<T, RT>): Promise<OrderResponseTypeFor<RT, T>>;
|
|
195
261
|
marginAccountCancelOrder(params: CancelOrderParams): Promise<CancelSpotOrderResult>;
|
|
196
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
|
+
}>;
|
|
197
277
|
/**
|
|
198
278
|
* @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead
|
|
199
279
|
*/
|
|
@@ -215,6 +295,18 @@ export declare class MainClient extends BaseRestClient {
|
|
|
215
295
|
marginAccountNewOCO(params: NewOCOParams): Promise<any>;
|
|
216
296
|
marginAccountCancelOCO(params: CancelOCOParams): Promise<any>;
|
|
217
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>;
|
|
218
310
|
queryMaxBorrow(params: BasicMarginAssetParams): Promise<QueryMaxBorrowResponse>;
|
|
219
311
|
queryMaxTransferOutAmount(params: BasicMarginAssetParams): Promise<QueryMaxTransferOutAmountResponse>;
|
|
220
312
|
/**
|
|
@@ -224,6 +316,85 @@ export declare class MainClient extends BaseRestClient {
|
|
|
224
316
|
getIsolatedMarginAccountInfo(params?: {
|
|
225
317
|
symbols?: string;
|
|
226
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[]>;
|
|
227
398
|
/**
|
|
228
399
|
*
|
|
229
400
|
* User Data Stream Endpoints
|
|
@@ -257,56 +428,253 @@ export declare class MainClient extends BaseRestClient {
|
|
|
257
428
|
* Simple earn Endpoints
|
|
258
429
|
*
|
|
259
430
|
**/
|
|
260
|
-
getFlexibleSavingProducts(params?: SimpleEarnProductListParams): Promise<
|
|
261
|
-
|
|
431
|
+
getFlexibleSavingProducts(params?: SimpleEarnProductListParams): Promise<{
|
|
432
|
+
rows: SimpleEarnFlexibleProduct[];
|
|
433
|
+
total: number;
|
|
434
|
+
}>;
|
|
435
|
+
getSimpleEarnLockedProductList(params?: SimpleEarnProductListParams): Promise<{
|
|
436
|
+
rows: SimpleEarnLockedProduct[];
|
|
437
|
+
total: number;
|
|
438
|
+
}>;
|
|
262
439
|
purchaseFlexibleProduct(params: SimpleEarnSubscribeProductParams): Promise<SimpleEarnSubscribeFlexibleProductResponse>;
|
|
263
440
|
subscribeSimpleEarnLockedProduct(params: SimpleEarnSubscribeProductParams): Promise<SimpleEarnSubscribeLockedProductResponse>;
|
|
264
|
-
redeemLockedProduct(params:
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
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
|
+
}>;
|
|
268
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[]>;
|
|
269
555
|
/**
|
|
270
556
|
*
|
|
271
557
|
* Staking Endpoints
|
|
272
558
|
*
|
|
273
559
|
**/
|
|
560
|
+
/**
|
|
561
|
+
* @deprecated as of 2024-01-19
|
|
562
|
+
*/
|
|
274
563
|
getStakingProducts(params: StakingBasicParams & {
|
|
275
564
|
asset?: string;
|
|
276
565
|
}): Promise<StakingProduct[]>;
|
|
566
|
+
/**
|
|
567
|
+
* @deprecated as of 2024-01-19
|
|
568
|
+
*/
|
|
277
569
|
getStakingProductPosition(params: StakingBasicParams & {
|
|
278
570
|
productId?: string;
|
|
279
571
|
asset?: string;
|
|
280
572
|
}): Promise<StakingProductPosition[]>;
|
|
573
|
+
/**
|
|
574
|
+
* @deprecated as of 2024-01-19
|
|
575
|
+
*/
|
|
281
576
|
getStakingHistory(params: StakingHistoryParams): Promise<StakingHistory[]>;
|
|
577
|
+
/**
|
|
578
|
+
* @deprecated as of 2024-01-19
|
|
579
|
+
*/
|
|
282
580
|
getPersonalLeftQuotaOfStakingProduct(params: {
|
|
283
581
|
product: StakingProductType;
|
|
284
582
|
productId: string;
|
|
285
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>;
|
|
286
624
|
/**
|
|
287
625
|
*
|
|
288
626
|
* Savings Endpoints
|
|
289
|
-
*
|
|
627
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
290
628
|
**/
|
|
629
|
+
/**
|
|
630
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
631
|
+
*/
|
|
291
632
|
getLeftDailyPurchaseQuotaFlexibleProduct(params: {
|
|
292
633
|
productId: string;
|
|
293
634
|
}): Promise<LeftDailyPurchaseQuotaFlexibleProductResponse>;
|
|
635
|
+
/**
|
|
636
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
637
|
+
*/
|
|
294
638
|
getLeftDailyRedemptionQuotaFlexibleProduct(params: {
|
|
295
639
|
productId: string;
|
|
296
640
|
}): Promise<LeftDailyPurchaseQuotaFlexibleProductResponse & {
|
|
297
641
|
dailyQuota: string;
|
|
298
642
|
minRedemptionAmount: string;
|
|
299
643
|
}>;
|
|
644
|
+
/**
|
|
645
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
646
|
+
*/
|
|
300
647
|
purchaseFixedAndActivityProject(params: {
|
|
301
648
|
projectId: string;
|
|
302
649
|
lot: number;
|
|
303
650
|
}): Promise<PurchaseFlexibleProductResponse>;
|
|
651
|
+
/**
|
|
652
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
653
|
+
*/
|
|
304
654
|
getFixedAndActivityProjects(params: FixedAndActivityProjectParams): Promise<any[]>;
|
|
655
|
+
/**
|
|
656
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
657
|
+
*/
|
|
305
658
|
getFixedAndActivityProductPosition(params: FixedAndActivityProjectPositionParams): Promise<any[]>;
|
|
659
|
+
/**
|
|
660
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
661
|
+
*/
|
|
306
662
|
getLendingAccount(): Promise<StakingProduct[]>;
|
|
663
|
+
/**
|
|
664
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
665
|
+
*/
|
|
307
666
|
getPurchaseRecord(params: PurchaseRecordParams): Promise<any[]>;
|
|
667
|
+
/**
|
|
668
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
669
|
+
*/
|
|
308
670
|
getRedemptionRecord(params: PurchaseRecordParams): Promise<any[]>;
|
|
671
|
+
/**
|
|
672
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
673
|
+
*/
|
|
309
674
|
getInterestHistory(params: PurchaseRecordParams): Promise<any[]>;
|
|
675
|
+
/**
|
|
676
|
+
* @deprecated as of 2023-06-22, now Simple Earn
|
|
677
|
+
*/
|
|
310
678
|
changeFixedAndActivityPositionToDailyPosition(params: {
|
|
311
679
|
projectId: string;
|
|
312
680
|
lot: number;
|
|
@@ -317,6 +685,19 @@ export declare class MainClient extends BaseRestClient {
|
|
|
317
685
|
* Mining Endpoints
|
|
318
686
|
*
|
|
319
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>;
|
|
320
701
|
/**
|
|
321
702
|
*
|
|
322
703
|
* Futures Management Endpoints:
|
|
@@ -339,27 +720,340 @@ export declare class MainClient extends BaseRestClient {
|
|
|
339
720
|
tranId: number;
|
|
340
721
|
}>;
|
|
341
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
|
+
*/
|
|
342
729
|
getCrossCollateralBorrowHistory(params?: CoinStartEndLimit): Promise<any>;
|
|
730
|
+
/**
|
|
731
|
+
* @deprecated as of 2023-09-25
|
|
732
|
+
*/
|
|
343
733
|
getCrossCollateralRepaymentHistory(params?: CoinStartEndLimit): Promise<any>;
|
|
734
|
+
/**
|
|
735
|
+
* @deprecated as of 2023-09-25
|
|
736
|
+
*/
|
|
344
737
|
getCrossCollateralWalletV2(): Promise<any>;
|
|
738
|
+
/**
|
|
739
|
+
* @deprecated as of 2023-09-25
|
|
740
|
+
*/
|
|
345
741
|
getAdjustCrossCollateralLTVHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
|
|
742
|
+
/**
|
|
743
|
+
* @deprecated as of 2023-09-25
|
|
744
|
+
*/
|
|
346
745
|
getCrossCollateralLiquidationHistory(params?: GetLoanCoinPaginatedHistoryParams): Promise<any>;
|
|
746
|
+
/**
|
|
747
|
+
* @deprecated as of 2023-09-25
|
|
748
|
+
*/
|
|
347
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[]>;
|
|
348
827
|
/**
|
|
349
828
|
*
|
|
350
829
|
* BLVT Endpoints
|
|
351
830
|
*
|
|
352
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[]>;
|
|
353
842
|
/**
|
|
354
843
|
*
|
|
355
|
-
*
|
|
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
|
|
356
992
|
*
|
|
357
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
|
+
**/
|
|
358
1039
|
getBSwapLiquidity(params?: {
|
|
359
1040
|
poolId: number;
|
|
360
1041
|
}): Promise<BSwapLiquidity[]>;
|
|
361
|
-
|
|
362
|
-
|
|
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
|
+
**/
|
|
363
1057
|
getBSwapOperations(params?: BSwapOperationsParams): Promise<BSwapOperations[]>;
|
|
364
1058
|
/**
|
|
365
1059
|
* Validate syntax meets requirements set by binance. Log warning if not.
|