Skip to content

Ezz08/StockStream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ˆ Live Stock Price Tracker (Python)

A simple real-time stock price visualization project built using Python, Matplotlib, and Animation. The project simulates live stock market data and displays it as a continuously updating graph.


πŸš€ Features

  • πŸ“Š Real-time updating line chart
  • πŸ”„ Live animation using Matplotlib
  • πŸ’° Simulated stock price generation
  • πŸ“ˆ Time-series visualization
  • 🧠 Simple and clean Python implementation

πŸ› οΈ Technologies Used

  • Python 🐍
  • Matplotlib πŸ“Š
  • Matplotlib Animation πŸ”„
  • Random library 🎲

πŸ“‚ Project Structure

project/
│── StockStream.py
│── README.md

▢️ How to Run

1. Install dependencies

pip install matplotlib

2. Run the project

python main.py

πŸ“Œ How It Works

  • The function get_stock_price() generates a random stock price around 35000.

  • Every 5 seconds:

    • A new price is generated
    • Data is appended to lists (prices, times)
    • The graph is updated using FuncAnimation
  • The chart continuously redraws to simulate live stock movement.


πŸ“Š Output Example

  • X-axis β†’ Time (ticks)
  • Y-axis β†’ Stock Price
  • A live updating line chart showing simulated market movement

⚠️ Note

This project uses simulated data, not real stock market APIs. It is designed for learning purposes (data visualization + animation in Python).


πŸ’‘ Future Improvements

  • πŸ”— Connect to real stock APIs (Yahoo Finance / Alpha Vantage)
  • 🌐 Build web dashboard (Flask / Django)
  • πŸ“‰ Add indicators (moving averages, RSI)
  • 🚨 Add price alerts
  • πŸ’Ύ Save data to CSV or database

πŸ‘¨β€πŸ’» Author

Built as a learning project to explore real-time data visualization using Python.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages