chore(): added V2 suffixes
This commit is contained in:
@@ -12,7 +12,7 @@ export interface GetSubAccountsRequestV2 {
|
|||||||
endTime?: string;
|
endTime?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SubAccountPermission =
|
export type SubAccountPermissionV2 =
|
||||||
| 'withdraw'
|
| 'withdraw'
|
||||||
| 'transfer'
|
| 'transfer'
|
||||||
| 'spot_trade'
|
| 'spot_trade'
|
||||||
@@ -21,7 +21,7 @@ export type SubAccountPermission =
|
|||||||
| 'deposit'
|
| 'deposit'
|
||||||
| 'margin_trade';
|
| 'margin_trade';
|
||||||
|
|
||||||
export type SubAccountLanguage =
|
export type SubAccountLanguageV2 =
|
||||||
| 'en_US'
|
| 'en_US'
|
||||||
| 'zh_CN'
|
| 'zh_CN'
|
||||||
| 'ja_JP'
|
| 'ja_JP'
|
||||||
@@ -35,13 +35,13 @@ export type SubAccountLanguage =
|
|||||||
| 'pt_PT'
|
| 'pt_PT'
|
||||||
| 'th_TH';
|
| 'th_TH';
|
||||||
|
|
||||||
export type SubAccountStatus = 'normal' | 'freeze';
|
export type SubAccountStatusV2 = 'normal' | 'freeze';
|
||||||
|
|
||||||
export interface ModifySubRequestV2 {
|
export interface ModifySubRequestV2 {
|
||||||
subUid: string;
|
subUid: string;
|
||||||
permList: SubAccountPermission[];
|
permList: SubAccountPermissionV2[];
|
||||||
status: SubAccountStatus;
|
status: SubAccountStatusV2;
|
||||||
language?: SubAccountLanguage;
|
language?: SubAccountLanguageV2;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SubWithdrawalRequestV2 {
|
export interface SubWithdrawalRequestV2 {
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ export interface FuturesGetOpenOrdersRequestV2 {
|
|||||||
limit?: string;
|
limit?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type FuturesOrderSource =
|
export type FuturesOrderSourceV2 =
|
||||||
| 'normal'
|
| 'normal'
|
||||||
| 'market'
|
| 'market'
|
||||||
| 'profit_market'
|
| 'profit_market'
|
||||||
@@ -287,7 +287,7 @@ export interface FuturesGetHistoryOrdersRequestV2 {
|
|||||||
symbol?: string;
|
symbol?: string;
|
||||||
productType: FuturesProductTypeV2;
|
productType: FuturesProductTypeV2;
|
||||||
idLessThan?: string;
|
idLessThan?: string;
|
||||||
orderSource?: FuturesOrderSource;
|
orderSource?: FuturesOrderSourceV2;
|
||||||
startTime?: string;
|
startTime?: string;
|
||||||
endTime?: string;
|
endTime?: string;
|
||||||
limit?: string;
|
limit?: string;
|
||||||
@@ -307,9 +307,9 @@ export interface FuturesCancelAllOrdersRequestV2 {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export type FuturesTriggerType = 'fill_price' | 'mark_price';
|
export type FuturesTriggerTypeV2 = 'fill_price' | 'mark_price';
|
||||||
|
|
||||||
export type FuturesStpMode =
|
export type FuturesStpModeV2 =
|
||||||
| 'none'
|
| 'none'
|
||||||
| 'cancel_taker'
|
| 'cancel_taker'
|
||||||
| 'cancel_maker'
|
| 'cancel_maker'
|
||||||
@@ -321,16 +321,16 @@ export interface FuturesTPSLOrderRequestV2 {
|
|||||||
symbol: string;
|
symbol: string;
|
||||||
planType: FuturesPlanTypeV2;
|
planType: FuturesPlanTypeV2;
|
||||||
triggerPrice: string;
|
triggerPrice: string;
|
||||||
triggerType?: FuturesTriggerType;
|
triggerType?: FuturesTriggerTypeV2;
|
||||||
executePrice?: string;
|
executePrice?: string;
|
||||||
holdSide: 'long' | 'short' | 'buy' | 'sell';
|
holdSide: 'long' | 'short' | 'buy' | 'sell';
|
||||||
size: string;
|
size: string;
|
||||||
rangeRate?: string;
|
rangeRate?: string;
|
||||||
clientOid?: string;
|
clientOid?: string;
|
||||||
stpMode?: FuturesStpMode;
|
stpMode?: FuturesStpModeV2;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type FuturesTriggerPriceType =
|
export type FuturesTriggerPriceTypeV2 =
|
||||||
| 'fill_price'
|
| 'fill_price'
|
||||||
| 'mark_price'
|
| 'mark_price'
|
||||||
| 'index_price';
|
| 'index_price';
|
||||||
@@ -353,11 +353,11 @@ export interface FuturesPlanOrderRequestV2 {
|
|||||||
reduceOnly?: 'YES' | 'NO';
|
reduceOnly?: 'YES' | 'NO';
|
||||||
stopSurplusTriggerPrice?: string;
|
stopSurplusTriggerPrice?: string;
|
||||||
stopSurplusExecutePrice?: string;
|
stopSurplusExecutePrice?: string;
|
||||||
stopSurplusTriggerType?: FuturesTriggerPriceType;
|
stopSurplusTriggerType?: FuturesTriggerPriceTypeV2;
|
||||||
stopLossTriggerPrice?: string;
|
stopLossTriggerPrice?: string;
|
||||||
stopLossExecutePrice?: string;
|
stopLossExecutePrice?: string;
|
||||||
stopLossTriggerType?: FuturesTriggerPriceType;
|
stopLossTriggerType?: FuturesTriggerPriceTypeV2;
|
||||||
stpMode?: FuturesStpMode;
|
stpMode?: FuturesStpModeV2;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesModifyTPSLOrderRequestV2 {
|
export interface FuturesModifyTPSLOrderRequestV2 {
|
||||||
@@ -386,10 +386,10 @@ export interface FuturesModifyPlanOrderRequestV2 {
|
|||||||
newTriggerType?: 'fill_price' | 'mark_price';
|
newTriggerType?: 'fill_price' | 'mark_price';
|
||||||
newStopSurplusTriggerPrice?: string;
|
newStopSurplusTriggerPrice?: string;
|
||||||
newStopSurplusExecutePrice?: string;
|
newStopSurplusExecutePrice?: string;
|
||||||
newStopSurplusTriggerType?: FuturesTriggerPriceType;
|
newStopSurplusTriggerType?: FuturesTriggerPriceTypeV2;
|
||||||
newStopLossTriggerPrice?: string;
|
newStopLossTriggerPrice?: string;
|
||||||
newStopLossExecutePrice?: string;
|
newStopLossExecutePrice?: string;
|
||||||
newStopLossTriggerType?: FuturesTriggerPriceType;
|
newStopLossTriggerType?: FuturesTriggerPriceTypeV2;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FuturesGetPlanOrdersRequestV2 {
|
export interface FuturesGetPlanOrdersRequestV2 {
|
||||||
@@ -404,12 +404,12 @@ export interface FuturesGetPlanOrdersRequestV2 {
|
|||||||
limit?: string;
|
limit?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface FuturesCancelPlanOrderItem {
|
interface FuturesCancelPlanOrderItemV2 {
|
||||||
orderId?: string;
|
orderId?: string;
|
||||||
clientOid?: string;
|
clientOid?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type FuturesPlanOrderType =
|
export type FuturesPlanOrderTypeV2 =
|
||||||
| 'normal_plan'
|
| 'normal_plan'
|
||||||
| 'profit_plan'
|
| 'profit_plan'
|
||||||
| 'loss_plan'
|
| 'loss_plan'
|
||||||
@@ -418,20 +418,20 @@ export type FuturesPlanOrderType =
|
|||||||
| 'moving_plan';
|
| 'moving_plan';
|
||||||
|
|
||||||
export interface FuturesCancelPlanOrderRequestV2 {
|
export interface FuturesCancelPlanOrderRequestV2 {
|
||||||
orderIdList?: FuturesCancelPlanOrderItem[];
|
orderIdList?: FuturesCancelPlanOrderItemV2[];
|
||||||
symbol?: string;
|
symbol?: string;
|
||||||
productType: FuturesProductTypeV2;
|
productType: FuturesProductTypeV2;
|
||||||
marginCoin?: string;
|
marginCoin?: string;
|
||||||
planType?: FuturesPlanOrderType;
|
planType?: FuturesPlanOrderTypeV2;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type FuturesPlanStatus = 'executed' | 'fail_trigger' | 'cancelled';
|
export type FuturesPlanStatusV2 = 'executed' | 'fail_trigger' | 'cancelled';
|
||||||
|
|
||||||
export interface FuturesGetHistoryPlanOrdersRequestV2 {
|
export interface FuturesGetHistoryPlanOrdersRequestV2 {
|
||||||
orderId?: string;
|
orderId?: string;
|
||||||
clientOid?: string;
|
clientOid?: string;
|
||||||
planType: 'normal_plan' | 'track_plan' | 'profit_loss';
|
planType: 'normal_plan' | 'track_plan' | 'profit_loss';
|
||||||
planStatus?: FuturesPlanStatus;
|
planStatus?: FuturesPlanStatusV2;
|
||||||
symbol?: string;
|
symbol?: string;
|
||||||
productType: FuturesProductTypeV2;
|
productType: FuturesProductTypeV2;
|
||||||
idLessThan?: string;
|
idLessThan?: string;
|
||||||
|
|||||||
@@ -58,19 +58,19 @@ export interface GetFinancialHistoryRequestV2 {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export type MarginOrderType = 'limit' | 'market';
|
export type MarginOrderTypeV2 = 'limit' | 'market';
|
||||||
|
|
||||||
export type MarginLoanType =
|
export type MarginLoanTypeV2 =
|
||||||
| 'normal'
|
| 'normal'
|
||||||
| 'autoLoan'
|
| 'autoLoan'
|
||||||
| 'autoRepay'
|
| 'autoRepay'
|
||||||
| 'autoLoanAndRepay';
|
| 'autoLoanAndRepay';
|
||||||
|
|
||||||
export type MarginTimeInForce = 'gtc' | 'post_only' | 'fok' | 'ioc';
|
export type MarginTimeInForceV2 = 'gtc' | 'post_only' | 'fok' | 'ioc';
|
||||||
|
|
||||||
export type MarginOrderSide = 'buy' | 'sell';
|
export type MarginOrderSideV2 = 'buy' | 'sell';
|
||||||
|
|
||||||
export type MarginSTPMode =
|
export type MarginSTPModeV2 =
|
||||||
| 'none'
|
| 'none'
|
||||||
| 'cancel_taker'
|
| 'cancel_taker'
|
||||||
| 'cancel_maker'
|
| 'cancel_maker'
|
||||||
@@ -78,27 +78,27 @@ export type MarginSTPMode =
|
|||||||
|
|
||||||
export interface MarginPlaceOrderRequestV2 {
|
export interface MarginPlaceOrderRequestV2 {
|
||||||
symbol: string;
|
symbol: string;
|
||||||
orderType: MarginOrderType;
|
orderType: MarginOrderTypeV2;
|
||||||
price?: string;
|
price?: string;
|
||||||
loanType: MarginLoanType;
|
loanType: MarginLoanTypeV2;
|
||||||
force: MarginTimeInForce;
|
force: MarginTimeInForceV2;
|
||||||
baseSize?: string;
|
baseSize?: string;
|
||||||
quoteSize?: string;
|
quoteSize?: string;
|
||||||
clientOid?: string;
|
clientOid?: string;
|
||||||
side: MarginOrderSide;
|
side: MarginOrderSideV2;
|
||||||
stpMode?: MarginSTPMode;
|
stpMode?: MarginSTPModeV2;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarginBatchOrderEntry {
|
export interface MarginBatchOrderEntry {
|
||||||
orderType: MarginOrderType;
|
orderType: MarginOrderTypeV2;
|
||||||
price?: string;
|
price?: string;
|
||||||
loanType: MarginLoanType;
|
loanType: MarginLoanTypeV2;
|
||||||
force: MarginTimeInForce;
|
force: MarginTimeInForceV2;
|
||||||
baseSize?: string;
|
baseSize?: string;
|
||||||
quoteSize?: string;
|
quoteSize?: string;
|
||||||
clientOid?: string;
|
clientOid?: string;
|
||||||
side: MarginOrderSide;
|
side: MarginOrderSideV2;
|
||||||
stpMode?: MarginSTPMode;
|
stpMode?: MarginSTPModeV2;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarginBatchOrdersRequestV2 {
|
export interface MarginBatchOrdersRequestV2 {
|
||||||
|
|||||||
Reference in New Issue
Block a user