dpguthrie / yahooquery

Python wrapper for an unofficial Yahoo Finance API
https://yahooquery.dpguthrie.com
MIT License
774 stars 137 forks source link

Get Historical P/E ratio values #186

Open sophia-wright-blue opened 1 year ago

sophia-wright-blue commented 1 year ago

Is your feature request related to a problem? Please describe. I'd like to use this library to get the Historical P/E ratio values for a ticker

i only see a way to get full historical price data from the docs, but not EPS values

the methods - ticker.income_statement() and ticker.valuation_measures have the EPS, P/E values , but I can't figure out how to get these values for the past 5 years

Describe the solution you'd like A dataframe that can be used to create a chart like the one here:

https://www.wolframalpha.com/input?i=p%2Fe+microsoft

Describe alternatives you've considered Wolfram alpha, but I'd like to get the same data with Python

Additional context thank you in advance for your help!

charlie-delta-003 commented 1 year ago

In addition, currently valuation measures item such as PeRatio is not working in get_financial_data module. Agreed if we got valuation measure not only for the last quarters, but also for last 3-4 years image

pgmikhael commented 1 year ago

Any updates on this?