From 52f84ec6d80f74082b31209ead3c220c912a1cbb Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Fri, 27 Oct 2017 16:40:20 +0800 Subject: [PATCH] =?UTF-8?q?[Mod]=E5=A2=9E=E5=8A=A0=E5=AF=8C=E9=80=94?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E5=B7=B2=E5=88=A0=E9=99=A4=E5=A7=94?= =?UTF-8?q?=E6=89=98=E7=9A=84=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/gateway/futuGateway/futuGateway.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vnpy/trader/gateway/futuGateway/futuGateway.py b/vnpy/trader/gateway/futuGateway/futuGateway.py index 14cd2209..c0921483 100644 --- a/vnpy/trader/gateway/futuGateway/futuGateway.py +++ b/vnpy/trader/gateway/futuGateway/futuGateway.py @@ -459,6 +459,10 @@ class FutuGateway(VtGateway): def processOrder(self, data, qry=False): """处理委托推送""" for ix, row in data.iterrows(): + # 如果状态是已经删除,则直接忽略 + if str(row['status']) == '7': + continue + order = VtOrderData() order.gatewayName = self.gatewayName