Real-time cryptocurrency trading platform connected to Binance Testnet/Live for automated BTC/USDT trading with multiple quantitative strategies.
- 🔗 Real Binance Integration - Execute real orders on Testnet or Live
- 🤖 Auto Trading - Automated trading based on strategy signals
- 📊 15+ Trading Strategies - From conservative to aggressive
- 🛡️ ATR-based Stop Loss - Dynamic risk management
- 📈 Multi-timeframe Analysis - Higher TF trend filter
- 📉 Real-time Price Chart - Interactive candlestick with EMA overlays
- 💰 Portfolio Tracking - Live USDT/BTC balance from Binance
- 📋 Trade History - Recent executed orders
- 🎯 Signal Display - Current strategy recommendations
- 📅 Historical Testing - Test strategies on past data
- 📊 PnL Chart - Visual profit/loss analysis
- 📈 Performance Metrics - Win rate, profit factor, drawdown
| Layer | Technologies |
|---|---|
| Backend | Node.js, Express, Socket.io, ccxt, SQLite |
| Frontend | React 18, Vite, TailwindCSS, TradingView Charts |
| Exchange | Binance API (Testnet/Live) |
/tradebot
├── /backend # API Server & Trading Logic
│ ├── /src
│ │ ├── /services # Core trading services
│ │ ├── /models # Database models
│ │ └── server.js # Express & Socket.io
│ └── .env.example # Environment template
│
├── /frontend # React Dashboard
│ ├── /src
│ │ ├── /components
│ │ ├── /hooks
│ │ └── /services
│ └── package.json
│
└── README.md
git clone https://github.com/YOUR_USERNAME/tradebot.git
cd tradebot
# Backend
cd backend
npm install
# Frontend
cd ../frontend
npm installcd backend
cp .env.example .env
# Edit .env with your Binance API keysRequired variables:
BINANCE_API_KEY=your_api_key
BINANCE_API_SECRET=your_api_secret
SANDBOX_MODE=true # true for Testnet, false for Live
PORT=3001- Testnet: https://testnet.binance.vision/
- Live: https://www.binance.com/en/my/settings/api-management
# Terminal 1 - Backend
cd backend
npm run dev
# Terminal 2 - Frontend
cd frontend
npm run dev| Method | Endpoint | Description |
|---|---|---|
| GET | /api/health |
Health check |
| GET | /api/trades |
Recent trades |
| POST | /api/trade/execute |
Manual trade |
| POST | /api/autotrade/toggle |
Toggle auto-trading |
| GET | /api/strategy/settings |
Get strategy params |
| POST | /api/strategy/settings |
Update strategy |
| POST | /api/backtest |
Run backtest |
- Z-Score Mean Reversion
- Keltner Volatility Breakout
- VWAP Confluence
- EMA Crossover
- Trend Momentum
- Swing Trade
- RSI + EMA
- RSI Reversal
- Bollinger Band Bounce