修复CtaEngine的sendOrder的bug

This commit is contained in:
WOLF 2015-11-20 15:25:58 +08:00
parent 241808b45b
commit e019a2bb35

View File

@ -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