Skip to content
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

AKShare 接口问题报告 #3338

Closed
yinlinzhan opened this issue Jan 3, 2023 · 6 comments
Closed

AKShare 接口问题报告 #3338

yinlinzhan opened this issue Jan 3, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@yinlinzhan
Copy link

遇到任何问题,请先确认您的 AKShare 版本是最新的

pip install akshare --upgrade  # Python 版本需要大于 3.7

描述遇到的问题

  1. 操作系统版本:windows
  2. Python 版本:3.9.12
  3. AKShare 版本:最新
  4. 接口的名称和代码:获取展期收益率的接口get_roll_yield_bar
  5. 接口报错的截图或代码:KeyError: 'variety'。
  6. 期望获得的正确结果
@yinlinzhan yinlinzhan added the bug Something isn't working label Jan 3, 2023
@yinlinzhan
Copy link
Author

get_receipt也用不了了

@yinlinzhan
Copy link
Author

问题出在calendar只有到20221230的数据

@yinlinzhan
Copy link
Author

顺便提一下,最新版里get_roll_yield接口中的close1 = df["close"][df["symbol"] == symbol1.upper()].tolist()[0],close2 = df["close"][df["symbol"] == symbol2.upper()].tolist()[0]这两行代码还是没改,应该删掉.upper()

@yinlinzhan
Copy link
Author

目前更新到1.8.45版本,calendar的问题已经解决,上面提到的.upper()问题依然存在

@albertandking
Copy link
Collaborator

close1

感谢反馈问题并提供解决方案;已修复相关问题,升级到 AKShare 1.8.46 版本使用

@yinlinzhan
Copy link
Author

好哒,辛苦前辈了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants