VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 1
声望: 1

行情录制中添加tick记录时,出现如下错误,求助
Traceback (most recent call last):
File "d:\vnstudio\lib\site-packages\vnpy\app\data_recorder\ui\widget.py", line 147, in process_exception_event
raise exc_info[1].with_traceback(exc_info[2])
File "d:\vnstudio\lib\site-packages\vnpy\app\data_recorder\engine.py", line 73, in run
database_manager.save_tick_data([data])
File "d:\vnstudio\lib\site-packages\vnpy\database\mongodb\mongodb_database.py", line 215, in save_tick_data
d["interval"] = d["interval"].value
KeyError: 'interval'

Member
avatar
加入于:
帖子: 1
声望: 0

活着 wrote:

行情录制中添加tick记录时,出现如下错误,求助
Traceback (most recent call last):
File "d:\vnstudio\lib\site-packages\vnpy\app\data_recorder\ui\widget.py", line 147, in process_exception_event
raise exc_info[1].with_traceback(exc_info[2])
File "d:\vnstudio\lib\site-packages\vnpy\app\data_recorder\engine.py", line 73, in run
database_manager.save_tick_data([data])
File "d:\vnstudio\lib\site-packages\vnpy\database\mongodb\mongodb_database.py", line 215, in save_tick_data
d["interval"] = d["interval"].value
KeyError: 'interval'

我也遇到了这个问题。tickdata 开始录制之后就报错,而且会同时停止bardata的录制

Member
avatar
加入于:
帖子: 4684
声望: 285

可以去github上看一下PR2860

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】