An open API service indexing awesome lists of open source software.

https://github.com/gia-lexa/real-time-data-visualizer

An opportunity to tinker with data viz, this Python app tracks live stock prices using the Yahoo Finance API and surfaces the price changes in real-time using live-updating data visualizations.
https://github.com/gia-lexa/real-time-data-visualizer

data-visualization python

Last synced: 8 months ago
JSON representation

An opportunity to tinker with data viz, this Python app tracks live stock prices using the Yahoo Finance API and surfaces the price changes in real-time using live-updating data visualizations.

Awesome Lists containing this project

README

          

# (WIP) Real-Time Stock Price Tracker

Real-Time Stock Price Tracker is a Python-based application that tracks live stock prices using the Yahoo Finance API (yfinance) and visualizes the stock price movement in real-time using matplotlib.
This project demonstrates real-time data handling, API integration, and live-updating data visualizations. This is in a WIP state, which
demonstrates POC, but more complex iterations are on the way.

### Key Features:
- Fetches live stock prices using the yfinance library.
- Displays a live-updating graph of stock price movements.
- Updates every 5 seconds to reflect the most current stock data.
- Easy-to-run Python script with minimal dependencies.

This project is designed to handle:

- Real-time API integration and data processing.
- Dynamic data visualization using matplotlib.
- Handling live data with Python.

#### Project Structure
- tracker.py: The main Python script that fetches stock prices and displays the live-updating graph.
- test_tracker.py: Unit tests for the core functionality, ensuring the API integration and graph update logic work as expected.

#### Running the Tests
To run the tests, simply execute the following:
```
python3 -m unittest test_tracker.py
```
The tests currently ensure that:

- Stock prices are fetched correctly from the API.
- The graph updates correctly without errors.
- More to follow, these are in a WIP state

#### Future Enhancements
- Add more detailed stock information, such as volume, moving averages, and historical data.
- Allow users to track multiple stocks simultaneously.
- Implement a more advanced data visualization using plotly for interactive graphs.

### Disclaimer
This project is an in-progress technical exploration of data visualization. While provided under the MIT License, it is not optimized for production use, and no guarantees are made regarding security, reliability, or real-world performance.