diff --git a/src/types/response/v5-trade.ts b/src/types/response/v5-trade.ts index 870578f..77032e9 100644 --- a/src/types/response/v5-trade.ts +++ b/src/types/response/v5-trade.ts @@ -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; diff --git a/src/types/v5-shared.ts b/src/types/v5-shared.ts index c78ff90..c13710b 100644 --- a/src/types/v5-shared.ts +++ b/src/types/v5-shared.ts @@ -45,7 +45,8 @@ export type OrderCancelTypeV5 = | 'CancelAllBeforeAdl' | 'CancelByAdmin' | 'CancelByTpSlTsClear' - | 'CancelByPzSideCh'; + | 'CancelByPzSideCh' + | 'UNKNOWN'; export type OrderRejectReasonV5 = | 'EC_NoError'