vn.py官网
开源量化社区
Member
avatar
加入于:
帖子: 13
声望: 0

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\ui\widget.py", line 268, in stop_strategy
self.cta_engine.stop_strategy(self.strategy_name)
File "c:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 738, in stop_strategy
self.sync_strategy_data(strategy)
File "c:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 834, in sync_strategy_data
save_json(self.data_filename, self.strategy_data)
File "c:\vnstudio\lib\site-packages\vnpy\trader\utility.py", line 116, in save_json
ensure_ascii=False
File "c:\vnstudio\lib\json__init.py", line 179, in dump
for chunk in iterable:
File "c:\vnstudio\lib\json\encoder.py", line 431, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "c:\vnstudio\lib\json\encoder.py", line 405, in _iterencode_dict
yield from chunks
File "c:\vnstudio\lib\json\encoder.py", line 405, in _iterencode_dict
yield from chunks
File "c:\vnstudio\lib\json\encoder.py", line 438, in _iterencode
o = _default(o)
File "c:\vnstudio\lib\json\encoder.py", line 179, in default
raise TypeError(f'Object of type {o.
class.name__} '
TypeError: Object of type int32 is not JSON serializable

Administrator
avatar
加入于:
帖子: 4871
声望: 283

缓存文件坏了,请删除该文件后重启即可:

c:\users\administrator\.vntrader\cta_strategy_data.json
© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3

沪公网安备 31011502017034号