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

全市场数据日期出错,建议修正 #15

Open
rexiyz opened this issue May 5, 2023 · 0 comments
Open

全市场数据日期出错,建议修正 #15

rexiyz opened this issue May 5, 2023 · 0 comments

Comments

@rexiyz
Copy link

rexiyz commented May 5, 2023

全市场数据日期出错,建议修正,例如qs.get_data('港股',start='2023-05-04',end='2023-05-04',fqt=1)时,获取的是最新日期的全港股数据,而不是4号的数据,当code为字符串‘港股‘时,并不能正确识别日期,如果传入的是整个港股的code list,则会出现几千个请求就太多(这在api里本来应该用一个请求来减少流量和系统负载),get_data获取到中途抛出错误,跳过某个股票然后继续执行的问题,get_data能容纳的list长度上限、get_data处理每个股票需要的时间和检测是否超时重试,都需要完善来保持get_data对全市场数据的完全获取,目前我可以通过用户端代码来完善这个过程,不过建议向专业的券商学习完善get_data的api和服务端代码的响应逻辑,提高get_data的可用性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant