Home
Login

A multi-agent financial trading framework based on large language models, simulating the collaborative structure of real trading firms.

Apache-2.0Python 8.5kTauricResearchTradingAgents Last Updated: 2025-07-01

TradingAgents: Multi-Agent LLM Financial Trading Framework

Project Overview

TradingAgents is a multi-agent trading framework that simulates the dynamic structure of real-world trading firms. By deploying a team of specialized agents powered by large language models—including fundamental analysts, sentiment experts, technical analysts, traders, and risk management teams—the platform enhances trading decisions through collaborative evaluation.

Developed by Tauric Research, this project is dedicated to redefining trading intelligence through AI, leveraging large language models, advanced reasoning, and autonomous agents to elevate trading excellence.

Core Features

1. Multi-Agent Architecture

TradingAgents employs seven distinct roles: fundamental analyst, sentiment analyst, news analyst, technical analyst, researcher, trader, and risk manager. Each agent is equipped with specialized tools and constraints tailored to its function.

2. Agent Team Structure

Analyst Team

  • Fundamental Analyst: Analyzes company financial data, industry trends, and macroeconomic indicators.
  • Sentiment Analyst: Processes market sentiment data and social media information.
  • News Analyst: Analyzes the impact of news events on the market.
  • Technical Analyst: Conducts technical indicator analysis and chart pattern recognition.

Research Team

The research team critically evaluates analyst data through a dialectical process involving bullish and bearish viewpoints. This debate ensures balanced analysis, identifying opportunities and risks to formulate trading strategies.

Trading Team

Trading agents execute decisions based on comprehensive analysis. They assess insights from analysts and researchers, determine optimal trading actions, and balance returns and risks in dynamic market environments.

Risk Management Team

The risk management team oversees the company's market risk exposure, ensuring trading activities remain within predefined limits, thereby ensuring financial stability and protecting assets through effective risk control.

3. Technical Architecture Features

ReAct Prompting Framework

All agents use the ReAct prompting framework, facilitating collaborative and dynamic decision-making processes, mirroring real-world trading systems.

Structured Communication Protocol

TradingAgents employs a structured protocol, combining clear structured outputs with natural language dialogue. This approach minimizes information loss and maintains context in long-term interactions.

Intelligent Model Selection

LLMs are selected based on task requirements, using fast-thinking models for data retrieval and deep-thinking models for in-depth analysis and decision-making.

Experimental Results and Performance

Experimental Setup

  • Dataset: Multi-asset, multi-modal financial dataset including historical stock prices, news articles, social media sentiment, insider trading, financial reports, and technical indicators.
  • Time Range: Data from January to March 2024 was used for training, and June to November 2024 was used for the trading environment.
  • Operation Frequency: Agents operate daily, making decisions based on available data.

Performance Metrics Comparison

Category Model AAPL GOOGL AMZN
CR%↑ ARR%↑ SR↑ MDD%↓ CR%↑ ARR%↑ SR↑ MDD%↓ CR%↑ ARR%↑ SR↑ MDD%↓
Market B&H -5.23 -5.09 -1.29 11.90 7.78 8.09 1.35 13.04 17.1 17.6 3.53 3.80
Ours TradingAgents 26.62 30.5 8.21 0.91 24.36 27.58 6.39 1.69 23.21 24.90 5.60 2.11

Note: CR=Cumulative Return, ARR=Annualized Rate of Return, SR=Sharpe Ratio, MDD=Maximum Drawdown

Key Advantages

  1. Superior Risk-Adjusted Returns: TradingAgents achieved benchmark-beating performance across all tested stocks.
  2. Effective Risk Management: Maintaining low maximum drawdowns while sustaining high returns.
  3. Transparent Decision-Making Process: Providing explainable decision-making through natural language explanations.

Technical Implementation

Project Structure

TradingAgents/
├── tradingagents/
│   ├── agents/
│   │   ├── analysts/        # Analyst Agents
│   │   ├── researchers/     # Researcher Agents
│   │   ├── traders/         # Trader Agents
│   │   └── risk_managers/   # Risk Management Agents
│   ├── tools/               # Agent Tools
│   ├── communication/       # Communication Protocols
│   └── environment/         # Trading Environment

Related Links

Summary

TradingAgents represents a significant advancement in AI-driven financial trading, achieving substantial performance improvements through multi-agent collaboration and structured communication. The framework not only surpasses traditional methods in returns but, more importantly, provides a transparent and explainable decision-making process, which is crucial for practical financial applications.

Star History Chart