copy trading API

This commit is contained in:
tiagosiebler
2022-09-09 15:26:47 +01:00
parent eac6c95669
commit a1c0887417
12 changed files with 282 additions and 16 deletions

View 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;
}

View File

@@ -1,4 +1,5 @@
export * from './account-asset';
export * from './copy-trading';
export * from './usdt-perp';
export * from './usdc-perp';
export * from './usdc-options';