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

13:13:03 初始化CTA回测引擎
13:13:03 策略文件加载完成
13:13:03 RQData数据接口初始化成功
13:13:07 ----------------------------------------
13:13:07 IF88.CFFEX-1m开始下载历史数据
13:13:28 数据下载失败,触发异常:
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 365, in run_downloading
data = rqdata_client.query_history(req)
File "C:\Anaconda3\lib\site-packages\vnpy\trader\rqdata.py", line 136, 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 124, 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 450, in get_minbar
data = [(obid, {k: np.frombuffer(
v) for k, v in d.items()}) for obid, d in data]
TypeError: 'NoneType' object is not iterable
rqdatac版本是2.5.5,vnpy是2.0.7版本,这是为啥呀

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

已解决
更新到2.0.8问题得到解决

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

今天又出现了同样的报错,是rqdata那边有更新导致的吗?

Administrator
avatar
加入于:
帖子: 4028
声望: 221

周末的话,RQData服务器可能会有一些更新操作,请明天开盘前试试吧

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