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

环境:ubuntu和windows 下载数据 都是同样报错 报错如下:
==================回测周期是1分钟========================
10:07:31 初始化CTA回测引擎
10:07:31 策略文件加载完成
10:07:31 RQData数据接口初始化成功
10:07:46 ----------------------------------------
10:07:46 IF88.CFFEX-1m开始下载历史数据
10:07:46 数据下载失败,触发异常:
Traceback (most recent call last):
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/vnpy/app/cta_backtester/engine.py", line 365, in run_downloading
data = rqdata_client.query_history(req)
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/vnpy/trader/rqdata.py", line 132, in query_history
adjust_type="none"
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/rqdatac/decorators.py", line 131, in wrap
return func(*args, **kwargs)
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/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

==================回测周期是1天========================
10:09:51 ----------------------------------------
10:09:51 IF88.CFFEX-d开始下载历史数据
10:09:51 数据下载失败,触发异常:
Traceback (most recent call last):
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/vnpy/app/cta_backtester/engine.py", line 365, in run_downloading
data = rqdata_client.query_history(req)
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/vnpy/trader/rqdata.py", line 132, in query_history
adjust_type="none"
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/rqdatac/decorators.py", line 131, in wrap
return func(args, **kwargs)
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/rqdatac/services/get_price.py", line 117, in get_price
pf = get_daybar(order_book_ids, start_date, end_date, fields, duration, market)
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/rqdatac/services/get_price.py", line 396, in get_daybar
"get_daybar_v", order_book_ids, start_date, end_date, fields, 1, market=market
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/rqdatac/decorators.py", line 59, in wrap
return func(
args, kwargs)
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/rqdatac/thread_local.py", line 43, in execute
return self._execute(self._get_connection(), method, args, kwargs)
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/rqdatac/thread_local.py", line 39, in _execute
raise e
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/rqdatac/thread_local.py", line 34, in _execute
return conn.execute(method, *args,
kwargs)
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/rqdatac/connection.py", line 132, in execute
msg_type, body = self._read_one_packet()
File "/home/suhuchen/anaconda3/envs/vnpy_3.7/lib/python3.7/site-packages/rqdatac/connection.py", line 102, in _read_one_packet
raise get_error(code)(msg)
rqdatac.share.errors.PermissionDenied: login session num reached MAX limit

请问一下是rqdata的问题 还是数据库的问题 两个新搭的环境都出现这种问题
第一个问题好像是k线周期问题 第二个问题是不是rqdata的用户权限问题

Administrator
avatar
加入于:
帖子: 2135
声望: 96

这是rqdata服务器升级导致的,解决办法是去Github下载master分支的代码,解压后运行python setup.py install安装即可,下个版本的2.0.8更新我们也会自带修复

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

还是修复不了

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