VeighNa量化社区
你的开源社区量化交易平台 | vn.py | vnpy
Member
avatar
加入于:
帖子: 5
声望: 0

[DEMO] 触发异常已停止
Traceback (most recent call last):
File "C:\veighna_studio\lib\site-packages\hs_udata\utils\decorators.py", line 15, in wrap
return func(*args, kwargs)
File "C:\veighna_studio\lib\site-packages\hs_udata\utils\connection_pool.py", line 26, in send
return conn.send(method,
kwargs)
File "C:\veighna_studio\lib\site-packages\hs_udata\utils\connection.py", line 238, in send
raise GatewayException("网关发生未定义错误,错误信息:{}".format(rsp[ERROR_INFO]))
hs_udata.utils.error.GatewayException: 网关发生未定义错误,错误信息:[hsiar]check auth failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\engine.py", line 615, in call_strategy_func
func()
File "C:\Users\HW\strategies\demo_strategy.py", line 54, in on_init
self.load_bar(10)
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\template.py", line 306, in load_bar
bars: List[BarData] = self.cta_engine.load_bar(
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\engine.py", line 572, in load_bar
bars: List[BarData] = self.query_bar_from_datafeed(symbol, exchange, interval, start, end)
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\engine.py", line 140, in query_bar_from_datafeed
data: List[BarData] = self.datafeed.query_bar_history(req, self.write_log)
File "C:\veighna_studio\lib\site-packages\vnpy_udata\udata_datafeed.py", line 66, in query_bar_history
temp_data = self.query_bar_data(req)
File "C:\veighna_studio\lib\site-packages\vnpy_udata\udata_datafeed.py", line 94, in query_bar_data
df: DataFrame = fut_quote_minute(
File "C:\veighna_studio\lib\site-packages\hs_udata\utils\decorators.py", line 54, in wrap
return func(*args, kwargs)
File "C:\veighna_studio\lib\site-packages\hs_udata\apis\stock\api.py", line 6654, in fut_quote_minute
return get_data("fut_quote_minute", url_path="udata/business/v1/app_services/futures_options",
params)
File "C:\veighna_studio\lib\site-packages\hs_udata\apis\base\api.py", line 46, in get_data
return get_client().send(method, **kwargs)
File "C:\veighna_studio\lib\site-packages\hs_udata\utils\decorators.py", line 16, in wrap
except exp_name as ex: #返回func时异常
TypeError: catching classes that do not inherit from BaseException is not allowed

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

是在晚上22:00左右连接simnow做测试时出现的。是不是连接simnow出现了问题?

Member
avatar
加入于:
帖子: 1909
声望: 142

这个报错来源于恒有数UData数据服务,请在全局配置中改成其他datafeed试试

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

MTF wrote:

这个报错来源于恒有数UData数据服务,请在全局配置中改成其他datafeed试试

好的,谢谢!

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

沪公网安备 31011502017034号

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