-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xa.get_daily("SH600036",) does not work ! #187
Comments
works for me, need more info on the settings and environments to locate and reproduce the error |
os: Ubuntu 22.04 LTS os: macos Ventura 13.0.1 both have the same error.KeyError Traceback (most recent call last) KeyError: 'SH600036' During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) File ~/anaconda3/lib/python3.10/site-packages/xalpha/universal.py:2051, in cachedio..cached..wrapper(*args, **kws) File ~/anaconda3/lib/python3.10/site-packages/xalpha/universal.py:1128, in get_daily(code, start, end, prev, from, wrapper, handler, **kws) File ~/anaconda3/lib/python3.10/site-packages/xalpha/universal.py:168, in get_historical_fromxq(code, count, type_, full) KeyError: 'item' |
I use xalpha 0.12.0, also the get_daily does not work |
refer to #190 (comment) |
邮件已收到~~我会查看之后回复您
|
{'data': {'items': [], 'items_size': 0},
'error_code': 0,
'error_description': ''}
File ~/opt/anaconda3/lib/python3.10/site-packages/xalpha/universal.py:171, in get_historical_fromxq(code, count, type_, full)
--> 171 df = pd.DataFrame(data=r["data"]["item"], columns=r["data"]["column"])
172 df["date"] = (df["timestamp"]).apply(ts2pdts) # reset hours to zero
173 return df
KeyError: 'item'
The text was updated successfully, but these errors were encountered: