Skip to content

This project allows users to visualize the historical stock prices of multiple stocks interactively in real-time using Streamlit and Plotly. By inputting a list of stock tickers (e.g., PETR4.SA, VALE3.SA, ITUB4.SA), the app fetches data from Yahoo Finance and displays an interactive line chart showing the stock prices over time.

Notifications You must be signed in to change notification settings

IsaacMartins12/Stocks_Streamlit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Interactive Stock Visualization with Streamlit

Alt text

πŸ“‹ Description

This project allows users to visualize the historical stock prices of multiple stocks interactively in real-time using Streamlit and Plotly. By inputting a list of stock tickers (e.g., PETR4.SA, VALE3.SA, ITUB4.SA), the app fetches data from Yahoo Finance and displays an interactive line chart showing the stock prices over time. The application automatically updates every 30 seconds to ensure the displayed data remains current.

πŸš€ Features

  • Input multiple stock tickers and view them simultaneously.

  • Interactive graph with Plotly showing the historical closing prices.

  • Real-time updates every 30 seconds.

  • Display current stock prices in Streamlit's metric cards.

  • Option to download the data as a CSV file.

πŸ› οΈ Technologies Used

  • Streamlit for building the interactive web application.
  • Plotly for interactive visualizations.
  • yfinance to fetch stock data from Yahoo Finance.

πŸ“¦ Installation

Requirements

  • Python 3.x
  • Streamlit
  • Plotly
  • Pandas

Installation Steps

  1. Clone the repository:

    git clone https://github.com/IsaacMartins12/stocks_streamlite
  2. Create virtual environment:

    python -m venv venv
    source venv/bin/activate # On Windows: venv\Scripts\activate
    
    
  3. Install dependencies:

    python install -r requirements.txt
    
  4. Run the main app:

    streamlit run stream.py
    

πŸ§‘β€πŸ’» Contribution

We welcome contributions to improve this project. Feel free to submit pull requests or report issues on the Issues page.

Contribution Steps

  1. Fork the project.
  2. Create a branch for your feature (git checkout -b feature/new-feature).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature/new-feature).
  5. Create a Pull Request with a detailed description of your changes.

πŸ“œ License

This project is licensed under the MIT License.

About

This project allows users to visualize the historical stock prices of multiple stocks interactively in real-time using Streamlit and Plotly. By inputting a list of stock tickers (e.g., PETR4.SA, VALE3.SA, ITUB4.SA), the app fetches data from Yahoo Finance and displays an interactive line chart showing the stock prices over time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages