-
# Crypto Arbitrage Monitoring Dashboard - Lightweight JS Framework
## OBJECTIVE
Build real-time arbitrage opportunity monitor for user-input crypto pairs using WebSocket connections to exchanges. Pure HTML/CSS/JS or lightweight framework (Alpine.js/Petite Vue).
## CORE REQUIREMENTS
### Technical Stack
- Frontend: Vanilla JS or Alpine.js/Petite Vue
- Exchange API: CCXT library (unified interface)
- Real-time: WebSocket connections per exchange
- Config: JSON file for exchange list
- Deployment: Single HTML file + assets (no build step preferred)
### Functionality
1. **Pair Input**: Text field for crypto pair (e.g., BTC/USDT)
2. **Exchange Selection**: Checkboxes from config (Binance, OKX, Bybit, etc.)
3. **Live Price Feed**: WebSocket streams for selected exchanges
4. **Spread Calculation**: Real-time arbitrage spread % between exchanges
5. **Sorting**: Toggle between spread % / volume / timestamp
6. **Visual Alerts**: Highlight spreads >1%, >2%, >5%
### Data Display Table
| Exchange | Bid | Ask | Volume 24h | Spread % | Updated |
|----------|-----…