
TradingAgents
CLI多智能体投研框架:基本面、情绪、新闻、技术分析师与多空研究员、交易员、风控分工辩论,对指定股票输出研报与评级,支持美股、港股与 A 股。需 Python 环境和任一大模型 API Key;不构成投资建议,结论需专业人员复核。
English | Deutsch | Español | français | 日本語 | 한국어 | Português | Русский | 中文
TradingAgents: Towards Agentic Finance Research
Quick start
1. Get an API key
- Sign up at Tauric Research.
- Create your Tauric 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
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
- Install: the installer, npm, release files and updates.
- Usage: the terminal, one-off questions, sessions, agents and skills, sources, sync and limits.
- Models: providers, keys, reasoning and OpenAI-compatible servers.
- Configuration: files and environment variables.
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.
相关资源

AI Hedge Fund
CLI模拟对冲基金的多 Agent 系统:巴菲特、芒格等投资风格 Agent 与量化、风控模块共同分析个股并可回测,适合金融课堂演示与学习投资框架。首次运行时填入 Financial Datasets 与模型 API Key;不做真实交易,结论需专业人员复核。
virattt/ai-hedge-fund64.9k
TradingAgents-Astock
CLITradingAgents 的 A 股特化版:接入通达信、东财、新浪等免费行情源,新增政策、游资、解禁分析师,按 T+1 与涨跌停规则输出中文研报。需 Python 环境与 DeepSeek 等模型 API Key;不构成投资建议,结论需专业人员复核。
simonlin1212/TradingAgents-astock4.1k
Dexter
CLI金融研究终端 Agent(金融研究版 Claude Code):把公司研究问题拆成步骤,自动拉取财报与行情数据并自我校验后作答。需安装 Bun,准备模型 API Key 与 Financial Datasets API Key;仅供学习研究,结论需专业人员复核。
virattt/dexter28k
Qlib
CLI微软开源的 AI 量化投资研究平台,qrun 命令按 YAML 配置一键完成数据集构建、模型训练、回测与评估,附带大量基准模型。官方数据集暂时停止提供,需先按 README 准备行情数据。
microsoft/qlib50.7k
Vibe-Trading
MCP港大 HKUDS 开源的交易研究 agent,MCP 服务有 70 余个工具,覆盖 A 股、港美股与加密货币的行情、财报、回测和投研分析。需本地装 Python,港美股与加密研究免 API Key;结果仅供研究,投资决策需专业人员复核。
HKUDS/Vibe-Trading39.4k
hithink-finance CLI(同花顺金融数据)
CLI同花顺官方金融数据命令行:查询 A 股行情、财务报表、估值、公募基金与期货期权数据,可把全市场历史行情同步到本地 DuckDB 用 SQL 分析。需要 Node.js 22+ 和在同花顺金融数据服务官网申请的 API Key;数据仅供研究,投资决策需专业人员复核。
HiThink-Tech/Financial-API4.7k