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<
|
||||||
|
APIResponse<{
|
||||||
coin: string;
|
coin: string;
|
||||||
}): Promise<APIResponse<FuturesInterestRateHistoryV2>> {
|
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,10 +13,7 @@ export interface CreateSubaccountResponseV2 {
|
|||||||
cTime: string;
|
cTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SubaccountsListV2 {
|
export interface BrokerSubaccountV2 {
|
||||||
hasNextPage: boolean;
|
|
||||||
idLessThan: number;
|
|
||||||
subList: {
|
|
||||||
subUid: string;
|
subUid: string;
|
||||||
subaccountName: string;
|
subaccountName: string;
|
||||||
status: string;
|
status: string;
|
||||||
@@ -25,7 +22,6 @@ export interface SubaccountsListV2 {
|
|||||||
language: string;
|
language: string;
|
||||||
cTime: string;
|
cTime: string;
|
||||||
uTime: string;
|
uTime: string;
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ModifySubaccountResponseV2 {
|
export interface ModifySubaccountResponseV2 {
|
||||||
@@ -47,18 +43,15 @@ 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;
|
||||||
@@ -70,7 +63,6 @@ export interface SubaccountFutureAssetsV2 {
|
|||||||
usdtEquity: string;
|
usdtEquity: string;
|
||||||
btcEquity: string;
|
btcEquity: string;
|
||||||
uTime: string;
|
uTime: string;
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateSubaccountDepositAddressV2 {
|
export interface CreateSubaccountDepositAddressV2 {
|
||||||
@@ -101,8 +93,7 @@ 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;
|
||||||
@@ -119,8 +110,6 @@ export interface SubaccountWithdrawalV2 {
|
|||||||
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,8 +70,7 @@ export interface P2PMerchantOrderV2 {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface P2PMerchantListV2 {
|
export interface P2PMerchantV2 {
|
||||||
merchantList: {
|
|
||||||
registerTime: string;
|
registerTime: string;
|
||||||
nickName: string;
|
nickName: string;
|
||||||
isOnline: string;
|
isOnline: string;
|
||||||
@@ -85,8 +84,6 @@ export interface P2PMerchantListV2 {
|
|||||||
sell30d: string;
|
sell30d: string;
|
||||||
buy30d: string;
|
buy30d: string;
|
||||||
completionRate30d: string;
|
completionRate30d: string;
|
||||||
}[];
|
|
||||||
minMerchantId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface P2PMerchantInfoV2 {
|
export interface P2PMerchantInfoV2 {
|
||||||
@@ -111,7 +108,6 @@ export interface P2PMerchantInfoV2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface P2PMerchantOrderV2 {
|
export interface P2PMerchantOrderV2 {
|
||||||
orderList: {
|
|
||||||
orderId: string;
|
orderId: string;
|
||||||
orderNo: string;
|
orderNo: string;
|
||||||
advNo: string;
|
advNo: string;
|
||||||
@@ -140,12 +136,9 @@ export interface P2PMerchantOrderV2 {
|
|||||||
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;
|
||||||
@@ -188,8 +181,6 @@ export interface P2PMerchantAdvertisementV2 {
|
|||||||
}[];
|
}[];
|
||||||
utime: string;
|
utime: string;
|
||||||
ctime: string;
|
ctime: string;
|
||||||
}[];
|
|
||||||
minAdvId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -291,9 +282,7 @@ export interface CreateVirtualSubAccountAndApiKeyV2 {
|
|||||||
ipList: string[];
|
ipList: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VirtualSubAccountListV2 {
|
export interface VirtualSubAccountV2 {
|
||||||
endId: string;
|
|
||||||
subAccountList: {
|
|
||||||
subAccountUid: string;
|
subAccountUid: string;
|
||||||
subAccountName: string;
|
subAccountName: string;
|
||||||
status: string;
|
status: string;
|
||||||
@@ -303,7 +292,6 @@ export interface VirtualSubAccountListV2 {
|
|||||||
bindingTime: string;
|
bindingTime: string;
|
||||||
cTime: string;
|
cTime: string;
|
||||||
uTime: 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,8 +372,7 @@ 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;
|
||||||
@@ -395,18 +381,16 @@ export interface ConvertHistoryV2 {
|
|||||||
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;
|
||||||
@@ -416,9 +400,9 @@ export interface BGBConvertCoinsV2 {
|
|||||||
fee: string;
|
fee: string;
|
||||||
}[];
|
}[];
|
||||||
cTime: string;
|
cTime: string;
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export interface ConvertBGBResponseV2 {
|
export interface ConvertBGBResponseV2 {
|
||||||
orderList: {
|
orderList: {
|
||||||
coin: string;
|
coin: string;
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface CTFuturesTraderCurrentOrderV2 {
|
export interface CTFuturesTraderCurrentOrderV2 {
|
||||||
trackingList: {
|
|
||||||
trackingNo: string;
|
trackingNo: string;
|
||||||
openOrderId: string;
|
openOrderId: string;
|
||||||
symbol: string;
|
symbol: string;
|
||||||
@@ -20,12 +19,14 @@ export interface CTFuturesTraderCurrentOrderV2 {
|
|||||||
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;
|
||||||
@@ -44,10 +45,23 @@ export interface CTFuturesTraderHistoryOrderV2 {
|
|||||||
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 CTFuturesTraderProfitShareHistoryV2 {
|
export interface CTFuturesTraderProfitShare {
|
||||||
profitList: {
|
|
||||||
profitId: string;
|
profitId: string;
|
||||||
coin: string;
|
coin: string;
|
||||||
profit: string;
|
profit: string;
|
||||||
nickName: string;
|
nickName: string;
|
||||||
profitTime: string;
|
profitTime: string;
|
||||||
}[];
|
}
|
||||||
|
|
||||||
|
export interface CTFuturesTraderProfitShareHistoryV2 {
|
||||||
|
profitList: CTFuturesTraderProfitShare[];
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -146,8 +152,7 @@ export interface CTFuturesFollowerCurrentOrdersV2 {
|
|||||||
closeTime: string;
|
closeTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTFuturesFollowerHistoryOrdersV2 {
|
export interface CTFuturesFollowerHistoryOrderV2 {
|
||||||
trackingList: {
|
|
||||||
trackingNo: string;
|
trackingNo: string;
|
||||||
posSide: string;
|
posSide: string;
|
||||||
openLeverage: string;
|
openLeverage: string;
|
||||||
@@ -167,13 +172,14 @@ export interface CTFuturesFollowerHistoryOrdersV2 {
|
|||||||
closeTime: string;
|
closeTime: string;
|
||||||
traderId: string;
|
traderId: string;
|
||||||
productType: string;
|
productType: string;
|
||||||
}[];
|
}
|
||||||
|
|
||||||
|
export interface CTFuturesFollowerHistoryOrdersV2 {
|
||||||
|
trackingList: CTFuturesFollowerHistoryOrderV2[];
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTFuturesFollowerSettingsV2 {
|
export interface CTFuturesFollowerSettingV2 {
|
||||||
followerEnable: string;
|
|
||||||
detailList: {
|
|
||||||
symbol: string;
|
symbol: string;
|
||||||
productType: string;
|
productType: string;
|
||||||
marginType: string;
|
marginType: string;
|
||||||
@@ -182,11 +188,11 @@ export interface CTFuturesFollowerSettingsV2 {
|
|||||||
longLeverage: string;
|
longLeverage: string;
|
||||||
shortLeverage: string;
|
shortLeverage: string;
|
||||||
traceType: string;
|
traceType: string;
|
||||||
traceValue: string;
|
}
|
||||||
maxHoldSize: string;
|
|
||||||
stopSurplusRatio: string;
|
export interface CTFuturesFollowerSettingsV2 {
|
||||||
stopLossRatio: string;
|
followerEnable: string;
|
||||||
}[];
|
detailList: CTFuturesFollowerSettingV2[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTFuturesFollowerMyTradersV2 {
|
export interface CTFuturesFollowerMyTradersV2 {
|
||||||
@@ -230,16 +236,18 @@ export interface CTSpotTraderProfitSummaryV2 {
|
|||||||
}[];
|
}[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTSpotTraderHistoryProfitSharingV2 {
|
export interface CTSpotTraderHistoryProfitShareItemV2 {
|
||||||
endId: string;
|
|
||||||
profitList: {
|
|
||||||
profitId: string;
|
profitId: string;
|
||||||
coin: string;
|
coin: string;
|
||||||
distributeRatio: string;
|
distributeRatio: string;
|
||||||
profit: string;
|
profit: string;
|
||||||
followerName: string;
|
followerName: string;
|
||||||
profitTime: string;
|
profitTime: string;
|
||||||
}[];
|
}
|
||||||
|
|
||||||
|
export interface CTSpotTraderHistoryProfitSharingV2 {
|
||||||
|
endId: string;
|
||||||
|
profitList: CTSpotTraderHistoryProfitShareItemV2[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTSpotTraderUnrealizedProfitV2 {
|
export interface CTSpotTraderUnrealizedProfitV2 {
|
||||||
@@ -259,27 +267,13 @@ 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 CTSpotTraderHistoryOrdersV2 {
|
export interface CTSpotTraderHistoryOrderV2 {
|
||||||
endId: string;
|
|
||||||
trackingList: {
|
|
||||||
trackingNo: string;
|
trackingNo: string;
|
||||||
fillSize: string;
|
fillSize: string;
|
||||||
buyPrice: string;
|
buyPrice: string;
|
||||||
@@ -293,12 +287,13 @@ export interface CTSpotTraderHistoryOrdersV2 {
|
|||||||
symbol: string;
|
symbol: string;
|
||||||
netProfit: string;
|
netProfit: string;
|
||||||
followCount: string;
|
followCount: string;
|
||||||
}[];
|
}
|
||||||
|
export interface CTSpotTraderHistoryOrdersV2 {
|
||||||
|
endId: string;
|
||||||
|
trackingList: CTSpotTraderHistoryOrderV2[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTSpotTraderCurrentTrackingOrdersV2 {
|
export interface CTSpotTraderCurrentTrackingOrderV2 {
|
||||||
endId: string;
|
|
||||||
trackingList: {
|
|
||||||
trackingNo: string;
|
trackingNo: string;
|
||||||
orderId: string;
|
orderId: string;
|
||||||
buyFillSize: string;
|
buyFillSize: string;
|
||||||
@@ -312,7 +307,11 @@ export interface CTSpotTraderCurrentTrackingOrdersV2 {
|
|||||||
stopLossPrice: string | null;
|
stopLossPrice: string | null;
|
||||||
stopSurplusPrice: string | null;
|
stopSurplusPrice: string | null;
|
||||||
followCount: string;
|
followCount: string;
|
||||||
}[];
|
}
|
||||||
|
|
||||||
|
export interface CTSpotTraderCurrentTrackingOrdersV2 {
|
||||||
|
endId: string;
|
||||||
|
trackingList: CTSpotTraderCurrentTrackingOrderV2[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTSpotTraderFollowerListV2 {
|
export interface CTSpotTraderFollowerListV2 {
|
||||||
@@ -332,8 +331,7 @@ export interface CTSpotTraderFollowerListV2 {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface CTSpotFollowerMyTradersV2 {
|
export interface CTSpotFollowerMyTraderV2 {
|
||||||
resultList: {
|
|
||||||
certificationType: string;
|
certificationType: string;
|
||||||
traceTotalAmount: string;
|
traceTotalAmount: string;
|
||||||
traceTotalNetProfit: string;
|
traceTotalNetProfit: string;
|
||||||
@@ -345,21 +343,21 @@ export interface CTSpotFollowerMyTradersV2 {
|
|||||||
followCount: string;
|
followCount: string;
|
||||||
bgbFollowCount: string;
|
bgbFollowCount: string;
|
||||||
followerTime: string;
|
followerTime: string;
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTSpotFollowerFollowConfigurationV2 {
|
export interface CTSpotFollowerMyTradersV2 {
|
||||||
enable: string;
|
resultList: CTSpotFollowerMyTraderV2[];
|
||||||
profitRate: string;
|
}
|
||||||
settledInDays: string;
|
|
||||||
tradeSettingList: {
|
export interface CTSpotFollowerTradeSettingV2 {
|
||||||
maxTraceAmount: string;
|
maxTraceAmount: string;
|
||||||
stopLossRation: string;
|
stopLossRation: string;
|
||||||
stopSurplusRation: string;
|
stopSurplusRation: string;
|
||||||
symbol: string;
|
symbol: string;
|
||||||
traceType: string;
|
traceType: string;
|
||||||
}[];
|
}
|
||||||
tradeSymbolSettingList: {
|
|
||||||
|
export interface CTSpotFollowerTradeSymbolSettingV2 {
|
||||||
maxStopLossRation: string;
|
maxStopLossRation: string;
|
||||||
maxStopSurplusRation: string;
|
maxStopSurplusRation: string;
|
||||||
maxTraceAmount: string;
|
maxTraceAmount: string;
|
||||||
@@ -374,14 +372,19 @@ export interface CTSpotFollowerFollowConfigurationV2 {
|
|||||||
sliderMaxStopLossRatio: string;
|
sliderMaxStopLossRatio: string;
|
||||||
sliderMaxStopSurplusRatio: string;
|
sliderMaxStopSurplusRatio: string;
|
||||||
symbol: string;
|
symbol: string;
|
||||||
}[];
|
}
|
||||||
|
|
||||||
|
export interface CTSpotFollowerFollowConfigurationV2 {
|
||||||
|
enable: string;
|
||||||
|
profitRate: string;
|
||||||
|
settledInDays: string;
|
||||||
|
tradeSettingList: CTSpotFollowerTradeSettingV2[];
|
||||||
|
tradeSymbolSettingList: CTSpotFollowerTradeSymbolSettingV2[];
|
||||||
traderHeadPic: string;
|
traderHeadPic: string;
|
||||||
traderName: string;
|
traderName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTSpotFollowerHistoryOrdersV2 {
|
export interface CTSpotFollowerHistoryOrderV2 {
|
||||||
endId: string;
|
|
||||||
trackingList: {
|
|
||||||
trackingNo: string;
|
trackingNo: string;
|
||||||
traderId: string;
|
traderId: string;
|
||||||
fillSize: string;
|
fillSize: string;
|
||||||
@@ -394,12 +397,13 @@ export interface CTSpotFollowerHistoryOrdersV2 {
|
|||||||
symbol: string;
|
symbol: string;
|
||||||
buyTime: string;
|
buyTime: string;
|
||||||
sellTime: string;
|
sellTime: string;
|
||||||
}[];
|
}
|
||||||
|
export interface CTSpotFollowerHistoryOrdersV2 {
|
||||||
|
endId: string;
|
||||||
|
trackingList: CTSpotFollowerHistoryOrderV2[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CTSpotFollowerCurrentOrdersV2 {
|
export interface CTSpotFollowerCurrentOrderV2 {
|
||||||
endId: string;
|
|
||||||
trackingList: {
|
|
||||||
trackingNo: string;
|
trackingNo: string;
|
||||||
traderId: string;
|
traderId: string;
|
||||||
buyFillSize: string;
|
buyFillSize: string;
|
||||||
@@ -412,5 +416,9 @@ export interface CTSpotFollowerCurrentOrdersV2 {
|
|||||||
symbol: string;
|
symbol: string;
|
||||||
stopSurplusPrice: string | null;
|
stopSurplusPrice: string | null;
|
||||||
stopLossPrice: string | null;
|
stopLossPrice: string | null;
|
||||||
}[];
|
}
|
||||||
|
|
||||||
|
export interface CTSpotFollowerCurrentOrdersV2 {
|
||||||
|
endId: string;
|
||||||
|
trackingList: CTSpotFollowerCurrentOrderV2[];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,8 +33,7 @@ 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;
|
||||||
@@ -54,12 +53,14 @@ export interface EarnSavingsAssetsV2 {
|
|||||||
maxApy: string;
|
maxApy: string;
|
||||||
currentApy: string;
|
currentApy: string;
|
||||||
}[];
|
}[];
|
||||||
}[];
|
}
|
||||||
|
|
||||||
|
export interface EarnSavingsAssetsV2 {
|
||||||
|
resultList: EarnSavingsAssetV2[];
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface EarnSavingsRecordsV2 {
|
export interface EarnSavingsRecordV2 {
|
||||||
resultList: {
|
|
||||||
orderId: string;
|
orderId: string;
|
||||||
coinName: string;
|
coinName: string;
|
||||||
settleCoinName: string;
|
settleCoinName: string;
|
||||||
@@ -69,7 +70,10 @@ export interface EarnSavingsRecordsV2 {
|
|||||||
amount: string;
|
amount: string;
|
||||||
ts: string;
|
ts: string;
|
||||||
orderType: string;
|
orderType: string;
|
||||||
}[];
|
}
|
||||||
|
|
||||||
|
export interface EarnSavingsRecordsV2 {
|
||||||
|
resultList: EarnSavingsRecordV2[];
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -110,8 +114,7 @@ export interface EarnSavingsSubscriptionDetailV2 {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface EarnSharkfinProductsV2 {
|
export interface EarnSharkfinProductV2 {
|
||||||
resultList: {
|
|
||||||
productId: string;
|
productId: string;
|
||||||
productName: string;
|
productName: string;
|
||||||
productCoin: string;
|
productCoin: string;
|
||||||
@@ -129,7 +132,10 @@ export interface EarnSharkfinProductsV2 {
|
|||||||
soldAmount: string;
|
soldAmount: string;
|
||||||
endTime: string;
|
endTime: string;
|
||||||
startTime: string;
|
startTime: string;
|
||||||
}[];
|
}
|
||||||
|
|
||||||
|
export interface EarnSharkfinProductsV2 {
|
||||||
|
resultList: EarnSharkfinProductV2[];
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -142,8 +148,7 @@ export interface EarnSharkfinAccountV2 {
|
|||||||
usdtTotalEarning: string;
|
usdtTotalEarning: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface EarnSharkfinAssetsV2 {
|
export interface EarnSharkfinAssetV2 {
|
||||||
resultList: {
|
|
||||||
productId: string;
|
productId: string;
|
||||||
interestStartTime: string;
|
interestStartTime: string;
|
||||||
interestEndTime: string;
|
interestEndTime: string;
|
||||||
@@ -153,19 +158,23 @@ export interface EarnSharkfinAssetsV2 {
|
|||||||
settleTime: string;
|
settleTime: string;
|
||||||
interestAmount: string;
|
interestAmount: string;
|
||||||
productStatus: string;
|
productStatus: string;
|
||||||
}[];
|
}
|
||||||
|
|
||||||
|
export interface EarnSharkfinAssetsV2 {
|
||||||
|
resultList: EarnSharkfinAssetV2[];
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface EarnSharkfinRecordsV2 {
|
export interface EarnSharkfinRecordV2 {
|
||||||
resultList: {
|
|
||||||
orderId: string;
|
orderId: string;
|
||||||
product: string;
|
product: string;
|
||||||
period: string;
|
period: string;
|
||||||
amount: string;
|
amount: string;
|
||||||
ts: string;
|
ts: string;
|
||||||
type: string;
|
type: string;
|
||||||
}[];
|
}
|
||||||
|
export interface EarnSharkfinRecordsV2 {
|
||||||
|
resultList: EarnSharkfinRecordV2[];
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,8 +206,7 @@ export interface EarnSharkfinSubscriptionDetailV2 {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface EarnLoanCurrenciesV2 {
|
export interface EarnLoanCurrencyLoanInfoV2 {
|
||||||
loanInfos: {
|
|
||||||
coin: string;
|
coin: string;
|
||||||
hourRate7D: string;
|
hourRate7D: string;
|
||||||
rate7D: string;
|
rate7D: string;
|
||||||
@@ -208,15 +216,19 @@ export interface EarnLoanCurrenciesV2 {
|
|||||||
maxUsdt: string;
|
maxUsdt: string;
|
||||||
min: string;
|
min: string;
|
||||||
max: string;
|
max: string;
|
||||||
}[];
|
}
|
||||||
pledgeInfos: {
|
export interface EarnLoanCurrencyPledgeInfoV2 {
|
||||||
coin: string;
|
coin: string;
|
||||||
initRate: string;
|
initRate: string;
|
||||||
supRate: string;
|
supRate: string;
|
||||||
forceRate: string;
|
forceRate: string;
|
||||||
minUsdt: string;
|
minUsdt: string;
|
||||||
maxUsdt: string;
|
maxUsdt: string;
|
||||||
}[];
|
}
|
||||||
|
|
||||||
|
export interface EarnLoanCurrenciesV2 {
|
||||||
|
loanInfos: EarnLoanCurrencyLoanInfoV2[];
|
||||||
|
pledgeInfos: EarnLoanCurrencyPledgeInfoV2[];
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
|
||||||
historyInterestRateList: {
|
|
||||||
ts: string;
|
ts: string;
|
||||||
annualInterestRate: string;
|
annualInterestRate: string;
|
||||||
dailyInterestRate: string;
|
dailyInterestRate: string;
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesInterestExchangeRateV2 {
|
export interface FuturesInterestExchangeRateV2 {
|
||||||
coin: string;
|
|
||||||
exchangeRateList: {
|
|
||||||
tier: string;
|
tier: string;
|
||||||
minAmount: string;
|
minAmount: string;
|
||||||
maxAmount: string;
|
maxAmount: string;
|
||||||
exchangeRate: string;
|
exchangeRate: string;
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesDiscountRateV2 {
|
export interface FuturesDiscountRateV2 {
|
||||||
coin: string;
|
|
||||||
userLimit: string;
|
|
||||||
totalLimit: string;
|
|
||||||
discountRateList: {
|
|
||||||
tier: string;
|
tier: string;
|
||||||
minAmount: string;
|
minAmount: string;
|
||||||
maxAmount: string;
|
maxAmount: string;
|
||||||
discountRate: string;
|
discountRate: string;
|
||||||
}[];
|
}
|
||||||
|
|
||||||
|
export interface FuturesDiscountRatesV2 {
|
||||||
|
coin: string;
|
||||||
|
userLimit: string;
|
||||||
|
totalLimit: string;
|
||||||
|
discountRateList: FuturesDiscountRateV2[];
|
||||||
}
|
}
|
||||||
|
|
||||||
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,9 +210,7 @@ export interface FuturesAccountListV2 {
|
|||||||
assetMode: string;
|
assetMode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesSubAccountAssetsV2 {
|
export interface FuturesSubAccountAssetV2 {
|
||||||
userId: number;
|
|
||||||
assetList: {
|
|
||||||
marginCoin: string;
|
marginCoin: string;
|
||||||
locked: string;
|
locked: string;
|
||||||
available: string;
|
available: string;
|
||||||
@@ -231,14 +222,9 @@ export interface FuturesSubAccountAssetsV2 {
|
|||||||
btcEquity: string;
|
btcEquity: string;
|
||||||
unrealizedPL: string;
|
unrealizedPL: string;
|
||||||
coupon: string;
|
coupon: string;
|
||||||
}[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesInterestHistoryV2 {
|
export interface FuturesInterestV2 {
|
||||||
nextSettleTime: string;
|
|
||||||
borrowAmount: string;
|
|
||||||
borrowLimit: string;
|
|
||||||
interestList: {
|
|
||||||
coin: string;
|
coin: string;
|
||||||
liability: string;
|
liability: string;
|
||||||
interestFreeLimit: string;
|
interestFreeLimit: string;
|
||||||
@@ -246,7 +232,12 @@ export interface FuturesInterestHistoryV2 {
|
|||||||
hourInterestRate: string;
|
hourInterestRate: string;
|
||||||
interest: string;
|
interest: string;
|
||||||
cTime: string;
|
cTime: string;
|
||||||
}[];
|
}
|
||||||
|
export interface FuturesInterestHistoryV2 {
|
||||||
|
nextSettleTime: string;
|
||||||
|
borrowAmount: string;
|
||||||
|
borrowLimit: string;
|
||||||
|
interestList: FuturesInterestV2[];
|
||||||
endId: string;
|
endId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -268,7 +259,6 @@ export interface SetMarginModeResponseV2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesAccountBillV2 {
|
export interface FuturesAccountBillV2 {
|
||||||
bills: {
|
|
||||||
billId: string;
|
billId: string;
|
||||||
symbol: string;
|
symbol: string;
|
||||||
amount: string;
|
amount: string;
|
||||||
@@ -278,8 +268,6 @@ export interface FuturesAccountBillV2 {
|
|||||||
coin: string;
|
coin: string;
|
||||||
balance: string;
|
balance: string;
|
||||||
cTime: string;
|
cTime: string;
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -325,8 +313,7 @@ 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;
|
||||||
@@ -343,8 +330,6 @@ export interface FuturesHistoricalPositionV2 {
|
|||||||
closeFee: string;
|
closeFee: string;
|
||||||
cTime: string;
|
cTime: string;
|
||||||
uTime: string;
|
uTime: string;
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -412,8 +397,7 @@ 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;
|
||||||
@@ -433,12 +417,9 @@ export interface FuturesOrderFillsV2 {
|
|||||||
posMode: string;
|
posMode: string;
|
||||||
tradeScope: string;
|
tradeScope: string;
|
||||||
cTime: string;
|
cTime: string;
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesOpenOrdersV2 {
|
export interface FuturesOpenOrderV2 {
|
||||||
entrustedList: {
|
|
||||||
symbol: string;
|
symbol: string;
|
||||||
size: string;
|
size: string;
|
||||||
orderId: string;
|
orderId: string;
|
||||||
@@ -469,12 +450,9 @@ export interface FuturesOpenOrdersV2 {
|
|||||||
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;
|
||||||
@@ -501,8 +479,6 @@ export interface FuturesHistoryOrdersV2 {
|
|||||||
uTime: string;
|
uTime: string;
|
||||||
presetStopSurplusPrice: string;
|
presetStopSurplusPrice: string;
|
||||||
presetStopLossPrice: string;
|
presetStopLossPrice: string;
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesCancelAllOrdersV2 {
|
export interface FuturesCancelAllOrdersV2 {
|
||||||
@@ -532,7 +508,6 @@ export interface FuturesTriggerSubOrderV2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesPendingPlanOrderV2 {
|
export interface FuturesPendingPlanOrderV2 {
|
||||||
entrustedList: {
|
|
||||||
planType: string;
|
planType: string;
|
||||||
symbol: string;
|
symbol: string;
|
||||||
size: string;
|
size: string;
|
||||||
@@ -561,8 +536,6 @@ export interface FuturesPendingPlanOrderV2 {
|
|||||||
stopLossExecutePrice: string;
|
stopLossExecutePrice: string;
|
||||||
stopLossTriggerPrice: string;
|
stopLossTriggerPrice: string;
|
||||||
stopLossTriggerType: string;
|
stopLossTriggerType: string;
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesCancelPlanOrderV2 {
|
export interface FuturesCancelPlanOrderV2 {
|
||||||
@@ -578,7 +551,6 @@ export interface FuturesCancelPlanOrderV2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesHistoryPlanOrderV2 {
|
export interface FuturesHistoryPlanOrderV2 {
|
||||||
entrustedList: {
|
|
||||||
planType: string;
|
planType: string;
|
||||||
symbol: string;
|
symbol: string;
|
||||||
size: string;
|
size: string;
|
||||||
@@ -609,6 +581,4 @@ export interface FuturesHistoryPlanOrderV2 {
|
|||||||
stopLossExecutePrice: string;
|
stopLossExecutePrice: string;
|
||||||
stopLossTriggerPrice: string;
|
stopLossTriggerPrice: string;
|
||||||
stopLossTriggerType: string;
|
stopLossTriggerType: string;
|
||||||
}[];
|
|
||||||
endId: string;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,21 +33,16 @@ 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;
|
||||||
@@ -57,13 +52,9 @@ export interface MarginRepaymentHistoryV2 {
|
|||||||
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;
|
||||||
@@ -73,13 +64,9 @@ export interface MarginInterestHistoryV2 {
|
|||||||
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;
|
||||||
@@ -90,13 +77,9 @@ export interface MarginLiquidationHistoryV2 {
|
|||||||
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;
|
||||||
@@ -106,9 +89,6 @@ export interface MarginFinancialHistoryV2 {
|
|||||||
marginType: string;
|
marginType: string;
|
||||||
cTime: string;
|
cTime: string;
|
||||||
uTime: string;
|
uTime: string;
|
||||||
}[];
|
|
||||||
maxId: string;
|
|
||||||
minId: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -242,8 +222,7 @@ export interface MarginBatchOrdersResponseV2 {
|
|||||||
}[];
|
}[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarginCurrentOrdersV2 {
|
export interface MarginCurrentOrderV2 {
|
||||||
orderList: {
|
|
||||||
orderId: string;
|
orderId: string;
|
||||||
symbol: string;
|
symbol: string;
|
||||||
orderType: string;
|
orderType: string;
|
||||||
@@ -261,13 +240,9 @@ export interface MarginCurrentOrdersV2 {
|
|||||||
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;
|
||||||
@@ -285,13 +260,9 @@ export interface MarginHistoryOrdersV2 {
|
|||||||
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;
|
||||||
@@ -308,13 +279,9 @@ export interface MarginOrderFillsV2 {
|
|||||||
};
|
};
|
||||||
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;
|
||||||
@@ -330,6 +297,4 @@ export interface MarginLiquidationOrdersV2 {
|
|||||||
toSize: string;
|
toSize: string;
|
||||||
cTime: string;
|
cTime: string;
|
||||||
uTime: string;
|
uTime: string;
|
||||||
}[];
|
|
||||||
idLessThan: string;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,11 +4,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface SpotCoinInfoV2 {
|
export interface SpotCoinChainV2 {
|
||||||
coinId: string;
|
|
||||||
coin: string;
|
|
||||||
transfer: boolean;
|
|
||||||
chains: {
|
|
||||||
chain: string;
|
chain: string;
|
||||||
needTag: boolean;
|
needTag: boolean;
|
||||||
withdrawable: boolean;
|
withdrawable: boolean;
|
||||||
@@ -24,7 +20,13 @@ export interface SpotCoinInfoV2 {
|
|||||||
withdrawStep: string;
|
withdrawStep: string;
|
||||||
withdrawMinScale: string;
|
withdrawMinScale: string;
|
||||||
congestion: string;
|
congestion: string;
|
||||||
}[];
|
}
|
||||||
|
|
||||||
|
export interface SpotCoinInfoV2 {
|
||||||
|
coinId: string;
|
||||||
|
coin: string;
|
||||||
|
transfer: boolean;
|
||||||
|
chains: SpotCoinChainV2[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SpotSymbolInfoV2 {
|
export interface SpotSymbolInfoV2 {
|
||||||
@@ -225,9 +227,6 @@ export interface SpotFillV2 {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface SpotCurrentPlanOrderV2 {
|
export interface SpotCurrentPlanOrderV2 {
|
||||||
nextFlag: boolean;
|
|
||||||
idLessThan: string;
|
|
||||||
orderList: {
|
|
||||||
orderId: string;
|
orderId: string;
|
||||||
clientOid: string;
|
clientOid: string;
|
||||||
symbol: string;
|
symbol: string;
|
||||||
@@ -242,7 +241,23 @@ export interface SpotCurrentPlanOrderV2 {
|
|||||||
enterPointSource: string;
|
enterPointSource: string;
|
||||||
uTime: string;
|
uTime: string;
|
||||||
cTime: 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 SpotSubAccountAssetsV2 {
|
export interface SpotSubAccountAssetV2 {
|
||||||
userId: number;
|
|
||||||
assetsList: {
|
|
||||||
coin: string;
|
coin: string;
|
||||||
available: string;
|
available: string;
|
||||||
limitAvailable: string;
|
limitAvailable: string;
|
||||||
frozen: string;
|
frozen: string;
|
||||||
locked: string;
|
locked: string;
|
||||||
uTime: string;
|
uTime: string;
|
||||||
}[];
|
}
|
||||||
|
export interface SpotSubAccountAssetsV2 {
|
||||||
|
userId: number;
|
||||||
|
assetsList: SpotSubAccountAssetV2[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SpotAccountBillV2 {
|
export interface SpotAccountBillV2 {
|
||||||
|
|||||||
Reference in New Issue
Block a user