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

.get_stock_outstanding #9

Closed
ForgeFin opened this issue Aug 10, 2018 · 1 comment
Closed

.get_stock_outstanding #9

ForgeFin opened this issue Aug 10, 2018 · 1 comment

Comments

@ForgeFin
Copy link

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 ;-)

@JECSand
Copy link
Owner

JECSand commented Aug 11, 2018

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!

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

2 participants