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

09:58:23 初始化CTA回测引擎
09:58:23 策略文件加载完成
09:58:23 RQData数据接口初始化成功
09:59:01 ----------------------------------------
09:59:01 RB888.SHFE-1m开始下载历史数据
09:59:02 数据下载失败,触发异常:
Traceback (most recent call last):
File "d:\Anaconda3\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 381, in run_downloading
data = rqdata_client.query_history(req)
File "d:\Anaconda3\lib\site-packages\vnpy\trader\rqdata.py", line 136, in query_history
adjust_type="none"
File "d:\Anaconda3\lib\site-packages\rqdatac\decorators.py", line 131, in wrap
return func(args, **kwargs)
File "d:\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 "d:\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 "d:\Anaconda3\lib\site-packages\rqdatac\decorators.py", line 59, in wrap
return func(
args, **kwargs)
File "d:\Anaconda3\lib\site-packages\rqdatac\connection_pool.py", line 25, in execute
with self._get_connection() as conn:
File "d:\Anaconda3\lib\contextlib.py", line 112, in enter
return next(self.gen)
File "d:\Anaconda3\lib\site-packages\rqdatac\connection_pool.py", line 36, in _get_connection
conn = self._ensure_connection()
File "d:\Anaconda3\lib\site-packages\rqdatac\connection_pool.py", line 52, in _ensure_connection
if conn.is_nomal():
AttributeError: 'Connection' object has no attribute 'is_nomal'

Administrator
avatar
加入于:
帖子: 2453
声望: 103

请试试VNStudio-2.0.8,不推荐手动安装

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

用Python的交易员 wrote:

请试试VNStudio-2.0.8,不推荐手动安装


谢陈大,
但还是希望知道为啥异常,是RQ那边的原因吗?
因为实盘跑无人值守策略,还是在ubuntu上,也不用vnstudio

Administrator
avatar
加入于:
帖子: 2453
声望: 103

是因为安装的rqdatac客户端太老了,这个版本有个BUG,那个函数名应该是is_normal

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