- Created a tool that scrape the data from Yahoo Finance and analyze a current situation.
- Scraped website using python.
- Downloaded data from Yahoo Finance.
- Active stocks Octuber 2021: plots to display stock changes in popular companies.
- Stock market crashes: plot to evaluate it in a period of time.
Python Version: 3.7
Packages: time, datetime, pandas, matplotlib, plotly
Tweaked a web scraper to scrape Yahoo Finance data from a certain period of time.
- Stocks
- S&P500
The aim was to analyze active stocks of most popular companies in the period from Octuber 1 to Octuber 25, 2021.
Variables were Companies, Date, Open, High, Low, Close (close price adjusted for splits), Adj Close (Adjusted close price adjusted for splits and dividend and/or capital gain distributions), Volume. Daily Return was calculated as the natural log of daily Adj Close ratio. Currency in USD.
The Adjusted Close and Volume for the companies were analyzed as well as the % Daily Return vs Volume.
Vol_AdjClose.mp4
DailyReturn_Volume.mp4
Tesla, Inc. was tendency on October 25, 2021 and here you can see what happened. A drastic shift for TSLA can be observed at the end of the animation, both on volume and % Daily Return.
Let's show that in more detail.
As observed on figure 3, TSLA showed a 11.92% of Daily Return and 62.85M of Volume on October 25, 2021.
The question is what happened with the other companies on that date?
If we compared the stocks of other popular companies that day, we could see that the closest ones to Tesla, Inc. were Apple, Inc. and Facebook, Inc.
In daily returns, Tesla, Inc.'s closest company was Facebook, Inc. with a 1.25%, 9.5X less than Tesla, Inc. As for Volume, Apple, Inc. was the closest one and showed 1.23X less value.
The aim was to show stock market crashes in a 5-year period of time.
-
In December 2018, the S&P 500 fell 11 %. America's trade war with China, interest rates and uncertainty in government policy all helped to create a loss of more than 10 percent.
-
With the spread of COVID-19, global stock markets have declined significantly. US indices, including the S&P 500, have fallen close to 30%, bringing us to values previously seen in 2017.