[Fix] 修复order.time类型不一致的问题

This commit is contained in:
nanoric 2019-03-25 02:30:28 -04:00
parent 0e3b79f6f4
commit 671dd88791

View File

@ -718,7 +718,7 @@ class OrderManager:
vt_order.status = STATUS_OES2VT[data.ordStatus] vt_order.status = STATUS_OES2VT[data.ordStatus]
vt_order.volume = data.ordQty vt_order.volume = data.ordQty
vt_order.traded = data.cumQty vt_order.traded = data.cumQty
vt_order.time = parse_oes_datetime(data.ordDate, data.ordTime) vt_order.time = parse_oes_datetime(data.ordDate, data.ordTime).isoformat()
except KeyError: except KeyError:
if data.bsType == eOesBuySellTypeT.OES_BS_TYPE_BUY: if data.bsType == eOesBuySellTypeT.OES_BS_TYPE_BUY:
offset = Offset.OPEN offset = Offset.OPEN