From 099f832f48e01ea4bc4ee836945bf25254ae0556 Mon Sep 17 00:00:00 2001 From: xldistance <819873074@qq.com> Date: Wed, 12 Jun 2019 17:32:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3StopOrder=20vt=5Forderids?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正StopOrder vt_orderids --- vnpy/app/cta_strategy/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/app/cta_strategy/engine.py b/vnpy/app/cta_strategy/engine.py index ff2e8ef9..cb056987 100644 --- a/vnpy/app/cta_strategy/engine.py +++ b/vnpy/app/cta_strategy/engine.py @@ -187,7 +187,7 @@ class CtaEngine(BaseEngine): stop_orderid=order.vt_orderid, strategy_name=strategy.strategy_name, status=STOP_STATUS_MAP[order.status], - vt_orderid=order.vt_orderid, + vt_orderids=order.vt_orderid, ) self.call_strategy_func(strategy, strategy.on_stop_order, so) From 135b16dc44610ce40b583895da078835673650dc Mon Sep 17 00:00:00 2001 From: xldistance <819873074@qq.com> Date: Wed, 12 Jun 2019 18:44:07 +0800 Subject: [PATCH 2/2] Update engine.py --- vnpy/app/cta_strategy/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/app/cta_strategy/engine.py b/vnpy/app/cta_strategy/engine.py index cb056987..38e06d30 100644 --- a/vnpy/app/cta_strategy/engine.py +++ b/vnpy/app/cta_strategy/engine.py @@ -187,7 +187,7 @@ class CtaEngine(BaseEngine): stop_orderid=order.vt_orderid, strategy_name=strategy.strategy_name, status=STOP_STATUS_MAP[order.status], - vt_orderids=order.vt_orderid, + vt_orderids=[order.vt_orderid], ) self.call_strategy_func(strategy, strategy.on_stop_order, so)