Real Time Crypto Dashboard
๐น Real-Time Crypto Dashboard
Live Bitcoin & Ethereum tracking with predictions
โWatch crypto markets move in real time โ and see tomorrowโs trend today.โ
๐ Demo Video:
๐ One-Line Summary
A live dashboard that tracks Bitcoin (BTC) and Ethereum (ETH) prices in real time, predicts short-term trends, and displays everything visually.
Built entirely with open-source tools on AWS.
1๏ธโฃ How It Works
Data Flow:
Live Prices โ Kafka (data streaming) โ PostgreSQL (storage) โ Grafana (dashboard)
1. Live Price Collection
- Uses the CryptoCompare API to fetch BTC and ETH prices
- Updates every 5 seconds
- Includes both current market prices and short-term history
2. Real-Time Streaming
- Apache Kafka moves live data instantly from the producer (data collector) to the consumer (data inserter)
- Ensures zero delays between data collection and dashboard updates
3. Database Storage
- PostgreSQL stores:
- Current prices
- Predicted prices (using a Simple Moving Average)
- Keeps historical records for trend analysis
4. AI-Style Predictions
- A Simple Moving Average (SMA) model predicts prices 5 minutes ahead
- Predictions are stored alongside actual prices for comparison
5. Visual Dashboard
- Grafana shows:
- Real-time price charts
- Overlay of predicted vs. actual prices
- 24-hour high/low values
- 24-hour % change bar charts
๐ Technologies Used
Step | Technology |
---|---|
Data Source | CryptoCompare API |
Streaming | Apache Kafka |
Storage | PostgreSQL |
Prediction | Python (SMA) |
Visualization | Grafana |
Environment | AWS EC2 (Ubuntu 22.04) |
๐ก Key Benefits
- Watch BTC & ETH prices update instantly
- Compare AI-predicted vs. actual prices in real time
- Access from anywhere via AWS-hosted Grafana
- Fully open-source โ no paid tools required
๐ GitHub Repository
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.