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

今天用rqdata的试用账号下载了一下数据,之后出现了如下报错。猜测应该是超出了试用账号的每日流量限额。不过问题不是这个,不让下就不让下,问题不大,我还有本地数据。关键问题是因为这个报错,我连回测模块都无法打开,一点击回测模块的图标就会弹出这个报错的消息框,关闭这个消息框后回测模块也没打开。

我觉得这个逻辑不太合理,不能因为我的rqdata服务(或者其他的在线数据服务)出错,就连回测模块也一块儿 kill 掉,这不合理,因为使用在线数据服务并不是我使用回测模块的必要前提,回测模块也不应和在线数据服务绑定。建议优化一下相关逻辑~
.

description

.

Traceback (most recent call last):
File "C:\veighna_studio\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 276, in open_widget
widget = widget_class(self.main_engine, self.event_engine)
File "C:\veighna_studio\lib\site-packages\vnpy_ctabacktester\ui\widget.py", line 55, in init
self.backtester_engine.init_engine()
File "C:\veighna_studio\lib\site-packages\vnpy_ctabacktester\engine.py", line 71, in init_engine
self.init_datafeed()
File "C:\veighna_studio\lib\site-packages\vnpy_ctabacktester\engine.py", line 77, in init_datafeed
result: bool = self.datafeed.init()
File "C:\veighna_studio\lib\site-packages\vnpy_rqdata\rqdata_datafeed.py", line 123, 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
加入于:
帖子: 12
声望: 0

又试了一下,不止是 CTA回测 模块没法打开,CTA策略 模块也无法打开。

然后把全局配置中的datafeed相关字段清空之后,就可以打开了。

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

沪公网安备 31011502017034号

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