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

申请好了米筐帐号,配置好了进行回测,显示数据接口初始化成功,但是下载数据触发异常,如下图,这个怎么解决,谢谢
description

Administrator
avatar
加入于:
帖子: 4490
声望: 302

请把完整的报错文字复制后贴下,最下方的部分看不到

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

用Python的交易员 wrote:

请把完整的报错文字复制后贴下,最下方的部分看不到
17:17:15 初始化CTA回测引擎
17:17:15 策略文件加载完成
17:17:15 RQData数据接口初始化成功
17:17:20 ----------------------------------------
17:17:20 IF88.CFFEX-1m开始下载历史数据
17:17:20 数据下载失败,触发异常:
Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 407, in run_downloading
data = rqdata_client.query_history(req)
File "c:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 174, in query_history
adjust_type="none"
File "c:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 131, in wrap
return func(*args, **kwargs)
File "c:\vnstudio\lib\site-packages\rqdatac\services\get_price.py", line 115, in get_price
stocks, funds, indexes, futures, futures888, spots, options, convertibles, repos, market
File "c:\vnstudio\lib\site-packages\rqdatac\services\detail\get_price_df.py", line 123, in get_price_df
raise PermissionDenied("Not permit to get minbar price ")
rqdatac.share.errors.PermissionDenied: Not permit to get minbar price

Member
avatar
加入于:
帖子: 123
声望: 13

这不是很明显的权限问题吗?
rqdatac.share.errors.PermissionDenied: Not permit to get minbar price:
没有权限获取分钟bar数据。

Administrator
avatar
加入于:
帖子: 4490
声望: 302

楼上正解

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

务虚 wrote:

用Python的交易员 wrote:

请把完整的报错文字复制后贴下,最下方的部分看不到
17:17:15 初始化CTA回测引擎
17:17:15 策略文件加载完成
17:17:15 RQData数据接口初始化成功
17:17:20 ----------------------------------------
17:17:20 IF88.CFFEX-1m开始下载历史数据
17:17:20 数据下载失败,触发异常:
Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 407, in run_downloading
data = rqdata_client.query_history(req)
File "c:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 174, in query_history
adjust_type="none"
File "c:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 131, in wrap
return func(*args, **kwargs)
File "c:\vnstudio\lib\site-packages\rqdatac\services\get_price.py", line 115, in get_price
stocks, funds, indexes, futures, futures888, spots, options, convertibles, repos, market
File "c:\vnstudio\lib\site-packages\rqdatac\services\detail\get_price_df.py", line 123, in get_price_df
raise PermissionDenied("Not permit to get minbar price ")
rqdatac.share.errors.PermissionDenied: Not permit to get minbar price

谢谢,纯小白,第一次用,一大段报错不知哪个是重点,之前米筐说开通到tick权限,实际上没有开通,刚搞好,能正常下载,再次感谢

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

沪公网安备 31011502017034号