Crypto Trading Bot - Technical Overview
Crypto Trading Bot System Overview
This document summarizes the complete architecture, strategy, components, and deployment setup
for a modular, AI-augmented cryptocurrency trading bot with real-time analytics, automated
execution, and persistent learning.
System Features
- Live signal analysis (RSI, MACD, fundamentals, sentiment, on-chain)
- Modular strategy response protocols for every metric
- AI-based decision logic (fallback + OpenAI capable)
- Web UI with real-time chart overlays and trade logging
- Telegram bot interface (optional module)
- SQLite persistent backend for logs and trade memory
- Auto-deployable via Docker Compose
Architecture
1. FastAPI backend with signal scanner and AI logic
2. React frontend displaying real-time charts via WebSockets
3. SQLite database for persistence
4. WebSocket-based price/signal stream updates
5. Automated response logic and risk rules
LLM-Based Decision Example
RSI < 30 AND MACD crossover + Volume spike -> Decision: BUY
RSI > 70 AND MACD crossdown -> Decision: SELL
Else -> Decision: HOLD
Deployment with Docker Compose
- Frontend and backend containers (React & FastAPI)
- SQLite volume
- Exposed ports 3000 (frontend) and 8000 (backend)
- WebSocket endpoint: /ws/stream
Live Chart Overlay
SignalChart.jsx (React) displays:
- Live line chart of price
- Green BUY and red SELL signal markers
- Pulls data from /ws/stream every second