Documentation
Everything you need to know about the Trading Agent System — from getting started to advanced features.
Getting Started
Trading Agent System is an autonomous trading platform that combines AI-powered research, quantitative analysis, and visual chart judgment to help you make informed trading decisions. It supports the full workflow: research → strategy → backtest → paper trade → live execution.
Quick Start Tutorial
Complete Onboarding
Set your experience level, risk tolerance, and investment goals in the onboarding wizard.
Run Market Research
Go to Market Research and run a daily analysis to understand current market conditions.
Design a Strategy
Use Strategy Chat to interactively build a trading strategy with the AI assistant.
Backtest It
Head to Backtesting, select your strategy and symbols, set a date range, and run a historical test.
Paper Trade
Start paper trading to test your strategy in real-time with virtual capital before going live.
Feature Reference
API Reference
82 RESTful endpoints organized across 23 service areas. All endpoints require Firebase Authentication via Bearer token in the Authorization header.
Architecture
Backend (Python)
- • Framework: FastAPI with async support
- • AI Agents: Pydantic AI with Claude & Perplexity
- • Data: yfinance, SEC EDGAR, arXiv, Google News RSS
- • Auth: Firebase Authentication (JWT)
- • Storage: Firebase Firestore (per-user isolation)
- • Broker: Alpaca API (paper + live trading)
- • Package Manager: uv (fast Python packaging)
Frontend (TypeScript)
- • Framework: Next.js 15 (App Router)
- • UI: shadcn/ui + Tailwind CSS
- • Charts: Recharts (equity curves, distributions)
- • Streaming: SSE for real-time chat responses
- • Auth: Firebase client SDK
- • Responsive: Mobile-first with hamburger navigation
- • Theme: Dark mode with emerald accent palette
Agent Pipeline
Every execution decision creates a reasoning log documenting which data sources contributed, their impact (bullish/bearish/neutral), confidence levels, and risk assessment.