vn.py官网
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 5
声望: 0

11:24:10 初始化CTA回测引擎
11:24:10 策略文件加载完成
11:24:11 ----------------------------------------
11:24:11 CU.SHFE-1m开始下载历史数据
11:24:11 数据下载失败,触发异常:
Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy_ctabacktester\engine.py", line 404, in run_downloading
data = self.datafeed.query_bar_history(req)
File "c:\vnstudio\lib\site-packages\vnpy_rqdata\rqdata_datafeed.py", line 165, in query_bar_history
adjust_type="none"
File "c:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 150, in wrap
return func(args, **kwargs)
File "c:\vnstudio\lib\site-packages\rqdatac\services\get_price.py", line 103, in get_price
order_book_ids, market
File "c:\vnstudio\lib\site-packages\rqdatac\services\get_price.py", line 222, in classify_order_book_ids
ins_list = ensure_instruments(order_book_ids, market=market)
File "c:\vnstudio\lib\site-packages\rqdatac\validators.py", line 168, in ensure_instruments
all_instruments = _all_instruments_dict(market)
File "c:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 129, in wrapper
value = user_function(
args, kwargs)
File "c:\vnstudio\lib\site-packages\rqdatac\services\basic.py", line 139, in _all_instruments_dict
ins = _all_cached_instruments_list(market)
File "c:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 129, in wrapper
value = user_function(*args,
kwargs)
File "c:\vnstudio\lib\site-packages\rqdatac\services\basic.py", line 134, in _all_cached_instruments_list
return _all_instruments_list(market)
File "c:\vnstudio\lib\site-packages\rqdatac\services\basic.py", line 112, in _all_instruments_list
ins = [Instrument(i) for i in get_client().execute("all_instruments", market=market)]
File "c:\vnstudio\lib\site-packages\rqdatac\client.py", line 31, in execute
raise RuntimeError("rqdatac is not initialized")
RuntimeError: rqdatac is not initialized

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

python 上运行rq都是没问题的
import rqdatac
rqdatac.init()全部正常

用户名写的:license
密码填的就是license_key很长的那个

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

我昨天也遇到这个问题,看这篇帖子 https://www.vnpy.com/forum/topic/7712-sheng-ji-dao-2-6ban-ben-hou-hui-ce-xia-zai-shu-ju-shi-yu-dao-xia-mian-de-cuo-wu-

Super Moderator
avatar
加入于:
帖子: 47
声望: 2

description

正确的填写方式是这样,datafeed.password 填写收到邮件中的一大串license key

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

沪公网安备 31011502017034号