Automated cryptocurrency trading bot with Node.js backend and React frontend, supporting Kraken exchange.
cd cryptoBotBackend
npm install
echo "KRAKEN_API_KEY=your_key\nKRAKEN_API_SECRET=your_secret" > .env
node index.jscd cryptoBotFrontend
npm install
npm run dev- Automated Trading: RSI-based and threshold-based trading strategies
- Portfolio Management: Real-time balance tracking with USD valuation
- Market Data: Live price feeds and performance charts
- Trading Controls: Configurable parameters and bot management
- Risk Management: Fee calculation, minimum holding constraints
- Backend: Express server with Kraken API integration
- Frontend: React dashboard with real-time data visualization
- Trading Logic: Dual strategy system with technical indicators
- Security: HMAC-SHA512 authenticated API requests
POST /api/tradingbot/start|stop- Bot controlPOST /api/tradingbot/params- Update trading parametersGET /api/kraken/balance- Portfolio dataGET /api/kraken/prices- Asset pricesGET /api/performance/:pair- Historical data
Default trading parameters:
- Trading pair: XRP/USD
- Buy/sell thresholds: 5% price movement
- Trade volume: 10 XRP
- Check interval: 60 seconds
- RSI thresholds: 30/70
Run API tests:
node testBackendEndpoints.js
node testKrakenApi.js