TradingAgents

Active
GitHub Python Apache-2.0

Description

TradingAgents is a multi-agent trading framework built with LangGraph that mirrors real-world trading firm dynamics with specialized LLM-powered agents for fundamental analysis, sentiment analysis, risk management, and more.

Key Features

  • Multi-role agent collaboration - Mirrors real trading firms with fundamental analyst, sentiment analyst, technical analyst, trader, and risk management agents
  • Built on LangGraph - Uses LangGraph for dynamic inter-agent discussions and structured decision-making workflows
  • Bull-bear researcher debate - Bullish and bearish researchers debate analyst insights to balance potential gains against risks
  • Multi-LLM provider support - Compatible with GPT-5.x, Gemini 3.x, Claude 4.x, Grok 4.x, DeepSeek, Qwen, and more
  • Structured-output agents - Research Manager, Trader, and Portfolio Manager use structured outputs for consistent decision formatting
  • Docker and Ollama support - One-command Docker deployment with Ollama integration for fully offline local model inference

Use Cases

💡 Quantitative trading strategy research using multi-agent collaboration to analyze markets and generate trading signals
💡 Financial market sentiment analysis by aggregating news, StockTwits, and Reddit data for short-term mood assessment
💡 Portfolio risk assessment through continuous evaluation of market volatility and liquidity by risk management team
💡 Trading decision backtesting and simulation by executing strategies in a simulated exchange environment
💡 AI multi-agent architecture research for learning complex role-based collaboration and debate patterns

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (102.3k stars)
  • Permissive open-source license (Apache-2.0)
  • Responsive to issues, low backlog

Quick Start

# Clone the repository
git clone https://github.com/TauricResearch/TradingAgents.git
cd TradingAgents

# Create and activate virtual environment
conda create -n tradingagents python=3.13
conda activate tradingagents

# Install dependencies
pip install .

# Set API key (OpenAI example)
export OPENAI_API_KEY=your-key

# Run trading analysis
python main.py --ticker AAPL

Related Projects

ValueCell

11.0k · Python
Stale B

ValueCell is a community-driven multi-agent platform for financial applications, enabling collaborative financial analysis, trading strategies, and market research through multi-agent orchestration.

multi-agentfinancetrading +2
  • · Multi-agent system with specialized agents: DeepResearch, Strategy, and News Retrieval
  • · Live trading integration with Binance, OKX, Hyperliquid, and more exchanges
  • · Multiple LLM provider support: OpenRouter, SiliconFlow, Azure, OpenAI, DeepSeek

GPTeam

1.7k · Python
Active A

An open-source multi-agent simulation platform where multiple LLM-powered agents collaborate on complex tasks in shared environments, with customizable roles, memory systems, and environment interaction for studying multi-agent collaboration.

pythonmulti-agentagent +3
  • · GPT-4 powered multi-agent simulation with autonomous collaboration on predefined goals
  • · Agent memory and reflection system inspired by Generative Agents research paper
  • · Spatial movement: agents move between locations and perform tasks in different environments

Vibe-Trading

32.3k · Python
Active A+

Vibe-Trading is an open-source personal trading agent stack that combines LLMs, MCP tooling, and multi-agent workflows for algorithmic trading and backtesting.

ai-agentalgorithmic-tradingbacktesting +5
  • · One command empowers your trading agent with full quantitative trading capabilities via LLM + MCP toolchain
  • · Backtesting engine supporting 7 data sources (Tushare, OKX, CCXT, AkShare, etc.) with local caching
  • · Connector-first architecture supporting IBKR, Robinhood, Tiger, Alpaca, OKX, Binance paper trading

LazyLLM

3.9k · Python
Active A+

LazyLLM is a lightweight multi-agent LLM application framework offering the easiest way to build multi-agent LLM apps, with built-in RAG, knowledge graph, fine-tuning, and integration with LangChain and LlamaIndex ecosystems.

multi-agentframeworkrag +3
  • · Low-code multi-agent application assembly with built-in data flow and functional modules like Lego blocks
  • · One-click deployment with lightweight gateway for POC and Kubernetes packaging for production
  • · Cross-platform compatibility across bare-metal, Slurm clusters, and public clouds without code changes