@@ -16,7 +16,8 @@ class Order:
1616 "quantity" , "filled" , "_remaining" , "avg_fill_price" , "commission" , "realized_pnl" , "_status" ,
1717 "trail_stop_price" , "limit_price" , "aux_price" , "trailing_percent" , "percent_offset" , "action" ,
1818 "order_type" , "time_in_force" , "outside_rth" , "order_legs" , "algo_params" , "algo_strategy" ,
19- "secret_key" , "liquidation" , "discount" , "attr_desc" , "source" , 'adjust_limit' , 'sub_ids' , "user_mark" ]
19+ "secret_key" , "liquidation" , "discount" , "attr_desc" , "source" , 'adjust_limit' , 'sub_ids' , "user_mark" ,
20+ "update_time" ]
2021
2122 def __init__ (self , account , contract , action , order_type , quantity , limit_price = None , aux_price = None ,
2223 trail_stop_price = None , trailing_percent = None , percent_offset = None , time_in_force = None ,
@@ -31,6 +32,7 @@ def __init__(self, account, contract, action, order_type, quantity, limit_price=
3132 - order_time: 下单时间
3233 - reason: 下单失败时, 会返回失败原因的描述
3334 - trade_time: 最新成交时间
35+ - update_time: order updated time
3436 - action: 交易方向, 'BUY' / 'SELL'
3537 - quantity: 下单数量
3638 - filled: 成交数量
@@ -84,6 +86,7 @@ def __init__(self, account, contract, action, order_type, quantity, limit_price=
8486 self .percent_offset = percent_offset
8587 self .order_time = order_time
8688 self .trade_time = trade_time
89+ self .update_time = kwargs .get ('update_time' )
8790 self .order_legs = order_legs
8891 self .algo_params = algo_params
8992 self .secret_key = secret_key
0 commit comments