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

17:03:04 初始化CTA回测引擎
17:03:04 策略文件加载完成
17:03:04 RQData数据接口初始化成功
17:03:07 ----------------------------------------
17:03:07 IF88.CFFEX-1m开始下载历史数据
17:03:07 数据下载失败,触发异常:
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 131, in wrap
return func(args, **kwargs)
File "C:\vnstudio\lib\site-packages\rqdatac\services\get_price.py", line 124, 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 439, in get_minbar
"get_minbar_v", order_book_ids, start_date, end_date, fields, duration, market=market
File "C:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 59, in wrap
return func(
args, kwargs)
File "C:\vnstudio\lib\site-packages\rqdatac\thread_local.py", line 43, in execute
return self._execute(self._get_connection(), method, args, kwargs)
File "C:\vnstudio\lib\site-packages\rqdatac\thread_local.py", line 39, in _execute
raise e
File "C:\vnstudio\lib\site-packages\rqdatac\thread_local.py", line 34, in _execute
return conn.execute(method, *args,
kwargs)
File "C:\vnstudio\lib\site-packages\rqdatac\connection.py", line 132, in execute
msg_type, body = self._read_one_packet()
File "C:\vnstudio\lib\site-packages\rqdatac\connection.py", line 102, in _read_one_packet
raise get_error(code)(msg)
rqdatac.share.errors.QuotaExceeded: login session num reached MAX limit

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

我也遇到同样的问题,求解答

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

也有点迷,中间我有一次下载成功,但之后不造为啥又开始这个问题,一直没解决。。。

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

根据我的经验,这个问题往往只要在报错稍等十几分钟半个小时,就能“自动解决”,显示又能够下载成功.....很可能是因为米匡后台对试用账号设置了某些参数,有限流作用

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

vnpy下载数据使用了多线程,github上发了解决方法的

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