VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 21
声望: 0

19:17:24 初始化CTA回测引擎
19:17:24 策略文件加载完成
19:17:24 RQData数据接口初始化成功
19:17:27 ----------------------------------------
19:17:27 IF88.CFFEX-1m开始下载历史数据
19:17:27 数据下载失败,触发异常:
Traceback (most recent call last):
File "G:\studyfile\pythonLearn\workplace\vnpy_2\src\vnpy\app\cta_backtester\engine.py", line 365, in run_downloading
data = rqdata_client.query_history(req)
File "G:\studyfile\pythonLearn\workplace\vnpy_2\src\vnpy\trader\rqdata.py", line 132, in query_history
adjust_type="none"
File "C:\Anaconda3\lib\site-packages\rqdatac\decorators.py", line 131, in wrap
return func(args, **kwargs)
File "C:\Anaconda3\lib\site-packages\rqdatac\services\get_price.py", line 117, in get_price
pf = get_minbar(order_book_ids, start_date, end_date, fields, duration, market)
File "C:\Anaconda3\lib\site-packages\rqdatac\services\get_price.py", line 433, in get_minbar
"get_minbar_v", order_book_ids, start_date, end_date, fields, duration, market
File "C:\Anaconda3\lib\site-packages\rqdatac\decorators.py", line 59, in wrap
return func(
args, kwargs)
File "C:\Anaconda3\lib\site-packages\rqdatac\thread_local.py", line 43, in execute
return self._execute(self._get_connection(), method, args, kwargs)
File "C:\Anaconda3\lib\site-packages\rqdatac\thread_local.py", line 39, in _execute
raise e
File "C:\Anaconda3\lib\site-packages\rqdatac\thread_local.py", line 34, in _execute
return conn.execute(method, *args,
kwargs)
File "C:\Anaconda3\lib\site-packages\rqdatac\connection.py", line 132, in execute
msg_type, body = self._read_one_packet()
File "C:\Anaconda3\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

RQdata数据下载失败,报上面的错误,这是为啥呀?

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

已解决。
原因是工程中出现了“Unresolved import:”的错误
使用下面连接中的方案,将我电脑中C:\Anaconda3\libs文件夹添加到Libraries中问题得以解决
https://blog.csdn.net/u011311291/article/details/79139469

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

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】