# TradingAgents: an AI trading desk you run yourself

> Runs a team of AI roles that debate a stock and decide a trade.

- **What it does:** Sets up a simulated team of AI analysts, researchers, a trader and a risk manager who debate a stock and produce a trade decision. You get a written buy/sell call, with orders sent only to a practice exchange.
- **Agents:** Claude Code and Codex (through orbit-connect), Claude and ChatGPT (through the Orbit connector)
- **Install:** `npx -y --loglevel=error orbit-connect@0.3.33 install skl_4eae1b4be251da66e8ef44a1`
- **Creator:** @orbitinbox on Instagram
- **Safety:** Checked by Orbit: nothing risky found in what it runs or reads
- **Installs:** 1
- **Last updated:** 2026-11-14
- **Page:** https://orbitinbox.app/s/tradingagents-an-ai-trading-desk-you-run-yourself

## Skill

---
name: tradingagents-trading-desk
description: Use when you say "set up TradingAgents" or "run the AI trading desk on a stock"; it installs TauricResearch's multi-agent LLM framework where analysts, a bull and bear debate, a trader, a risk team and a portfolio manager produce a trade decision.
---

# TradingAgents: an AI trading desk you run yourself

## What it does

TradingAgents is a multi-agent trading framework that mirrors how a real trading firm works. Each role is an LLM agent built with LangGraph:

- Analyst team, all working at the same time: Fundamentals Analyst (company financials from SEC EDGAR or Yahoo Finance), Sentiment Analyst (news headlines, StockTwits, Reddit), News Analyst (global news and macro indicators), Technical Analyst (indicators like MACD and RSI).
- Researcher team: a bullish and a bearish researcher debate the analyst reports.
- Trader agent: writes the trade decision, timing and size.
- Risk management team (aggressive, conservative, neutral debators) and a Portfolio Manager who approves or rejects the proposal. Approved orders go to a simulated exchange.

It also keeps a memory log: every completed run appends its decision to `~/.tradingagents/memory/trading_memory.md`, and while a later run's analysts work it settles every logged decision whose holding period has passed, fetching the realised return and alpha against the regional benchmark and writing a short reflection the Portfolio Manager reads next time. `run_backtest` repeats the pipeline over a grid of tickers and dates and scores the decisions. Reports are saved as a tree plus one `complete_report.html` page. It works with any market Yahoo Finance covers, using exchange-suffixed tickers (`AAPL`, `0700.HK`, `7203.T`, `RELIANCE.NS`, `600519.SS`, `BTC-USD`).

The project says it is designed for research purposes and is not financial, investment or trading advice. Performance varies with the model, temperature, dates and data quality.

## What you need

- Python 3.11 or later (the README's examples use 3.13), plus git. Docker is an alternative.
- An API key for one LLM provider. Supported: OpenAI, Google, Anthropic (Claude), xAI, DeepSeek, Qwen, GLM, MiniMax, OpenRouter, Mistral, Kimi, Groq, NVIDIA NIM, Azure OpenAI, AWS Bedrock, Ollama for local models, or any OpenAI-compatible endpoint. You can also run on your own ChatGPT Plus or Pro plan.
- Optional keys: `FRED_API_KEY` (free macro data), `ALPHA_VANTAGE_API_KEY`, `TYPESAFE_API_KEY` (Jev screening of social posts). SEC EDGAR needs no account or key.

## Setup

Clone and create an environment:

```bash
git clone https://github.com/TauricResearch/TradingAgents.git
cd TradingAgents
conda create -n tradingagents python=3.13
conda activate tradingagents
pip install .
```

Or with uv:

```bash
uv venv --python 3.13
source .venv/bin/activate
uv pip install .
```

Set the key for your provider, for example Claude:

```bash
export ANTHROPIC_API_KEY=...
```

Or copy the example file and fill it in:

```bash
cp .env.example .env
```

Identify yourself to SEC EDGAR so they can reach you rather than the project:

```bash
SEC_EDGAR_USER_AGENT="Your Name your@email.com"
```

Run the interactive CLI and pick tickers, date, provider and research depth:

```bash
tradingagents
```

Run it without questions:

```bash
tradingagents --ticker NVDA --date 2026-09-23 --analysts market,news,fundamentals --save --no-show
```

From Docker instead:

```bash
cp .env.example .env
docker compose run --rm tradingagents
```

For AWS Bedrock: `pip install ".[bedrock]"`. For Bedrock, Azure, Ollama, OpenAI-compatible servers or the ChatGPT plan login, see the project's README: https://github.com/TauricResearch/TradingAgents

This tool produces trade decisions, not trades you must take. Approved orders in the framework go to a simulated exchange, so keep it there: read the reports yourself before you move any real money, and start with the backtest to see how its past calls scored.

## How to use it with Claude

- "Run TradingAgents on NVDA for 2026-09-01 with the market, news and fundamentals analysts, and save the reports."
- "Set the config so the managers run on Claude (`deep_think_provider` anthropic) and the analysts run on another provider, then run AAPL."
- "Raise `max_debate_rounds` to 2 so the bull and bear argue longer, then show me what changed in the decision."
- "Backtest NVDA and AAPL from 2026-06-01 to 2026-08-01 every 7 days and summarise the realised alpha by rating."
- "Pass my portfolio JSON with `--portfolio my_book.json` so the trader and risk team work against my actual positions."
- "Call `settle_all_pending()` to settle my logged decisions and tell me which ones it could not settle."
- "Open the saved `complete_report.html` and summarise the bear case in plain words."

## Credits

Made by TauricResearch (TradingAgents), packaged by Orbit.
Source: https://github.com/TauricResearch/TradingAgents
License: Apache-2.0

Shared by @orbitinbox, credited on Orbit.