copy trading API
This commit is contained in:
53
src/types/request/copy-trading.ts
Normal file
53
src/types/request/copy-trading.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
import { OrderSide } from '../shared';
|
||||
import { USDCOrderType } from './usdc-shared';
|
||||
|
||||
export interface CopyTradingOrderRequest {
|
||||
side: OrderSide;
|
||||
symbol: string;
|
||||
orderType: USDCOrderType;
|
||||
price: string;
|
||||
qty: string;
|
||||
takeProfit?: string;
|
||||
stopLoss?: string;
|
||||
tpTriggerBy?: string;
|
||||
slTriggerBy?: string;
|
||||
orderLinkId?: string;
|
||||
}
|
||||
|
||||
export interface CopyTradingTradingStopRequest {
|
||||
symbol: string;
|
||||
parentOrderId: string;
|
||||
takeProfit?: string;
|
||||
stopLoss?: string;
|
||||
tpTriggerBy?: string;
|
||||
slTriggerBy?: string;
|
||||
parentOrderLinkId?: string;
|
||||
}
|
||||
|
||||
export interface CopyTradingOrderListRequest {
|
||||
symbol?: string;
|
||||
orderId?: string;
|
||||
orderLinkId?: string;
|
||||
copyTradeOrderType?: string;
|
||||
}
|
||||
|
||||
export interface CopyTradingCancelOrderRequest {
|
||||
symbol: string;
|
||||
orderId?: string;
|
||||
orderLinkId?: string;
|
||||
}
|
||||
|
||||
export interface CopyTradingCloseOrderRequest {
|
||||
symbol: string;
|
||||
orderLinkId?: string;
|
||||
parentOrderId?: string;
|
||||
parentOrderLinkId?: string;
|
||||
}
|
||||
|
||||
export interface CopyTradingTransferRequest {
|
||||
transferId: string;
|
||||
coin: string;
|
||||
amount: string;
|
||||
fromAccountType: string;
|
||||
toAccountType: string;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
export * from './account-asset';
|
||||
export * from './copy-trading';
|
||||
export * from './usdt-perp';
|
||||
export * from './usdc-perp';
|
||||
export * from './usdc-options';
|
||||
|
||||
Reference in New Issue
Block a user