Stock Performance App

Posted on Jun 5, 2022

 

Introduction:

Often times, free charting platforms (for stocks) don't give the user much control over selecting the date range. Most of the time, it gives the choice of 1 day, 5 days, 1 month, 3 or 6 months, and 1 year. This seems like a pretty straightforward problem to fix.

Data:

Unfortunately, Kaggle didn't quite have the data I wanted (not up to date historical data, and I wanted a little bit more information about the company). Interestingly enough, Wikipedia did. There, I found a list of all the companies in the S&P500 (Stock Market Index that tracks the performance of 500 large company stocks; usually considered a standard benchmark for large-cap equities) with the following information:

  • Ticker Symbol
  • Company Name
  • Sector
  • Industry
  • Headquarter Location
  • Date first added into SP500
  • Year Founded

Great! The only problem is that I don't have the historical price data. Thankfully, Yahoo Finance makes it incredibly easy to scrape through and find the historical data. Now we have our data.

The App:

The main feature of this app really is just allowing for the user to interact with the date. For example, perhaps I want to look at how Nvidia's stock price performed in 2015 to 2016.

Yahoo Finance (and most brokerages) will give me a "Max" chart, but it'd be incredibly difficult to see what the movement was.

I also added a few more details about the company. First, some basic information from our original Wikipedia list: Sector, Industry, HQ Location, and the Year the company was founded.

Second, I also added 1 month, 3 month, 6 month, 1 year, and 5 year returns relative to the most recent date (in this case, 05/20/2022).

All in all, this is what the final project page looks like:

For the Future:

If I had more time, I would make the returns section dynamic such that they are relative to the end date user selected.

I would like to add more Financial information about the company such as Revenue, Net Income/EBITDA, Debt, and Cash Flows just to name a few. Unfortunately, acquiring this data isn't that easy.

Another feature that would be interesting is being able to compare companies side by side. Overlaying price performance isn't very difficult, however, unless it's "standardized" and converted to the same base, it doesn't really tell too much. A more interesting aspect, in my opinion, would be to compare the financial data instead. Ratios like Price to Earnings (PE) or Earnings Per Share (EPS) make it a lot easier to see company to company comparisons.  Again, that data isn't easy to acquire. In an ideal world, this would facilitate an investor's due diligence process.

 

Resources: Title image and Nvidia line chart both from Yahoo Finance.

 

 

About Author

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI