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

Add Support for Key Statistics #18

Closed
joesixpack opened this issue Jan 5, 2019 · 4 comments
Closed

Add Support for Key Statistics #18

joesixpack opened this issue Jan 5, 2019 · 4 comments

Comments

@joesixpack
Copy link

https://finance.yahoo.com/quote/AAPL/key-statistics?p=AAPL

@JECSand
Copy link
Owner

JECSand commented Jan 7, 2019

I'll take a look at this tonight to see if I can add this feature to the v1.4 release.

Thanks for the info!

@joesixpack
Copy link
Author

Be aware there is some kind of pacing enforcement by Yahoo. I believe the same limitations for the CSV history apply to web scraping, e.g. 2000 requests per hour. I've only managed it successfully with 1 thread and a bit over a second between requests. When you violate it, it will return a 404 error encoded in the url with a redirect to the home page.

JECSand added a commit that referenced this issue Jan 13, 2019
@JECSand
Copy link
Owner

JECSand commented Jan 13, 2019

This feature has been added in v1.4! The method to get this data is called "get_key_statistics_data()".

Let me know if you have any issues and thank you for using YahooFinancials!

@DebugMeIfYouCan
Copy link

@joesixpack @JECSand hello, just wondering how you can get the total Cash, total Debt or Levered Free Cash Flow from the Key Statistics?

https://finance.yahoo.com/quote/AAPL/key-statistics?p=AAPL

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

No branches or pull requests

3 participants