This Python project fetches and visualizes real-time Bitcoin (BTC-USD) price and volume data using the yfinance
API. It provides a clear visual representation of Bitcoin's 1-minute interval price trends and trading volumes, ideal for analysts, crypto enthusiasts, and developers exploring financial data visualization.
- ✅ Fetches real-time BTC-USD data (1-minute interval) from Yahoo Finance
- ✅ Displays current Bitcoin price with timestamp
- ✅ Prints the latest Open, High, Low, Close, Volume data
- ✅ Generates:
- 📈 Line chart of closing prices
- 📊 Bar chart of trading volume
- ✅ Auto-cleans data (removes nulls, formats timestamps)
- ✅ Custom matplotlib x-axis formatting (HH:MM view)
- ✅ Ready to run in VS Code or terminal
- Python 3.7+
yfinance
– for fetching BTC-USD datapandas
– for data manipulationmatplotlib
– for plottingdatetime
– for formatting timestampswarnings
– for suppressing irrelevant warnings
Install dependencies pip install -r requirements.txt python bitcoin_tracker.py
real-time-bitcoin-tracker/ ├── bitcoin_tracker.py # Main Python script ├── README.md # Project overview ├── requirements.txt # Python dependencies ├── .gitignore # Git ignored files ├── LICENSE # MIT License └── screenshot/ └── sample.png # Screenshot of running tracker
📄 License This project is licensed under the MIT License - free to use and modify.
🤝 Contributing Contributions are welcome! Open an issue or submit a pull request with improvements or new features.
🙋♂️ Author Akhilesh Yadav 📍 Data Science Student | Python Developer 📫 GitHub: @Akhilesh-yadav680
🌐 Useful Links Yahoo Finance - https://finance.yahoo.com/quote/BTC-USD/