From 9bcc225e18d80f3c649486e12bab06cf83356a4a Mon Sep 17 00:00:00 2001 From: msincenselee Date: Tue, 10 Jul 2018 23:45:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E6=88=90?= =?UTF-8?q?=E4=BA=A4=E5=90=8E=E6=92=A4=E5=8D=95=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/gateway/fcoinGateway/fcoinGateway.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/trader/gateway/fcoinGateway/fcoinGateway.py b/vnpy/trader/gateway/fcoinGateway/fcoinGateway.py index 5fd8badb..89e89fcb 100644 --- a/vnpy/trader/gateway/fcoinGateway/fcoinGateway.py +++ b/vnpy/trader/gateway/fcoinGateway/fcoinGateway.py @@ -605,7 +605,7 @@ pending_cancel 撤销已提交 self.cache_trade_data.append(trade) # 订单已经结束 - if status in ["filled","canceled"]: + if status in ["filled","canceled","partial_canceled"]: # 判断是否是 撤销单 if tradedVolume + 0.000001 < totalVolume: order.status = STATUS_CANCELLED @@ -635,7 +635,7 @@ pending_cancel 撤销已提交 else: # 说明是以前发的单子 if systemID not in self.cancelSystemOrderFilter: # 排除已经cancel消失得单子 - if status not in ["filled" , "canceled"]: + if status not in ["filled" , "canceled","partial_canceled"]: symbol_pair = systemSymbolToVnSymbol(use_order["symbol"]) if symbol_pair in self.registerSymbols: self.localID += 1