From e019a2bb3504dc7565ef2dbcd0530e8837970561 Mon Sep 17 00:00:00 2001 From: WOLF Date: Fri, 20 Nov 2015 15:25:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DCtaEngine=E7=9A=84sendOrder?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vn.trader/ctaEngine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vn.trader/ctaEngine.py b/vn.trader/ctaEngine.py index bf2539be..ea90e714 100644 --- a/vn.trader/ctaEngine.py +++ b/vn.trader/ctaEngine.py @@ -78,7 +78,7 @@ class CtaEngine(object): req.direction = DIRECTION_LONG req.offset = OFFSET_CLOSE - vtOrderID = self.mainEngine.sendOrder(req) # 发单 + vtOrderID = self.mainEngine.sendOrder(req, contract.gatewayName) # 发单 self.orderDict[vtOrderID] = strategy # 保存vtOrderID和策略的映射关系 return vtOrderID