A sophisticated cryptocurrency trading bot that combines sentiment analysis from social media platforms with technical analysis to make informed trading decisions on KuCoin exchange.
- Multi-strategy support: Sentiment-based, technical analysis, and hybrid strategies
- Risk management: Configurable stop-loss and take-profit levels
- Position sizing: Dynamic position sizing based on risk tolerance
- Real-time execution: Automated buy/sell orders based on signals
- Twitter sentiment: Real-time analysis of crypto-related tweets
- Reddit monitoring: Sentiment from cryptocurrency subreddits
- LunarCrush integration: Professional social sentiment data
- Combined scoring: Weighted sentiment scores from multiple sources
- 20+ Technical indicators: RSI, MACD, Bollinger Bands, Moving Averages, etc.
- Support/Resistance levels: Automatic identification of key price levels
- Signal generation: Combined technical signals with confidence scores
- Multiple timeframes: Analysis across different time periods
- Full API support: Account balance, order management, real-time prices
- Secure trading: Encrypted API key management
- Order types: Market and limit orders with advanced options
- Real-time data: WebSocket connections for live price feeds
Frontend (React/TypeScript)
βββ Dashboard with real-time updates
βββ Bot management interface
βββ Signal monitoring
βββ Trading history
Backend (Python/FastAPI)
βββ KuCoin API integration
βββ Sentiment analysis engine
βββ Technical analysis module
βββ Trading bot orchestration
βββ REST API server
cd backend
pip install -r requirements.txt
# Copy and configure environment variables
cp .env.example .env
# Edit .env with your API keysEdit backend/.env:
# KuCoin API (get from KuCoin Pro account)
KUCOIN_API_KEY=your_api_key
KUCOIN_API_SECRET=your_api_secret
KUCOIN_API_PASSPHRASE=your_passphrase
KUCOIN_SANDBOX=true # Set to false for live trading
# Social Media APIs (optional but recommended)
TWITTER_BEARER_TOKEN=your_twitter_token
REDDIT_CLIENT_ID=your_reddit_id
REDDIT_CLIENT_SECRET=your_reddit_secret
LUNARCRUSH_API_KEY=your_lunarcrush_keycd backend
python run_bot.pyThe API server will start at http://localhost:8000
npm install
npm run devThe React app will be available at http://localhost:5173
-
Sentiment Momentum
- 40% sentiment analysis weight
- 60% technical momentum weight
- Best for: Swing trading, trend following
-
Technical Sentiment
- 70% technical analysis weight
- 30% sentiment confirmation
- Best for: Scalping, short-term trades
-
Balanced Strategy
- 50% sentiment, 50% technical
- Best for: Medium-term position trading
- Low Risk: 0.5x position sizing, conservative signals
- Medium Risk: 1.0x position sizing, balanced approach
- High Risk: 1.5x position sizing, aggressive signals
GET /api/bots- List all botsPOST /api/bots- Create new botPUT /api/bots/{id}- Update bot statusDELETE /api/bots/{id}- Delete bot
GET /api/ticker/{symbol}- Current priceGET /api/balance- Account balanceGET /api/orders- Order history
GET /api/sentiment/{symbol}- Sentiment analysisGET /api/technical/{symbol}- Technical analysisGET /api/signals/{symbol}- Combined signals
- Maximum position size: Configurable per bot (default 10%)
- Stop-loss orders: Automatic loss limitation (default 5%)
- Take-profit orders: Automatic profit taking (default 15%)
- Daily limits: Maximum trades per day per bot
- API key encryption: Secure storage of exchange credentials
- Sandbox mode: Test strategies without real money
- Rate limiting: Respect exchange API limits
- Error handling: Comprehensive error recovery
- Live bot status and performance
- Current positions and P&L
- Signal feed with confidence scores
- Price monitoring with technical overlays
- Email alerts for significant events
- Telegram bot integration
- Push notifications for mobile app
- Signal processing: ~800ms average
- Order execution: 200-500ms to KuCoin
- Suitable for: 15min+ timeframe strategies
- Not suitable for: High-frequency trading
- Multiple bots: Run different strategies simultaneously
- Symbol coverage: Support for all KuCoin trading pairs
- Resource usage: Optimized for VPS deployment
# Backend
cd backend && python run_bot.py
# Frontend
npm run dev# Backend (using Docker)
docker build -t crypto-bot-backend ./backend
docker run -d -p 8000:8000 crypto-bot-backend
# Frontend
npm run build
# Deploy dist/ folder to your web serverRecommended specs:
- CPU: 2+ cores
- RAM: 4GB+
- Storage: 20GB SSD
- Network: Stable connection to exchange servers
- Start with small amounts
- Use sandbox mode first
- Understand the risks involved
- Comply with local regulations
- Never invest more than you can afford to lose
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
- Documentation: Check the
/docsfolder - Issues: Report bugs on GitHub
- Community: Join our Discord server
- Email: support@cryptobotpro.com
MIT License - see LICENSE file for details.
Happy Trading! π
Remember: The best strategy is the one you understand and can stick with consistently.