mirror of
https://github.com/TauricResearch/TradingAgents.git
synced 2026-11-28 03:56:26 +02:00
TradingAgents: Towards Agentic Finance Research. See CHANGELOG.md for what 1.0.0 includes.
144 lines
7.0 KiB
Markdown
144 lines
7.0 KiB
Markdown
<p align="center">
|
|
<a href="https://tauric.ai/">
|
|
<picture>
|
|
<source media="(prefers-color-scheme: dark)" srcset="assets/tauric-logo-dark.svg">
|
|
<img src="assets/tauric-logo.svg" alt="Tauric Research" width="60%">
|
|
</picture>
|
|
</a>
|
|
</p>
|
|
|
|
<p align="center">
|
|
<a href="https://arxiv.org/abs/2412.20138"><img alt="arXiv" src="https://img.shields.io/badge/arXiv-2412.20138-B31B1B?logo=arxiv"/></a>
|
|
<a href="https://x.com/TauricResearch"><img alt="X" src="https://img.shields.io/badge/X-TauricResearch-white?logo=x&logoColor=white"/></a>
|
|
<a href="https://github.com/TauricResearch/"><img alt="GitHub" src="https://img.shields.io/badge/GitHub-TauricResearch-14C290?logo=github&logoColor=white"/></a>
|
|
<a href="https://www.youtube.com/@TauricResearch"><img alt="YouTube" src="https://img.shields.io/badge/YouTube-TauricResearch-FF0000?logo=youtube&logoColor=white"/></a>
|
|
<a href="https://tauric.ai/"><img alt="Website" src="https://img.shields.io/badge/Website-tauric.ai-14C290?logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PHBhdGggZD0iTTIgMTJoMjBNMTIgMmExNSAxNSAwIDAgMSAwIDIwTTEyIDJhMTUgMTUgMCAwIDAgMCAyMCIvPjwvc3ZnPg=="/></a>
|
|
</p>
|
|
|
|
<p align="center">
|
|
<a href="https://tauric.ai/"><img alt="TradingAgents #1 Repository of the Day" src="https://trendshift.io/api/badge/repositories/16192" width="250" height="55"/></a>
|
|
</p>
|
|
|
|
<p align="center">
|
|
<a href="https://tauricresearch.github.io/TradingAgents/">English</a> |
|
|
<a href="https://tauricresearch.github.io/TradingAgents/de/">Deutsch</a> |
|
|
<a href="https://tauricresearch.github.io/TradingAgents/es/">Español</a> |
|
|
<a href="https://tauricresearch.github.io/TradingAgents/fr/">français</a> |
|
|
<a href="https://tauricresearch.github.io/TradingAgents/ja/">日本語</a> |
|
|
<a href="https://tauricresearch.github.io/TradingAgents/ko/">한국어</a> |
|
|
<a href="https://tauricresearch.github.io/TradingAgents/pt/">Português</a> |
|
|
<a href="https://tauricresearch.github.io/TradingAgents/ru/">Русский</a> |
|
|
<a href="https://tauricresearch.github.io/TradingAgents/zh/">中文</a>
|
|
</p>
|
|
|
|
<h1 align="center">TradingAgents: Towards Agentic Finance Research</h1>
|
|
|
|
<p align="center">
|
|
<img src="assets/demo.gif" alt="TradingAgents researching a question in the terminal" width="100%">
|
|
</p>
|
|
|
|
## Quick start
|
|
|
|
**1. Get an API key**
|
|
|
|
- Sign up at [Tauric Research](https://tauric.ai/signup).
|
|
- Create your [Tauric API key](https://tauric.ai/settings/api-keys).
|
|
|
|
**2. Install**
|
|
|
|
```bash
|
|
curl -fsSL https://tauric.ai/tradingagents/install.sh | sh
|
|
```
|
|
|
|
Or with npm: `npm i -g @tauric/tradingagents`
|
|
|
|
**3. Run**
|
|
|
|
```bash
|
|
tradingagents
|
|
```
|
|
|
|
Start your agentic finance research with Tauric!
|
|
|
|
## Models
|
|
|
|
| Provider | Needs |
|
|
| ----------------------------------------------- | ------------------------------------------ |
|
|
| Tauric AI | [Tauric API key](https://tauric.ai/signup) |
|
|
| 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](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
|
|
|
|
<p align="center">
|
|
<img src="assets/taxonomy.svg" alt="What TradingAgents can call on: the main agent's tools, its data and compute tools, its agents and its skills" width="100%">
|
|
</p>
|
|
|
|
## 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](docs/usage.md)). TradingAgents researches
|
|
and answers; it does not place trades.
|
|
|
|
## Documentation
|
|
|
|
- [Install](docs/install.md): the installer, npm, release files and updates.
|
|
- [Usage](docs/usage.md): the terminal, one-off questions, sessions, agents and skills, sources, sync and limits.
|
|
- [Models](docs/models.md): providers, keys, reasoning and OpenAI-compatible servers.
|
|
- [Configuration](docs/configuration.md): files and environment variables.
|
|
|
|
To report an issue or open a pull request, see [CONTRIBUTING.md](CONTRIBUTING.md); to report a security problem, [SECURITY.md](SECURITY.md).
|
|
|
|
## Citation
|
|
|
|
```bibtex
|
|
@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](LICENSE).
|