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

wave_reco_strategy: 触发异常已停止
Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 556, in call_strategy_func
func()
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\strategies\wave_reco_strategy.py", line 108, in on_init
self.load_bar(self.init_days)
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\template.py", line 230, in load_bar
self.cta_engine.load_bar(self.vt_symbol, days, interval, callback)
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 507, in load_bar
symbol, exchange = extract_vt_symbol(vt_symbol)
File "C:\vnstudio\lib\site-packages\vnpy\trader\utility.py", line 20, in extract_vt_symbol
symbol, exchange_str = vt_symbol.split('.')
ValueError: not enough values to unpack (expected 2, got 1)

wve_co_strategy: 行情订阅失败,找不到合约j1909

Administrator
avatar
加入于:
帖子: 1690
声望: 80

本地代码要加上交易所后缀:j1909.DCE

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

用Python的交易员 wrote:

本地代码要加上交易所后缀:j1909.DCE
已解决。谢谢~

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