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

11: 初始化完成
11: 触发异常已停止
Traceback (most recent call last):
File "G:\studyfile\pythonLearn\workplace\vnpy_lme\src\vnpy\app\cta_strategy\engine.py", line 584, in call_strategy_func
func()
File "G:\studyfile\pythonLearn\workplace\vnpy_lme\src\vnpy\app\cta_strategy\strategies\atr_rsi_strategy.py", line 54, in on_init
self.load_bar(10)
File "G:\studyfile\pythonLearn\workplace\vnpy_lme\src\vnpy\app\cta_strategy\template.py", line 233, in load_bar
self.cta_engine.load_bar(self.vt_symbol, days, interval, callback)
File "G:\studyfile\pythonLearn\workplace\vnpy_lme\src\vnpy\app\cta_strategy\engine.py", line 539, in load_bar
bars = self.query_bar_from_rq(symbol, exchange, interval, start, end)
File "G:\studyfile\pythonLearn\workplace\vnpy_lme\src\vnpy\app\cta_strategy\engine.py", line 145, in query_bar_from_rq
data = rqdata_client.query_history(req)
File "G:\studyfile\pythonLearn\workplace\vnpy_lme\src\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 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\connection_pool.py", line 25, in execute
with self._get_connection() as conn:
File "C:\Anaconda3\lib\contextlib.py", line 112, in enter
return next(self.gen)
File "C:\Anaconda3\lib\site-packages\rqdatac\connection_pool.py", line 36, in _get_connection
conn = self._ensure_connection()
File "C:\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
加入于:
帖子: 2152
声望: 99

rqdatac版本太老了,没有使用VNStudio的情况下,请去米筐官网看下如何用命令更新吧

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

谢谢您
在cmd界面中使用命令
“pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --extra-index-url https://rquser:ricequant99@py.ricequant.com/simple/ rqdatac==2.5.5”
问题得到了解决
祝vnpy越来越好

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