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

使用rqdata下载数据,经常出现如下问题:
反复下载失败几次后,也有时候会成功

=============================================================
23:33:13 初始化CTA回测引擎
23:33:13 策略文件加载完成
23:33:13 RQData数据接口初始化成功
23:33:15 ----------------------------------------
23:33:15 IF88.CFFEX-1m开始下载历史数据
23:33:15 数据下载失败,触发异常:
Traceback (most recent call last):
File "D:\stock\vnpy\vnpy\app\cta_backtester\engine.py", line 365, in run_downloading
data = rqdata_client.query_history(req)
File "D:\stock\vnpy\vnpy\trader\rqdata.py", line 132, in query_history
adjust_type="none"
File "D:\ProgramData\Anaconda37\lib\site-packages\rqdatac\decorators.py", line 131, in wrap
return func(*args, **kwargs)
File "D:\ProgramData\Anaconda37\lib\site-packages\rqdatac\services\get_price.py", line 146, in get_price
raise PermissionDenied("Not permit to get minbar price ")
rqdatac.share.errors.PermissionDenied: Not permit to get minbar price

23:33:21 ----------------------------------------
23:33:21 IF88.CFFEX-1m开始下载历史数据
23:33:22 数据下载失败,触发异常:
Traceback (most recent call last):
File "D:\stock\vnpy\vnpy\app\cta_backtester\engine.py", line 365, in run_downloading
data = rqdata_client.query_history(req)
File "D:\stock\vnpy\vnpy\trader\rqdata.py", line 132, in query_history
adjust_type="none"
File "D:\ProgramData\Anaconda37\lib\site-packages\rqdatac\decorators.py", line 131, in wrap
return func(*args, **kwargs)
File "D:\ProgramData\Anaconda37\lib\site-packages\rqdatac\services\get_price.py", line 146, in get_price
raise PermissionDenied("Not permit to get minbar price ")
rqdatac.share.errors.PermissionDenied: Not permit to get minbar price

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

米筐那边调整了后台设置,请下载Github上的master分支代码,然后python setup.py install安装升级下

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

重装了vnstudio-2.0.7,下载数据发生题主同样错误。python setup.py install安装升级了,仍然报前述错误。

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