This project is a Streamlit web application that allows users to compare stock performance with the S&P 500 index over the period from 2014 to 2024. It provides insightful visualizations for annual returns, price history, and top-performing stocks using data extracted from Yahoo Finance API and a Kaggle dataset.
- Annual Return Comparison: Compare the annual return of a selected stock against the S&P 500 index, providing a clear view of relative performance.
- Top Performing Stocks: Visualize the best performing stocks over the years based on annual return.
- Price History Analysis: Track and compare the historical price movement of selected stocks.
- Yahoo Finance API: Used for extracting up-to-date stock and realtive information from the compamnies.
- Kaggle Dataset: Historical price data for stocks and the S&P 500 index from 2014 to 2024.
- Select a stock to compare its annual return with the S&P 500 index.
- View the top-performing stocks based on annual returns over the years.
- Analyze the price history and compare multiple stocks.
- Streamlit for building the interactive web app.
- Pandas and Numpy for data manipulation.
- Matplotlib and Plotly for visualizations.
Feel free to open issues or submit pull requests for enhancements and bug fixes.