This commit is contained in:
vn.py 2017-12-01 22:35:17 +08:00
parent a155e8f0a5
commit 768e572433

View File

@ -246,6 +246,7 @@ class TargetPosTemplate(CtaTemplate):
def onOrder(self, order):
"""收到委托推送"""
if order.status == STATUS_ALLTRADED or order.status == STATUS_CANCELLED:
if order.vtOrderID in self.orderList:
self.orderList.remove(order.vtOrderID)
#----------------------------------------------------------------------