[Fix]Close #610
This commit is contained in:
parent
e2f1a5cfe1
commit
a155e8f0a5
@ -353,7 +353,8 @@ class BacktestingEngine(object):
|
|||||||
self.strategy.onOrder(order)
|
self.strategy.onOrder(order)
|
||||||
|
|
||||||
# 从字典中删除该限价单
|
# 从字典中删除该限价单
|
||||||
del self.workingLimitOrderDict[orderID]
|
if orderID in self.workingLimitOrderDict:
|
||||||
|
del self.workingLimitOrderDict[orderID]
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def crossStopOrder(self):
|
def crossStopOrder(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user