修复CTA中的bug

This commit is contained in:
vn.py 2017-06-14 13:41:59 +08:00
parent e6762a63e3
commit e8fbab872d
2 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,8 @@ from vnpy.event import Event
from vnpy.trader.vtEvent import *
from vnpy.trader.uiBasicWidget import QtGui, QtCore, QtWidgets, BasicCell
from vnpy.trader.app.ctaStrategy.language import text
from .ctaBase import EVENT_CTA_LOG, EVENT_CTA_STRATEGY
from .language import text
########################################################################

View File

@ -196,6 +196,8 @@ class WindGateway(VtGateway):
if not result.ErrorCode:
log.logContent = u'Wind接口连接成功'
self.connected = True
# 发出缓存的订阅请求
for req in self.subscribeBufferDict.values():
self.subscribe(req)