Closed ForgeFin closed 6 years ago
Hey there,
I just added a new function to the module called get_num_shares_outstanding() and released a new version of the module (v8.0). This new method calculates the current shares outstanding by dividing the current market cap by the current stock price. I was unable to find an easy way to calculate historical shares outstanding and I was unable to find a pre-calculated value directly from yahoo finance to use instead.
Another option with that method is to run it as get_num_shares_outstanding('average'), which will execute the method by dividing the current market cap by the daily average price instead. Just in-case that outputs a more accurate value for you.
Let me know how this works and thank you for using YahooFinancials again.
Also feel free to open another issue detailing any errors/bugs from the EPS method. I'd be happy to fix them.
Not a problem, always glad to help!
Hey JECSand, could you also write a function to retrieve the number of shares outstanding? - or am I missing that it already exists? - No. of shares is necessary for me to link the statement data to the price data .. I already tried to work around with EPS but this seems error-prone.
Btw. thanks for the help in stackoverflow ;-)