feat(#261): add missing tpsl req/response types
This commit is contained in:
@@ -10,33 +10,43 @@ export interface ContractListResult<TList = any> {
|
||||
|
||||
export interface ContractHistoricOrder {
|
||||
symbol: string;
|
||||
orderId: string;
|
||||
orderLinkId: string;
|
||||
side: string;
|
||||
orderType: string;
|
||||
price: string;
|
||||
iv: string;
|
||||
qty: string;
|
||||
reduceOnly: boolean;
|
||||
timeInForce: string;
|
||||
orderStatus: string;
|
||||
leavesQty: string;
|
||||
leavesValue: string;
|
||||
cumExecQty: string;
|
||||
cumExecValue: string;
|
||||
cumExecFee: string;
|
||||
positionIdx: number;
|
||||
lastPriceOnCreated: string;
|
||||
rejectReason: string;
|
||||
orderLinkId: string;
|
||||
createdTime: string;
|
||||
updatedTime: string;
|
||||
orderId: string;
|
||||
cancelType: string;
|
||||
rejectReason: string;
|
||||
stopOrderType: string;
|
||||
triggerDirection: number;
|
||||
triggerBy: string;
|
||||
triggerPrice: string;
|
||||
cumExecValue: string;
|
||||
cumExecFee: string;
|
||||
cumExecQty: string;
|
||||
leavesValue: string;
|
||||
leavesQty: string;
|
||||
takeProfit: string;
|
||||
stopLoss: string;
|
||||
tpslMode: string;
|
||||
tpLimitPrice: string;
|
||||
slLimitPrice: string;
|
||||
tpTriggerBy: string;
|
||||
slTriggerBy: string;
|
||||
triggerPrice: string;
|
||||
reduceOnly: boolean;
|
||||
closeOnTrigger: boolean;
|
||||
triggerDirection: number;
|
||||
positionIdx: number;
|
||||
blockTradeId: string;
|
||||
smpType: string;
|
||||
smpGroup: number;
|
||||
smpOrderId: string;
|
||||
}
|
||||
|
||||
export interface ContractSymbolTicker {
|
||||
|
||||
@@ -42,6 +42,9 @@ export interface AccountOrderV5 {
|
||||
triggerPrice?: string;
|
||||
takeProfit?: string;
|
||||
stopLoss?: string;
|
||||
tpslMode: 'Full' | 'Partial' | '';
|
||||
tpLimitPrice: string;
|
||||
slLimitPrice: string;
|
||||
tpTriggerBy?: OrderTriggerByV5;
|
||||
slTriggerBy?: OrderTriggerByV5;
|
||||
triggerDirection?: number;
|
||||
@@ -49,6 +52,10 @@ export interface AccountOrderV5 {
|
||||
lastPriceOnCreated?: string;
|
||||
reduceOnly?: boolean;
|
||||
closeOnTrigger?: boolean;
|
||||
placeType: 'iv' | 'price' | '';
|
||||
smpType: string;
|
||||
smpGroup: string;
|
||||
smpOrderId: string;
|
||||
createdTime: string;
|
||||
updatedTime: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user