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

Traceback (most recent call last):
File "D:\vnstudio\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 278, in open_widget
widget = widget_class(self.main_engine, self.event_engine)
File "D:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\ui\widget.py", line 47, in init
self.backtester_engine.init_engine()
File "D:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 60, in init_engine
self.init_rqdata()
File "D:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 66, in init_rqdata
result = rqdata_client.init()
File "D:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 56, in init
use_pool=True,
File "D:\vnstudio\lib\site-packages\rqdatac\client.py", line 166, in init
quota = get_client().execute("user.get_quota")
File "D:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 59, in wrap
return func(args, **kwargs)
File "D:\vnstudio\lib\site-packages\rqdatac\connection_pool.py", line 25, in execute
with self._get_connection() as conn:
File "D:\vnstudio\lib\contextlib.py", line 112, in enter
return next(self.gen)
File "D:\vnstudio\lib\site-packages\rqdatac\connection_pool.py", line 36, in _get_connection
conn = self._ensure_connection()
File "D:\vnstudio\lib\site-packages\rqdatac\connection_pool.py", line 57, in _ensure_connection
return self._new_connection()
File "D:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 59, in wrap
return func(
args, **kwargs)
File "D:\vnstudio\lib\site-packages\rqdatac\connection_pool.py", line 65, in _new_connection
return Connection(s, self._auth)
File "D:\vnstudio\lib\site-packages\rqdatac\connection.py", line 67, in init
self._do_auth(self._auth_info)
File "D:\vnstudio\lib\site-packages\rqdatac\connection.py", line 112, in _do_auth
msg_type, body = self._read_one_packet()
File "D:\vnstudio\lib\site-packages\rqdatac\connection.py", line 102, in _read_one_packet
raise get_error(code)(msg)
rqdatac.share.errors.AuthenticationFailed: user does not have data access

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

从TUSHARE导入了股票数据,格式如下。
8562455 688399 SSE 2020-01-14 00:00:00 d 21755 0 61.76 67 60.7 63.1
8562456 688399 SSE 2020-01-13 00:00:00 d 12935 0 61.3 61.3 59.81 60.98
8562457 688399 SSE 2020-01-10 00:00:00 d 13739 0 60.8 61.8 60.13 61.14
8562458 688399 SSE 2020-01-09 00:00:00 d 16616 0 59.49 61.79 59.41 60.48
8562459 688399 SSE 2020-01-08 00:00:00 d 12970 0 59.19 60.19 58.8 59.01

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

没有数据权限,请检查是否申请了RQData账号

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

我没有使用RQData,我从CSV导入了股票数据。正常情况下应该从本地读取数据的

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

那么请检查你的全局配置里,rqdata相关的两个字段要留空

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