Building a Live Stock Portfolio Tracker in Python with yfinance and Rich
📰 Medium · Programming
Build a live stock portfolio tracker in Python using yfinance and Rich to fetch stock prices and display a color-coded terminal dashboard
Action Steps
- Install the yfinance and Rich libraries using pip
- Fetch live stock prices from NSE/US exchanges using yfinance
- Calculate profit and loss (P&L) for each stock in the portfolio
- Create a color-coded terminal dashboard using Rich to display the stock prices and P&L
- Test the application with a sample portfolio and verify the results
Who Needs to Know This
This project is ideal for beginner developers and data analysts who want to practice working with APIs and data visualization. It can also be useful for finance professionals who want to track their stock portfolio
Key Insight
💡 You can build a live stock portfolio tracker in Python without needing an API key by using the yfinance library
Share This
📊 Build a live stock portfolio tracker in Python with yfinance and Rich! No API key required 🚀
DeepCamp AI