TradingAgents: Multi-Agents LLM Financial Trading Framework
TradingAgents is an advanced multi-agent trading framework that simulates real-world trading firms using specialized LLM-powered agents. The platform decomposes complex trading tasks into specialized roles including analysts, researchers, traders, and risk managers, enabling collaborative market analysis and decision-making. Designed primarily for financial researchers and algorithmic traders, it addresses the challenge of integrating diverse market signals (fundamentals, sentiment, technicals) into a unified trading strategy. Built with Python and leveraging LangGraph for agent orchestration, the framework integrates with OpenAI models (e.g., GPT-4) and FinnHub for financial data, offering a modular, research-focused approach to algorithmic trading.
git clone https://github.com/TauricResearch/TradingAgents.git
cd TradingAgents
conda create -n tradingagents python=3.13
conda activate tradingagents
pip install -r requirements.txt
export FINNHUB_API_KEY=your_key
export OPENAI_API_KEY=your_key
python -m cli.main
to interactively select tickers, dates, and LLM models. The CLI displays real-time agent progress and trade decisions.tradingagents
module and initialize TradingAgentsGraph()
. Use .propagate()
to generate decisions:
from tradingagents.graph import TradingAgentsGraph
graph = TradingAgentsGraph()
decision = graph.propagate(ticker="AAPL")
gpt-4.1-mini
).The framework’s unique selling point lies in its realistic emulation of trading firm workflows, combining structured agent collaboration with cutting-edge LLM reasoning.