VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 6
声望: 0

申请了试用账号,配置了license,下载数据就报错

是不是还要配置数据库?

数据是一定要下载才能使用吗?

不能直接从米筐调用吗?

Member
avatar
加入于:
帖子: 3254
声望: 218

可以贴一下报错信息

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

Traceback (most recent call last):
File "C:\veighna_studio\lib\site-packages\vnpy_datamanager\ui\widget.py", line 609, in download
count = self.engine.download_bar_data(symbol, exchange, interval, start)
File "C:\veighna_studio\lib\site-packages\vnpy_datamanager\engine.py", line 213, in download_bar_data
data = self.datafeed.query_bar_history(req)
File "C:\veighna_studio\lib\site-packages\vnpy_rqdata\rqdata_datafeed.py", line 135, in query_bar_history
n: bool = self.init()
File "C:\veighna_studio\lib\site-packages\vnpy_rqdata\rqdata_datafeed.py", line 124, in init
df: DataFrame = all_instruments()
File "C:\veighna_studio\lib\site-packages\rqdatac\decorators.py", line 150, in wrap
return func(args, **kwargs)
File "C:\veighna_studio\lib\site-packages\rqdatac\services\basic.py", line 385, in all_instruments
ins_ret = filter(cond, get_instrument_list(market))
File "C:\veighna_studio\lib\site-packages\rqdatac\decorators.py", line 129, in wrapper
value = user_function(
args, kwargs)
File "C:\veighna_studio\lib\site-packages\rqdatac\services\basic.py", line 139, in _all_cached_instruments_list
return _all_instruments_list(market)
File "C:\veighna_studio\lib\site-packages\rqdatac\services\basic.py", line 116, in _all_instruments_list
ins = [Instrument(i) for i in get_client().execute("all_instruments", market=market)]
File "C:\veighna_studio\lib\site-packages\rqdatac\decorators.py", line 67, in wrap
return func(*args,
kwargs)
File "C:\veighna_studio\lib\site-packages\rqdatac\connection_pool.py", line 27, in execute
return conn.execute(method, *args, **kwargs)
File "rqdatac\connection.py", line 117, in rqdatac.connection.Connection.execute
File "rqdatac\connection.py", line 87, in rqdatac.connection.Connection._read_one_packet
rqdatac.share.errors.QuotaExceeded: Quota exceeded

Member
avatar
加入于:
帖子: 3254
声望: 218

这个报错说明目前该账户同时登录的次数超过了限制。对于付费用户,RQData默认允许同时有3个连接登录,对于试用账户则只有1个了。请关闭其他连接了RQData的进程后,再次尝试即可。

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

我也出现相同的情况,下载了一会儿就突然出现这个问题,但是自己只有一个连接登录

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

Traceback (most recent call last):
File "C:\veighna_studio\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 268, in open_widget
widget = widget_class(self.main_engine, self.event_engine)
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\ui\widget.py", line 38, in init
self.cta_engine.init_engine()
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\engine.py", line 115, in init_engine
self.init_datafeed()
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\engine.py", line 137, in init_datafeed
result: bool = self.datafeed.init()
File "C:\veighna_studio\lib\site-packages\vnpy_rqdata\rqdata_datafeed.py", line 124, in init
df: DataFrame = all_instruments()
File "C:\veighna_studio\lib\site-packages\rqdatac\decorators.py", line 150, in wrap
return func(args, **kwargs)
File "C:\veighna_studio\lib\site-packages\rqdatac\services\basic.py", line 385, in all_instruments
ins_ret = filter(cond, get_instrument_list(market))
File "C:\veighna_studio\lib\site-packages\rqdatac\decorators.py", line 129, in wrapper
value = user_function(
args, kwargs)
File "C:\veighna_studio\lib\site-packages\rqdatac\services\basic.py", line 139, in _all_cached_instruments_list
return _all_instruments_list(market)
File "C:\veighna_studio\lib\site-packages\rqdatac\services\basic.py", line 116, in _all_instruments_list
ins = [Instrument(i) for i in get_client().execute("all_instruments", market=market)]
File "C:\veighna_studio\lib\site-packages\rqdatac\decorators.py", line 67, in wrap
return func(*args,
kwargs)
File "C:\veighna_studio\lib\site-packages\rqdatac\connection_pool.py", line 27, in execute
return conn.execute(method, *args, **kwargs)
File "rqdatac\connection.py", line 117, in rqdatac.connection.Connection.execute
File "rqdatac\connection.py", line 87, in rqdatac.connection.Connection._read_one_packet
rqdatac.share.errors.QuotaExceeded: Quota exceeded

Member
avatar
加入于:
帖子: 3254
声望: 218

应该是下载数据超过了试用账号的数据流量限制导致的

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

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】