Skip to content

Blake Rayvid

Menu
  • About
  • Portfolio
Menu

Compare Stock Returns

Posted on June 1, 2025June 1, 2025 by Blake

This web app lets you enter multiple stock tickers (e.g., AAPL, MSFT, GOOGL) and compare them visually against a benchmark (like SPY).

  • Pick a date range for historical data.
  • Use a slider to fine-tune the plotted period.
  • View normalized cumulative returns on a clear chart (with a log scale option).

It’s built with Python and Flask on the backend. Data comes from Yahoo Finance via the yfinance library, pandas crunches the numbers, and matplotlib generates the plots. The front end uses basic HTML/CSS and a bit of JavaScript with noUiSlider for the date range slider.

🔗 stocks.blakerayvid.com

View on GitHub

Tags: Flask, Matplotlib, NumPy, Pandas, Python, Railway, YFinance
Categories: Apps, Data Science, Finance, Interactive

Post navigation

← SOAP: Social Polling

Categories

  • Apps
  • Data Science
  • Exploration
  • Finance
  • Health
  • Interactive
  • Optimization

Tags

D3 Desmos Flask JavaScript JQuery LLMs MATLAB Matplotlib Netlify NLTK Node NumPy P5 Pandas Postgres Python QuantConnect Railway Scikit-Learn SciPy Vader YFinance

© 2025 Blake Rayvid