Skip to content

Hawk-PDX/cryptoManager

Repository files navigation

Crypto Trading Bot

Automated cryptocurrency trading bot with Node.js backend and React frontend, supporting Kraken exchange.

Quick Start

Backend

cd cryptoBotBackend
npm install
echo "KRAKEN_API_KEY=your_key\nKRAKEN_API_SECRET=your_secret" > .env
node index.js

Frontend

cd cryptoBotFrontend
npm install
npm run dev

Features

  • 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

Architecture

  • 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

API Endpoints

  • POST /api/tradingbot/start|stop - Bot control
  • POST /api/tradingbot/params - Update trading parameters
  • GET /api/kraken/balance - Portfolio data
  • GET /api/kraken/prices - Asset prices
  • GET /api/performance/:pair - Historical data

Configuration

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

Testing

Run API tests:

node testBackendEndpoints.js
node testKrakenApi.js

About

Crypto Trading Bot -- This project is an automated crypto trading bot built with a Node.js backend and a React frontend using Vite. It currently supports the Kraken exchange and is designed to be extensible to other exchanges.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors