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

正确配置RQData账号密码后,点击下载数据出现下面提示
14:34:07 初始化CTA回测引擎
14:34:07 策略文件加载完成
14:34:07 RQData数据接口初始化成功
14:34:11 ----------------------------------------
14:34:11 IF88.CFFEX-1m开始下载历史数据
14:34:12 数据下载失败,触发异常:
Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 365, in run_downloading
data = rqdata_client.query_history(req)
File "C:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 133, 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 146, in get_price
raise PermissionDenied("Not permit to get minbar price ")
rqdatac.share.errors.PermissionDenied: Not permit to get minbar price

14:34:31 ----------------------------------------
14:34:31 IF88.CFFEX-1m开始下载历史数据
14:34:32 数据下载失败,触发异常:
Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 365, in run_downloading
data = rqdata_client.query_history(req)
File "C:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 133, 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 146, in get_price
raise PermissionDenied("Not permit to get minbar price ")
rqdatac.share.errors.PermissionDenied: Not permit to get minbar price

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

同遇到这个这个问题,想知道楼主解决了嘛

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

我也遇到相同问题,在楼主的错误之后,我遇到问题如下:

23:24:20 初始化CTA回测引擎
23:24:20 策略文件加载完成
23:24:20 RQData数据接口初始化成功
23:24:37 ----------------------------------------
23:24:37 IF88.CFFEX-1m开始下载历史数据
23:24:38 数据下载失败,触发异常:
Traceback (most recent call last):
File "C:\vnstudio\Lib\site-packages\vnpy\app\cta_backtester\engine.py", line 365, in run_downloading
data = rqdata_client.query_history(req)
File "C:\vnstudio\Lib\site-packages\vnpy\trader\rqdata.py", line 132, in query_history
adjust_type="none"
File "C:\vnstudio\Lib\site-packages\rqdatac\decorators.py", line 133, in wrap
return func(args, **kwargs)
File "C:\vnstudio\Lib\site-packages\rqdatac\services\get_price.py", line 111, in get_price
pf = get_minbar(order_book_ids, start_date, end_date, fields, duration, market)
File "C:\vnstudio\Lib\site-packages\rqdatac\services\get_price.py", line 377, in get_minbar
"get_minbar", order_book_ids, start_date, end_date, fields, duration, market
File "C:\vnstudio\Lib\site-packages\rqdatac\decorators.py", line 61, in wrap
return func(
args, kwargs)
File "C:\vnstudio\Lib\site-packages\rqdatac\thread_local.py", line 34, in execute
raise e
File "C:\vnstudio\Lib\site-packages\rqdatac\thread_local.py", line 30, in execute
return self._get_connection().execute(method, *args,
kwargs)
File "C:\vnstudio\Lib\site-packages\rqdatac\connection.py", line 120, in execute
msg_type, body = self._read_one_packet()
File "C:\vnstudio\Lib\site-packages\rqdatac\connection.py", line 88, in _read_one_packet
raise get_error(code)(msg)
rqdatac.share.errors.PermissionDenied: login session num reached MAX limit

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

嗯,这个是因为RQData后台升级了,我们正在处理,争取国庆后修复

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

已经在master分支修复,请手动下载更新下试试吧

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

用Python的交易员 wrote:

已经在master分支修复,请手动下载更新下试试吧

谢谢您!问题解决了

BTW,请问正确的手动更新方法是:

  1. 用git clone的vnpy替换vnstudio\Lib\site-packages\vnpy
    or
  2. PATH重新指定到git clone的vnpy呢?
Administrator
avatar
加入于:
帖子: 1672
声望: 80

git clone后,运行python setup.py install安装到vnstudio中即可

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