1. 移除ctaSetting里的DataRecorder

2. LTS接口增加数据回传类型的选择
This commit is contained in:
chenxy123 2016-06-12 18:13:19 +08:00
parent 0eb14ecb74
commit c47c27db51
2 changed files with 5 additions and 3 deletions

View File

@ -8,9 +8,7 @@
在CTA_setting.json中写入具体每个策略对象的类和合约设置
'''
from ctaTemplate import DataRecorder
from ctaDemo import DoubleEmaDemo
STRATEGY_CLASS = {}
STRATEGY_CLASS['DataRecorder'] = DataRecorder
STRATEGY_CLASS['DoubleEmaDemo'] = DoubleEmaDemo

View File

@ -733,6 +733,10 @@ class LtsTdApi(TdApi):
os.makedirs(path)
self.createFtdcTraderApi(path)
# 设置数据同步模式为推送从今日开始所有数据
self.subscribePrivateTopic(0)
self.subscribePublicTopic(0)
# 注册服务器地址
self.registerFront(self.address)