TradingAgents README

The project's README from github.com/TauricResearch/TradingAgents. As one markdown file: README.md.

Tauric Research

arXiv X GitHub YouTube Website

TradingAgents #1 Repository of the Day

English | Deutsch | Español | français | 日本語 | 한국어 | Português | Русский | 中文

TradingAgents: Towards Agentic Finance Research

TradingAgents researching a question in the terminal

Quick start

1. Get an API key

2. Install

curl -fsSL https://tauric.ai/tradingagents/install.sh | sh

Or with npm: npm i -g @tauric/tradingagents

3. Run

tradingagents

Start your agentic finance research with Tauric!

Models

Provider Needs
Tauric AI Tauric API key
OpenAI, Anthropic, Google, DeepSeek, OpenRouter their API key
Self-hosted models (vLLM, Ollama) its address and model
AI subscriptions (ChatGPT) tradingagents login chatgpt

With another provider, /login adds a Tauric API key for filings, statements and news. See docs/models.md.

Usage

Type a question and press Enter. Every figure in the answer is marked with its source, and a numbered list of sources follows.

Command Does
/ Open the commands
/model Choose the model and how hard it reasons
/resume Resume an earlier session
/export Save the last answer as a PDF report, or the session as Markdown
/copy Copy the last answer
/help List every command and key

Shift+Tab switches to plan mode, where the agent proposes a research plan first.

Architecture

What TradingAgents can call on: the main agent's tools, its data and compute tools, its agents and its skills

Agents and skills

The main agent plans the research, reads what the question needs with its data tools, and works the numbers with its compute tools. For depth, it briefs specialist agents, each in its own context:

Agent Covers
Equity Research a company's statements, filings, estimates, valuation, ownership and news
Macro Strategy growth, inflation, rates and the yield curve, credit, sectors, cross-asset moves
Quant Research returns, volatility, drawdowns, correlation and beta, technical indicators
Risk Analysis what could make a position lose, and what would show it early

For a known kind of research it follows a skill:

Area Skills
Companies company snapshot, earnings preview and review, filing review, full analysis
Valuation DCF, relative valuation, scenario analysis
Markets macro outlook, market brief, performance comparison, sector review, technical analysis
Risk portfolio review, risk assessment, thesis review

You can add your own agents and skills as Markdown files (docs/usage.md). TradingAgents researches and answers; it does not place trades.

Documentation

To report an issue or open a pull request, see CONTRIBUTING.md; to report a security problem, SECURITY.md.

Citation

@article{xiao2024tradingagents,
  title={TradingAgents: Multi-agents LLM financial trading framework},
  author={Xiao, Yijia and Sun, Edward and Luo, Di and Wang, Wei},
  journal={arXiv preprint arXiv:2412.20138},
  year={2024}
}

License

Apache-2.0. See LICENSE.

TradingAgents (TauricResearch/TradingAgents)

Searching Database…

What is this?TradingAgents is a multi-agent LLM framework that simulates a trading firm: specialized agents analyze fundamentals, sentiment, news, and technicals, bull/bear researchers debate the findings, and a trader plus risk/portfolio manager team decide whether to execute the trade.
Is this a framework I plug into my own code, or a ready-made trading bot?Both — run it as an interactive CLI to analyze tickers end-to-end, or import the tradingagents module in your own Python code and call TradingAgentsGraph().propagate() to get a decision.
How do I get it running?Clone the repo, create a virtual environment, and pip install the package and its dependencies, then launch the interactive CLI; Docker is also supported as an alternative.
Which LLM providers do I need an API key for?It supports OpenAI, Google, Anthropic, xAI, DeepSeek, Qwen, GLM, MiniMax, OpenRouter, Azure OpenAI, and AWS Bedrock, plus any OpenAI-compatible server (vLLM, LM Studio, llama.cpp); local Ollama models need no key at all.
Will two runs on the same stock give the same answer?No — LLM sampling is non-deterministic and live news/social data changes over time, so results vary even on the same ticker and date. Lowering temperature or picking a non-reasoning model via the Custom model ID option reduces the variation.
Is this meant for real trading?No — it's designed for research purposes only and explicitly not financial, investment, or trading advice; approved orders go to a simulated exchange, not a real broker.
Which stock markets and tickers can I analyze?Any market covered by Yahoo Finance, using exchange-suffixed tickers: US (AAPL), Hong Kong (0700.HK), Tokyo (7203.T), London (AZN.L), India, Canada, Australia, China A-shares, and crypto pairs like BTC-USD.
What does the decision log remember between runs?It's an always-on log at ~/.tradingagents/memory/trading_memory.md that records each ticker's past decision and realized return, then injects that reflection into the next run's Portfolio Manager prompt so lessons carry forward.
What is checkpoint resume for?It's an opt-in (--checkpoint) LangGraph feature that saves state after each node, so an interrupted or crashed run resumes from the last successful step instead of starting over.
Why isn't the backtest return guaranteed to match published numbers?Returns depend on the chosen model, temperature, date range, and live data quality, so the framework should be treated as a research scaffold for studying multi-agent analysis, not a fixed, replicable strategy.
Size
11.2 MB
Stars
124.2K
Age
1y
Commits · 90 Days