feat(): updated types to be more readable
This commit is contained in:
@@ -1,17 +1,21 @@
|
|||||||
import {
|
import {
|
||||||
AnnouncementV2,
|
AnnouncementV2,
|
||||||
APIResponse,
|
APIResponse,
|
||||||
BGBConvertCoinsV2,
|
BGBConvertCoinV2,
|
||||||
BGBConvertHistoryV2,
|
BGBConvertHistoryV2,
|
||||||
BorrowLoanRequestV2,
|
BorrowLoanRequestV2,
|
||||||
BotAssetsV2,
|
BotAssetV2,
|
||||||
|
BrokerSubaccountFutureAssetV2,
|
||||||
|
BrokerSubaccountSpotAssetV2,
|
||||||
|
BrokerSubaccountV2,
|
||||||
|
BrokerSubaccountWithdrawalV2,
|
||||||
CancelAndSubmitSpotOrderResponseV2,
|
CancelAndSubmitSpotOrderResponseV2,
|
||||||
CloseFuturesFollowerPositionsRequestV2,
|
CloseFuturesFollowerPositionsRequestV2,
|
||||||
ConvertBGBResponseV2,
|
ConvertBGBResponseV2,
|
||||||
ConvertCurrenciesV2,
|
ConvertCurrencyV2,
|
||||||
ConvertHistoryV2,
|
|
||||||
ConvertQuotedPriceV2,
|
ConvertQuotedPriceV2,
|
||||||
ConvertQuoteRequestV2,
|
ConvertQuoteRequestV2,
|
||||||
|
ConvertRecordV2,
|
||||||
ConvertRequestV2,
|
ConvertRequestV2,
|
||||||
ConvertTradeResponseV2,
|
ConvertTradeResponseV2,
|
||||||
CopyTradingProductTypeV2,
|
CopyTradingProductTypeV2,
|
||||||
@@ -32,7 +36,7 @@ import {
|
|||||||
CTFuturesFollowerHistoryOrdersV2,
|
CTFuturesFollowerHistoryOrdersV2,
|
||||||
CTFuturesFollowerMyTradersV2,
|
CTFuturesFollowerMyTradersV2,
|
||||||
CTFuturesFollowerSettingsV2,
|
CTFuturesFollowerSettingsV2,
|
||||||
CTFuturesTraderCurrentOrderV2,
|
CTFuturesTraderCurrentOrdersV2,
|
||||||
CTFuturesTraderHistoryOrderV2,
|
CTFuturesTraderHistoryOrderV2,
|
||||||
CTFuturesTraderHistoryProfitSummaryV2,
|
CTFuturesTraderHistoryProfitSummaryV2,
|
||||||
CTFuturesTraderMyFollowersV2,
|
CTFuturesTraderMyFollowersV2,
|
||||||
@@ -68,10 +72,10 @@ import {
|
|||||||
EarnSharkfinProductsV2,
|
EarnSharkfinProductsV2,
|
||||||
EarnSharkfinRecordsV2,
|
EarnSharkfinRecordsV2,
|
||||||
EarnSharkfinSubscriptionDetailV2,
|
EarnSharkfinSubscriptionDetailV2,
|
||||||
FundingAssetsV2,
|
FundingAssetV2,
|
||||||
FuturesAccountBillRequestV2,
|
FuturesAccountBillRequestV2,
|
||||||
FuturesAccountBillV2,
|
FuturesAccountBillV2,
|
||||||
FuturesAccountListV2,
|
FuturesAccountsV2,
|
||||||
FuturesAccountV2,
|
FuturesAccountV2,
|
||||||
FuturesActiveBuySellVolumeV2,
|
FuturesActiveBuySellVolumeV2,
|
||||||
FuturesActiveLongShortAccountV2,
|
FuturesActiveLongShortAccountV2,
|
||||||
@@ -88,7 +92,7 @@ import {
|
|||||||
FuturesCandlestickV2,
|
FuturesCandlestickV2,
|
||||||
FuturesClosePositionResponseV2,
|
FuturesClosePositionResponseV2,
|
||||||
FuturesContractConfigV2,
|
FuturesContractConfigV2,
|
||||||
FuturesDiscountRateV2,
|
FuturesDiscountRatesV2,
|
||||||
FuturesFillV2,
|
FuturesFillV2,
|
||||||
FuturesFlashClosePositionsRequestV2,
|
FuturesFlashClosePositionsRequestV2,
|
||||||
FuturesFundingTimeV2,
|
FuturesFundingTimeV2,
|
||||||
@@ -101,14 +105,14 @@ import {
|
|||||||
FuturesGetPlanOrdersRequestV2,
|
FuturesGetPlanOrdersRequestV2,
|
||||||
FuturesHistoricalFundingRateV2,
|
FuturesHistoricalFundingRateV2,
|
||||||
FuturesHistoricalPositionsRequestV2,
|
FuturesHistoricalPositionsRequestV2,
|
||||||
FuturesHistoricalPositionV2,
|
|
||||||
FuturesHistoricTradesRequestV2,
|
FuturesHistoricTradesRequestV2,
|
||||||
FuturesHistoryOrdersV2,
|
FuturesHistoryInterestRateV2,
|
||||||
|
FuturesHistoryOrderV2,
|
||||||
FuturesHistoryPlanOrderV2,
|
FuturesHistoryPlanOrderV2,
|
||||||
|
FuturesHistoryPositionV2,
|
||||||
FuturesInterestExchangeRateV2,
|
FuturesInterestExchangeRateV2,
|
||||||
FuturesInterestHistoryRequestV2,
|
FuturesInterestHistoryRequestV2,
|
||||||
FuturesInterestHistoryV2,
|
FuturesInterestHistoryV2,
|
||||||
FuturesInterestRateHistoryV2,
|
|
||||||
FuturesLongShortRatioV2,
|
FuturesLongShortRatioV2,
|
||||||
FuturesMergeDepthRequestV2,
|
FuturesMergeDepthRequestV2,
|
||||||
FuturesMergeDepthV2,
|
FuturesMergeDepthV2,
|
||||||
@@ -117,9 +121,9 @@ import {
|
|||||||
FuturesModifyTPSLOrderRequestV2,
|
FuturesModifyTPSLOrderRequestV2,
|
||||||
FuturesOpenCountRequestV2,
|
FuturesOpenCountRequestV2,
|
||||||
FuturesOpenInterestV2,
|
FuturesOpenInterestV2,
|
||||||
FuturesOpenOrdersV2,
|
FuturesOpenOrderV2,
|
||||||
FuturesOrderDetailV2,
|
FuturesOrderDetailV2,
|
||||||
FuturesOrderFillsV2,
|
FuturesOrderFillV2,
|
||||||
FuturesPendingPlanOrderV2,
|
FuturesPendingPlanOrderV2,
|
||||||
FuturesPlaceOrderRequestV2,
|
FuturesPlaceOrderRequestV2,
|
||||||
FuturesPlanOrderRequestV2,
|
FuturesPlanOrderRequestV2,
|
||||||
@@ -133,7 +137,7 @@ import {
|
|||||||
FuturesSetMarginModeRequestV2,
|
FuturesSetMarginModeRequestV2,
|
||||||
FuturesSetPositionMarginRequestV2,
|
FuturesSetPositionMarginRequestV2,
|
||||||
FuturesSingleAccountRequestV2,
|
FuturesSingleAccountRequestV2,
|
||||||
FuturesSubAccountAssetsV2,
|
FuturesSubAccountAssetV2,
|
||||||
FuturesSymbolPriceV2,
|
FuturesSymbolPriceV2,
|
||||||
FuturesTickerV2,
|
FuturesTickerV2,
|
||||||
FuturesTPSLOrderRequestV2,
|
FuturesTPSLOrderRequestV2,
|
||||||
@@ -204,18 +208,18 @@ import {
|
|||||||
MarginAccountAssetV2,
|
MarginAccountAssetV2,
|
||||||
MarginBatchOrdersRequestV2,
|
MarginBatchOrdersRequestV2,
|
||||||
MarginBatchOrdersResponseV2,
|
MarginBatchOrdersResponseV2,
|
||||||
MarginBorrowHistoryV2,
|
MarginBorrowHistoryItemV2,
|
||||||
MarginCurrencyV2,
|
MarginCurrencyV2,
|
||||||
MarginCurrentOrdersV2,
|
MarginCurrentOrderV2,
|
||||||
MarginFinancialHistoryV2,
|
MarginFinancialHistoryItemV2,
|
||||||
MarginHistoryOrdersV2,
|
MarginHistoryOrderV2,
|
||||||
MarginInterestHistoryV2,
|
MarginInterestHistoryItemV2,
|
||||||
MarginLiquidationHistoryV2,
|
MarginLiquidationHistoryItemV2,
|
||||||
MarginLiquidationOrdersV2,
|
MarginLiquidationOrderV2,
|
||||||
MarginLoanGrowthRateV2,
|
MarginLoanGrowthRateV2,
|
||||||
MarginOrderFillsV2,
|
MarginOrderFillV2,
|
||||||
MarginPlaceOrderRequestV2,
|
MarginPlaceOrderRequestV2,
|
||||||
MarginRepaymentHistoryV2,
|
MarginRepaymentHistoryItemV2,
|
||||||
MarginTransactionRecordV2,
|
MarginTransactionRecordV2,
|
||||||
MarginType,
|
MarginType,
|
||||||
ModifyFuturesTraderOrderTPSLRequestV2,
|
ModifyFuturesTraderOrderTPSLRequestV2,
|
||||||
@@ -227,10 +231,11 @@ import {
|
|||||||
ModifyVirtualSubAccountApiKeyV2,
|
ModifyVirtualSubAccountApiKeyV2,
|
||||||
ModifyVirtualSubApiKeyRequestV2,
|
ModifyVirtualSubApiKeyRequestV2,
|
||||||
ModifyVirtualSubRequestV2,
|
ModifyVirtualSubRequestV2,
|
||||||
P2PMerchantAdvertisementV2,
|
P2PMerchantAdvertismentV2,
|
||||||
P2PMerchantInfoV2,
|
P2PMerchantInfoV2,
|
||||||
P2PMerchantListV2,
|
P2PMerchantOrdersV2,
|
||||||
P2PMerchantOrderV2,
|
P2PMerchantOrderV2,
|
||||||
|
P2PMerchantV2,
|
||||||
RedeemSavingsRequestV2,
|
RedeemSavingsRequestV2,
|
||||||
RepayLoanRequestV2,
|
RepayLoanRequestV2,
|
||||||
SetLeverageResponseV2,
|
SetLeverageResponseV2,
|
||||||
@@ -255,6 +260,7 @@ import {
|
|||||||
SpotFundFlowV2,
|
SpotFundFlowV2,
|
||||||
SpotHistoricCandlesRequestV2,
|
SpotHistoricCandlesRequestV2,
|
||||||
SpotHistoricTradesRequestV2,
|
SpotHistoricTradesRequestV2,
|
||||||
|
SpotHistoryPlanOrderV2,
|
||||||
SpotMainSubTransferRecordRequestV2,
|
SpotMainSubTransferRecordRequestV2,
|
||||||
SpotMainSubTransferRecordV2,
|
SpotMainSubTransferRecordV2,
|
||||||
SpotMergeDepthV2,
|
SpotMergeDepthV2,
|
||||||
@@ -278,21 +284,17 @@ import {
|
|||||||
SpotWhaleNetFlowV2,
|
SpotWhaleNetFlowV2,
|
||||||
SpotWithdrawalRecordV2,
|
SpotWithdrawalRecordV2,
|
||||||
SpotWithdrawalRequestV2,
|
SpotWithdrawalRequestV2,
|
||||||
SubAccountApiKeyListV2,
|
SubAccountApiKeyItemV2,
|
||||||
SubaccountApiKeyV2,
|
SubaccountApiKeyV2,
|
||||||
SubaccountDepositV2,
|
SubaccountDepositV2,
|
||||||
SubaccountEmailV2,
|
SubaccountEmailV2,
|
||||||
SubaccountFutureAssetsV2,
|
|
||||||
SubaccountsListV2,
|
|
||||||
SubaccountSpotAssetsV2,
|
|
||||||
SubaccountWithdrawalV2,
|
|
||||||
SubDepositRecordsRequestV2,
|
SubDepositRecordsRequestV2,
|
||||||
SubmitSpotBatchOrdersResponseV2,
|
SubmitSpotBatchOrdersResponseV2,
|
||||||
SubWithdrawalRecordsRequestV2,
|
SubWithdrawalRecordsRequestV2,
|
||||||
SubWithdrawalRequestV2,
|
SubWithdrawalRequestV2,
|
||||||
UpdateFuturesFollowerSettingsRequestV2,
|
UpdateFuturesFollowerSettingsRequestV2,
|
||||||
UpdateFuturesFollowerTPSLRequestV2,
|
UpdateFuturesFollowerTPSLRequestV2,
|
||||||
VirtualSubAccountListV2,
|
VirtualSubAccountV2,
|
||||||
} from './types';
|
} from './types';
|
||||||
import { assertMarginType, REST_CLIENT_TYPE_ENUM } from './util';
|
import { assertMarginType, REST_CLIENT_TYPE_ENUM } from './util';
|
||||||
import BaseRestClient from './util/BaseRestClient';
|
import BaseRestClient from './util/BaseRestClient';
|
||||||
@@ -448,7 +450,7 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
|
|
||||||
getP2PTransactionRecords(
|
getP2PTransactionRecords(
|
||||||
params: GetP2PTransactionsRequestV2,
|
params: GetP2PTransactionsRequestV2,
|
||||||
): Promise<APIResponse<P2PMerchantOrderV2[]>> {
|
): Promise<APIResponse<P2PMerchantOrdersV2[]>> {
|
||||||
return this.getPrivate('/api/v2/tax/p2p-record', params);
|
return this.getPrivate('/api/v2/tax/p2p-record', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -458,9 +460,12 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
getP2PMerchantList(
|
getP2PMerchantList(params?: GetP2PMerchantsRequestV2): Promise<
|
||||||
params?: GetP2PMerchantsRequestV2,
|
APIResponse<{
|
||||||
): Promise<APIResponse<P2PMerchantListV2>> {
|
merchantList: P2PMerchantV2[];
|
||||||
|
minMerchantId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/p2p/merchantList', params);
|
return this.getPrivate('/api/v2/p2p/merchantList', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -468,15 +473,23 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
return this.getPrivate('/api/v2/p2p/merchantInfo');
|
return this.getPrivate('/api/v2/p2p/merchantInfo');
|
||||||
}
|
}
|
||||||
|
|
||||||
getP2PMerchantOrders(
|
getP2PMerchantOrders(params: GetMerchantP2POrdersRequestV2): Promise<
|
||||||
params: GetMerchantP2POrdersRequestV2,
|
APIResponse<{
|
||||||
): Promise<APIResponse<P2PMerchantOrderV2>> {
|
orderList: P2PMerchantOrderV2[];
|
||||||
|
minOrderId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/p2p/orderList', params);
|
return this.getPrivate('/api/v2/p2p/orderList', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getP2PMerchantAdvertisementList(
|
getP2PMerchantAdvertisementList(
|
||||||
params: GetMerchantAdvertisementsRequestV2,
|
params: GetMerchantAdvertisementsRequestV2,
|
||||||
): Promise<APIResponse<P2PMerchantAdvertisementV2>> {
|
): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
advList: P2PMerchantAdvertismentV2[];
|
||||||
|
minAdvId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/p2p/advList', params);
|
return this.getPrivate('/api/v2/p2p/advList', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -603,7 +616,12 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
limit?: string;
|
limit?: string;
|
||||||
idLessThan?: string;
|
idLessThan?: string;
|
||||||
status?: 'normal' | 'freeze';
|
status?: 'normal' | 'freeze';
|
||||||
}): Promise<APIResponse<VirtualSubAccountListV2>> {
|
}): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
endId: string;
|
||||||
|
subAccountList: VirtualSubAccountV2[];
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/user/virtual-subaccount-list', params);
|
return this.getPrivate('/api/v2/user/virtual-subaccount-list', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -627,7 +645,7 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
|
|
||||||
getVirtualSubaccountAPIKeys(params: {
|
getVirtualSubaccountAPIKeys(params: {
|
||||||
subAccountUid: string;
|
subAccountUid: string;
|
||||||
}): Promise<APIResponse<SubAccountApiKeyListV2[]>> {
|
}): Promise<APIResponse<SubAccountApiKeyItemV2[]>> {
|
||||||
return this.getPrivate(
|
return this.getPrivate(
|
||||||
'/api/v2/user/virtual-subaccount-apikey-list',
|
'/api/v2/user/virtual-subaccount-apikey-list',
|
||||||
params,
|
params,
|
||||||
@@ -641,13 +659,13 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
*/
|
*/
|
||||||
getFundingAssets(params?: {
|
getFundingAssets(params?: {
|
||||||
coin?: string;
|
coin?: string;
|
||||||
}): Promise<APIResponse<FundingAssetsV2[]>> {
|
}): Promise<APIResponse<FundingAssetV2[]>> {
|
||||||
return this.getPrivate('/api/v2/account/funding-assets', params);
|
return this.getPrivate('/api/v2/account/funding-assets', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getBotAccount(params?: {
|
getBotAccount(params?: {
|
||||||
accountType?: string;
|
accountType?: string;
|
||||||
}): Promise<APIResponse<BotAssetsV2[]>> {
|
}): Promise<APIResponse<BotAssetV2[]>> {
|
||||||
return this.getPrivate('/api/v2/account/bot-assets', params);
|
return this.getPrivate('/api/v2/account/bot-assets', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -669,7 +687,7 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
getConvertCoins(): Promise<APIResponse<ConvertCurrenciesV2[]>> {
|
getConvertCoins(): Promise<APIResponse<ConvertCurrencyV2[]>> {
|
||||||
return this.getPrivate('/api/v2/convert/currencies');
|
return this.getPrivate('/api/v2/convert/currencies');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -685,9 +703,12 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
return this.postPrivate('/api/v2/convert/trade', params);
|
return this.postPrivate('/api/v2/convert/trade', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getConvertHistory(
|
getConvertHistory(params: GetConvertHistoryRequestV2): Promise<
|
||||||
params: GetConvertHistoryRequestV2,
|
APIResponse<{
|
||||||
): Promise<APIResponse<ConvertHistoryV2>> {
|
dataList: ConvertRecordV2[];
|
||||||
|
endId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/convert/convert-record', params);
|
return this.getPrivate('/api/v2/convert/convert-record', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -697,7 +718,11 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
getConvertBGBCoins(): Promise<APIResponse<BGBConvertCoinsV2>> {
|
getConvertBGBCoins(): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
coinList: BGBConvertCoinV2[];
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/convert/bgb-convert-coin-list');
|
return this.getPrivate('/api/v2/convert/bgb-convert-coin-list');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -908,9 +933,13 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
return this.postPrivate('/api/v2/spot/trade/cancel-plan-order', params);
|
return this.postPrivate('/api/v2/spot/trade/cancel-plan-order', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getSpotCurrentPlanOrders(
|
getSpotCurrentPlanOrders(params: GetSpotCurrentPlanOrdersRequestV2): Promise<
|
||||||
params: GetSpotCurrentPlanOrdersRequestV2,
|
APIResponse<{
|
||||||
): Promise<APIResponse<SpotCurrentPlanOrderV2>> {
|
nextFlag: boolean;
|
||||||
|
idLessThan: string;
|
||||||
|
orderList: SpotCurrentPlanOrderV2[];
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/spot/trade/current-plan-order', params);
|
return this.getPrivate('/api/v2/spot/trade/current-plan-order', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -920,9 +949,13 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
return this.getPrivate('/api/v2/spot/trade/plan-sub-order', params);
|
return this.getPrivate('/api/v2/spot/trade/plan-sub-order', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getSpotHistoricPlanOrders(
|
getSpotHistoricPlanOrders(params: GetSpotHistoryPlanOrdersRequestV2): Promise<
|
||||||
params: GetSpotHistoryPlanOrdersRequestV2,
|
APIResponse<{
|
||||||
): Promise<APIResponse<SpotCurrentPlanOrderV2>> {
|
nextFlag: boolean;
|
||||||
|
idLessThan: string;
|
||||||
|
orderList: SpotHistoryPlanOrderV2[];
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/spot/trade/history-plan-order', params);
|
return this.getPrivate('/api/v2/spot/trade/history-plan-order', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1100,19 +1133,27 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
return this.get('/api/v2/mix/market/vip-fee-rate');
|
return this.get('/api/v2/mix/market/vip-fee-rate');
|
||||||
}
|
}
|
||||||
|
|
||||||
getFuturesInterestRateHistory(params: {
|
getFuturesInterestRateHistory(params: { coin: string }): Promise<
|
||||||
coin: string;
|
APIResponse<{
|
||||||
}): Promise<APIResponse<FuturesInterestRateHistoryV2>> {
|
coin: string;
|
||||||
|
historyInterestRateList: FuturesHistoryInterestRateV2[];
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.get('/api/v2/mix/market/union-interest-rate-history', params);
|
return this.get('/api/v2/mix/market/union-interest-rate-history', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFuturesInterestExchangeRate(): Promise<
|
getFuturesInterestExchangeRate(): Promise<
|
||||||
APIResponse<FuturesInterestExchangeRateV2[]>
|
APIResponse<
|
||||||
|
{
|
||||||
|
coin: string;
|
||||||
|
exchangeRateList: FuturesInterestExchangeRateV2[];
|
||||||
|
}[]
|
||||||
|
>
|
||||||
> {
|
> {
|
||||||
return this.get('/api/v2/mix/market/exchange-rate');
|
return this.get('/api/v2/mix/market/exchange-rate');
|
||||||
}
|
}
|
||||||
|
|
||||||
getFuturesDiscountRate(): Promise<APIResponse<FuturesDiscountRateV2[]>> {
|
getFuturesDiscountRate(): Promise<APIResponse<FuturesDiscountRatesV2[]>> {
|
||||||
return this.get('/api/v2/mix/market/discount-rate');
|
return this.get('/api/v2/mix/market/discount-rate');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1174,7 +1215,12 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
getFuturesOpenInterest(params: {
|
getFuturesOpenInterest(params: {
|
||||||
symbol: string;
|
symbol: string;
|
||||||
productType: FuturesProductTypeV2;
|
productType: FuturesProductTypeV2;
|
||||||
}): Promise<APIResponse<FuturesOpenInterestV2>> {
|
}): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
openInterestList: FuturesOpenInterestV2[];
|
||||||
|
ts: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.get('/api/v2/mix/market/open-interest', params);
|
return this.get('/api/v2/mix/market/open-interest', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1236,13 +1282,20 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
|
|
||||||
getFuturesAccountAssets(params: {
|
getFuturesAccountAssets(params: {
|
||||||
productType: FuturesProductTypeV2;
|
productType: FuturesProductTypeV2;
|
||||||
}): Promise<APIResponse<FuturesAccountListV2[]>> {
|
}): Promise<APIResponse<FuturesAccountsV2[]>> {
|
||||||
return this.getPrivate('/api/v2/mix/account/accounts', params);
|
return this.getPrivate('/api/v2/mix/account/accounts', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFuturesSubAccountAssets(params: {
|
getFuturesSubAccountAssets(params: {
|
||||||
productType: FuturesProductTypeV2;
|
productType: FuturesProductTypeV2;
|
||||||
}): Promise<APIResponse<FuturesSubAccountAssetsV2[]>> {
|
}): Promise<
|
||||||
|
APIResponse<
|
||||||
|
{
|
||||||
|
userId: number;
|
||||||
|
assetList: FuturesSubAccountAssetV2[];
|
||||||
|
}[]
|
||||||
|
>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/mix/account/sub-account-assets', params);
|
return this.getPrivate('/api/v2/mix/account/sub-account-assets', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1302,9 +1355,12 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
return this.postPrivate('/api/v2/mix/account/set-position-mode', params);
|
return this.postPrivate('/api/v2/mix/account/set-position-mode', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFuturesAccountBills(
|
getFuturesAccountBills(params: FuturesAccountBillRequestV2): Promise<
|
||||||
params: FuturesAccountBillRequestV2,
|
APIResponse<{
|
||||||
): Promise<APIResponse<FuturesAccountBillV2>> {
|
bills: FuturesAccountBillV2[];
|
||||||
|
endId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/mix/account/bill', params);
|
return this.getPrivate('/api/v2/mix/account/bill', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1338,7 +1394,12 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
|
|
||||||
getFuturesHistoricPositions(
|
getFuturesHistoricPositions(
|
||||||
params?: FuturesHistoricalPositionsRequestV2,
|
params?: FuturesHistoricalPositionsRequestV2,
|
||||||
): Promise<APIResponse<FuturesHistoricalPositionV2>> {
|
): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
list: FuturesHistoryPositionV2[];
|
||||||
|
endId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/mix/position/history-position', params);
|
return this.getPrivate('/api/v2/mix/position/history-position', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1408,27 +1469,41 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
return this.getPrivate('/api/v2/mix/order/detail', params);
|
return this.getPrivate('/api/v2/mix/order/detail', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFuturesFills(
|
getFuturesFills(params: FuturesGetOrderFillsRequestV2): Promise<
|
||||||
params: FuturesGetOrderFillsRequestV2,
|
APIResponse<{
|
||||||
): Promise<APIResponse<FuturesOrderFillsV2>> {
|
fillList: FuturesOrderFillV2[];
|
||||||
|
endId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/mix/order/fills', params);
|
return this.getPrivate('/api/v2/mix/order/fills', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFuturesHistoricOrderFills(
|
getFuturesHistoricOrderFills(
|
||||||
params: FuturesGetHistoricalFillsRequestV2,
|
params: FuturesGetHistoricalFillsRequestV2,
|
||||||
): Promise<APIResponse<FuturesOrderFillsV2>> {
|
): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
fillList: FuturesOrderFillV2[];
|
||||||
|
endId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/mix/order/fill-history', params);
|
return this.getPrivate('/api/v2/mix/order/fill-history', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFuturesOpenOrders(
|
getFuturesOpenOrders(params: FuturesGetOpenOrdersRequestV2): Promise<
|
||||||
params: FuturesGetOpenOrdersRequestV2,
|
APIResponse<{
|
||||||
): Promise<APIResponse<FuturesOpenOrdersV2>> {
|
entrustedList: FuturesOpenOrderV2[];
|
||||||
|
endId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/mix/order/orders-pending', params);
|
return this.getPrivate('/api/v2/mix/order/orders-pending', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFuturesHistoricOrders(
|
getFuturesHistoricOrders(params: FuturesGetHistoryOrdersRequestV2): Promise<
|
||||||
params: FuturesGetHistoryOrdersRequestV2,
|
APIResponse<{
|
||||||
): Promise<APIResponse<FuturesHistoryOrdersV2>> {
|
entrustedList: FuturesHistoryOrderV2[];
|
||||||
|
endId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/mix/order/orders-history', params);
|
return this.getPrivate('/api/v2/mix/order/orders-history', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1488,9 +1563,12 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
return this.postPrivate('/api/v2/mix/order/modify-plan-order', params);
|
return this.postPrivate('/api/v2/mix/order/modify-plan-order', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFuturesPlanOrders(
|
getFuturesPlanOrders(params: FuturesGetPlanOrdersRequestV2): Promise<
|
||||||
params: FuturesGetPlanOrdersRequestV2,
|
APIResponse<{
|
||||||
): Promise<APIResponse<FuturesPendingPlanOrderV2>> {
|
entrustedList: FuturesPendingPlanOrderV2[];
|
||||||
|
endId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/mix/order/orders-plan-pending', params);
|
return this.getPrivate('/api/v2/mix/order/orders-plan-pending', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1502,7 +1580,12 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
|
|
||||||
getFuturesHistoricPlanOrders(
|
getFuturesHistoricPlanOrders(
|
||||||
params: FuturesGetHistoryPlanOrdersRequestV2,
|
params: FuturesGetHistoryPlanOrdersRequestV2,
|
||||||
): Promise<APIResponse<FuturesHistoryPlanOrderV2>> {
|
): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
entrustedList: FuturesHistoryPlanOrderV2[];
|
||||||
|
endId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/mix/order/orders-plan-history', params);
|
return this.getPrivate('/api/v2/mix/order/orders-plan-history', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1547,9 +1630,13 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
return this.postPrivate('/api/v2/broker/account/create-subaccount', params);
|
return this.postPrivate('/api/v2/broker/account/create-subaccount', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getSubaccounts(
|
getSubaccounts(params?: GetSubAccountsRequestV2): Promise<
|
||||||
params?: GetSubAccountsRequestV2,
|
APIResponse<{
|
||||||
): Promise<APIResponse<SubaccountsListV2>> {
|
hasNextPage: boolean;
|
||||||
|
idLessThan: number;
|
||||||
|
subList: BrokerSubaccountV2[];
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate('/api/v2/broker/account/subaccount-list', params);
|
return this.getPrivate('/api/v2/broker/account/subaccount-list', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1569,7 +1656,11 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
subUid: string;
|
subUid: string;
|
||||||
coin?: string;
|
coin?: string;
|
||||||
assetType?: 'hold_only' | 'all';
|
assetType?: 'hold_only' | 'all';
|
||||||
}): Promise<APIResponse<SubaccountSpotAssetsV2>> {
|
}): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
assetsList: BrokerSubaccountSpotAssetV2[];
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate(
|
return this.getPrivate(
|
||||||
'/api/v2/broker/account/subaccount-spot-assets',
|
'/api/v2/broker/account/subaccount-spot-assets',
|
||||||
params,
|
params,
|
||||||
@@ -1579,7 +1670,11 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
getSubaccountFuturesAssets(params: {
|
getSubaccountFuturesAssets(params: {
|
||||||
subUid: string;
|
subUid: string;
|
||||||
productType: FuturesProductTypeV2;
|
productType: FuturesProductTypeV2;
|
||||||
}): Promise<APIResponse<SubaccountFutureAssetsV2>> {
|
}): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
assetsList: BrokerSubaccountFutureAssetV2[];
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.getPrivate(
|
return this.getPrivate(
|
||||||
'/api/v2/broker/account/subaccount-future-assets',
|
'/api/v2/broker/account/subaccount-future-assets',
|
||||||
params,
|
params,
|
||||||
@@ -1626,9 +1721,12 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
return this.postPrivate('/api/v2/broker/subaccount-deposit', params);
|
return this.postPrivate('/api/v2/broker/subaccount-deposit', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
subaccountWithdrawalRecords(
|
subaccountWithdrawalRecords(params: SubWithdrawalRecordsRequestV2): Promise<
|
||||||
params: SubWithdrawalRecordsRequestV2,
|
APIResponse<{
|
||||||
): Promise<APIResponse<SubaccountWithdrawalV2>> {
|
resultList: BrokerSubaccountWithdrawalV2[];
|
||||||
|
endId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
return this.postPrivate('/api/v2/broker/subaccount-withdrawal', params);
|
return this.postPrivate('/api/v2/broker/subaccount-withdrawal', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1692,7 +1790,13 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
getMarginBorrowHistory(
|
getMarginBorrowHistory(
|
||||||
marginType: MarginType,
|
marginType: MarginType,
|
||||||
params: GetBorrowHistoryRequestV2,
|
params: GetBorrowHistoryRequestV2,
|
||||||
): Promise<APIResponse<MarginBorrowHistoryV2>> {
|
): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
resultList: MarginBorrowHistoryItemV2[];
|
||||||
|
maxId: string;
|
||||||
|
minId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
assertMarginType(marginType);
|
assertMarginType(marginType);
|
||||||
return this.getPrivate(
|
return this.getPrivate(
|
||||||
`/api/v2/margin/${marginType}/borrow-history`,
|
`/api/v2/margin/${marginType}/borrow-history`,
|
||||||
@@ -1703,7 +1807,13 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
getMarginRepayHistory(
|
getMarginRepayHistory(
|
||||||
marginType: MarginType,
|
marginType: MarginType,
|
||||||
params: GetRepayHistoryRequestV2,
|
params: GetRepayHistoryRequestV2,
|
||||||
): Promise<APIResponse<MarginRepaymentHistoryV2>> {
|
): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
resultList: MarginRepaymentHistoryItemV2[];
|
||||||
|
maxId: string;
|
||||||
|
minId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
assertMarginType(marginType);
|
assertMarginType(marginType);
|
||||||
return this.getPrivate(
|
return this.getPrivate(
|
||||||
`/api/v2/margin/${marginType}/repay-history`,
|
`/api/v2/margin/${marginType}/repay-history`,
|
||||||
@@ -1714,7 +1824,13 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
getMarginInterestHistory(
|
getMarginInterestHistory(
|
||||||
marginType: MarginType,
|
marginType: MarginType,
|
||||||
params: GetInterestHistoryRequestV2,
|
params: GetInterestHistoryRequestV2,
|
||||||
): Promise<APIResponse<MarginInterestHistoryV2>> {
|
): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
resultList: MarginInterestHistoryItemV2[];
|
||||||
|
maxId: string;
|
||||||
|
minId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
assertMarginType(marginType);
|
assertMarginType(marginType);
|
||||||
return this.getPrivate(
|
return this.getPrivate(
|
||||||
`/api/v2/margin/${marginType}/interest-history`,
|
`/api/v2/margin/${marginType}/interest-history`,
|
||||||
@@ -1725,7 +1841,13 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
getMarginLiquidationHistory(
|
getMarginLiquidationHistory(
|
||||||
marginType: MarginType,
|
marginType: MarginType,
|
||||||
params: GetLiquidationHistoryRequestV2,
|
params: GetLiquidationHistoryRequestV2,
|
||||||
): Promise<APIResponse<MarginLiquidationHistoryV2>> {
|
): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
resultList: MarginLiquidationHistoryItemV2[];
|
||||||
|
maxId: string;
|
||||||
|
minId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
assertMarginType(marginType);
|
assertMarginType(marginType);
|
||||||
return this.getPrivate(
|
return this.getPrivate(
|
||||||
`/api/v2/margin/${marginType}/liquidation-history`,
|
`/api/v2/margin/${marginType}/liquidation-history`,
|
||||||
@@ -1736,7 +1858,13 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
getMarginFinancialHistory(
|
getMarginFinancialHistory(
|
||||||
marginType: MarginType,
|
marginType: MarginType,
|
||||||
params: GetFinancialHistoryRequestV2,
|
params: GetFinancialHistoryRequestV2,
|
||||||
): Promise<APIResponse<MarginFinancialHistoryV2>> {
|
): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
resultList: MarginFinancialHistoryItemV2[];
|
||||||
|
maxId: string;
|
||||||
|
minId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
assertMarginType(marginType);
|
assertMarginType(marginType);
|
||||||
return this.getPrivate(
|
return this.getPrivate(
|
||||||
`/api/v2/margin/${marginType}/financial-records`,
|
`/api/v2/margin/${marginType}/financial-records`,
|
||||||
@@ -1980,7 +2108,13 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
getMarginOpenOrders(
|
getMarginOpenOrders(
|
||||||
marginType: MarginType,
|
marginType: MarginType,
|
||||||
params: GetMarginCurrentOrdersRequestV2,
|
params: GetMarginCurrentOrdersRequestV2,
|
||||||
): Promise<APIResponse<MarginCurrentOrdersV2>> {
|
): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
orderList: MarginCurrentOrderV2[];
|
||||||
|
maxId: string;
|
||||||
|
minId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
assertMarginType(marginType);
|
assertMarginType(marginType);
|
||||||
return this.getPrivate(`/api/v2/margin/${marginType}/open-orders`, params);
|
return this.getPrivate(`/api/v2/margin/${marginType}/open-orders`, params);
|
||||||
}
|
}
|
||||||
@@ -1988,7 +2122,13 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
getMarginHistoricOrders(
|
getMarginHistoricOrders(
|
||||||
marginType: MarginType,
|
marginType: MarginType,
|
||||||
params: GetHistoryOrdersRequestV2,
|
params: GetHistoryOrdersRequestV2,
|
||||||
): Promise<APIResponse<MarginHistoryOrdersV2>> {
|
): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
orderList: MarginHistoryOrderV2[];
|
||||||
|
maxId: string;
|
||||||
|
minId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
assertMarginType(marginType);
|
assertMarginType(marginType);
|
||||||
return this.getPrivate(
|
return this.getPrivate(
|
||||||
`/api/v2/margin/${marginType}/history-orders`,
|
`/api/v2/margin/${marginType}/history-orders`,
|
||||||
@@ -1999,7 +2139,13 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
getMarginHistoricOrderFills(
|
getMarginHistoricOrderFills(
|
||||||
marginType: MarginType,
|
marginType: MarginType,
|
||||||
params: GetMarginOrderFillsRequestV2,
|
params: GetMarginOrderFillsRequestV2,
|
||||||
): Promise<APIResponse<MarginOrderFillsV2>> {
|
): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
fills: MarginOrderFillV2[];
|
||||||
|
minId: string;
|
||||||
|
maxId: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
assertMarginType(marginType);
|
assertMarginType(marginType);
|
||||||
return this.getPrivate(`/api/v2/margin/${marginType}/fills`, params);
|
return this.getPrivate(`/api/v2/margin/${marginType}/fills`, params);
|
||||||
}
|
}
|
||||||
@@ -2007,7 +2153,12 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
getMarginLiquidationOrders(
|
getMarginLiquidationOrders(
|
||||||
marginType: MarginType,
|
marginType: MarginType,
|
||||||
params: GetMarginLiquidationOrdersRequestV2,
|
params: GetMarginLiquidationOrdersRequestV2,
|
||||||
): Promise<APIResponse<MarginLiquidationOrdersV2>> {
|
): Promise<
|
||||||
|
APIResponse<{
|
||||||
|
resultList: MarginLiquidationOrderV2[];
|
||||||
|
idLessThan: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
assertMarginType(marginType);
|
assertMarginType(marginType);
|
||||||
return this.getPrivate(
|
return this.getPrivate(
|
||||||
`/api/v2/margin/${marginType}/liquidation-order`,
|
`/api/v2/margin/${marginType}/liquidation-order`,
|
||||||
@@ -2033,7 +2184,7 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
|
|
||||||
getFuturesTraderCurrentOrder(
|
getFuturesTraderCurrentOrder(
|
||||||
params: GetFuturesTraderCurrentOrdersRequestV2,
|
params: GetFuturesTraderCurrentOrdersRequestV2,
|
||||||
): Promise<APIResponse<CTFuturesTraderCurrentOrderV2>> {
|
): Promise<APIResponse<CTFuturesTraderCurrentOrdersV2>> {
|
||||||
return this.getPrivate(
|
return this.getPrivate(
|
||||||
'/api/v2/copy/mix-trader/order-current-track',
|
'/api/v2/copy/mix-trader/order-current-track',
|
||||||
params,
|
params,
|
||||||
|
|||||||
@@ -13,19 +13,15 @@ export interface CreateSubaccountResponseV2 {
|
|||||||
cTime: string;
|
cTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SubaccountsListV2 {
|
export interface BrokerSubaccountV2 {
|
||||||
hasNextPage: boolean;
|
subUid: string;
|
||||||
idLessThan: number;
|
subaccountName: string;
|
||||||
subList: {
|
status: string;
|
||||||
subUid: string;
|
permList: string[];
|
||||||
subaccountName: string;
|
label: string;
|
||||||
status: string;
|
language: string;
|
||||||
permList: string[];
|
cTime: string;
|
||||||
label: string;
|
uTime: string;
|
||||||
language: string;
|
|
||||||
cTime: string;
|
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ModifySubaccountResponseV2 {
|
export interface ModifySubaccountResponseV2 {
|
||||||
@@ -47,30 +43,26 @@ export interface SubaccountEmailV2 {
|
|||||||
uTime: string;
|
uTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SubaccountSpotAssetsV2 {
|
export interface BrokerSubaccountSpotAssetV2 {
|
||||||
assetsList: {
|
coin: string;
|
||||||
coin: string;
|
available: string;
|
||||||
available: string;
|
frozen: string;
|
||||||
frozen: string;
|
locked: string;
|
||||||
locked: string;
|
uTime: string;
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SubaccountFutureAssetsV2 {
|
export interface BrokerSubaccountFutureAssetV2 {
|
||||||
assetsList: {
|
marginCoin: string;
|
||||||
marginCoin: string;
|
available: string;
|
||||||
available: string;
|
frozen: string;
|
||||||
frozen: string;
|
locked: string;
|
||||||
locked: string;
|
crossedMaxAvailable: string;
|
||||||
crossedMaxAvailable: string;
|
isolatedMaxAvailable: string;
|
||||||
isolatedMaxAvailable: string;
|
maxTransferOut: string;
|
||||||
maxTransferOut: string;
|
accountEquity: string;
|
||||||
accountEquity: string;
|
usdtEquity: string;
|
||||||
usdtEquity: string;
|
btcEquity: string;
|
||||||
btcEquity: string;
|
uTime: string;
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateSubaccountDepositAddressV2 {
|
export interface CreateSubaccountDepositAddressV2 {
|
||||||
@@ -101,26 +93,23 @@ export interface SubaccountDepositV2 {
|
|||||||
uTime: string;
|
uTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SubaccountWithdrawalV2 {
|
export interface BrokerSubaccountWithdrawalV2 {
|
||||||
resultList: {
|
orderId: string;
|
||||||
orderId: string;
|
txId: string;
|
||||||
txId: string;
|
coin: string;
|
||||||
coin: string;
|
type: string;
|
||||||
type: string;
|
dest: string;
|
||||||
dest: string;
|
amount: string;
|
||||||
amount: string;
|
status: string;
|
||||||
status: string;
|
fromAddress: string;
|
||||||
fromAddress: string;
|
toAddress: string;
|
||||||
toAddress: string;
|
fee: string;
|
||||||
fee: string;
|
chain: string;
|
||||||
chain: string;
|
confirm: string;
|
||||||
confirm: string;
|
tag: string;
|
||||||
tag: string;
|
userId: string;
|
||||||
userId: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export interface MarginTransactionRecordV2 {
|
|||||||
ts: string;
|
ts: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface P2PMerchantOrderV2 {
|
export interface P2PMerchantOrdersV2 {
|
||||||
id: string;
|
id: string;
|
||||||
coin: string;
|
coin: string;
|
||||||
p2pTaxType: string;
|
p2pTaxType: string;
|
||||||
@@ -70,23 +70,20 @@ export interface P2PMerchantOrderV2 {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface P2PMerchantListV2 {
|
export interface P2PMerchantV2 {
|
||||||
merchantList: {
|
registerTime: string;
|
||||||
registerTime: string;
|
nickName: string;
|
||||||
nickName: string;
|
isOnline: string;
|
||||||
isOnline: string;
|
avgPaymentTime: string;
|
||||||
avgPaymentTime: string;
|
avgReleaseTime: string;
|
||||||
avgReleaseTime: string;
|
totalTrades: string;
|
||||||
totalTrades: string;
|
totalBuy: string;
|
||||||
totalBuy: string;
|
totalSell: string;
|
||||||
totalSell: string;
|
totalCompletionRate: string;
|
||||||
totalCompletionRate: string;
|
trades30d: string;
|
||||||
trades30d: string;
|
sell30d: string;
|
||||||
sell30d: string;
|
buy30d: string;
|
||||||
buy30d: string;
|
completionRate30d: string;
|
||||||
completionRate30d: string;
|
|
||||||
}[];
|
|
||||||
minMerchantId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface P2PMerchantInfoV2 {
|
export interface P2PMerchantInfoV2 {
|
||||||
@@ -111,85 +108,79 @@ export interface P2PMerchantInfoV2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface P2PMerchantOrderV2 {
|
export interface P2PMerchantOrderV2 {
|
||||||
orderList: {
|
orderId: string;
|
||||||
orderId: string;
|
orderNo: string;
|
||||||
orderNo: string;
|
advNo: string;
|
||||||
advNo: string;
|
side: string;
|
||||||
side: string;
|
count: string;
|
||||||
count: string;
|
coin: string;
|
||||||
coin: string;
|
price: string;
|
||||||
price: string;
|
fiat: string;
|
||||||
fiat: string;
|
withdrawTime: string;
|
||||||
withdrawTime: string;
|
representTime: string;
|
||||||
representTime: string;
|
releaseTime: string;
|
||||||
releaseTime: string;
|
paymentTime: string;
|
||||||
paymentTime: string;
|
amount: string;
|
||||||
amount: string;
|
status: string;
|
||||||
status: string;
|
buyerRealName: string;
|
||||||
buyerRealName: string;
|
sellerRealName: string;
|
||||||
sellerRealName: string;
|
ctime: string;
|
||||||
ctime: string;
|
utime: string;
|
||||||
utime: string;
|
paymentInfo: {
|
||||||
paymentInfo: {
|
paymethodName: string;
|
||||||
paymethodName: string;
|
paymethodId: string;
|
||||||
paymethodId: string;
|
paymethodInfo: {
|
||||||
paymethodInfo: {
|
name: string;
|
||||||
name: string;
|
required: string;
|
||||||
required: string;
|
type: string;
|
||||||
type: string;
|
value: string;
|
||||||
value: string;
|
}[];
|
||||||
}[];
|
};
|
||||||
};
|
|
||||||
}[];
|
|
||||||
minOrderId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface P2PMerchantAdvertisementV2 {
|
export interface P2PMerchantAdvertismentV2 {
|
||||||
advList: {
|
advId: string;
|
||||||
advId: string;
|
advNo: string;
|
||||||
advNo: string;
|
side: string;
|
||||||
side: string;
|
advSize: string;
|
||||||
advSize: string;
|
size: string;
|
||||||
size: string;
|
coin: string;
|
||||||
coin: string;
|
price: string;
|
||||||
price: string;
|
coinPrecision: string;
|
||||||
coinPrecision: string;
|
fiat: string;
|
||||||
fiat: string;
|
fiatPrecision: string;
|
||||||
fiatPrecision: string;
|
fiatSymbol: string;
|
||||||
fiatSymbol: string;
|
status: string;
|
||||||
status: string;
|
hide: string;
|
||||||
hide: string;
|
maxTradeAmount: string;
|
||||||
maxTradeAmount: string;
|
minTradeAmount: string;
|
||||||
minTradeAmount: string;
|
payDuration: string;
|
||||||
payDuration: string;
|
turnoverNum: string;
|
||||||
turnoverNum: string;
|
turnoverRate: string;
|
||||||
turnoverRate: string;
|
label: string | null;
|
||||||
label: string | null;
|
userLimitList: {
|
||||||
userLimitList: {
|
minCompleteNum: string;
|
||||||
minCompleteNum: string;
|
maxCompleteNum: string;
|
||||||
maxCompleteNum: string;
|
placeOrderNum: string;
|
||||||
placeOrderNum: string;
|
allowMerchantPlace: string;
|
||||||
allowMerchantPlace: string;
|
completeRate30d: string;
|
||||||
completeRate30d: string;
|
country: string;
|
||||||
country: string;
|
};
|
||||||
};
|
paymentMethodList: {
|
||||||
paymentMethodList: {
|
paymentMethod: string;
|
||||||
paymentMethod: string;
|
paymentId: string;
|
||||||
paymentId: string;
|
paymentInfo: {
|
||||||
paymentInfo: {
|
name: string;
|
||||||
name: string;
|
required: boolean;
|
||||||
required: boolean;
|
type: string;
|
||||||
type: string;
|
|
||||||
}[];
|
|
||||||
}[];
|
}[];
|
||||||
merchantCertifiedList: {
|
|
||||||
imageUrl: string;
|
|
||||||
desc: string;
|
|
||||||
}[];
|
|
||||||
utime: string;
|
|
||||||
ctime: string;
|
|
||||||
}[];
|
}[];
|
||||||
minAdvId: string;
|
merchantCertifiedList: {
|
||||||
|
imageUrl: string;
|
||||||
|
desc: string;
|
||||||
|
}[];
|
||||||
|
utime: string;
|
||||||
|
ctime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -291,19 +282,16 @@ export interface CreateVirtualSubAccountAndApiKeyV2 {
|
|||||||
ipList: string[];
|
ipList: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VirtualSubAccountListV2 {
|
export interface VirtualSubAccountV2 {
|
||||||
endId: string;
|
subAccountUid: string;
|
||||||
subAccountList: {
|
subAccountName: string;
|
||||||
subAccountUid: string;
|
status: string;
|
||||||
subAccountName: string;
|
permList: string[];
|
||||||
status: string;
|
label: string;
|
||||||
permList: string[];
|
accountType: string;
|
||||||
label: string;
|
bindingTime: string;
|
||||||
accountType: string;
|
cTime: string;
|
||||||
bindingTime: string;
|
uTime: string;
|
||||||
cTime: string;
|
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateVirtualSubAccountApiKeyV2 {
|
export interface CreateVirtualSubAccountApiKeyV2 {
|
||||||
@@ -324,7 +312,7 @@ export interface ModifyVirtualSubAccountApiKeyV2 {
|
|||||||
ipList: string[];
|
ipList: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SubAccountApiKeyListV2 {
|
export interface SubAccountApiKeyItemV2 {
|
||||||
subAccountUid: string;
|
subAccountUid: string;
|
||||||
label: string;
|
label: string;
|
||||||
subAccountApiKey: string;
|
subAccountApiKey: string;
|
||||||
@@ -338,14 +326,14 @@ export interface SubAccountApiKeyListV2 {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface FundingAssetsV2 {
|
export interface FundingAssetV2 {
|
||||||
coin: string;
|
coin: string;
|
||||||
available: string;
|
available: string;
|
||||||
frozen: string;
|
frozen: string;
|
||||||
usdtValue: string;
|
usdtValue: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BotAssetsV2 {
|
export interface BotAssetV2 {
|
||||||
coin: string;
|
coin: string;
|
||||||
available: string;
|
available: string;
|
||||||
equity: string;
|
equity: string;
|
||||||
@@ -360,8 +348,7 @@ export interface BotAssetsV2 {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface ConvertCurrenciesV2 {
|
export interface ConvertCurrencyV2 {
|
||||||
// array type
|
|
||||||
coin: string;
|
coin: string;
|
||||||
available: string;
|
available: string;
|
||||||
maxAmount: string;
|
maxAmount: string;
|
||||||
@@ -385,40 +372,37 @@ export interface ConvertTradeResponseV2 {
|
|||||||
toCoin: string;
|
toCoin: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ConvertHistoryV2 {
|
export interface ConvertRecordV2 {
|
||||||
dataList: {
|
id: string;
|
||||||
id: string;
|
ts: string;
|
||||||
ts: string;
|
cnvtPrice: string;
|
||||||
cnvtPrice: string;
|
fee: string;
|
||||||
fee: string;
|
fromCoinSize: string;
|
||||||
fromCoinSize: string;
|
fromCoin: string;
|
||||||
fromCoin: string;
|
toCoinSize: string;
|
||||||
toCoinSize: string;
|
toCoin: string;
|
||||||
toCoin: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* * Common | BGB Convert
|
* * Common | BGB Convert
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface BGBConvertCoinsV2 {
|
export interface BGBConvertCoinV2 {
|
||||||
coinList: {
|
coin: string;
|
||||||
coin: string;
|
available: string;
|
||||||
available: string;
|
bgbEstAmount: string;
|
||||||
bgbEstAmount: string;
|
precision: string;
|
||||||
precision: string;
|
feeDetail: {
|
||||||
feeDetail: {
|
feeRate: string;
|
||||||
feeRate: string;
|
fee: string;
|
||||||
fee: string;
|
|
||||||
}[];
|
|
||||||
cTime: string;
|
|
||||||
}[];
|
}[];
|
||||||
|
cTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export interface ConvertBGBResponseV2 {
|
export interface ConvertBGBResponseV2 {
|
||||||
orderList: {
|
orderList: {
|
||||||
coin: string;
|
coin: string;
|
||||||
|
|||||||
@@ -7,47 +7,61 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface CTFuturesTraderCurrentOrderV2 {
|
export interface CTFuturesTraderCurrentOrderV2 {
|
||||||
trackingList: {
|
trackingNo: string;
|
||||||
trackingNo: string;
|
openOrderId: string;
|
||||||
openOrderId: string;
|
symbol: string;
|
||||||
symbol: string;
|
posSide: string;
|
||||||
posSide: string;
|
openLeverage: string;
|
||||||
openLeverage: string;
|
openPriceAvg: string;
|
||||||
openPriceAvg: string;
|
openTime: string;
|
||||||
openTime: string;
|
openSize: string;
|
||||||
openSize: string;
|
presetStopSurplusPrice: string;
|
||||||
presetStopSurplusPrice: string;
|
presetStopLossPrice: string;
|
||||||
presetStopLossPrice: string;
|
openFee: string;
|
||||||
openFee: string;
|
followCount: string;
|
||||||
followCount: string;
|
}
|
||||||
}[];
|
|
||||||
|
export interface CTFuturesTraderCurrentOrdersV2 {
|
||||||
|
trackingList: CTFuturesTraderCurrentOrderV2[];
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTFuturesTraderHistoryOrderV2 {
|
export interface CTFuturesTraderHistoryOrderV2 {
|
||||||
trackingList: {
|
trackingNo: string;
|
||||||
trackingNo: string;
|
symbol: string;
|
||||||
symbol: string;
|
openOrderId: string;
|
||||||
openOrderId: string;
|
closeOrderId: string;
|
||||||
closeOrderId: string;
|
productType: string;
|
||||||
productType: string;
|
posSide: string;
|
||||||
posSide: string;
|
openLeverage: string;
|
||||||
openLeverage: string;
|
openPriceAvg: string;
|
||||||
openPriceAvg: string;
|
openTime: string;
|
||||||
openTime: string;
|
openSize: string;
|
||||||
openSize: string;
|
closeSize: string;
|
||||||
closeSize: string;
|
closeTime: string;
|
||||||
closeTime: string;
|
closePriceAvg: string;
|
||||||
closePriceAvg: string;
|
stopType: string;
|
||||||
stopType: string;
|
achievedPL: string;
|
||||||
achievedPL: string;
|
openFee: string;
|
||||||
openFee: string;
|
closeFee: string;
|
||||||
closeFee: string;
|
cTime: string;
|
||||||
cTime: string;
|
}
|
||||||
}[];
|
|
||||||
|
export interface CTFuturesTraderHistoryOrderV2 {
|
||||||
|
trackingList: CTFuturesTraderHistoryOrderV2[];
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface CTRateCTimeV2 {
|
||||||
|
rate: string;
|
||||||
|
ctime: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CTAmountCTimeV2 {
|
||||||
|
amount: string;
|
||||||
|
ctime: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface CTFuturesTraderTotalOrderSummaryV2 {
|
export interface CTFuturesTraderTotalOrderSummaryV2 {
|
||||||
roi: string;
|
roi: string;
|
||||||
tradingOrderNum: string;
|
tradingOrderNum: string;
|
||||||
@@ -58,25 +72,19 @@ export interface CTFuturesTraderTotalOrderSummaryV2 {
|
|||||||
lossNum: string;
|
lossNum: string;
|
||||||
winRate: string;
|
winRate: string;
|
||||||
tradingPairsAvailableList: string[];
|
tradingPairsAvailableList: string[];
|
||||||
lastWeekRoiList: {
|
lastWeekRoiList: CTRateCTimeV2[];
|
||||||
rate: string;
|
lastWeekProfitList: CTAmountCTimeV2[];
|
||||||
ctime: string;
|
lastMonthRoiList: CTRateCTimeV2[];
|
||||||
}[];
|
lastMonthProfitList: CTAmountCTimeV2[];
|
||||||
lastWeekProfitList: {
|
|
||||||
amount: string;
|
|
||||||
ctime: string;
|
|
||||||
}[];
|
|
||||||
lastMonthRoiList: {
|
|
||||||
rate: string;
|
|
||||||
ctime: string;
|
|
||||||
}[];
|
|
||||||
lastMonthProfitList: {
|
|
||||||
amount: string;
|
|
||||||
ctime: string;
|
|
||||||
}[];
|
|
||||||
totalEquity: string;
|
totalEquity: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface CTFuturesTraderProfitHistoryItemV2 {
|
||||||
|
coin: string;
|
||||||
|
profitCount: string;
|
||||||
|
lastProfitTime: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface CTFuturesTraderHistoryProfitSummaryV2 {
|
export interface CTFuturesTraderHistoryProfitSummaryV2 {
|
||||||
profitSummary: {
|
profitSummary: {
|
||||||
yesterdayProfit: string;
|
yesterdayProfit: string;
|
||||||
@@ -84,21 +92,19 @@ export interface CTFuturesTraderHistoryProfitSummaryV2 {
|
|||||||
waitProfit: string;
|
waitProfit: string;
|
||||||
yesterdayTime: string;
|
yesterdayTime: string;
|
||||||
};
|
};
|
||||||
profitHistoryList: {
|
profitHistoryList: CTFuturesTraderProfitHistoryItemV2[];
|
||||||
coin: string;
|
}
|
||||||
profitCount: string;
|
|
||||||
lastProfitTime: string;
|
export interface CTFuturesTraderProfitShare {
|
||||||
}[];
|
profitId: string;
|
||||||
|
coin: string;
|
||||||
|
profit: string;
|
||||||
|
nickName: string;
|
||||||
|
profitTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTFuturesTraderProfitShareHistoryV2 {
|
export interface CTFuturesTraderProfitShareHistoryV2 {
|
||||||
profitList: {
|
profitList: CTFuturesTraderProfitShare[];
|
||||||
profitId: string;
|
|
||||||
coin: string;
|
|
||||||
profit: string;
|
|
||||||
nickName: string;
|
|
||||||
profitTime: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -146,47 +152,47 @@ export interface CTFuturesFollowerCurrentOrdersV2 {
|
|||||||
closeTime: string;
|
closeTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface CTFuturesFollowerHistoryOrderV2 {
|
||||||
|
trackingNo: string;
|
||||||
|
posSide: string;
|
||||||
|
openLeverage: string;
|
||||||
|
openSize: string;
|
||||||
|
closeSize: string;
|
||||||
|
openPriceAvg: string;
|
||||||
|
closePriceAvg: string;
|
||||||
|
achievedPL: string;
|
||||||
|
openFee: string;
|
||||||
|
closeFee: string;
|
||||||
|
symbol: string;
|
||||||
|
profitRate: string;
|
||||||
|
netProfit: string;
|
||||||
|
openOrderId: string;
|
||||||
|
closeOrderId: string;
|
||||||
|
openTime: string;
|
||||||
|
closeTime: string;
|
||||||
|
traderId: string;
|
||||||
|
productType: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface CTFuturesFollowerHistoryOrdersV2 {
|
export interface CTFuturesFollowerHistoryOrdersV2 {
|
||||||
trackingList: {
|
trackingList: CTFuturesFollowerHistoryOrderV2[];
|
||||||
trackingNo: string;
|
|
||||||
posSide: string;
|
|
||||||
openLeverage: string;
|
|
||||||
openSize: string;
|
|
||||||
closeSize: string;
|
|
||||||
openPriceAvg: string;
|
|
||||||
closePriceAvg: string;
|
|
||||||
achievedPL: string;
|
|
||||||
openFee: string;
|
|
||||||
closeFee: string;
|
|
||||||
symbol: string;
|
|
||||||
profitRate: string;
|
|
||||||
netProfit: string;
|
|
||||||
openOrderId: string;
|
|
||||||
closeOrderId: string;
|
|
||||||
openTime: string;
|
|
||||||
closeTime: string;
|
|
||||||
traderId: string;
|
|
||||||
productType: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface CTFuturesFollowerSettingV2 {
|
||||||
|
symbol: string;
|
||||||
|
productType: string;
|
||||||
|
marginType: string;
|
||||||
|
marginCoin: string;
|
||||||
|
leverType: string;
|
||||||
|
longLeverage: string;
|
||||||
|
shortLeverage: string;
|
||||||
|
traceType: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface CTFuturesFollowerSettingsV2 {
|
export interface CTFuturesFollowerSettingsV2 {
|
||||||
followerEnable: string;
|
followerEnable: string;
|
||||||
detailList: {
|
detailList: CTFuturesFollowerSettingV2[];
|
||||||
symbol: string;
|
|
||||||
productType: string;
|
|
||||||
marginType: string;
|
|
||||||
marginCoin: string;
|
|
||||||
leverType: string;
|
|
||||||
longLeverage: string;
|
|
||||||
shortLeverage: string;
|
|
||||||
traceType: string;
|
|
||||||
traceValue: string;
|
|
||||||
maxHoldSize: string;
|
|
||||||
stopSurplusRatio: string;
|
|
||||||
stopLossRatio: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTFuturesFollowerMyTradersV2 {
|
export interface CTFuturesFollowerMyTradersV2 {
|
||||||
@@ -230,16 +236,18 @@ export interface CTSpotTraderProfitSummaryV2 {
|
|||||||
}[];
|
}[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface CTSpotTraderHistoryProfitShareItemV2 {
|
||||||
|
profitId: string;
|
||||||
|
coin: string;
|
||||||
|
distributeRatio: string;
|
||||||
|
profit: string;
|
||||||
|
followerName: string;
|
||||||
|
profitTime: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface CTSpotTraderHistoryProfitSharingV2 {
|
export interface CTSpotTraderHistoryProfitSharingV2 {
|
||||||
endId: string;
|
endId: string;
|
||||||
profitList: {
|
profitList: CTSpotTraderHistoryProfitShareItemV2[];
|
||||||
profitId: string;
|
|
||||||
coin: string;
|
|
||||||
distributeRatio: string;
|
|
||||||
profit: string;
|
|
||||||
followerName: string;
|
|
||||||
profitTime: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTSpotTraderUnrealizedProfitV2 {
|
export interface CTSpotTraderUnrealizedProfitV2 {
|
||||||
@@ -259,60 +267,51 @@ export interface CTSpotTraderTotalOrderDetailV2 {
|
|||||||
lossNum: string;
|
lossNum: string;
|
||||||
totalEquity: string;
|
totalEquity: string;
|
||||||
winRate: string;
|
winRate: string;
|
||||||
lastWeekRoiList: {
|
lastWeekRoiList: CTAmountCTimeV2[];
|
||||||
rate: string;
|
lastMonthRoiList: CTRateCTimeV2[];
|
||||||
ctime: string;
|
lastWeekProfitList: CTAmountCTimeV2[];
|
||||||
}[];
|
lastMonthProfitList: CTAmountCTimeV2[];
|
||||||
lastMonthRoiList: {
|
|
||||||
rate: string;
|
|
||||||
ctime: string;
|
|
||||||
}[];
|
|
||||||
lastWeekProfitList: {
|
|
||||||
amount: string;
|
|
||||||
ctime: string;
|
|
||||||
}[];
|
|
||||||
lastMonthProfitList: {
|
|
||||||
amount: string;
|
|
||||||
ctime: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface CTSpotTraderHistoryOrderV2 {
|
||||||
|
trackingNo: string;
|
||||||
|
fillSize: string;
|
||||||
|
buyPrice: string;
|
||||||
|
sellPrice: string;
|
||||||
|
achievedPL: string;
|
||||||
|
buyTime: string;
|
||||||
|
sellTime: string;
|
||||||
|
buyFee: string;
|
||||||
|
sellFee: string;
|
||||||
|
achievedPLR: string;
|
||||||
|
symbol: string;
|
||||||
|
netProfit: string;
|
||||||
|
followCount: string;
|
||||||
|
}
|
||||||
export interface CTSpotTraderHistoryOrdersV2 {
|
export interface CTSpotTraderHistoryOrdersV2 {
|
||||||
endId: string;
|
endId: string;
|
||||||
trackingList: {
|
trackingList: CTSpotTraderHistoryOrderV2[];
|
||||||
trackingNo: string;
|
}
|
||||||
fillSize: string;
|
|
||||||
buyPrice: string;
|
export interface CTSpotTraderCurrentTrackingOrderV2 {
|
||||||
sellPrice: string;
|
trackingNo: string;
|
||||||
achievedPL: string;
|
orderId: string;
|
||||||
buyTime: string;
|
buyFillSize: string;
|
||||||
sellTime: string;
|
buyDelegateSize: string;
|
||||||
buyFee: string;
|
buyPrice: string;
|
||||||
sellFee: string;
|
unrealizedPL: string;
|
||||||
achievedPLR: string;
|
buyTime: string;
|
||||||
symbol: string;
|
buyFee: string;
|
||||||
netProfit: string;
|
unrealizedPLR: string;
|
||||||
followCount: string;
|
symbol: string;
|
||||||
}[];
|
stopLossPrice: string | null;
|
||||||
|
stopSurplusPrice: string | null;
|
||||||
|
followCount: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTSpotTraderCurrentTrackingOrdersV2 {
|
export interface CTSpotTraderCurrentTrackingOrdersV2 {
|
||||||
endId: string;
|
endId: string;
|
||||||
trackingList: {
|
trackingList: CTSpotTraderCurrentTrackingOrderV2[];
|
||||||
trackingNo: string;
|
|
||||||
orderId: string;
|
|
||||||
buyFillSize: string;
|
|
||||||
buyDelegateSize: string;
|
|
||||||
buyPrice: string;
|
|
||||||
unrealizedPL: string;
|
|
||||||
buyTime: string;
|
|
||||||
buyFee: string;
|
|
||||||
unrealizedPLR: string;
|
|
||||||
symbol: string;
|
|
||||||
stopLossPrice: string | null;
|
|
||||||
stopSurplusPrice: string | null;
|
|
||||||
followCount: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTSpotTraderFollowerListV2 {
|
export interface CTSpotTraderFollowerListV2 {
|
||||||
@@ -332,85 +331,94 @@ export interface CTSpotTraderFollowerListV2 {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
export interface CTSpotFollowerMyTraderV2 {
|
||||||
|
certificationType: string;
|
||||||
|
traceTotalAmount: string;
|
||||||
|
traceTotalNetProfit: string;
|
||||||
|
traceTotalProfit: string;
|
||||||
|
traderName: string;
|
||||||
|
traderId: string;
|
||||||
|
maxFollowLimit: string;
|
||||||
|
bgbMaxFollowLimit: string;
|
||||||
|
followCount: string;
|
||||||
|
bgbFollowCount: string;
|
||||||
|
followerTime: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface CTSpotFollowerMyTradersV2 {
|
export interface CTSpotFollowerMyTradersV2 {
|
||||||
resultList: {
|
resultList: CTSpotFollowerMyTraderV2[];
|
||||||
certificationType: string;
|
}
|
||||||
traceTotalAmount: string;
|
|
||||||
traceTotalNetProfit: string;
|
export interface CTSpotFollowerTradeSettingV2 {
|
||||||
traceTotalProfit: string;
|
maxTraceAmount: string;
|
||||||
traderName: string;
|
stopLossRation: string;
|
||||||
traderId: string;
|
stopSurplusRation: string;
|
||||||
maxFollowLimit: string;
|
symbol: string;
|
||||||
bgbMaxFollowLimit: string;
|
traceType: string;
|
||||||
followCount: string;
|
}
|
||||||
bgbFollowCount: string;
|
|
||||||
followerTime: string;
|
export interface CTSpotFollowerTradeSymbolSettingV2 {
|
||||||
}[];
|
maxStopLossRation: string;
|
||||||
|
maxStopSurplusRation: string;
|
||||||
|
maxTraceAmount: string;
|
||||||
|
maxTraceAmountSystem: string;
|
||||||
|
maxTraceSize: string;
|
||||||
|
maxTraceRation: string;
|
||||||
|
minStopLossRation: string;
|
||||||
|
minStopSurplusRation: string;
|
||||||
|
minTraceAmount: string;
|
||||||
|
minTraceSize: string;
|
||||||
|
minTraceRation: string;
|
||||||
|
sliderMaxStopLossRatio: string;
|
||||||
|
sliderMaxStopSurplusRatio: string;
|
||||||
|
symbol: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTSpotFollowerFollowConfigurationV2 {
|
export interface CTSpotFollowerFollowConfigurationV2 {
|
||||||
enable: string;
|
enable: string;
|
||||||
profitRate: string;
|
profitRate: string;
|
||||||
settledInDays: string;
|
settledInDays: string;
|
||||||
tradeSettingList: {
|
tradeSettingList: CTSpotFollowerTradeSettingV2[];
|
||||||
maxTraceAmount: string;
|
tradeSymbolSettingList: CTSpotFollowerTradeSymbolSettingV2[];
|
||||||
stopLossRation: string;
|
|
||||||
stopSurplusRation: string;
|
|
||||||
symbol: string;
|
|
||||||
traceType: string;
|
|
||||||
}[];
|
|
||||||
tradeSymbolSettingList: {
|
|
||||||
maxStopLossRation: string;
|
|
||||||
maxStopSurplusRation: string;
|
|
||||||
maxTraceAmount: string;
|
|
||||||
maxTraceAmountSystem: string;
|
|
||||||
maxTraceSize: string;
|
|
||||||
maxTraceRation: string;
|
|
||||||
minStopLossRation: string;
|
|
||||||
minStopSurplusRation: string;
|
|
||||||
minTraceAmount: string;
|
|
||||||
minTraceSize: string;
|
|
||||||
minTraceRation: string;
|
|
||||||
sliderMaxStopLossRatio: string;
|
|
||||||
sliderMaxStopSurplusRatio: string;
|
|
||||||
symbol: string;
|
|
||||||
}[];
|
|
||||||
traderHeadPic: string;
|
traderHeadPic: string;
|
||||||
traderName: string;
|
traderName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface CTSpotFollowerHistoryOrderV2 {
|
||||||
|
trackingNo: string;
|
||||||
|
traderId: string;
|
||||||
|
fillSize: string;
|
||||||
|
buyPrice: string;
|
||||||
|
sellPrice: string;
|
||||||
|
buyFee: string;
|
||||||
|
sellFee: string;
|
||||||
|
achievedPL: string;
|
||||||
|
achievedPLR: string;
|
||||||
|
symbol: string;
|
||||||
|
buyTime: string;
|
||||||
|
sellTime: string;
|
||||||
|
}
|
||||||
export interface CTSpotFollowerHistoryOrdersV2 {
|
export interface CTSpotFollowerHistoryOrdersV2 {
|
||||||
endId: string;
|
endId: string;
|
||||||
trackingList: {
|
trackingList: CTSpotFollowerHistoryOrderV2[];
|
||||||
trackingNo: string;
|
}
|
||||||
traderId: string;
|
|
||||||
fillSize: string;
|
export interface CTSpotFollowerCurrentOrderV2 {
|
||||||
buyPrice: string;
|
trackingNo: string;
|
||||||
sellPrice: string;
|
traderId: string;
|
||||||
buyFee: string;
|
buyFillSize: string;
|
||||||
sellFee: string;
|
buyDelegateSize: string;
|
||||||
achievedPL: string;
|
buyPrice: string;
|
||||||
achievedPLR: string;
|
unrealizedPL: string;
|
||||||
symbol: string;
|
buyTime: string;
|
||||||
buyTime: string;
|
buyFee: string;
|
||||||
sellTime: string;
|
unrealizedPLR: string;
|
||||||
}[];
|
symbol: string;
|
||||||
|
stopSurplusPrice: string | null;
|
||||||
|
stopLossPrice: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTSpotFollowerCurrentOrdersV2 {
|
export interface CTSpotFollowerCurrentOrdersV2 {
|
||||||
endId: string;
|
endId: string;
|
||||||
trackingList: {
|
trackingList: CTSpotFollowerCurrentOrderV2[];
|
||||||
trackingNo: string;
|
|
||||||
traderId: string;
|
|
||||||
buyFillSize: string;
|
|
||||||
buyDelegateSize: string;
|
|
||||||
buyPrice: string;
|
|
||||||
unrealizedPL: string;
|
|
||||||
buyTime: string;
|
|
||||||
buyFee: string;
|
|
||||||
unrealizedPLR: string;
|
|
||||||
symbol: string;
|
|
||||||
stopSurplusPrice: string | null;
|
|
||||||
stopLossPrice: string | null;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,43 +33,47 @@ export interface EarnSavingsAccountV2 {
|
|||||||
usdtTotalEarning: string;
|
usdtTotalEarning: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface EarnSavingsAssetsV2 {
|
export interface EarnSavingsAssetV2 {
|
||||||
resultList: {
|
productId: string;
|
||||||
productId: string;
|
orderId: string;
|
||||||
orderId: string;
|
productCoin: string;
|
||||||
productCoin: string;
|
interestCoin: string;
|
||||||
interestCoin: string;
|
periodType: string;
|
||||||
periodType: string;
|
period: string;
|
||||||
period: string;
|
holdAmount: string;
|
||||||
holdAmount: string;
|
lastProfit: string;
|
||||||
lastProfit: string;
|
totalProfit: string;
|
||||||
totalProfit: string;
|
holdDays: string;
|
||||||
holdDays: string;
|
status: string;
|
||||||
status: string;
|
allowRedemption: string;
|
||||||
allowRedemption: string;
|
productLevel: string;
|
||||||
productLevel: string;
|
apy: {
|
||||||
apy: {
|
rateLevel: string;
|
||||||
rateLevel: string;
|
minApy: string;
|
||||||
minApy: string;
|
maxApy: string;
|
||||||
maxApy: string;
|
currentApy: string;
|
||||||
currentApy: string;
|
|
||||||
}[];
|
|
||||||
}[];
|
}[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface EarnSavingsAssetsV2 {
|
||||||
|
resultList: EarnSavingsAssetV2[];
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface EarnSavingsRecordV2 {
|
||||||
|
orderId: string;
|
||||||
|
coinName: string;
|
||||||
|
settleCoinName: string;
|
||||||
|
productType: string;
|
||||||
|
period: string;
|
||||||
|
productLevel: string;
|
||||||
|
amount: string;
|
||||||
|
ts: string;
|
||||||
|
orderType: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface EarnSavingsRecordsV2 {
|
export interface EarnSavingsRecordsV2 {
|
||||||
resultList: {
|
resultList: EarnSavingsRecordV2[];
|
||||||
orderId: string;
|
|
||||||
coinName: string;
|
|
||||||
settleCoinName: string;
|
|
||||||
productType: string;
|
|
||||||
period: string;
|
|
||||||
productLevel: string;
|
|
||||||
amount: string;
|
|
||||||
ts: string;
|
|
||||||
orderType: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -110,26 +114,28 @@ export interface EarnSavingsSubscriptionDetailV2 {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
export interface EarnSharkfinProductV2 {
|
||||||
|
productId: string;
|
||||||
|
productName: string;
|
||||||
|
productCoin: string;
|
||||||
|
subscribeCoin: string;
|
||||||
|
farmingStartTime: string;
|
||||||
|
farmingEndTime: string;
|
||||||
|
lowerRate: string;
|
||||||
|
defaultRate: string;
|
||||||
|
upperRate: string;
|
||||||
|
period: string;
|
||||||
|
interestStartTime: string;
|
||||||
|
status: string;
|
||||||
|
minAmount: string;
|
||||||
|
limitAmount: string;
|
||||||
|
soldAmount: string;
|
||||||
|
endTime: string;
|
||||||
|
startTime: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface EarnSharkfinProductsV2 {
|
export interface EarnSharkfinProductsV2 {
|
||||||
resultList: {
|
resultList: EarnSharkfinProductV2[];
|
||||||
productId: string;
|
|
||||||
productName: string;
|
|
||||||
productCoin: string;
|
|
||||||
subscribeCoin: string;
|
|
||||||
farmingStartTime: string;
|
|
||||||
farmingEndTime: string;
|
|
||||||
lowerRate: string;
|
|
||||||
defaultRate: string;
|
|
||||||
upperRate: string;
|
|
||||||
period: string;
|
|
||||||
interestStartTime: string;
|
|
||||||
status: string;
|
|
||||||
minAmount: string;
|
|
||||||
limitAmount: string;
|
|
||||||
soldAmount: string;
|
|
||||||
endTime: string;
|
|
||||||
startTime: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -142,30 +148,33 @@ export interface EarnSharkfinAccountV2 {
|
|||||||
usdtTotalEarning: string;
|
usdtTotalEarning: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface EarnSharkfinAssetV2 {
|
||||||
|
productId: string;
|
||||||
|
interestStartTime: string;
|
||||||
|
interestEndTime: string;
|
||||||
|
productCoin: string;
|
||||||
|
subscribeCoin: string;
|
||||||
|
trend: string;
|
||||||
|
settleTime: string;
|
||||||
|
interestAmount: string;
|
||||||
|
productStatus: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface EarnSharkfinAssetsV2 {
|
export interface EarnSharkfinAssetsV2 {
|
||||||
resultList: {
|
resultList: EarnSharkfinAssetV2[];
|
||||||
productId: string;
|
|
||||||
interestStartTime: string;
|
|
||||||
interestEndTime: string;
|
|
||||||
productCoin: string;
|
|
||||||
subscribeCoin: string;
|
|
||||||
trend: string;
|
|
||||||
settleTime: string;
|
|
||||||
interestAmount: string;
|
|
||||||
productStatus: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface EarnSharkfinRecordV2 {
|
||||||
|
orderId: string;
|
||||||
|
product: string;
|
||||||
|
period: string;
|
||||||
|
amount: string;
|
||||||
|
ts: string;
|
||||||
|
type: string;
|
||||||
|
}
|
||||||
export interface EarnSharkfinRecordsV2 {
|
export interface EarnSharkfinRecordsV2 {
|
||||||
resultList: {
|
resultList: EarnSharkfinRecordV2[];
|
||||||
orderId: string;
|
|
||||||
product: string;
|
|
||||||
period: string;
|
|
||||||
amount: string;
|
|
||||||
ts: string;
|
|
||||||
type: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,26 +206,29 @@ export interface EarnSharkfinSubscriptionDetailV2 {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
export interface EarnLoanCurrencyLoanInfoV2 {
|
||||||
|
coin: string;
|
||||||
|
hourRate7D: string;
|
||||||
|
rate7D: string;
|
||||||
|
hourRate30D: string;
|
||||||
|
rate30D: string;
|
||||||
|
minUsdt: string;
|
||||||
|
maxUsdt: string;
|
||||||
|
min: string;
|
||||||
|
max: string;
|
||||||
|
}
|
||||||
|
export interface EarnLoanCurrencyPledgeInfoV2 {
|
||||||
|
coin: string;
|
||||||
|
initRate: string;
|
||||||
|
supRate: string;
|
||||||
|
forceRate: string;
|
||||||
|
minUsdt: string;
|
||||||
|
maxUsdt: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface EarnLoanCurrenciesV2 {
|
export interface EarnLoanCurrenciesV2 {
|
||||||
loanInfos: {
|
loanInfos: EarnLoanCurrencyLoanInfoV2[];
|
||||||
coin: string;
|
pledgeInfos: EarnLoanCurrencyPledgeInfoV2[];
|
||||||
hourRate7D: string;
|
|
||||||
rate7D: string;
|
|
||||||
hourRate30D: string;
|
|
||||||
rate30D: string;
|
|
||||||
minUsdt: string;
|
|
||||||
maxUsdt: string;
|
|
||||||
min: string;
|
|
||||||
max: string;
|
|
||||||
}[];
|
|
||||||
pledgeInfos: {
|
|
||||||
coin: string;
|
|
||||||
initRate: string;
|
|
||||||
supRate: string;
|
|
||||||
forceRate: string;
|
|
||||||
minUsdt: string;
|
|
||||||
maxUsdt: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface EarnLoanOrdersV2 {
|
export interface EarnLoanOrdersV2 {
|
||||||
@@ -277,17 +289,21 @@ export interface EarnLoanHistoryV2 {
|
|||||||
status: string;
|
status: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface EarnLoanDebtPledgeInfoV2 {
|
||||||
|
coin: string;
|
||||||
|
amount: string;
|
||||||
|
amountUsdt: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface EarnLoanDebtLoanInfoV2 {
|
||||||
|
coin: string;
|
||||||
|
amount: string;
|
||||||
|
amountUsdt: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface EarnLoanDebtsV2 {
|
export interface EarnLoanDebtsV2 {
|
||||||
pledgeInfos: {
|
pledgeInfos: EarnLoanDebtPledgeInfoV2[];
|
||||||
coin: string;
|
loanInfos: EarnLoanDebtLoanInfoV2[];
|
||||||
amount: string;
|
|
||||||
amountUsdt: string;
|
|
||||||
}[];
|
|
||||||
loanInfos: {
|
|
||||||
coin: string;
|
|
||||||
amount: string;
|
|
||||||
amountUsdt: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface EarnLoanLiquidationRecordsV2 {
|
export interface EarnLoanLiquidationRecordsV2 {
|
||||||
|
|||||||
@@ -14,35 +14,31 @@ export interface FuturesVipFeeRateV2 {
|
|||||||
usdtWithdrawAmount: string;
|
usdtWithdrawAmount: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesInterestRateHistoryV2 {
|
export interface FuturesHistoryInterestRateV2 {
|
||||||
coin: string;
|
ts: string;
|
||||||
historyInterestRateList: {
|
annualInterestRate: string;
|
||||||
ts: string;
|
dailyInterestRate: string;
|
||||||
annualInterestRate: string;
|
|
||||||
dailyInterestRate: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesInterestExchangeRateV2 {
|
export interface FuturesInterestExchangeRateV2 {
|
||||||
coin: string;
|
tier: string;
|
||||||
exchangeRateList: {
|
minAmount: string;
|
||||||
tier: string;
|
maxAmount: string;
|
||||||
minAmount: string;
|
exchangeRate: string;
|
||||||
maxAmount: string;
|
|
||||||
exchangeRate: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesDiscountRateV2 {
|
export interface FuturesDiscountRateV2 {
|
||||||
|
tier: string;
|
||||||
|
minAmount: string;
|
||||||
|
maxAmount: string;
|
||||||
|
discountRate: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FuturesDiscountRatesV2 {
|
||||||
coin: string;
|
coin: string;
|
||||||
userLimit: string;
|
userLimit: string;
|
||||||
totalLimit: string;
|
totalLimit: string;
|
||||||
discountRateList: {
|
discountRateList: FuturesDiscountRateV2[];
|
||||||
tier: string;
|
|
||||||
minAmount: string;
|
|
||||||
maxAmount: string;
|
|
||||||
discountRate: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesMergeDepthV2 {
|
export interface FuturesMergeDepthV2 {
|
||||||
@@ -100,11 +96,8 @@ export interface FuturesCandlestickV2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesOpenInterestV2 {
|
export interface FuturesOpenInterestV2 {
|
||||||
openInterestList: {
|
symbol: string;
|
||||||
symbol: string;
|
size: string;
|
||||||
size: string;
|
|
||||||
}[];
|
|
||||||
ts: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesFundingTimeV2 {
|
export interface FuturesFundingTimeV2 {
|
||||||
@@ -190,7 +183,7 @@ export interface FuturesAccountV2 {
|
|||||||
assetMode: string;
|
assetMode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesAccountListV2 {
|
export interface FuturesAccountsV2 {
|
||||||
marginCoin: string;
|
marginCoin: string;
|
||||||
locked: string;
|
locked: string;
|
||||||
available: string;
|
available: string;
|
||||||
@@ -217,36 +210,34 @@ export interface FuturesAccountListV2 {
|
|||||||
assetMode: string;
|
assetMode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesSubAccountAssetsV2 {
|
export interface FuturesSubAccountAssetV2 {
|
||||||
userId: number;
|
marginCoin: string;
|
||||||
assetList: {
|
locked: string;
|
||||||
marginCoin: string;
|
available: string;
|
||||||
locked: string;
|
crossedMaxAvailable: string;
|
||||||
available: string;
|
isolatedMaxAvailable: string;
|
||||||
crossedMaxAvailable: string;
|
maxTransferOut: string;
|
||||||
isolatedMaxAvailable: string;
|
accountEquity: string;
|
||||||
maxTransferOut: string;
|
usdtEquity: string;
|
||||||
accountEquity: string;
|
btcEquity: string;
|
||||||
usdtEquity: string;
|
unrealizedPL: string;
|
||||||
btcEquity: string;
|
coupon: string;
|
||||||
unrealizedPL: string;
|
|
||||||
coupon: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface FuturesInterestV2 {
|
||||||
|
coin: string;
|
||||||
|
liability: string;
|
||||||
|
interestFreeLimit: string;
|
||||||
|
interestLimit: string;
|
||||||
|
hourInterestRate: string;
|
||||||
|
interest: string;
|
||||||
|
cTime: string;
|
||||||
|
}
|
||||||
export interface FuturesInterestHistoryV2 {
|
export interface FuturesInterestHistoryV2 {
|
||||||
nextSettleTime: string;
|
nextSettleTime: string;
|
||||||
borrowAmount: string;
|
borrowAmount: string;
|
||||||
borrowLimit: string;
|
borrowLimit: string;
|
||||||
interestList: {
|
interestList: FuturesInterestV2[];
|
||||||
coin: string;
|
|
||||||
liability: string;
|
|
||||||
interestFreeLimit: string;
|
|
||||||
interestLimit: string;
|
|
||||||
hourInterestRate: string;
|
|
||||||
interest: string;
|
|
||||||
cTime: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -268,18 +259,15 @@ export interface SetMarginModeResponseV2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesAccountBillV2 {
|
export interface FuturesAccountBillV2 {
|
||||||
bills: {
|
billId: string;
|
||||||
billId: string;
|
symbol: string;
|
||||||
symbol: string;
|
amount: string;
|
||||||
amount: string;
|
fee: string;
|
||||||
fee: string;
|
feeByCoupon: string;
|
||||||
feeByCoupon: string;
|
businessType: string;
|
||||||
businessType: string;
|
coin: string;
|
||||||
coin: string;
|
balance: string;
|
||||||
balance: string;
|
cTime: string;
|
||||||
cTime: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -325,26 +313,23 @@ export interface FuturesPositionV2 {
|
|||||||
cTime: string;
|
cTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesHistoricalPositionV2 {
|
export interface FuturesHistoryPositionV2 {
|
||||||
list: {
|
positionId: string;
|
||||||
positionId: string;
|
marginCoin: string;
|
||||||
marginCoin: string;
|
symbol: string;
|
||||||
symbol: string;
|
holdSide: string;
|
||||||
holdSide: string;
|
openAvgPrice: string;
|
||||||
openAvgPrice: string;
|
closeAvgPrice: string;
|
||||||
closeAvgPrice: string;
|
marginMode: string;
|
||||||
marginMode: string;
|
openTotalPos: string;
|
||||||
openTotalPos: string;
|
closeTotalPos: string;
|
||||||
closeTotalPos: string;
|
pnl: string;
|
||||||
pnl: string;
|
netProfit: string;
|
||||||
netProfit: string;
|
totalFunding: string;
|
||||||
totalFunding: string;
|
openFee: string;
|
||||||
openFee: string;
|
closeFee: string;
|
||||||
closeFee: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -412,97 +397,88 @@ export interface FuturesOrderDetailV2 {
|
|||||||
uTime: string;
|
uTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesOrderFillsV2 {
|
export interface FuturesOrderFillV2 {
|
||||||
fillList: {
|
tradeId: string;
|
||||||
tradeId: string;
|
symbol: string;
|
||||||
symbol: string;
|
orderId: string;
|
||||||
orderId: string;
|
price: string;
|
||||||
price: string;
|
baseVolume: string;
|
||||||
baseVolume: string;
|
feeDetail: {
|
||||||
feeDetail: {
|
deduction: string;
|
||||||
deduction: string;
|
feeCoin: string;
|
||||||
feeCoin: string;
|
totalDeductionFee: string;
|
||||||
totalDeductionFee: string;
|
totalFee: string;
|
||||||
totalFee: string;
|
|
||||||
}[];
|
|
||||||
side: string;
|
|
||||||
quoteVolume: string;
|
|
||||||
profit: string;
|
|
||||||
enterPointSource: string;
|
|
||||||
tradeSide: string;
|
|
||||||
posMode: string;
|
|
||||||
tradeScope: string;
|
|
||||||
cTime: string;
|
|
||||||
}[];
|
}[];
|
||||||
endId: string;
|
side: string;
|
||||||
|
quoteVolume: string;
|
||||||
|
profit: string;
|
||||||
|
enterPointSource: string;
|
||||||
|
tradeSide: string;
|
||||||
|
posMode: string;
|
||||||
|
tradeScope: string;
|
||||||
|
cTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesOpenOrdersV2 {
|
export interface FuturesOpenOrderV2 {
|
||||||
entrustedList: {
|
symbol: string;
|
||||||
symbol: string;
|
size: string;
|
||||||
size: string;
|
orderId: string;
|
||||||
orderId: string;
|
clientOid: string;
|
||||||
clientOid: string;
|
baseVolume: string;
|
||||||
baseVolume: string;
|
fee: string;
|
||||||
fee: string;
|
price: string;
|
||||||
price: string;
|
priceAvg: string;
|
||||||
priceAvg: string;
|
status: string;
|
||||||
status: string;
|
side: string;
|
||||||
side: string;
|
force: string;
|
||||||
force: string;
|
totalProfits: string;
|
||||||
totalProfits: string;
|
posSide: string;
|
||||||
posSide: string;
|
marginCoin: string;
|
||||||
marginCoin: string;
|
quoteVolume: string;
|
||||||
quoteVolume: string;
|
leverage: string;
|
||||||
leverage: string;
|
marginMode: string;
|
||||||
marginMode: string;
|
enterPointSource: string;
|
||||||
enterPointSource: string;
|
tradeSide: string;
|
||||||
tradeSide: string;
|
posMode: string;
|
||||||
posMode: string;
|
orderType: string;
|
||||||
orderType: string;
|
orderSource: string;
|
||||||
orderSource: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
presetStopSurplusPrice: string;
|
||||||
presetStopSurplusPrice: string;
|
presetStopSurplusType: string;
|
||||||
presetStopSurplusType: string;
|
presetStopSurplusExecutePrice: string;
|
||||||
presetStopSurplusExecutePrice: string;
|
presetStopLossPrice: string;
|
||||||
presetStopLossPrice: string;
|
presetStopLossType: string;
|
||||||
presetStopLossType: string;
|
presetStopLossExecutePrice: string;
|
||||||
presetStopLossExecutePrice: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesHistoryOrdersV2 {
|
export interface FuturesHistoryOrderV2 {
|
||||||
entrustedList: {
|
symbol: string;
|
||||||
symbol: string;
|
size: string;
|
||||||
size: string;
|
orderId: string;
|
||||||
orderId: string;
|
clientOid: string;
|
||||||
clientOid: string;
|
baseVolume: string;
|
||||||
baseVolume: string;
|
fee: string;
|
||||||
fee: string;
|
price: string;
|
||||||
price: string;
|
priceAvg: string;
|
||||||
priceAvg: string;
|
status: string;
|
||||||
status: string;
|
side: string;
|
||||||
side: string;
|
force: string;
|
||||||
force: string;
|
totalProfits: string;
|
||||||
totalProfits: string;
|
posSide: string;
|
||||||
posSide: string;
|
marginCoin: string;
|
||||||
marginCoin: string;
|
quoteVolume: string;
|
||||||
quoteVolume: string;
|
leverage: string;
|
||||||
leverage: string;
|
marginMode: string;
|
||||||
marginMode: string;
|
enterPointSource: string;
|
||||||
enterPointSource: string;
|
tradeSide: string;
|
||||||
tradeSide: string;
|
posMode: string;
|
||||||
posMode: string;
|
orderType: string;
|
||||||
orderType: string;
|
orderSource: string;
|
||||||
orderSource: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
presetStopSurplusPrice: string;
|
||||||
presetStopSurplusPrice: string;
|
presetStopLossPrice: string;
|
||||||
presetStopLossPrice: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesCancelAllOrdersV2 {
|
export interface FuturesCancelAllOrdersV2 {
|
||||||
@@ -532,37 +508,34 @@ export interface FuturesTriggerSubOrderV2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesPendingPlanOrderV2 {
|
export interface FuturesPendingPlanOrderV2 {
|
||||||
entrustedList: {
|
planType: string;
|
||||||
planType: string;
|
symbol: string;
|
||||||
symbol: string;
|
size: string;
|
||||||
size: string;
|
orderId: string;
|
||||||
orderId: string;
|
clientOid: string;
|
||||||
clientOid: string;
|
price: string;
|
||||||
price: string;
|
executePrice: string;
|
||||||
executePrice: string;
|
callbackRatio: string;
|
||||||
callbackRatio: string;
|
triggerPrice: string;
|
||||||
triggerPrice: string;
|
triggerType: string;
|
||||||
triggerType: string;
|
planStatus: string;
|
||||||
planStatus: string;
|
side: string;
|
||||||
side: string;
|
posSide: string;
|
||||||
posSide: string;
|
marginCoin: string;
|
||||||
marginCoin: string;
|
marginMode: string;
|
||||||
marginMode: string;
|
enterPointSource: string;
|
||||||
enterPointSource: string;
|
tradeSide: string;
|
||||||
tradeSide: string;
|
posMode: string;
|
||||||
posMode: string;
|
orderType: string;
|
||||||
orderType: string;
|
orderSource: string;
|
||||||
orderSource: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
stopSurplusExecutePrice: string;
|
||||||
stopSurplusExecutePrice: string;
|
stopSurplusTriggerPrice: string;
|
||||||
stopSurplusTriggerPrice: string;
|
stopSurplusTriggerType: string;
|
||||||
stopSurplusTriggerType: string;
|
stopLossExecutePrice: string;
|
||||||
stopLossExecutePrice: string;
|
stopLossTriggerPrice: string;
|
||||||
stopLossTriggerPrice: string;
|
stopLossTriggerType: string;
|
||||||
stopLossTriggerType: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesCancelPlanOrderV2 {
|
export interface FuturesCancelPlanOrderV2 {
|
||||||
@@ -578,37 +551,34 @@ export interface FuturesCancelPlanOrderV2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesHistoryPlanOrderV2 {
|
export interface FuturesHistoryPlanOrderV2 {
|
||||||
entrustedList: {
|
planType: string;
|
||||||
planType: string;
|
symbol: string;
|
||||||
symbol: string;
|
size: string;
|
||||||
size: string;
|
orderId: string;
|
||||||
orderId: string;
|
executeOrderId: string;
|
||||||
executeOrderId: string;
|
clientOid: string;
|
||||||
clientOid: string;
|
planStatus: string;
|
||||||
planStatus: string;
|
price: string;
|
||||||
price: string;
|
executePrice: string;
|
||||||
executePrice: string;
|
priceAvg: string;
|
||||||
priceAvg: string;
|
baseVolume: string;
|
||||||
baseVolume: string;
|
callbackRatio: string;
|
||||||
callbackRatio: string;
|
triggerPrice: string;
|
||||||
triggerPrice: string;
|
triggerType: string;
|
||||||
triggerType: string;
|
side: string;
|
||||||
side: string;
|
posSide: string;
|
||||||
posSide: string;
|
marginCoin: string;
|
||||||
marginCoin: string;
|
marginMode: string;
|
||||||
marginMode: string;
|
enterPointSource: string;
|
||||||
enterPointSource: string;
|
tradeSide: string;
|
||||||
tradeSide: string;
|
posMode: string;
|
||||||
posMode: string;
|
orderType: string;
|
||||||
orderType: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
stopSurplusExecutePrice: string;
|
||||||
stopSurplusExecutePrice: string;
|
stopSurplusTriggerPrice: string;
|
||||||
stopSurplusTriggerPrice: string;
|
stopSurplusTriggerType: string;
|
||||||
stopSurplusTriggerType: string;
|
stopLossExecutePrice: string;
|
||||||
stopLossExecutePrice: string;
|
stopLossTriggerPrice: string;
|
||||||
stopLossTriggerPrice: string;
|
stopLossTriggerType: string;
|
||||||
stopLossTriggerType: string;
|
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,82 +33,62 @@ export interface MarginCurrencyV2 {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface MarginBorrowHistoryV2 {
|
export interface MarginBorrowHistoryItemV2 {
|
||||||
resultList: {
|
loanId: string;
|
||||||
loanId: string;
|
coin: string;
|
||||||
coin: string;
|
borrowAmount: string;
|
||||||
borrowAmount: string;
|
borrowType: string;
|
||||||
borrowType: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
maxId: string;
|
|
||||||
minId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarginRepaymentHistoryV2 {
|
export interface MarginRepaymentHistoryItemV2 {
|
||||||
resultList: {
|
repayId: string;
|
||||||
repayId: string;
|
coin: string;
|
||||||
coin: string;
|
repayAmount: string;
|
||||||
repayAmount: string;
|
repayType: string;
|
||||||
repayType: string;
|
repayInterest: string;
|
||||||
repayInterest: string;
|
repayPrincipal: string;
|
||||||
repayPrincipal: string;
|
symbol: string;
|
||||||
symbol: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
maxId: string;
|
|
||||||
minId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarginInterestHistoryV2 {
|
export interface MarginInterestHistoryItemV2 {
|
||||||
resultList: {
|
interestId: string;
|
||||||
interestId: string;
|
interestCoin: string;
|
||||||
interestCoin: string;
|
dailyInterestRate: string;
|
||||||
dailyInterestRate: string;
|
loanCoin: string;
|
||||||
loanCoin: string;
|
interestAmount: string;
|
||||||
interestAmount: string;
|
interstType: string;
|
||||||
interstType: string;
|
symbol: string;
|
||||||
symbol: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
maxId: string;
|
|
||||||
minId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarginLiquidationHistoryV2 {
|
export interface MarginLiquidationHistoryItemV2 {
|
||||||
resultList: {
|
liqId: string;
|
||||||
liqId: string;
|
symbol: string;
|
||||||
symbol: string;
|
liqStartTime: string;
|
||||||
liqStartTime: string;
|
liqEndTime: string;
|
||||||
liqEndTime: string;
|
liqRiskRatio: string;
|
||||||
liqRiskRatio: string;
|
totalAssets: string;
|
||||||
totalAssets: string;
|
totalDebt: string;
|
||||||
totalDebt: string;
|
liqFee: string;
|
||||||
liqFee: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
maxId: string;
|
|
||||||
minId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarginFinancialHistoryV2 {
|
export interface MarginFinancialHistoryItemV2 {
|
||||||
resultList: {
|
coin: string;
|
||||||
coin: string;
|
symbol: string;
|
||||||
symbol: string;
|
marginId: string;
|
||||||
marginId: string;
|
amount: string;
|
||||||
amount: string;
|
balance: string;
|
||||||
balance: string;
|
fee: string;
|
||||||
fee: string;
|
marginType: string;
|
||||||
marginType: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
maxId: string;
|
|
||||||
minId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -242,94 +222,79 @@ export interface MarginBatchOrdersResponseV2 {
|
|||||||
}[];
|
}[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarginCurrentOrdersV2 {
|
export interface MarginCurrentOrderV2 {
|
||||||
orderList: {
|
orderId: string;
|
||||||
orderId: string;
|
symbol: string;
|
||||||
symbol: string;
|
orderType: string;
|
||||||
orderType: string;
|
enterPointSource: string;
|
||||||
enterPointSource: string;
|
clientOid: string;
|
||||||
clientOid: string;
|
loanType: string;
|
||||||
loanType: string;
|
price: string;
|
||||||
price: string;
|
side: string;
|
||||||
side: string;
|
status: string;
|
||||||
status: string;
|
baseSize: string;
|
||||||
baseSize: string;
|
quoteSize: string;
|
||||||
quoteSize: string;
|
priceAvg: string;
|
||||||
priceAvg: string;
|
size: string;
|
||||||
size: string;
|
amount: string;
|
||||||
amount: string;
|
force: string;
|
||||||
force: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
maxId: string;
|
|
||||||
minId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarginHistoryOrdersV2 {
|
export interface MarginHistoryOrderV2 {
|
||||||
orderList: {
|
orderId: string;
|
||||||
orderId: string;
|
symbol: string;
|
||||||
symbol: string;
|
orderType: string;
|
||||||
orderType: string;
|
enterPointSource: string;
|
||||||
enterPointSource: string;
|
clientOid: string;
|
||||||
clientOid: string;
|
loanType: string;
|
||||||
loanType: string;
|
price: string;
|
||||||
price: string;
|
side: string;
|
||||||
side: string;
|
status: string;
|
||||||
status: string;
|
baseSize: string;
|
||||||
baseSize: string;
|
quoteSize: string;
|
||||||
quoteSize: string;
|
priceAvg: string;
|
||||||
priceAvg: string;
|
size: string;
|
||||||
size: string;
|
amount: string;
|
||||||
amount: string;
|
force: string;
|
||||||
force: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
maxId: string;
|
|
||||||
minId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarginOrderFillsV2 {
|
export interface MarginOrderFillV2 {
|
||||||
fills: {
|
orderId: string;
|
||||||
orderId: string;
|
tradeId: string;
|
||||||
tradeId: string;
|
orderType: string;
|
||||||
orderType: string;
|
side: string;
|
||||||
side: string;
|
priceAvg: string;
|
||||||
priceAvg: string;
|
size: string;
|
||||||
size: string;
|
amount: string;
|
||||||
amount: string;
|
tradeScope: string;
|
||||||
tradeScope: string;
|
feeDetail: {
|
||||||
feeDetail: {
|
deduction: string;
|
||||||
deduction: string;
|
feeCoin: string;
|
||||||
feeCoin: string;
|
totalDeductionFee: string;
|
||||||
totalDeductionFee: string;
|
totalFee: string;
|
||||||
totalFee: string;
|
};
|
||||||
};
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
minId: string;
|
|
||||||
maxId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarginLiquidationOrdersV2 {
|
export interface MarginLiquidationOrderV2 {
|
||||||
resultList: {
|
symbol: string;
|
||||||
symbol: string;
|
orderType: string;
|
||||||
orderType: string;
|
side: string;
|
||||||
side: string;
|
priceAvg: string;
|
||||||
priceAvg: string;
|
price: string;
|
||||||
price: string;
|
fillSize: string;
|
||||||
fillSize: string;
|
size: string;
|
||||||
size: string;
|
amount: string;
|
||||||
amount: string;
|
orderId: string;
|
||||||
orderId: string;
|
fromCoin: string;
|
||||||
fromCoin: string;
|
toCoin: string;
|
||||||
toCoin: string;
|
fromSize: string;
|
||||||
fromSize: string;
|
toSize: string;
|
||||||
toSize: string;
|
cTime: string;
|
||||||
cTime: string;
|
uTime: string;
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
idLessThan: string;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,27 +4,29 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
export interface SpotCoinChainV2 {
|
||||||
|
chain: string;
|
||||||
|
needTag: boolean;
|
||||||
|
withdrawable: boolean;
|
||||||
|
rechargeable: boolean;
|
||||||
|
withdrawFee: string;
|
||||||
|
extraWithdrawFee: string;
|
||||||
|
depositConfirm: string;
|
||||||
|
withdrawConfirm: string;
|
||||||
|
minDepositAmount: string;
|
||||||
|
minWithdrawAmount: string;
|
||||||
|
browserUrl: string;
|
||||||
|
contractAddress: string;
|
||||||
|
withdrawStep: string;
|
||||||
|
withdrawMinScale: string;
|
||||||
|
congestion: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface SpotCoinInfoV2 {
|
export interface SpotCoinInfoV2 {
|
||||||
coinId: string;
|
coinId: string;
|
||||||
coin: string;
|
coin: string;
|
||||||
transfer: boolean;
|
transfer: boolean;
|
||||||
chains: {
|
chains: SpotCoinChainV2[];
|
||||||
chain: string;
|
|
||||||
needTag: boolean;
|
|
||||||
withdrawable: boolean;
|
|
||||||
rechargeable: boolean;
|
|
||||||
withdrawFee: string;
|
|
||||||
extraWithdrawFee: string;
|
|
||||||
depositConfirm: string;
|
|
||||||
withdrawConfirm: string;
|
|
||||||
minDepositAmount: string;
|
|
||||||
minWithdrawAmount: string;
|
|
||||||
browserUrl: string;
|
|
||||||
contractAddress: string;
|
|
||||||
withdrawStep: string;
|
|
||||||
withdrawMinScale: string;
|
|
||||||
congestion: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SpotSymbolInfoV2 {
|
export interface SpotSymbolInfoV2 {
|
||||||
@@ -225,24 +227,37 @@ export interface SpotFillV2 {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface SpotCurrentPlanOrderV2 {
|
export interface SpotCurrentPlanOrderV2 {
|
||||||
nextFlag: boolean;
|
orderId: string;
|
||||||
idLessThan: string;
|
clientOid: string;
|
||||||
orderList: {
|
symbol: string;
|
||||||
orderId: string;
|
size: string;
|
||||||
clientOid: string;
|
executePrice: string;
|
||||||
symbol: string;
|
triggerPrice: string;
|
||||||
size: string;
|
status: string;
|
||||||
executePrice: string;
|
orderType: string;
|
||||||
triggerPrice: string;
|
side: string;
|
||||||
status: string;
|
planType: string;
|
||||||
orderType: string;
|
triggerType: string;
|
||||||
side: string;
|
enterPointSource: string;
|
||||||
planType: string;
|
uTime: string;
|
||||||
triggerType: string;
|
cTime: string;
|
||||||
enterPointSource: string;
|
}
|
||||||
uTime: string;
|
|
||||||
cTime: string;
|
export interface SpotHistoryPlanOrderV2 {
|
||||||
}[];
|
orderId: string;
|
||||||
|
clientOid: string;
|
||||||
|
symbol: string;
|
||||||
|
size: string;
|
||||||
|
executePrice: string;
|
||||||
|
triggerPrice: string;
|
||||||
|
status: string;
|
||||||
|
orderType: string;
|
||||||
|
side: string;
|
||||||
|
planType: string;
|
||||||
|
triggerType: string;
|
||||||
|
enterPointSource: string;
|
||||||
|
uTime: string;
|
||||||
|
cTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SpotPlanSubOrderV2 {
|
export interface SpotPlanSubOrderV2 {
|
||||||
@@ -291,16 +306,17 @@ export interface SpotAccountAssetV2 {
|
|||||||
uTime: string;
|
uTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface SpotSubAccountAssetV2 {
|
||||||
|
coin: string;
|
||||||
|
available: string;
|
||||||
|
limitAvailable: string;
|
||||||
|
frozen: string;
|
||||||
|
locked: string;
|
||||||
|
uTime: string;
|
||||||
|
}
|
||||||
export interface SpotSubAccountAssetsV2 {
|
export interface SpotSubAccountAssetsV2 {
|
||||||
userId: number;
|
userId: number;
|
||||||
assetsList: {
|
assetsList: SpotSubAccountAssetV2[];
|
||||||
coin: string;
|
|
||||||
available: string;
|
|
||||||
limitAvailable: string;
|
|
||||||
frozen: string;
|
|
||||||
locked: string;
|
|
||||||
uTime: string;
|
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SpotAccountBillV2 {
|
export interface SpotAccountBillV2 {
|
||||||
|
|||||||
Reference in New Issue
Block a user