From 0377f07d37d53a08642ae302e1082989fd6ef724 Mon Sep 17 00:00:00 2001 From: zhnlk Date: Tue, 7 Mar 2017 15:47:57 +0800 Subject: [PATCH] fix typo --- vn.trader/ctaAlgo/ctaTemplate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vn.trader/ctaAlgo/ctaTemplate.py b/vn.trader/ctaAlgo/ctaTemplate.py index fea23064..fe60370b 100644 --- a/vn.trader/ctaAlgo/ctaTemplate.py +++ b/vn.trader/ctaAlgo/ctaTemplate.py @@ -230,7 +230,7 @@ class TargetPosTemplate(CtaTemplate): #---------------------------------------------------------------------- def onOrder(self, order): """收到委托推送""" - if order.status == STATUS_ALLTRADED or order.stauts == STATUS_CANCELLED: + if order.status == STATUS_ALLTRADED or order.status == STATUS_CANCELLED: self.orderList.remove(order.vtOrderID) #----------------------------------------------------------------------