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

11:11:24 初始化CTA回测引擎
11:11:24 策略文件加载完成
11:11:24 RQData数据接口初始化成功
11:11:56 ----------------------------------------
11:11:56 rb88.SHFE-1h开始下载历史数据
11:11:56 数据下载失败,触发异常:
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 136, 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 117, 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 433, in get_minbar
"get_minbar_v", order_book_ids, start_date, end_date, fields, duration, 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\connection_pool.py", line 25, in execute
with self._get_connection() as conn:
File "C:\vnstudio\lib\contextlib.py", line 112, in enter
return next(self.gen)
File "C:\vnstudio\lib\site-packages\rqdatac\connection_pool.py", line 36, in _get_connection
conn = self._ensure_connection()
File "C:\vnstudio\lib\site-packages\rqdatac\connection_pool.py", line 52, in _ensure_connection
if conn.is_nomal():
AttributeError: 'Connection' object has no attribute 'is_nomal'

11:15:42 ----------------------------------------
11:15:42 rb88.SHFE-d开始下载历史数据
11:15:42 rb88.SHFE-d历史数据下载完成
11:16:13 ----------------------------------------
11:16:13 rb88.SHFE-1m开始下载历史数据
11:16:13 数据下载失败,触发异常:
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 136, 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 117, 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 433, in get_minbar
"get_minbar_v", order_book_ids, start_date, end_date, fields, duration, 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\connection_pool.py", line 25, in execute
with self._get_connection() as conn:
File "C:\vnstudio\lib\contextlib.py", line 112, in enter
return next(self.gen)
File "C:\vnstudio\lib\site-packages\rqdatac\connection_pool.py", line 36, in _get_connection
conn = self._ensure_connection()
File "C:\vnstudio\lib\site-packages\rqdatac\connection_pool.py", line 52, in _ensure_connection
if conn.is_nomal():
AttributeError: 'Connection' object has no attribute 'is_nomal'

时间在10月3日11点左右,下载螺纹日线2009.10.3-2019.10.3数据正常,
而1h和1m数据下载过程中都报相同的异常,缩短下载数据的范围至2016.10.3-2019.10.3也一样,请问大家是不是也遇到这个情况,求解

Administrator
avatar
加入于:
帖子: 2152
声望: 99

修复BUG后测试过程中,我们下载了IF和rb的分钟线行情,确定是可用的。

上述报错是指Connection对象缺乏is_nomal函数,请问你的VNStudio版本是?可以尝试卸载后从官网下载最新版本重装,看看能不能解决问题

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