1. 移除ctaSetting里的DataRecorder
2. LTS接口增加数据回传类型的选择
This commit is contained in:
parent
0eb14ecb74
commit
c47c27db51
@ -8,9 +8,7 @@
|
|||||||
在CTA_setting.json中写入具体每个策略对象的类和合约设置。
|
在CTA_setting.json中写入具体每个策略对象的类和合约设置。
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from ctaTemplate import DataRecorder
|
|
||||||
from ctaDemo import DoubleEmaDemo
|
from ctaDemo import DoubleEmaDemo
|
||||||
|
|
||||||
STRATEGY_CLASS = {}
|
STRATEGY_CLASS = {}
|
||||||
STRATEGY_CLASS['DataRecorder'] = DataRecorder
|
|
||||||
STRATEGY_CLASS['DoubleEmaDemo'] = DoubleEmaDemo
|
STRATEGY_CLASS['DoubleEmaDemo'] = DoubleEmaDemo
|
@ -193,7 +193,7 @@ class LtsGateway(VtGateway):
|
|||||||
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
class LtsMdApi(MdApi):
|
class LtsMdApi(MdApi):
|
||||||
"""Lts行情API实现"""
|
"""Lts行情API实现"""
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
@ -733,6 +733,10 @@ class LtsTdApi(TdApi):
|
|||||||
os.makedirs(path)
|
os.makedirs(path)
|
||||||
self.createFtdcTraderApi(path)
|
self.createFtdcTraderApi(path)
|
||||||
|
|
||||||
|
# 设置数据同步模式为推送从今日开始所有数据
|
||||||
|
self.subscribePrivateTopic(0)
|
||||||
|
self.subscribePublicTopic(0)
|
||||||
|
|
||||||
# 注册服务器地址
|
# 注册服务器地址
|
||||||
self.registerFront(self.address)
|
self.registerFront(self.address)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user