v3.7.5: fix() optional properties in AccountOrderV5 response interface

This commit is contained in:
tiagosiebler
2023-11-01 09:58:54 +00:00
parent a64b2ca619
commit 08919f78ac
2 changed files with 23 additions and 22 deletions

View File

@@ -18,43 +18,43 @@ export interface OrderResultV5 {
export interface AccountOrderV5 {
orderId: string;
orderLinkId?: string;
blockTradeId?: string;
orderLinkId: string;
blockTradeId: string;
symbol: string;
price: string;
qty: string;
side: OrderSideV5;
isLeverage?: string;
positionIdx?: PositionIdx;
isLeverage: string;
positionIdx: PositionIdx;
orderStatus: OrderStatusV5;
cancelType?: OrderCancelTypeV5;
rejectReason?: OrderRejectReasonV5;
cancelType: OrderCancelTypeV5;
rejectReason: OrderRejectReasonV5;
avgPrice: string;
leavesQty: string;
leavesValue: string;
cumExecQty: string;
cumExecValue: string;
cumExecFee: string;
timeInForce?: OrderTimeInForceV5;
orderType?: OrderTypeV5;
stopOrderType?: StopOrderTypeV5;
orderIv?: string;
triggerPrice?: string;
takeProfit?: string;
stopLoss?: string;
timeInForce: OrderTimeInForceV5;
orderType: OrderTypeV5;
stopOrderType: StopOrderTypeV5;
orderIv: string;
triggerPrice: string;
takeProfit: string;
stopLoss: string;
tpslMode: 'Full' | 'Partial' | '';
tpLimitPrice: string;
slLimitPrice: string;
tpTriggerBy?: OrderTriggerByV5;
slTriggerBy?: OrderTriggerByV5;
triggerDirection?: number;
triggerBy?: OrderTriggerByV5;
lastPriceOnCreated?: string;
reduceOnly?: boolean;
closeOnTrigger?: boolean;
tpTriggerBy: OrderTriggerByV5;
slTriggerBy: OrderTriggerByV5;
triggerDirection: number;
triggerBy: OrderTriggerByV5;
lastPriceOnCreated: string;
reduceOnly: boolean;
closeOnTrigger: boolean;
placeType: 'iv' | 'price' | '';
smpType: string;
smpGroup: string;
smpGroup: number;
smpOrderId: string;
createdTime: string;
updatedTime: string;