Trader Magic banner
rawveg rawveg

Trader Magic

AI community

Description

A local AI-powered automated trading system built with Python. The system uses Ollama for AI decision-making, TAAPI.io for technical indicators, and Alpaca for trade execution.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

![TraderMagic](docs/img/dashboard-screenshot.png)

TraderMagic πŸ§™β€β™‚οΈπŸ’Ή

An AI-powered automated trading system built with Python, running entirely on your local machine. The system uses Ollama for AI decision-making, TAAPI.io for technical indicators, and Alpaca for trade execution.

✨ Features

  • 🧠 AI-powered trading decisions using locally-run LLM models via Ollama
  • πŸ“Š Real-time dashboards with trade status and history
  • πŸ›‘ Trading on/off toggle for complete user control
  • πŸ“ˆ RSI-based technical analysis for market insights
  • πŸ•’ Market hours visualization showing pre-market, regular hours, after-hours, and closed sessions
  • πŸ’° Flexible trade sizing with portfolio percentage or fixed amounts
  • πŸ”’ Paper trading mode for risk-free testing
  • πŸ”„ Redis-powered communication between services
  • 🐳 Docker-based deployment for easy setup

πŸ—οΈ System Architecture

TraderMagic consists of four main components:

  1. Data Retrieval Service πŸ“‘ - Polls TAAPI.io for RSI data
  2. AI Decision Engine 🧠 - Analyzes data using Ollama LLM to make trading decisions
  3. Trade Execution Service πŸ’Ή - Interfaces with Alpaca to execute trades
  4. Web Dashboard πŸ–₯️ - Real-time monitoring interface

All components are containerized using Docker and communicate through Redis.

πŸš€ Quick Start

# Clone the repository
git clone https://github.com/rawveg/trader-magic.git
cd trader-magic

# Configure your environment
cp .env.sample .env
# Edit .env with your API keys

# Start the application
docker compose up -d

# Access the dashboard
# Open http://localhost:9753 in your browser

πŸ“š Documentation

For detailed documentation on all aspects of TraderMagic, check out these guides: