Microsoft’s decade long catch up for Market Capitalization

via swapripper:

One of the biggest news this week was Mircrosoft briefly overtaking Apple as the biggest company in terms of market cap. I thought it would be a good idea to graph this decade long catch-up.

READ  The market is officially on crack... Buy is more vicious than sell since MARCH 23 2020?

Since I could not get historical market cap data as far out as 2010 directly using any API(without paying), I decided to use historical ticker prices & historical outstanding shares


Historical ticker prices fetched using AlphaVantage API.

READ  The market may be ready for a 1987 style crash led by tech.

Historical number of outstanding shares – Got this from

Formula for Market Cap

Market Cap = Number of Outstanding Shares * Closing price

Tools used

Python 3.6 Matplotlib Pandas AlphaVantage API

Github link



Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.