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

求助。。。
vnstation最近vnpy2.0.10更新,在打开CTA回测模块,初始化rqdata时:

Traceback (most recent call last):
  File "D:\vnstudio\lib\site-packages\vnstation\cli.py", line 92, in run_trader
    main_engine.add_app(app)
  File "D:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 96, in add_app
    engine = self.add_engine(app.engine_class)
  File "D:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 71, in add_engine
    engine = engine_class(self, self.event_engine)
  File "D:\vnstudio\lib\site-packages\vnpy\app\chart_wizard\engine.py", line 24, in __init__
    rqdata_client.init()
  File "D:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 61, in init
    df = rqdata_all_instruments()
  File "D:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 131, in wrap
    return func(*args, **kwargs)
  File "D:\vnstudio\lib\site-packages\rqdatac\services\basic.py", line 329, in all_instruments
    ins_ret = filter(cond, _all_instruments_list(market))
  File "D:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 111, in wrapper
    value = user_function(*args, **kwargs)
  File "D:\vnstudio\lib\site-packages\rqdatac\services\basic.py", line 108, in _all_instruments_list
    return [Instrument(i) for i in get_client().execute("all_instruments", market=market)]
TypeError: 'NoneType' object is not iterable
Member
avatar
加入于:
帖子: 20
声望: 8

过了一会自己又好了。。。不知道什么原因

Administrator
avatar
加入于:
帖子: 4491
声望: 310

请在cmd中运行命令

pip install rqdatac --upgrade

升级RQData到最新版即可

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

沪公网安备 31011502017034号

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