This commit is contained in:
vn.py 2017-12-01 22:33:10 +08:00
parent e2f1a5cfe1
commit a155e8f0a5

View File

@ -353,7 +353,8 @@ class BacktestingEngine(object):
self.strategy.onOrder(order)
# 从字典中删除该限价单
del self.workingLimitOrderDict[orderID]
if orderID in self.workingLimitOrderDict:
del self.workingLimitOrderDict[orderID]
#----------------------------------------------------------------------
def crossStopOrder(self):