herval / yahoo-finance

[DEPRECATED] A simple wrapper for yahoo finance quotes end-point.
192 stars 72 forks source link

Market_capitalization shows a "B" instead of "M" #38

Open Crashtor opened 7 years ago

Crashtor commented 7 years ago

I'm very big into penny-stock trading, and I'm experimenting a bit here, and I just realized that:

a) revenue doesn't show up for companies with revenue that is below what it appears to be below $1m. Why? b) Market cap puts a "B"(?) when it should be "M". It appears it's 1000 times too large. c) Market Cap shows the wrong number for a number of companies. Are you calculating it based on outstanding shares? If so, then it's that information that's wrong. c) Is it possible to get other financial stats other than revenue? d) Is it possible to get revenue by year?

bcoles commented 7 years ago

Hi @philiplindblom

The yahoo-finance gem is a simple wrapper for the Yahoo Finance API. The gem performs no calculations - all data is returned verbatim. As such, the accuracy of the data depends entirely on the accuracy of Yahoo's information.

Unfortunately, there are many instances where Yahoo's information is incorrect. In particular, penny stocks seem to be the least frequently updated. However, the information is not just out-of-date - in some instances it's plain wrong.

All queries regarding inaccurate data on the Yahoo Finance website should be directed to Yahoo. Refer here for the long list list of problems people face with the Yahoo Finance website.

Keep in mind that the Yahoo API is available for free. You get what you pay for. It's nice that they'll let you query 50 stocks at once. That's far more than other free APIs will allow.

Regarding the market cap, you can quite easily calculate this yourself by multiplying the free float by the last trade price; or find the fully-diluted market cap by multiplying the number of shares outstanding by the last trade price.

The following resources may be of use should you wish to view financial information. Most exchanges are supported.