From d1306dd2375fb947e5607afd43bc22b3bc80439a Mon Sep 17 00:00:00 2001 From: nanoric Date: Fri, 8 Mar 2019 08:56:47 -0400 Subject: [PATCH] =?UTF-8?q?[Fix]=20=E4=BF=AE=E6=AD=A3=E6=88=90=E4=BA=A4?= =?UTF-8?q?=E5=8F=91=E7=94=9F=E6=97=B6=E8=AE=A2=E5=8D=95=E6=88=90=E4=BA=A4?= =?UTF-8?q?=E9=87=8F=E9=94=99=E8=AF=AF=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/gateway/oes/oes_td.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/gateway/oes/oes_td.py b/vnpy/gateway/oes/oes_td.py index d58c4011..ea6ae7e7 100644 --- a/vnpy/gateway/oes/oes_td.py +++ b/vnpy/gateway/oes/oes_td.py @@ -264,7 +264,7 @@ class OesTdMessageLoop: time=parse_oes_datetime(data.trdDate, data.trdTime) ) vt_order.status = STATUS_OES2VT[data.ordStatus] - vt_order.traded = data.origOrdQty + data.trdQty + vt_order.traded = data.cumQty vt_order.time = parse_oes_datetime(data.trdDate, data.trdTime) self.gateway.on_trade(trade) self.gateway.on_order(vt_order)