Skip to content

marsalmorera/streamlit-stock

Repository files navigation

Stock Performance Comparator using Streamlit

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.

Features

  • 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.

Data Sources

  • 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.

Usage

  • 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.

Dependencies

  • Streamlit for building the interactive web app.
  • Pandas and Numpy for data manipulation.
  • Matplotlib and Plotly for visualizations.

Streamlit App

Captura de pantalla 2025-02-20 a les 8 37 41 Captura de pantalla 2025-02-20 a les 8 38 15 Captura de pantalla 2025-02-20 a les 8 38 29

Contributing

Feel free to open issues or submit pull requests for enhancements and bug fixes.

Acknowledgements

  • Yahoo Finance Link
  • Kaggle for the datasets.Link
  • Streamlit community for providing an intuitive framework for data apps.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published