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

环境:
VNPY: VeighNa Station 3.4.0
vnpy-udata: 2022.8.5
hs-udata: 0.3.8

报错日志如下:

22:52:26 ----------------------------------------
22:52:26 TF2003.CFFEX-1m开始下载历史数据
22:52:26 数据下载失败,触发异常:
Traceback (most recent call last):
File "D:\veighna_studio\lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "D:\veighna_studio\lib\site-packages\simplejson__init__.py", line 525, in loads
return _default_decoder.decode(s)
File "D:\veighna_studio\lib\site-packages\simplejson\decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "D:\veighna_studio\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\veighna_studio\lib\site-packages\hs_udata\utils\decorators.py", line 15, in wrap
return func(*args, kwargs)
File "D:\veighna_studio\lib\site-packages\hs_udata\utils\connection_pool.py", line 26, in send
return conn.send(method,
kwargs)
File "D:\veighna_studio\lib\site-packages\hs_udata\utils\connection.py", line 193, in send
rsp = response.json()
File "D:\veighna_studio\lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\veighna_studio\lib\site-packages\vnpy_ctabacktester\engine.py", line 404, in run_downloading
data: List[BarData] = self.datafeed.query_bar_history(req)
File "D:\veighna_studio\lib\site-packages\vnpy_udata\udata_datafeed.py", line 65, in query_bar_history
temp_data = self.query_bar_data(req)
File "D:\veighna_studio\lib\site-packages\vnpy_udata\udata_datafeed.py", line 92, in query_bar_data
df: DataFrame = fut_quote_minute(
File "D:\veighna_studio\lib\site-packages\hs_udata\utils\decorators.py", line 54, in wrap
return func(*args, kwargs)
File "D:\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 "D:\veighna_studio\lib\site-packages\hs_udata\apis\base\api.py", line 46, in get_data
return get_client().send(method, **kwargs)
File "D:\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
加入于:
帖子: 2
声望: 0

忽略,配错了参数,配成 恒生UData 了

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

沪公网安备 31011502017034号

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