vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 1
声望: 0

Exception in thread Thread-5:
Traceback (most recent call last):
File "C:\vnstudio\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\vnstudio\lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 345, in run_downloading
symbol, exchange = extract_vt_symbol(vt_symbol)
File "C:\vnstudio\lib\site-packages\vnpy\trader\utility.py", line 21, in extract_vt_symbol
symbol, exchange_str = vt_symbol.split(".")
ValueError: not enough values to unpack (expected 2, got 1)
使用cmd打开vnpy,下载数据时报上面的错误,请问如何解决?谢谢!

Administrator
avatar
加入于:
帖子: 1908
声望: 85

本地代码,英文vt_symbol,由 代码.交易所,两部分组成,比如IF1911.CFFEX,XBTUSD.BITMEX,上述报错应该是你漏了交易所后缀

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