{"repo": "andyluu98/midas-agent", "files": {"README.md": {"289ac184bee091ce7e80fbb89aeaaf856b21f2cd": {"t": 1785746596.6702478, "n": 8264, "h": "cacc0c72fc5d26fc", "c": "# Midas Agent — AI Trading Framework cho XAUUSD Scalp M15\n\n**Midas Agent** dựng một \"phòng họp 8 chuyên gia AI\" trong máy bạn, chuyên trade vàng (XAUUSD) khung M15 trên MT5 Exness. Mỗi phiên ~90 giây, chi phí ~$0.20.\n\n
\n\n⚡ [Cài đặt nhanh](#cài-đặt-nhanh) | 🏹 [Săn vàng (Gold Hunter)](#săn-vàng--ultimate_gold_hunterpy) | ⚙️ [3 file cần biết](#3-file-bạn-cần-biết) | 🔍 [Search backend](#search-backend-tự-động) | 🛡️ [Cảnh báo rủi ro](#cảnh-báo-rủi-ro)\n\n
\n\n> ⚠️ **Midas Agent là công cụ NGHIÊN CỨU + HỖ TRỢ RA QUYẾT ĐỊNH.** Output là **tín hiệu tham khảo** — KHÔNG phải khuyến nghị đầu tư. Paper trade tối thiểu 2 tuần trước khi chạy live. AI có thể sai, thị trường có thể black-swan.\n\n---\n\n## 🎯 Vì sao Midas khác\n\n| Tiêu chí | Trader tự đọc | ChatGPT thuần | Indicator Bot | **Midas Agent** |\n|----------|:-:|:-:|:-:|:-:|\n| Số góc nhìn | 1 | 1 | 1 | **8 góc** ✅ |\n| Tranh luận đa vòng | ❌ | ❌ | ❌ | **✅ 2-4 vòng** |\n| Bộ nhớ tự học | ❌ | ❌ | ❌ | **✅** |\n| Ra SL/TP/Lot cụ thể | Tự tính | Mơ hồ | Cứng | **✅ Auto** |\n| Hiểu tin tức + tâm lý | Thủ công | Không có data | ❌ | **✅ Realtime** |\n| Chi phí | Thời gian | $20/tháng | $10-100/tháng | **$0.20/phiên** |\n\n---\n\n## 🏗️ Kiến trúc — 8 Agent + 4 Tầng\n\nMô phỏng cách các quỹ đầu cơ tỉ đô (Citadel, Renaissance) vận hành:\n\n**Tầng 1 — Phân tích (4 chuyên viên song song)**\n- **Fundamentals Analyst** — Macro (lãi suất Fed, CPI, USD index, GLD ETF flow)\n- **Sentiment Analyst** — Twitter/Reddit gold sentiment\n- **News Analyst** — Fed/CPI/NFP/FOMC + geopolitical\n- **Technical Analyst** — RSI/MACD/Bollinger trên khung M15\n\n**Tầng 2 — Tranh luận (2 vòng debate)**\n- **Bull Researcher** ⚔️ **Bear Researcher** — cãi nhau bằng số liệu, chống AI ảo\n\n**Tầng 3 — Trader**\n- Đề xuất MUA/BÁN/ĐỨNG NGOÀI kèm Entry + SL + TP\n\n**Tầng 4 — Rủi ro + Sếp**\n- 3 Risk Debator (hung hăng / thận trọng / trung lập) → **Portfolio Manager** gõ búa cuối\n\n---\n\n## 🏹 Săn vàng — `ultimate_gold_hunter.py`\n\nScript ĐẶC BIỆT cho trader vàng. Combo 3 tầng AI **chéo nhau** để giảm sai sót tối đa:\n\n```\nTẦNG 1 — KRONOS 🔦\n ML model dự báo 3 khung H1/M15/M5 cùng lúc\n M15 = khung CHÍNH (scalper), H1 nền, M5 xác nhận\n Bỏ H4 (24h quá xa cho scalp)\n\nTẦNG 2 — TRADINGVIEW 👁️\n 26 indicator vote → STRONG_BUY / BUY / NEUTRAL / SELL / STRONG_SELL\n Free API qua tradingview-ta\n\nTẦNG 3 — DEEPSEEK COUNCIL 🧙\n 8 agent + News + Sentiment + Memory + Risk debate\n → BẢN TIN CHIẾN THUẬT CUỐI CÙNG (MUA/BÁN/ĐỨNG NGOÀI + SL/TP/Lot)\n```\n\n**Tính năng bảo vệ trader:**\n- ⏸️ **Gate skip M15 NEUTRAL** — Nếu Kronos M15 không rõ hướng, script DỪNG ngay, không gọi Council (tiết kiệm tiền + tránh vào lệnh xấu)\n- 🛡️ **Cap SL 10 pip** — Auto ép SL ≤ 10 pip ($10) cho scalp M15, chống plan kiểu Daily lệch khung\n- ⚠️ **Real account warning** — Nếu MT5 server có chữ \"Real\", script hỏi y/N trước khi chạy\n- 💰 **Position sizer** — Tính lot Cent theo balance + Kronos consensus tier (A+/B/C), risk 1%/lệnh, max 5%/ngày\n\n**Quy ước pip Cách A:** 1 pip XAUUSD = **$1 di chuyển** (giá $4670 → $4680 = 10 pip). SL bị cap tối đa 10 pip ($10) cho M15 scalp.\n\nChạy:\n```bash\npython ultimate_gold_hunter.py\n```\n\nOutput mẫu:\n```\n🏹 BẢN TIN SĂN VÀNG — XAUUSDc 14/05/2026 06:00 ICT\n═══════════════════════════════════════════════════\n💰 Giá: $4,680.00 | Balance: 11,400 USC | Max risk: $1.14\n\n🔮 KRONOS 3 KHUNG → BUY (3/3 đồng thuận, Tier A+)\n H1 BUY +0.30% → range=[4675, 4695]\n M15 BUY +0.35% → range=[4677, 4690] ← khung chính\n M5 BUY +0.21% → range=[4679, 4685]\n\n🛡️ TRADINGVIEW M15 → STRONG_BUY (18 mua / 3 bán / 5 trung lập)\n\n🎯 PLAN: MUA XAUUSDc @ $4,680 | SL $4,673 (7 pip) | TP $4,690 (10 pip)\n💰 LOT: 0.05 Cent | Risk $1.14 | Multiplier 1.2x (Tier A+)\n```\n\n---\n\n## 📦 Cài đặt nhanh\n\n### Yêu cầu\n- Windows 10/11 (Mac/Linux chạy được nhưng MT5 chính thức chỉ Windows)\n- Python 3.13 (qua Miniconda)\n- MT5 terminal đã đăng nhập demo hoặc real (khuyến nghị Exness Cent)\n- Thẻ Visa/Master quốc tế để nạp DeepSeek\n\n### Cài đặt\n```bash\n# 1. Clone repo\ngit clone https://github.com/andyluu98/midas-agent.git\ncd midas-agent\n\n# 2. Tạo môi trường conda\nconda create -n midas python=3.13\nconda activate midas\n\n# 3. Cài tất cả dependencies\npip install .\n\n# 4. Cài MetaTrader5 package cho Python\npip install MetaTrader5\n\n# 5. Cấu hình .env\ncp .env.example .env\n# Mở .env, dán DEEPSEEK_API_KEY và TAVILY_API_KEY (optional)\n```\n\n### Verify cài đặt\n```bash\ntradingagents --help\n```\n\n---\n\n## 🔑 API Keys\n\n### Bắt buộc\n- **DeepSeek API** — LLM chính (rẻ, tiếng Việt tốt). Đăng ký tại `platform.deepseek.com`. Top-up 10 USD ≈ 50 phiên.\n\n### Khuyến nghị\n- **Tavily API** — Search backend cho News/Sentiment/Fundamental analyst (chống AI bịa tin). Free 1000 search/tháng tại `tavily.com`.\n\n### Optional\n- **Alpha Vantage** — News fallback cho commodity\n- **Anthropic** — Fallback search backend\n- **OpenAI/Google/xAI/Qwen/GLM** — Provider thay thế DeepSeek\n\nĐặt vào `.env`:\n```bash\nDEEPSEEK_API_KEY=sk-...\nTAVILY_API_KEY=tvly-... # optional but recommended\nALPHA_VANTAGE_API_KEY=... # optional\n```\n\n---\n\n## 🔍 Search Backend Tự Động\n\nĐể 3 analyst (News/Sentiment/Fundamental) **không bịa tin** trên XAUUSD (Yahoo không có data commodity), Midas tự động chọn search backend theo chain:\n\n```\n1. Tavily API (tốt nhất — TAVILY_API_KEY trong .env)\n2. Anthropic web_search native (ANTHROPIC_API_KEY)\n3. Claude CLI subprocess (command `claude` available)\n4. Gemini CLI subprocess (command `gemini` available)\n5. None — analyst chỉ dùng training data (cảnh báo nhẹ)\n```\n\nKhi chạy, script in backend đang dùng:\n```\n🔍 Search backend: TAVILY\n```\n\n---\n\n## 🚀 Sử dụng\n\n### Cách 1: Script Gold Hunter (khuyến nghị cho trader vàng)\n```bash\npython ultimate_gold_hunter.py\n```\n\n### Cách 2: CLI tổng quát (cho ticker khác)\n```bash\ntradingagents\n# Interactive menu: chọn ticker, ngày, LLM provider, depth\n```\n\n### Cách 3: Python API\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"deepseek\"\nconfig[\"deep_think_llm\"] = \"deepseek-v4-pro\"\nconfig[\"quick_think_llm\"] = \"deepseek-v4-flash\"\nconfig[\"output_language\"] = \"Vietnamese\"\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"XAUUSD\", \"2026-05-14\")\nprint(decision)\n```\n\n---\n\n## ⚙️ 3 File Bạn Cần Biết\n\n| File | Mục đích |\n|------|----------|\n| **`.env`** | Giấu API key (DEEPSEEK_API_KEY, TAVILY_API_KEY...) |\n| **`tradingagents/default_config.py`** | Điều chỉnh LLM provider, số vòng debate, output language |\n| **`ultimate_gold_hunter.py`** | Script chạy chính cho trader vàng |\n\n---\n\n## 💾 Persistence & Recovery\n\n### Memory tự học\nMỗi phiên ghi vào `~/.tradingagents/memory/trading_memory.md`. Phiên sau cùng ticker → AI nhớ lỗi cũ, đưa bài học vào prompt → hệ thống tự khôn theo thời gian.\n\n### Checkpoint resume\nMất điện giữa phiên? Bật `--checkpoint`:\n```bash\ntradingagents analyze --checkpoint\n```\nLần chạy lại resume đúng chỗ — không mất tiền API.\n\n---\n\n## 🛡️ Cảnh báo rủi ro\n\n- ⚠️ **TÍN HIỆU THAM KHẢO** — không phải khuyến nghị đầu tư\n- ⚠️ **PAPER TRADE 2 tuần** trước khi chạy live\n- ⚠️ AI có thể sai, thị trường có thể black-swan\n- ⚠️ Quản lý vốn ≤ 1-2% mỗi lệnh, max 5%/ngày (code đã enforce)\n- ⚠️ KHÔNG đặt lệnh trực tiếp từ output — luôn xác nhận bằng mắt + biểu đồ\n- ⚠️ Khi MT5 dùng tài khoản REAL, script cảnh báo + hỏi y/N\n\n---\n\n## 🙏 Credit & License\n\nMidas Agent là **fork tuỳ biến** của [TauricResearch/TradingAgents](https://github.com/TauricResearch/TradingAgents) (MIT License) — chuyên hoá cho:\n\n- ✅ XAUUSD scalp M15 trên MT5 Exness\n- ✅ DeepSeek LLM (giá rẻ, tiếng Việt tốt) thay vì OpenAI o1\n- ✅ Kronos ML forecaster đa khung\n- ✅ TradingView free signal\n- ✅ Position sizer cho Cent account\n- ✅ Search backend auto-fallback (Tavily/Anthropic/CLI)\n- ✅ Gate skip M15 NEUTRAL + cap SL 10 pip\n- ✅ Real account warning\n- ✅ Output tiếng Việt\n\nKhung framework gốc (LangGraph multi-agent debate) thuộc TauricResearch. Mọi tuỳ biến trên đây thuộc Midas Agent contributors.\n\n---\n\n## 🤝 Contributing\n\nWelcome bug fix, doc improvement, feature mới. Khuyến nghị mở issue trước khi PR. Past contributions credited per release in [`CHANGELOG.md`](CHANGELOG.md).\n"}, "3365abb70e4f7cf4ef1a55613117f81a89da98f5": {"t": 1785766179.7456949, "n": 8264, "h": "cacc0c72fc5d26fc", "c": "# Midas Agent — AI Trading Framework cho XAUUSD Scalp M15\n\n**Midas Agent** dựng một \"phòng họp 8 chuyên gia AI\" trong máy bạn, chuyên trade vàng (XAUUSD) khung M15 trên MT5 Exness. Mỗi phiên ~90 giây, chi phí ~$0.20.\n\n
\n\n⚡ [Cài đặt nhanh](#cài-đặt-nhanh) | 🏹 [Săn vàng (Gold Hunter)](#săn-vàng--ultimate_gold_hunterpy) | ⚙️ [3 file cần biết](#3-file-bạn-cần-biết) | 🔍 [Search backend](#search-backend-tự-động) | 🛡️ [Cảnh báo rủi ro](#cảnh-báo-rủi-ro)\n\n
\n\n> ⚠️ **Midas Agent là công cụ NGHIÊN CỨU + HỖ TRỢ RA QUYẾT ĐỊNH.** Output là **tín hiệu tham khảo** — KHÔNG phải khuyến nghị đầu tư. Paper trade tối thiểu 2 tuần trước khi chạy live. AI có thể sai, thị trường có thể black-swan.\n\n---\n\n## 🎯 Vì sao Midas khác\n\n| Tiêu chí | Trader tự đọc | ChatGPT thuần | Indicator Bot | **Midas Agent** |\n|----------|:-:|:-:|:-:|:-:|\n| Số góc nhìn | 1 | 1 | 1 | **8 góc** ✅ |\n| Tranh luận đa vòng | ❌ | ❌ | ❌ | **✅ 2-4 vòng** |\n| Bộ nhớ tự học | ❌ | ❌ | ❌ | **✅** |\n| Ra SL/TP/Lot cụ thể | Tự tính | Mơ hồ | Cứng | **✅ Auto** |\n| Hiểu tin tức + tâm lý | Thủ công | Không có data | ❌ | **✅ Realtime** |\n| Chi phí | Thời gian | $20/tháng | $10-100/tháng | **$0.20/phiên** |\n\n---\n\n## 🏗️ Kiến trúc — 8 Agent + 4 Tầng\n\nMô phỏng cách các quỹ đầu cơ tỉ đô (Citadel, Renaissance) vận hành:\n\n**Tầng 1 — Phân tích (4 chuyên viên song song)**\n- **Fundamentals Analyst** — Macro (lãi suất Fed, CPI, USD index, GLD ETF flow)\n- **Sentiment Analyst** — Twitter/Reddit gold sentiment\n- **News Analyst** — Fed/CPI/NFP/FOMC + geopolitical\n- **Technical Analyst** — RSI/MACD/Bollinger trên khung M15\n\n**Tầng 2 — Tranh luận (2 vòng debate)**\n- **Bull Researcher** ⚔️ **Bear Researcher** — cãi nhau bằng số liệu, chống AI ảo\n\n**Tầng 3 — Trader**\n- Đề xuất MUA/BÁN/ĐỨNG NGOÀI kèm Entry + SL + TP\n\n**Tầng 4 — Rủi ro + Sếp**\n- 3 Risk Debator (hung hăng / thận trọng / trung lập) → **Portfolio Manager** gõ búa cuối\n\n---\n\n## 🏹 Săn vàng — `ultimate_gold_hunter.py`\n\nScript ĐẶC BIỆT cho trader vàng. Combo 3 tầng AI **chéo nhau** để giảm sai sót tối đa:\n\n```\nTẦNG 1 — KRONOS 🔦\n ML model dự báo 3 khung H1/M15/M5 cùng lúc\n M15 = khung CHÍNH (scalper), H1 nền, M5 xác nhận\n Bỏ H4 (24h quá xa cho scalp)\n\nTẦNG 2 — TRADINGVIEW 👁️\n 26 indicator vote → STRONG_BUY / BUY / NEUTRAL / SELL / STRONG_SELL\n Free API qua tradingview-ta\n\nTẦNG 3 — DEEPSEEK COUNCIL 🧙\n 8 agent + News + Sentiment + Memory + Risk debate\n → BẢN TIN CHIẾN THUẬT CUỐI CÙNG (MUA/BÁN/ĐỨNG NGOÀI + SL/TP/Lot)\n```\n\n**Tính năng bảo vệ trader:**\n- ⏸️ **Gate skip M15 NEUTRAL** — Nếu Kronos M15 không rõ hướng, script DỪNG ngay, không gọi Council (tiết kiệm tiền + tránh vào lệnh xấu)\n- 🛡️ **Cap SL 10 pip** — Auto ép SL ≤ 10 pip ($10) cho scalp M15, chống plan kiểu Daily lệch khung\n- ⚠️ **Real account warning** — Nếu MT5 server có chữ \"Real\", script hỏi y/N trước khi chạy\n- 💰 **Position sizer** — Tính lot Cent theo balance + Kronos consensus tier (A+/B/C), risk 1%/lệnh, max 5%/ngày\n\n**Quy ước pip Cách A:** 1 pip XAUUSD = **$1 di chuyển** (giá $4670 → $4680 = 10 pip). SL bị cap tối đa 10 pip ($10) cho M15 scalp.\n\nChạy:\n```bash\npython ultimate_gold_hunter.py\n```\n\nOutput mẫu:\n```\n🏹 BẢN TIN SĂN VÀNG — XAUUSDc 14/05/2026 06:00 ICT\n═══════════════════════════════════════════════════\n💰 Giá: $4,680.00 | Balance: 11,400 USC | Max risk: $1.14\n\n🔮 KRONOS 3 KHUNG → BUY (3/3 đồng thuận, Tier A+)\n H1 BUY +0.30% → range=[4675, 4695]\n M15 BUY +0.35% → range=[4677, 4690] ← khung chính\n M5 BUY +0.21% → range=[4679, 4685]\n\n🛡️ TRADINGVIEW M15 → STRONG_BUY (18 mua / 3 bán / 5 trung lập)\n\n🎯 PLAN: MUA XAUUSDc @ $4,680 | SL $4,673 (7 pip) | TP $4,690 (10 pip)\n💰 LOT: 0.05 Cent | Risk $1.14 | Multiplier 1.2x (Tier A+)\n```\n\n---\n\n## 📦 Cài đặt nhanh\n\n### Yêu cầu\n- Windows 10/11 (Mac/Linux chạy được nhưng MT5 chính thức chỉ Windows)\n- Python 3.13 (qua Miniconda)\n- MT5 terminal đã đăng nhập demo hoặc real (khuyến nghị Exness Cent)\n- Thẻ Visa/Master quốc tế để nạp DeepSeek\n\n### Cài đặt\n```bash\n# 1. Clone repo\ngit clone https://github.com/andyluu98/midas-agent.git\ncd midas-agent\n\n# 2. Tạo môi trường conda\nconda create -n midas python=3.13\nconda activate midas\n\n# 3. Cài tất cả dependencies\npip install .\n\n# 4. Cài MetaTrader5 package cho Python\npip install MetaTrader5\n\n# 5. Cấu hình .env\ncp .env.example .env\n# Mở .env, dán DEEPSEEK_API_KEY và TAVILY_API_KEY (optional)\n```\n\n### Verify cài đặt\n```bash\ntradingagents --help\n```\n\n---\n\n## 🔑 API Keys\n\n### Bắt buộc\n- **DeepSeek API** — LLM chính (rẻ, tiếng Việt tốt). Đăng ký tại `platform.deepseek.com`. Top-up 10 USD ≈ 50 phiên.\n\n### Khuyến nghị\n- **Tavily API** — Search backend cho News/Sentiment/Fundamental analyst (chống AI bịa tin). Free 1000 search/tháng tại `tavily.com`.\n\n### Optional\n- **Alpha Vantage** — News fallback cho commodity\n- **Anthropic** — Fallback search backend\n- **OpenAI/Google/xAI/Qwen/GLM** — Provider thay thế DeepSeek\n\nĐặt vào `.env`:\n```bash\nDEEPSEEK_API_KEY=sk-...\nTAVILY_API_KEY=tvly-... # optional but recommended\nALPHA_VANTAGE_API_KEY=... # optional\n```\n\n---\n\n## 🔍 Search Backend Tự Động\n\nĐể 3 analyst (News/Sentiment/Fundamental) **không bịa tin** trên XAUUSD (Yahoo không có data commodity), Midas tự động chọn search backend theo chain:\n\n```\n1. Tavily API (tốt nhất — TAVILY_API_KEY trong .env)\n2. Anthropic web_search native (ANTHROPIC_API_KEY)\n3. Claude CLI subprocess (command `claude` available)\n4. Gemini CLI subprocess (command `gemini` available)\n5. None — analyst chỉ dùng training data (cảnh báo nhẹ)\n```\n\nKhi chạy, script in backend đang dùng:\n```\n🔍 Search backend: TAVILY\n```\n\n---\n\n## 🚀 Sử dụng\n\n### Cách 1: Script Gold Hunter (khuyến nghị cho trader vàng)\n```bash\npython ultimate_gold_hunter.py\n```\n\n### Cách 2: CLI tổng quát (cho ticker khác)\n```bash\ntradingagents\n# Interactive menu: chọn ticker, ngày, LLM provider, depth\n```\n\n### Cách 3: Python API\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"deepseek\"\nconfig[\"deep_think_llm\"] = \"deepseek-v4-pro\"\nconfig[\"quick_think_llm\"] = \"deepseek-v4-flash\"\nconfig[\"output_language\"] = \"Vietnamese\"\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"XAUUSD\", \"2026-05-14\")\nprint(decision)\n```\n\n---\n\n## ⚙️ 3 File Bạn Cần Biết\n\n| File | Mục đích |\n|------|----------|\n| **`.env`** | Giấu API key (DEEPSEEK_API_KEY, TAVILY_API_KEY...) |\n| **`tradingagents/default_config.py`** | Điều chỉnh LLM provider, số vòng debate, output language |\n| **`ultimate_gold_hunter.py`** | Script chạy chính cho trader vàng |\n\n---\n\n## 💾 Persistence & Recovery\n\n### Memory tự học\nMỗi phiên ghi vào `~/.tradingagents/memory/trading_memory.md`. Phiên sau cùng ticker → AI nhớ lỗi cũ, đưa bài học vào prompt → hệ thống tự khôn theo thời gian.\n\n### Checkpoint resume\nMất điện giữa phiên? Bật `--checkpoint`:\n```bash\ntradingagents analyze --checkpoint\n```\nLần chạy lại resume đúng chỗ — không mất tiền API.\n\n---\n\n## 🛡️ Cảnh báo rủi ro\n\n- ⚠️ **TÍN HIỆU THAM KHẢO** — không phải khuyến nghị đầu tư\n- ⚠️ **PAPER TRADE 2 tuần** trước khi chạy live\n- ⚠️ AI có thể sai, thị trường có thể black-swan\n- ⚠️ Quản lý vốn ≤ 1-2% mỗi lệnh, max 5%/ngày (code đã enforce)\n- ⚠️ KHÔNG đặt lệnh trực tiếp từ output — luôn xác nhận bằng mắt + biểu đồ\n- ⚠️ Khi MT5 dùng tài khoản REAL, script cảnh báo + hỏi y/N\n\n---\n\n## 🙏 Credit & License\n\nMidas Agent là **fork tuỳ biến** của [TauricResearch/TradingAgents](https://github.com/TauricResearch/TradingAgents) (MIT License) — chuyên hoá cho:\n\n- ✅ XAUUSD scalp M15 trên MT5 Exness\n- ✅ DeepSeek LLM (giá rẻ, tiếng Việt tốt) thay vì OpenAI o1\n- ✅ Kronos ML forecaster đa khung\n- ✅ TradingView free signal\n- ✅ Position sizer cho Cent account\n- ✅ Search backend auto-fallback (Tavily/Anthropic/CLI)\n- ✅ Gate skip M15 NEUTRAL + cap SL 10 pip\n- ✅ Real account warning\n- ✅ Output tiếng Việt\n\nKhung framework gốc (LangGraph multi-agent debate) thuộc TauricResearch. Mọi tuỳ biến trên đây thuộc Midas Agent contributors.\n\n---\n\n## 🤝 Contributing\n\nWelcome bug fix, doc improvement, feature mới. Khuyến nghị mở issue trước khi PR. Past contributions credited per release in [`CHANGELOG.md`](CHANGELOG.md).\n"}, "b4f5afe830e665d7613413b6dbc89c838ce83649": {"t": 1785766181.5663314, "n": 8660, "h": "a47b66c42380e5a9", "c": "# Midas Agent — AI Trading Framework cho XAUUSD Scalp M15\n\n**Midas Agent** dựng một \"phòng họp 8 chuyên gia AI\" trong máy bạn, chuyên trade vàng (XAUUSD) khung M15 trên MT5 Exness. Mỗi phiên ~90 giây, chi phí ~$0.20.\n\n
\n\n⚡ [Cài đặt nhanh](#cài-đặt-nhanh) | 🏹 [Săn vàng (Gold Hunter)](#săn-vàng--ultimate_gold_hunterpy) | ⚙️ [3 file cần biết](#3-file-bạn-cần-biết) | 🔍 [Search backend](#search-backend-tự-động) | 🛡️ [Cảnh báo rủi ro](#cảnh-báo-rủi-ro)\n\n
\n\n> ⚠️ **Midas Agent là công cụ NGHIÊN CỨU + HỖ TRỢ RA QUYẾT ĐỊNH.** Output là **tín hiệu tham khảo** — KHÔNG phải khuyến nghị đầu tư. Paper trade tối thiểu 2 tuần trước khi chạy live. AI có thể sai, thị trường có thể black-swan.\n\n---\n\n## 🎯 Vì sao Midas khác\n\n| Tiêu chí | Trader tự đọc | ChatGPT thuần | Indicator Bot | **Midas Agent** |\n|----------|:-:|:-:|:-:|:-:|\n| Số góc nhìn | 1 | 1 | 1 | **8 góc** ✅ |\n| Tranh luận đa vòng | ❌ | ❌ | ❌ | **✅ 2-4 vòng** |\n| Bộ nhớ tự học | ❌ | ❌ | ❌ | **✅** |\n| Ra SL/TP/Lot cụ thể | Tự tính | Mơ hồ | Cứng | **✅ Auto** |\n| Hiểu tin tức + tâm lý | Thủ công | Không có data | ❌ | **✅ Realtime** |\n| Chi phí | Thời gian | $20/tháng | $10-100/tháng | **$0.20/phiên** |\n\n---\n\n## 🏗️ Kiến trúc — 8 Agent + 4 Tầng\n\nMô phỏng cách các quỹ đầu cơ tỉ đô (Citadel, Renaissance) vận hành:\n\n**Tầng 1 — Phân tích (4 chuyên viên song song)**\n- **Fundamentals Analyst** — Macro (lãi suất Fed, CPI, USD index, GLD ETF flow)\n- **Sentiment Analyst** — Twitter/Reddit gold sentiment\n- **News Analyst** — Fed/CPI/NFP/FOMC + geopolitical\n- **Technical Analyst** — RSI/MACD/Bollinger trên khung M15\n\n**Tầng 2 — Tranh luận (2 vòng debate)**\n- **Bull Researcher** ⚔️ **Bear Researcher** — cãi nhau bằng số liệu, chống AI ảo\n\n**Tầng 3 — Trader**\n- Đề xuất MUA/BÁN/ĐỨNG NGOÀI kèm Entry + SL + TP\n\n**Tầng 4 — Rủi ro + Sếp**\n- 3 Risk Debator (hung hăng / thận trọng / trung lập) → **Portfolio Manager** gõ búa cuối\n\n---\n\n## 🏹 Săn vàng — `ultimate_gold_hunter.py`\n\nScript ĐẶC BIỆT cho trader vàng. Combo 3 tầng AI **chéo nhau** để giảm sai sót tối đa:\n\n```\nTẦNG 1 — KRONOS 🔦\n ML model dự báo 3 khung H1/M15/M5 cùng lúc\n M15 = khung CHÍNH (scalper), H1 nền, M5 xác nhận\n Bỏ H4 (24h quá xa cho scalp)\n\nTẦNG 2 — TRADINGVIEW 👁️\n 26 indicator vote → STRONG_BUY / BUY / NEUTRAL / SELL / STRONG_SELL\n Free API qua tradingview-ta\n\nTẦNG 3 — DEEPSEEK COUNCIL 🧙\n 8 agent + News + Sentiment + Memory + Risk debate\n → BẢN TIN CHIẾN THUẬT CUỐI CÙNG (MUA/BÁN/ĐỨNG NGOÀI + SL/TP/Lot)\n```\n\n**Tính năng bảo vệ trader:**\n- ⏸️ **Gate skip M15 NEUTRAL** — Nếu Kronos M15 không rõ hướng, script DỪNG ngay, không gọi Council (tiết kiệm tiền + tránh vào lệnh xấu)\n- 🛡️ **Cap SL 10 pip** — Auto ép SL ≤ 10 pip ($10) cho scalp M15, chống plan kiểu Daily lệch khung\n- ⚠️ **Real account warning** — Nếu MT5 server có chữ \"Real\", script hỏi y/N trước khi chạy\n- 💰 **Position sizer** — Tính lot Cent theo balance + Kronos consensus tier (A+/B/C), risk 1%/lệnh, max 5%/ngày\n\n**Quy ước pip Cách A:** 1 pip XAUUSD = **$1 di chuyển** (giá $4670 → $4680 = 10 pip). SL bị cap tối đa 10 pip ($10) cho M15 scalp.\n\nChạy:\n```bash\npython ultimate_gold_hunter.py\n```\n\nOutput mẫu:\n```\n🏹 BẢN TIN SĂN VÀNG — XAUUSDc 14/05/2026 06:00 ICT\n═══════════════════════════════════════════════════\n💰 Giá: $4,680.00 | Balance: 11,400 USC | Max risk: $1.14\n\n🔮 KRONOS 3 KHUNG → BUY (3/3 đồng thuận, Tier A+)\n H1 BUY +0.30% → range=[4675, 4695]\n M15 BUY +0.35% → range=[4677, 4690] ← khung chính\n M5 BUY +0.21% → range=[4679, 4685]\n\n🛡️ TRADINGVIEW M15 → STRONG_BUY (18 mua / 3 bán / 5 trung lập)\n\n🎯 PLAN: MUA XAUUSDc @ $4,680 | SL $4,673 (7 pip) | TP $4,690 (10 pip)\n💰 LOT: 0.05 Cent | Risk $1.14 | Multiplier 1.2x (Tier A+)\n```\n\n---\n\n## 📦 Cài đặt nhanh\n\n### Yêu cầu\n- Windows 10/11 (Mac/Linux chạy được nhưng MT5 chính thức chỉ Windows)\n- Python 3.13 (qua Miniconda)\n- MT5 terminal đã đăng nhập demo hoặc real (khuyến nghị Exness Cent)\n- Thẻ Visa/Master quốc tế để nạp DeepSeek\n\n### Cài đặt\n```bash\n# 1. Clone repo\ngit clone https://github.com/andyluu98/midas-agent.git\ncd midas-agent\n\n# 2. Tạo môi trường conda\nconda create -n midas python=3.13\nconda activate midas\n\n# 3. Cài tất cả dependencies\npip install .\n\n# 4. Cài MetaTrader5 package cho Python\npip install MetaTrader5\n\n# 5. Cấu hình .env\ncp .env.example .env\n# Mở .env, dán DEEPSEEK_API_KEY và TAVILY_API_KEY (optional)\n```\n\n### Verify cài đặt\n```bash\ntradingagents --help\n```\n\n---\n\n## 🔑 API Keys\n\n### Bắt buộc\n- **DeepSeek API** — LLM chính (rẻ, tiếng Việt tốt). Đăng ký tại `platform.deepseek.com`. Top-up 10 USD ≈ 50 phiên.\n\n### Khuyến nghị\n- **Tavily API** — Search backend cho News/Sentiment/Fundamental analyst (chống AI bịa tin). Free 1000 search/tháng tại `tavily.com`.\n\n### Optional\n- **Alpha Vantage** — News fallback cho commodity\n- **Anthropic** — Fallback search backend\n- **OpenAI/Google/xAI/Qwen/GLM** — Provider thay thế DeepSeek\n\nĐặt vào `.env`:\n```bash\nDEEPSEEK_API_KEY=sk-...\nTAVILY_API_KEY=tvly-... # optional but recommended\nALPHA_VANTAGE_API_KEY=... # optional\n```\n\n---\n\n## 🔍 Search Backend Tự Động\n\nĐể 3 analyst (News/Sentiment/Fundamental) **không bịa tin** trên XAUUSD (Yahoo không có data commodity), Midas tự động chọn search backend theo chain:\n\n```\n1. Tavily API (tốt nhất — TAVILY_API_KEY trong .env)\n2. Anthropic web_search native (ANTHROPIC_API_KEY)\n3. Claude CLI subprocess (command `claude` available)\n4. Gemini CLI subprocess (command `gemini` available)\n5. None — analyst chỉ dùng training data (cảnh báo nhẹ)\n```\n\nKhi chạy, script in backend đang dùng:\n```\n🔍 Search backend: TAVILY\n```\n\n---\n\n## 🚀 Sử dụng\n\n### Cách 1: Script Gold Hunter (khuyến nghị cho trader vàng)\n```bash\npython ultimate_gold_hunter.py\n```\n\n### Cách 2: CLI tổng quát (cho ticker khác)\n```bash\ntradingagents\n# Interactive menu: chọn ticker, ngày, LLM provider, depth\n```\n\n### Cách 3: Python API\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"deepseek\"\nconfig[\"deep_think_llm\"] = \"deepseek-v4-pro\"\nconfig[\"quick_think_llm\"] = \"deepseek-v4-flash\"\nconfig[\"output_language\"] = \"Vietnamese\"\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"XAUUSD\", \"2026-05-14\")\nprint(decision)\n```\n\n---\n\n## ⚙️ 3 File Bạn Cần Biết\n\n| File | Mục đích |\n|------|----------|\n| **`.env`** | Giấu API key (DEEPSEEK_API_KEY, TAVILY_API_KEY...) |\n| **`tradingagents/default_config.py`** | Điều chỉnh LLM provider, số vòng debate, output language |\n| **`ultimate_gold_hunter.py`** | Script chạy chính cho trader vàng |\n\n---\n\n## 💾 Persistence & Recovery\n\n### Memory tự học\nMỗi phiên ghi vào `~/.tradingagents/memory/trading_memory.md`. Phiên sau cùng ticker → AI nhớ lỗi cũ, đưa bài học vào prompt → hệ thống tự khôn theo thời gian.\n\n### Checkpoint resume\nMất điện giữa phiên? Bật `--checkpoint`:\n```bash\ntradingagents analyze --checkpoint\n```\nLần chạy lại resume đúng chỗ — không mất tiền API.\n\n---\n\n## 🛡️ Cảnh báo rủi ro\n\n- ⚠️ **TÍN HIỆU THAM KHẢO** — không phải khuyến nghị đầu tư\n- ⚠️ **PAPER TRADE 2 tuần** trước khi chạy live\n- ⚠️ AI có thể sai, thị trường có thể black-swan\n- ⚠️ Quản lý vốn ≤ 1-2% mỗi lệnh, max 5%/ngày (code đã enforce)\n- ⚠️ KHÔNG đặt lệnh trực tiếp từ output — luôn xác nhận bằng mắt + biểu đồ\n- ⚠️ Khi MT5 dùng tài khoản REAL, script cảnh báo + hỏi y/N\n\n---\n\n## 🙏 Credit & License\n\nMidas Agent là **fork tuỳ biến** của [TauricResearch/TradingAgents](https://github.com/TauricResearch/TradingAgents) (MIT License) — chuyên hoá cho:\n\n- ✅ XAUUSD scalp M15 trên MT5 Exness\n- ✅ DeepSeek LLM (giá rẻ, tiếng Việt tốt) thay vì OpenAI o1\n- ✅ Kronos ML forecaster đa khung\n- ✅ TradingView free signal\n- ✅ Position sizer cho Cent account\n- ✅ Search backend auto-fallback (Tavily/Anthropic/CLI)\n- ✅ Gate skip M15 NEUTRAL + cap SL 10 pip\n- ✅ Real account warning\n- ✅ Output tiếng Việt\n\nKhung framework gốc (LangGraph multi-agent debate) thuộc TauricResearch. Mọi tuỳ biến trên đây thuộc Midas Agent contributors.\n\n---\n\n## 🤝 Contributing\n\nWelcome bug fix, doc improvement, feature mới. Khuyến nghị mở issue trước khi PR. Past contributions credited per release in [`CHANGELOG.md`](CHANGELOG.md).\n\n---\n\n## 📚 Khóa học CES — AI Agent for Trading: Zero to Hero\n\n7 video × 10 phút dạy trader VN không code dùng Midas từ đầu đến cuối:\n\n- V0: Kiến trúc Midas (lecture)\n- V1: Cài Python + Git + VS Code\n- V2: Clone repo + conda + pip install\n- V3: DeepSeek API + Tavily + .env\n- V4: MT5 + lấy data XAUUSD\n- V5: Chạy CLI 8 agent\n- V6: Gold Hunter realtime (đặt SL/TP/Lot)\n\nĐào tạo bởi **CES Global**.\n"}, "8528f1c9d26f733cd626ab36ff091274a63e4ea6": {"t": 1785766183.2573788, "n": 7900, "h": "13ffced10f1fc85c", "c": "# Midas Agent: Multi-Agent LLM Financial Trading Framework\n\nMidas Agent is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. Specialized LLM-powered agents — fundamental analysts, sentiment experts, technical analysts, traders, and a risk management team — collaboratively evaluate market conditions and inform trading decisions through dynamic debate.\n\n
\n\n⚡ [Installation & CLI](#installation-and-cli) | 📦 [Package Usage](#python-package-usage) | 🤝 [Contributing](#contributing)\n\n
\n\n

\n \n

\n\n> Midas Agent is designed for research purposes. Trading performance varies with the chosen LLM, model temperature, trading period, data quality, and other non-deterministic factors. **This is not financial, investment, or trading advice.**\n\nThe framework decomposes complex trading tasks into specialized roles for a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- **Fundamentals Analyst** — Evaluates company financials and performance metrics, identifying intrinsic value and red flags.\n- **Sentiment Analyst** — Analyzes social media and public sentiment to gauge short-term market mood.\n- **News Analyst** — Monitors global news and macroeconomic indicators, interpreting event impact on markets.\n- **Technical Analyst** — Applies indicators (MACD, RSI, …) to detect patterns and forecast price movement.\n\n

\n \n

\n\n### Researcher Team\n- Bullish and bearish researchers critically assess insights from the Analyst Team. Through structured debate, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from analysts and researchers to make informed trading decisions, determining timing and magnitude of trades.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- The risk team continuously evaluates portfolio risk via volatility, liquidity, and other factors, adjusting strategies and reporting to the Portfolio Manager.\n- The Portfolio Manager approves or rejects each transaction proposal. Approved orders are sent to the simulated exchange.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone the repo:\n```bash\ngit clone https://github.com/andyluu98/midas-agent.git\ncd midas-agent\n```\n\nCreate a virtual environment:\n```bash\nconda create -n midas python=3.13\nconda activate midas\n```\n\nInstall the package and its dependencies:\n```bash\npip install .\n```\n\n### Docker\n\nRun with Docker:\n```bash\ncp .env.example .env # add your API keys\ndocker compose run --rm tradingagents\n```\n\nFor local models with Ollama:\n```bash\ndocker compose --profile ollama run --rm tradingagents-ollama\n```\n\n### Required APIs\n\nMidas Agent supports multiple LLM providers. Set the API key for your chosen provider:\n\n```bash\nexport OPENAI_API_KEY=... # OpenAI (GPT)\nexport GOOGLE_API_KEY=... # Google (Gemini)\nexport ANTHROPIC_API_KEY=... # Anthropic (Claude)\nexport XAI_API_KEY=... # xAI (Grok)\nexport DEEPSEEK_API_KEY=... # DeepSeek\nexport DASHSCOPE_API_KEY=... # Qwen (Alibaba DashScope)\nexport ZHIPU_API_KEY=... # GLM (Zhipu)\nexport OPENROUTER_API_KEY=... # OpenRouter\nexport ALPHA_VANTAGE_API_KEY=... # Alpha Vantage\n```\n\nFor enterprise providers (Azure OpenAI, AWS Bedrock), copy `.env.enterprise.example` to `.env.enterprise` and fill in your credentials.\n\nFor local models, configure Ollama with `llm_provider: \"ollama\"` in your config.\n\nAlternatively, copy `.env.example` to `.env` and fill in your keys:\n```bash\ncp .env.example .env\n```\n\n### CLI Usage\n\nLaunch the interactive CLI:\n```bash\ntradingagents # installed command\npython -m cli.main # alternative: run directly from source\n```\nYou will see a screen where you can select your desired tickers, analysis date, LLM provider, research depth, and more.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track each agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## Python Package Usage\n\n### Implementation Details\n\nMidas Agent is built on LangGraph for flexibility and modularity. It supports multiple LLM providers: OpenAI, Google, Anthropic, xAI, DeepSeek, Qwen (Alibaba DashScope), GLM (Zhipu), OpenRouter, Ollama (local), and Azure OpenAI (enterprise).\n\n### Quick Start\n\nImport the graph and run a propagation:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nYou can adjust the default configuration to set your own LLMs, debate rounds, etc.:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"openai\" # openai, google, anthropic, xai, deepseek, qwen, glm, openrouter, ollama, azure\nconfig[\"deep_think_llm\"] = \"gpt-5.4\" # Model for complex reasoning\nconfig[\"quick_think_llm\"] = \"gpt-5.4-mini\" # Model for quick tasks\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nSee `tradingagents/default_config.py` for all configuration options.\n\n## Persistence and Recovery\n\nMidas Agent persists two kinds of state across runs.\n\n### Decision log\n\nThe decision log is always on. Each completed run appends its decision to `~/.tradingagents/memory/trading_memory.md`. On the next run for the same ticker, Midas Agent fetches the realised return (raw and alpha vs SPY), generates a one-paragraph reflection, and injects the most recent same-ticker decisions plus recent cross-ticker lessons into the Portfolio Manager prompt, so each analysis carries forward what worked and what didn't.\n\nOverride the path with `TRADINGAGENTS_MEMORY_LOG_PATH`.\n\n### Checkpoint resume\n\nCheckpoint resume is opt-in via `--checkpoint`. When enabled, LangGraph saves state after each node so a crashed or interrupted run resumes from the last successful step instead of starting over. On a resume run you will see `Resuming from step N for on ` in the logs; on a new run you will see `Starting fresh`. Checkpoints are cleared automatically on successful completion.\n\nPer-ticker SQLite databases live at `~/.tradingagents/cache/checkpoints/.db` (override the base with `TRADINGAGENTS_CACHE_DIR`). Use `--clear-checkpoints` to reset all of them before a run.\n\n```bash\ntradingagents analyze --checkpoint # enable for this run\ntradingagents analyze --clear-checkpoints # reset before running\n```\n\n```python\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"checkpoint_enabled\"] = True\nta = TradingAgentsGraph(config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\n```\n\n## Contributing\n\nContributions are welcome — bug fixes, documentation improvements, new features, all helpful. Past contributions are credited per release in [`CHANGELOG.md`](CHANGELOG.md).\n"}, "7c37249f808f9c169ad2198dc384166e7ca7adf9": {"t": 1785766185.1835184, "n": 13393, "h": "b3345f56446017e4", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework\n\n## News\n- [2026-04] **TradingAgents v0.2.4** released with structured-output agents (Research Manager, Trader, Portfolio Manager), LangGraph checkpoint resume, persistent decision log, DeepSeek/Qwen/GLM/Azure provider support, Docker, and a Windows UTF-8 encoding fix. See [CHANGELOG.md](CHANGELOG.md) for the full list.\n- [2026-03] **TradingAgents v0.2.3** released with multi-language support, GPT-5.4 family models, unified model catalog, backtesting date fidelity, and proxy support.\n- [2026-03] **TradingAgents v0.2.2** released with GPT-5.4/Gemini 3.1/Claude 4.6 model coverage, five-tier rating scale, OpenAI Responses API, Anthropic effort control, and cross-platform stability.\n- [2026-02] **TradingAgents v0.2.0** released with multi-provider LLM support (GPT-5.x, Gemini 3.x, Claude 4.x, Grok 4.x) and improved system architecture.\n- [2026-01] **Trading-R1** [Technical Report](https://arxiv.org/abs/2509.11420) released, with [Terminal](https://github.com/TauricResearch/Trading-R1) expected to land soon.\n\n
\n\n \n \n \n \"TradingAgents\n \n\n
\n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall the package and its dependencies:\n```bash\npip install .\n```\n\n### Docker\n\nAlternatively, run with Docker:\n```bash\ncp .env.example .env # add your API keys\ndocker compose run --rm tradingagents\n```\n\nFor local models with Ollama:\n```bash\ndocker compose --profile ollama run --rm tradingagents-ollama\n```\n\n### Required APIs\n\nTradingAgents supports multiple LLM providers. Set the API key for your chosen provider:\n\n```bash\nexport OPENAI_API_KEY=... # OpenAI (GPT)\nexport GOOGLE_API_KEY=... # Google (Gemini)\nexport ANTHROPIC_API_KEY=... # Anthropic (Claude)\nexport XAI_API_KEY=... # xAI (Grok)\nexport DEEPSEEK_API_KEY=... # DeepSeek\nexport DASHSCOPE_API_KEY=... # Qwen (Alibaba DashScope)\nexport ZHIPU_API_KEY=... # GLM (Zhipu)\nexport OPENROUTER_API_KEY=... # OpenRouter\nexport ALPHA_VANTAGE_API_KEY=... # Alpha Vantage\n```\n\nFor enterprise providers (e.g. Azure OpenAI, AWS Bedrock), copy `.env.enterprise.example` to `.env.enterprise` and fill in your credentials.\n\nFor local models, configure Ollama with `llm_provider: \"ollama\"` in your config.\n\nAlternatively, copy `.env.example` to `.env` and fill in your keys:\n```bash\ncp .env.example .env\n```\n\n### CLI Usage\n\nLaunch the interactive CLI:\n```bash\ntradingagents # installed command\npython -m cli.main # alternative: run directly from source\n```\nYou will see a screen where you can select your desired tickers, analysis date, LLM provider, research depth, and more.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. The framework supports multiple LLM providers: OpenAI, Google, Anthropic, xAI, DeepSeek, Qwen (Alibaba DashScope), GLM (Zhipu), OpenRouter, Ollama for local models, and Azure OpenAI for enterprise.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"openai\" # openai, google, anthropic, xai, deepseek, qwen, glm, openrouter, ollama, azure\nconfig[\"deep_think_llm\"] = \"gpt-5.4\" # Model for complex reasoning\nconfig[\"quick_think_llm\"] = \"gpt-5.4-mini\" # Model for quick tasks\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nSee `tradingagents/default_config.py` for all configuration options.\n\n## Persistence and Recovery\n\nTradingAgents persists two kinds of state across runs.\n\n### Decision log\n\nThe decision log is always on. Each completed run appends its decision to `~/.tradingagents/memory/trading_memory.md`. On the next run for the same ticker, TradingAgents fetches the realised return (raw and alpha vs SPY), generates a one-paragraph reflection, and injects the most recent same-ticker decisions plus recent cross-ticker lessons into the Portfolio Manager prompt, so each analysis carries forward what worked and what didn't.\n\nOverride the path with `TRADINGAGENTS_MEMORY_LOG_PATH`.\n\n### Checkpoint resume\n\nCheckpoint resume is opt-in via `--checkpoint`. When enabled, LangGraph saves state after each node so a crashed or interrupted run resumes from the last successful step instead of starting over. On a resume run you will see `Resuming from step N for on ` in the logs; on a new run you will see `Starting fresh`. Checkpoints are cleared automatically on successful completion.\n\nPer-ticker SQLite databases live at `~/.tradingagents/cache/checkpoints/.db` (override the base with `TRADINGAGENTS_CACHE_DIR`). Use `--clear-checkpoints` to reset all of them before a run.\n\n```bash\ntradingagents analyze --checkpoint # enable for this run\ntradingagents analyze --clear-checkpoints # reset before running\n```\n\n```python\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"checkpoint_enabled\"] = True\nta = TradingAgentsGraph(config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\n```\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\nPast contributions, including code, design feedback, and bug reports, are credited per release in [`CHANGELOG.md`](CHANGELOG.md).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "4cbd4b086fd94074d79987c8ca31daec8d33902c": {"t": 1785766186.6801293, "n": 12949, "h": "362c3c6392d195ac", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework\n\n## News\n- [2026-03] **TradingAgents v0.2.3** released with multi-language support, GPT-5.4 family models, unified model catalog, backtesting date fidelity, and proxy support.\n- [2026-03] **TradingAgents v0.2.2** released with GPT-5.4/Gemini 3.1/Claude 4.6 model coverage, five-tier rating scale, OpenAI Responses API, Anthropic effort control, and cross-platform stability.\n- [2026-02] **TradingAgents v0.2.0** released with multi-provider LLM support (GPT-5.x, Gemini 3.x, Claude 4.x, Grok 4.x) and improved system architecture.\n- [2026-01] **Trading-R1** [Technical Report](https://arxiv.org/abs/2509.11420) released, with [Terminal](https://github.com/TauricResearch/Trading-R1) expected to land soon.\n\n\n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall the package and its dependencies:\n```bash\npip install .\n```\n\n### Docker\n\nAlternatively, run with Docker:\n```bash\ncp .env.example .env # add your API keys\ndocker compose run --rm tradingagents\n```\n\nFor local models with Ollama:\n```bash\ndocker compose --profile ollama run --rm tradingagents-ollama\n```\n\n### Required APIs\n\nTradingAgents supports multiple LLM providers. Set the API key for your chosen provider:\n\n```bash\nexport OPENAI_API_KEY=... # OpenAI (GPT)\nexport GOOGLE_API_KEY=... # Google (Gemini)\nexport ANTHROPIC_API_KEY=... # Anthropic (Claude)\nexport XAI_API_KEY=... # xAI (Grok)\nexport DEEPSEEK_API_KEY=... # DeepSeek\nexport DASHSCOPE_API_KEY=... # Qwen (Alibaba DashScope)\nexport ZHIPU_API_KEY=... # GLM (Zhipu)\nexport OPENROUTER_API_KEY=... # OpenRouter\nexport ALPHA_VANTAGE_API_KEY=... # Alpha Vantage\n```\n\nFor enterprise providers (e.g. Azure OpenAI, AWS Bedrock), copy `.env.enterprise.example` to `.env.enterprise` and fill in your credentials.\n\nFor local models, configure Ollama with `llm_provider: \"ollama\"` in your config.\n\nAlternatively, copy `.env.example` to `.env` and fill in your keys:\n```bash\ncp .env.example .env\n```\n\n### CLI Usage\n\nLaunch the interactive CLI:\n```bash\ntradingagents # installed command\npython -m cli.main # alternative: run directly from source\n```\nYou will see a screen where you can select your desired tickers, analysis date, LLM provider, research depth, and more.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. The framework supports multiple LLM providers: OpenAI, Google, Anthropic, xAI, DeepSeek, Qwen (Alibaba DashScope), GLM (Zhipu), OpenRouter, Ollama for local models, and Azure OpenAI for enterprise.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"openai\" # openai, google, anthropic, xai, deepseek, qwen, glm, openrouter, ollama, azure\nconfig[\"deep_think_llm\"] = \"gpt-5.4\" # Model for complex reasoning\nconfig[\"quick_think_llm\"] = \"gpt-5.4-mini\" # Model for quick tasks\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nSee `tradingagents/default_config.py` for all configuration options.\n\n## Persistence and Recovery\n\nTradingAgents persists two kinds of state across runs.\n\n### Decision log\n\nThe decision log is always on. Each completed run appends its decision to `~/.tradingagents/memory/trading_memory.md`. On the next run for the same ticker, TradingAgents fetches the realised return (raw and alpha vs SPY), generates a one-paragraph reflection, and injects the most recent same-ticker decisions plus recent cross-ticker lessons into the Portfolio Manager prompt, so each analysis carries forward what worked and what didn't.\n\nOverride the path with `TRADINGAGENTS_MEMORY_LOG_PATH`.\n\n### Checkpoint resume\n\nCheckpoint resume is opt-in via `--checkpoint`. When enabled, LangGraph saves state after each node so a crashed or interrupted run resumes from the last successful step instead of starting over. On a resume run you will see `Resuming from step N for on ` in the logs; on a new run you will see `Starting fresh`. Checkpoints are cleared automatically on successful completion.\n\nPer-ticker SQLite databases live at `~/.tradingagents/cache/checkpoints/.db` (override the base with `TRADINGAGENTS_CACHE_DIR`). Use `--clear-checkpoints` to reset all of them before a run.\n\n```bash\ntradingagents analyze --checkpoint # enable for this run\ntradingagents analyze --clear-checkpoints # reset before running\n```\n\n```python\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"checkpoint_enabled\"] = True\nta = TradingAgentsGraph(config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\n```\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "b0f6058299ed0e31677a1e3eb31b662aca10abd4": {"t": 1785766188.5943928, "n": 11292, "h": "6fd859089d40133e", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework\n\n## News\n- [2026-03] **TradingAgents v0.2.3** released with multi-language support, GPT-5.4 family models, unified model catalog, backtesting date fidelity, and proxy support.\n- [2026-03] **TradingAgents v0.2.2** released with GPT-5.4/Gemini 3.1/Claude 4.6 model coverage, five-tier rating scale, OpenAI Responses API, Anthropic effort control, and cross-platform stability.\n- [2026-02] **TradingAgents v0.2.0** released with multi-provider LLM support (GPT-5.x, Gemini 3.x, Claude 4.x, Grok 4.x) and improved system architecture.\n- [2026-01] **Trading-R1** [Technical Report](https://arxiv.org/abs/2509.11420) released, with [Terminal](https://github.com/TauricResearch/Trading-R1) expected to land soon.\n\n\n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall the package and its dependencies:\n```bash\npip install .\n```\n\n### Docker\n\nAlternatively, run with Docker:\n```bash\ncp .env.example .env # add your API keys\ndocker compose run --rm tradingagents\n```\n\nFor local models with Ollama:\n```bash\ndocker compose --profile ollama run --rm tradingagents-ollama\n```\n\n### Required APIs\n\nTradingAgents supports multiple LLM providers. Set the API key for your chosen provider:\n\n```bash\nexport OPENAI_API_KEY=... # OpenAI (GPT)\nexport GOOGLE_API_KEY=... # Google (Gemini)\nexport ANTHROPIC_API_KEY=... # Anthropic (Claude)\nexport XAI_API_KEY=... # xAI (Grok)\nexport DEEPSEEK_API_KEY=... # DeepSeek\nexport DASHSCOPE_API_KEY=... # Qwen (Alibaba DashScope)\nexport ZHIPU_API_KEY=... # GLM (Zhipu)\nexport OPENROUTER_API_KEY=... # OpenRouter\nexport ALPHA_VANTAGE_API_KEY=... # Alpha Vantage\n```\n\nFor enterprise providers (e.g. Azure OpenAI, AWS Bedrock), copy `.env.enterprise.example` to `.env.enterprise` and fill in your credentials.\n\nFor local models, configure Ollama with `llm_provider: \"ollama\"` in your config.\n\nAlternatively, copy `.env.example` to `.env` and fill in your keys:\n```bash\ncp .env.example .env\n```\n\n### CLI Usage\n\nLaunch the interactive CLI:\n```bash\ntradingagents # installed command\npython -m cli.main # alternative: run directly from source\n```\nYou will see a screen where you can select your desired tickers, analysis date, LLM provider, research depth, and more.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. The framework supports multiple LLM providers: OpenAI, Google, Anthropic, xAI, OpenRouter, and Ollama.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"openai\" # openai, google, anthropic, xai, openrouter, ollama\nconfig[\"deep_think_llm\"] = \"gpt-5.4\" # Model for complex reasoning\nconfig[\"quick_think_llm\"] = \"gpt-5.4-mini\" # Model for quick tasks\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nSee `tradingagents/default_config.py` for all configuration options.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "10c136f49c82e11f0e324c9c50cda1638a8ed5a7": {"t": 1785766190.5339255, "n": 10993, "h": "a58e216685dd4e9b", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework\n\n## News\n- [2026-03] **TradingAgents v0.2.3** released with multi-language support, GPT-5.4 family models, unified model catalog, backtesting date fidelity, and proxy support.\n- [2026-03] **TradingAgents v0.2.2** released with GPT-5.4/Gemini 3.1/Claude 4.6 model coverage, five-tier rating scale, OpenAI Responses API, Anthropic effort control, and cross-platform stability.\n- [2026-02] **TradingAgents v0.2.0** released with multi-provider LLM support (GPT-5.x, Gemini 3.x, Claude 4.x, Grok 4.x) and improved system architecture.\n- [2026-01] **Trading-R1** [Technical Report](https://arxiv.org/abs/2509.11420) released, with [Terminal](https://github.com/TauricResearch/Trading-R1) expected to land soon.\n\n\n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall the package and its dependencies:\n```bash\npip install .\n```\n\n### Docker\n\nAlternatively, run with Docker:\n```bash\ncp .env.example .env # add your API keys\ndocker compose run --rm tradingagents\n```\n\nFor local models with Ollama:\n```bash\ndocker compose --profile ollama run --rm tradingagents-ollama\n```\n\n### Required APIs\n\nTradingAgents supports multiple LLM providers. Set the API key for your chosen provider:\n\n```bash\nexport OPENAI_API_KEY=... # OpenAI (GPT)\nexport GOOGLE_API_KEY=... # Google (Gemini)\nexport ANTHROPIC_API_KEY=... # Anthropic (Claude)\nexport XAI_API_KEY=... # xAI (Grok)\nexport OPENROUTER_API_KEY=... # OpenRouter\nexport ALPHA_VANTAGE_API_KEY=... # Alpha Vantage\n```\n\nFor local models, configure Ollama with `llm_provider: \"ollama\"` in your config.\n\nAlternatively, copy `.env.example` to `.env` and fill in your keys:\n```bash\ncp .env.example .env\n```\n\n### CLI Usage\n\nLaunch the interactive CLI:\n```bash\ntradingagents # installed command\npython -m cli.main # alternative: run directly from source\n```\nYou will see a screen where you can select your desired tickers, analysis date, LLM provider, research depth, and more.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. The framework supports multiple LLM providers: OpenAI, Google, Anthropic, xAI, OpenRouter, and Ollama.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"openai\" # openai, google, anthropic, xai, openrouter, ollama\nconfig[\"deep_think_llm\"] = \"gpt-5.4\" # Model for complex reasoning\nconfig[\"quick_think_llm\"] = \"gpt-5.4-mini\" # Model for quick tasks\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nSee `tradingagents/default_config.py` for all configuration options.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "4641c03340c70e0e75e74234c998325164c72b36": {"t": 1785766192.1037755, "n": 10751, "h": "8915e860acdc92df", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework\n\n## News\n- [2026-03] **TradingAgents v0.2.3** released with multi-language support, GPT-5.4 family models, unified model catalog, backtesting date fidelity, and proxy support.\n- [2026-03] **TradingAgents v0.2.2** released with GPT-5.4/Gemini 3.1/Claude 4.6 model coverage, five-tier rating scale, OpenAI Responses API, Anthropic effort control, and cross-platform stability.\n- [2026-02] **TradingAgents v0.2.0** released with multi-provider LLM support (GPT-5.x, Gemini 3.x, Claude 4.x, Grok 4.x) and improved system architecture.\n- [2026-01] **Trading-R1** [Technical Report](https://arxiv.org/abs/2509.11420) released, with [Terminal](https://github.com/TauricResearch/Trading-R1) expected to land soon.\n\n\n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall the package and its dependencies:\n```bash\npip install .\n```\n\n### Required APIs\n\nTradingAgents supports multiple LLM providers. Set the API key for your chosen provider:\n\n```bash\nexport OPENAI_API_KEY=... # OpenAI (GPT)\nexport GOOGLE_API_KEY=... # Google (Gemini)\nexport ANTHROPIC_API_KEY=... # Anthropic (Claude)\nexport XAI_API_KEY=... # xAI (Grok)\nexport OPENROUTER_API_KEY=... # OpenRouter\nexport ALPHA_VANTAGE_API_KEY=... # Alpha Vantage\n```\n\nFor local models, configure Ollama with `llm_provider: \"ollama\"` in your config.\n\nAlternatively, copy `.env.example` to `.env` and fill in your keys:\n```bash\ncp .env.example .env\n```\n\n### CLI Usage\n\nLaunch the interactive CLI:\n```bash\ntradingagents # installed command\npython -m cli.main # alternative: run directly from source\n```\nYou will see a screen where you can select your desired tickers, analysis date, LLM provider, research depth, and more.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. The framework supports multiple LLM providers: OpenAI, Google, Anthropic, xAI, OpenRouter, and Ollama.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"openai\" # openai, google, anthropic, xai, openrouter, ollama\nconfig[\"deep_think_llm\"] = \"gpt-5.4\" # Model for complex reasoning\nconfig[\"quick_think_llm\"] = \"gpt-5.4-mini\" # Model for quick tasks\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nSee `tradingagents/default_config.py` for all configuration options.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "e75d17bc51981b49ed47c6a2c2016100e0689e09": {"t": 1785766193.6249661, "n": 10584, "h": "46c3b0eff6759bf1", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework\n\n## News\n- [2026-03] **TradingAgents v0.2.2** released with GPT-5.4/Gemini 3.1/Claude 4.6 model coverage, five-tier rating scale, OpenAI Responses API, Anthropic effort control, and cross-platform stability.\n- [2026-02] **TradingAgents v0.2.0** released with multi-provider LLM support (GPT-5.x, Gemini 3.x, Claude 4.x, Grok 4.x) and improved system architecture.\n- [2026-01] **Trading-R1** [Technical Report](https://arxiv.org/abs/2509.11420) released, with [Terminal](https://github.com/TauricResearch/Trading-R1) expected to land soon.\n\n\n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall the package and its dependencies:\n```bash\npip install .\n```\n\n### Required APIs\n\nTradingAgents supports multiple LLM providers. Set the API key for your chosen provider:\n\n```bash\nexport OPENAI_API_KEY=... # OpenAI (GPT)\nexport GOOGLE_API_KEY=... # Google (Gemini)\nexport ANTHROPIC_API_KEY=... # Anthropic (Claude)\nexport XAI_API_KEY=... # xAI (Grok)\nexport OPENROUTER_API_KEY=... # OpenRouter\nexport ALPHA_VANTAGE_API_KEY=... # Alpha Vantage\n```\n\nFor local models, configure Ollama with `llm_provider: \"ollama\"` in your config.\n\nAlternatively, copy `.env.example` to `.env` and fill in your keys:\n```bash\ncp .env.example .env\n```\n\n### CLI Usage\n\nLaunch the interactive CLI:\n```bash\ntradingagents # installed command\npython -m cli.main # alternative: run directly from source\n```\nYou will see a screen where you can select your desired tickers, analysis date, LLM provider, research depth, and more.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. The framework supports multiple LLM providers: OpenAI, Google, Anthropic, xAI, OpenRouter, and Ollama.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"openai\" # openai, google, anthropic, xai, openrouter, ollama\nconfig[\"deep_think_llm\"] = \"gpt-5.4\" # Model for complex reasoning\nconfig[\"quick_think_llm\"] = \"gpt-5.4-mini\" # Model for quick tasks\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nSee `tradingagents/default_config.py` for all configuration options.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "589b351f2ab55a8a37d846848479cebc810a5a36": {"t": 1785766195.3629029, "n": 10582, "h": "996be7c9a4715864", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework\n\n## News\n- [2026-03] **TradingAgents v0.2.2** released with GPT-5.4/Gemini 3.1/Claude 4.6 model coverage, five-tier rating scale, OpenAI Responses API, Anthropic effort control, and cross-platform stability.\n- [2026-02] **TradingAgents v0.2.0** released with multi-provider LLM support (GPT-5.x, Gemini 3.x, Claude 4.x, Grok 4.x) and improved system architecture.\n- [2026-01] **Trading-R1** [Technical Report](https://arxiv.org/abs/2509.11420) released, with [Terminal](https://github.com/TauricResearch/Trading-R1) expected to land soon.\n\n\n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall the package and its dependencies:\n```bash\npip install .\n```\n\n### Required APIs\n\nTradingAgents supports multiple LLM providers. Set the API key for your chosen provider:\n\n```bash\nexport OPENAI_API_KEY=... # OpenAI (GPT)\nexport GOOGLE_API_KEY=... # Google (Gemini)\nexport ANTHROPIC_API_KEY=... # Anthropic (Claude)\nexport XAI_API_KEY=... # xAI (Grok)\nexport OPENROUTER_API_KEY=... # OpenRouter\nexport ALPHA_VANTAGE_API_KEY=... # Alpha Vantage\n```\n\nFor local models, configure Ollama with `llm_provider: \"ollama\"` in your config.\n\nAlternatively, copy `.env.example` to `.env` and fill in your keys:\n```bash\ncp .env.example .env\n```\n\n### CLI Usage\n\nLaunch the interactive CLI:\n```bash\ntradingagents # installed command\npython -m cli.main # alternative: run directly from source\n```\nYou will see a screen where you can select your desired tickers, analysis date, LLM provider, research depth, and more.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. The framework supports multiple LLM providers: OpenAI, Google, Anthropic, xAI, OpenRouter, and Ollama.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"openai\" # openai, google, anthropic, xai, openrouter, ollama\nconfig[\"deep_think_llm\"] = \"gpt-5.2\" # Model for complex reasoning\nconfig[\"quick_think_llm\"] = \"gpt-5-mini\" # Model for quick tasks\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nSee `tradingagents/default_config.py` for all configuration options.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "77755f0431b284690ddc835ee66684dab25fbb33": {"t": 1785766197.41289, "n": 10512, "h": "898bafd4ee2b6e8f", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework\n\n## News\n- [2026-03] **TradingAgents v0.2.1** released with GPT-5.4, Gemini 3.1, Claude 4.6 model coverage and improved system stability.\n- [2026-02] **TradingAgents v0.2.0** released with multi-provider LLM support (GPT-5.x, Gemini 3.x, Claude 4.x, Grok 4.x) and improved system architecture.\n- [2026-01] **Trading-R1** [Technical Report](https://arxiv.org/abs/2509.11420) released, with [Terminal](https://github.com/TauricResearch/Trading-R1) expected to land soon.\n\n\n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall the package and its dependencies:\n```bash\npip install .\n```\n\n### Required APIs\n\nTradingAgents supports multiple LLM providers. Set the API key for your chosen provider:\n\n```bash\nexport OPENAI_API_KEY=... # OpenAI (GPT)\nexport GOOGLE_API_KEY=... # Google (Gemini)\nexport ANTHROPIC_API_KEY=... # Anthropic (Claude)\nexport XAI_API_KEY=... # xAI (Grok)\nexport OPENROUTER_API_KEY=... # OpenRouter\nexport ALPHA_VANTAGE_API_KEY=... # Alpha Vantage\n```\n\nFor local models, configure Ollama with `llm_provider: \"ollama\"` in your config.\n\nAlternatively, copy `.env.example` to `.env` and fill in your keys:\n```bash\ncp .env.example .env\n```\n\n### CLI Usage\n\nLaunch the interactive CLI:\n```bash\ntradingagents # installed command\npython -m cli.main # alternative: run directly from source\n```\nYou will see a screen where you can select your desired tickers, analysis date, LLM provider, research depth, and more.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. The framework supports multiple LLM providers: OpenAI, Google, Anthropic, xAI, OpenRouter, and Ollama.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"openai\" # openai, google, anthropic, xai, openrouter, ollama\nconfig[\"deep_think_llm\"] = \"gpt-5.2\" # Model for complex reasoning\nconfig[\"quick_think_llm\"] = \"gpt-5-mini\" # Model for quick tasks\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nSee `tradingagents/default_config.py` for all configuration options.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "b19c5c18fb24b4b7a78310f905f619a856cdf2f3": {"t": 1785766198.9050696, "n": 10423, "h": "dce1c29f477dc0b7", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework\n\n## News\n- [2026-03] **TradingAgents v0.2.1** released with GPT-5.4, Gemini 3.1, Claude 4.6 model coverage and improved system stability.\n- [2026-02] **TradingAgents v0.2.0** released with multi-provider LLM support (GPT-5.x, Gemini 3.x, Claude 4.x, Grok 4.x) and improved system architecture.\n- [2026-01] **Trading-R1** [Technical Report](https://arxiv.org/abs/2509.11420) released, with [Terminal](https://github.com/TauricResearch/Trading-R1) expected to land soon.\n\n\n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nTradingAgents supports multiple LLM providers. Set the API key for your chosen provider:\n\n```bash\nexport OPENAI_API_KEY=... # OpenAI (GPT)\nexport GOOGLE_API_KEY=... # Google (Gemini)\nexport ANTHROPIC_API_KEY=... # Anthropic (Claude)\nexport XAI_API_KEY=... # xAI (Grok)\nexport OPENROUTER_API_KEY=... # OpenRouter\nexport ALPHA_VANTAGE_API_KEY=... # Alpha Vantage\n```\n\nFor local models, configure Ollama with `llm_provider: \"ollama\"` in your config.\n\nAlternatively, copy `.env.example` to `.env` and fill in your keys:\n```bash\ncp .env.example .env\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. The framework supports multiple LLM providers: OpenAI, Google, Anthropic, xAI, OpenRouter, and Ollama.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"openai\" # openai, google, anthropic, xai, openrouter, ollama\nconfig[\"deep_think_llm\"] = \"gpt-5.2\" # Model for complex reasoning\nconfig[\"quick_think_llm\"] = \"gpt-5-mini\" # Model for quick tasks\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nSee `tradingagents/default_config.py` for all configuration options.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "80aab35119f1ca08008fc3d4df6ddb074c532c8d": {"t": 1785766200.6190448, "n": 10294, "h": "37740f574d433c8e", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework\n\n## News\n- [2026-02] **TradingAgents v0.2.0** released with multi-provider LLM support (GPT-5.x, Gemini 3.x, Claude 4.x, Grok 4.x) and improved system architecture.\n- [2026-01] **Trading-R1** [Technical Report](https://arxiv.org/abs/2509.11420) released, with [Terminal](https://github.com/TauricResearch/Trading-R1) expected to land soon.\n\n\n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nTradingAgents supports multiple LLM providers. Set the API key for your chosen provider:\n\n```bash\nexport OPENAI_API_KEY=... # OpenAI (GPT)\nexport GOOGLE_API_KEY=... # Google (Gemini)\nexport ANTHROPIC_API_KEY=... # Anthropic (Claude)\nexport XAI_API_KEY=... # xAI (Grok)\nexport OPENROUTER_API_KEY=... # OpenRouter\nexport ALPHA_VANTAGE_API_KEY=... # Alpha Vantage\n```\n\nFor local models, configure Ollama with `llm_provider: \"ollama\"` in your config.\n\nAlternatively, copy `.env.example` to `.env` and fill in your keys:\n```bash\ncp .env.example .env\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. The framework supports multiple LLM providers: OpenAI, Google, Anthropic, xAI, OpenRouter, and Ollama.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"openai\" # openai, google, anthropic, xai, openrouter, ollama\nconfig[\"deep_think_llm\"] = \"gpt-5.2\" # Model for complex reasoning\nconfig[\"quick_think_llm\"] = \"gpt-5-mini\" # Model for quick tasks\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nSee `tradingagents/default_config.py` for all configuration options.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "102b026d23991e522fd5ab7c172293a2466c82d3": {"t": 1785766202.086487, "n": 9891, "h": "bc169066de164b81", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nTradingAgents supports multiple LLM providers. Set the API key for your chosen provider:\n\n```bash\nexport OPENAI_API_KEY=... # OpenAI\nexport GOOGLE_API_KEY=... # Google (Gemini)\nexport ANTHROPIC_API_KEY=... # Anthropic (Claude)\nexport OPENROUTER_API_KEY=... # OpenRouter\nexport ALPHA_VANTAGE_API_KEY=... # Alpha Vantage\n```\n\nFor local models, configure Ollama with `llm_provider: \"ollama\"` in your config.\n\nAlternatively, copy `.env.example` to `.env` and fill in your keys:\n```bash\ncp .env.example .env\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. The framework supports multiple LLM providers: OpenAI, Google, Anthropic, OpenRouter, and Ollama.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"openai\" # openai, google, anthropic, openrouter, ollama\nconfig[\"deep_think_llm\"] = \"gpt-5.2\" # Model for complex reasoning\nconfig[\"quick_think_llm\"] = \"gpt-5-mini\" # Model for quick tasks\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-01-15\")\nprint(decision)\n```\n\nSee `tradingagents/default_config.py` for all configuration options.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "b2ef960da7b82152b043a99e9de25277eb3a5b0e": {"t": 1785766203.376364, "n": 11624, "h": "1db80e77bab6a808", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will need the OpenAI API for all the agents, and [Alpha Vantage API](https://www.alphavantage.co/support/#api-key) for fundamental and news data (default configuration).\n\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\nexport ALPHA_VANTAGE_API_KEY=$YOUR_ALPHA_VANTAGE_API_KEY\n```\n\nAlternatively, you can create a `.env` file in the project root with your API keys (see `.env.example` for reference):\n```bash\ncp .env.example .env\n# Edit .env with your actual API keys\n```\n\n**Note:** We are happy to partner with Alpha Vantage to provide robust API support for TradingAgents. You can get a free AlphaVantage API [here](https://www.alphavantage.co/support/#api-key), TradingAgents-sourced requests also have increased rate limits to 60 requests per minute with no daily limits. Typically the quota is sufficient for performing complex tasks with TradingAgents thanks to Alpha Vantage’s open-source support program. If you prefer to use OpenAI for these data sources instead, you can modify the data vendor settings in `tradingagents/default_config.py`.\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\n\n# Configure data vendors (default uses yfinance and Alpha Vantage)\nconfig[\"data_vendors\"] = {\n \"core_stock_apis\": \"yfinance\", # Options: yfinance, alpha_vantage, local\n \"technical_indicators\": \"yfinance\", # Options: yfinance, alpha_vantage, local\n \"fundamental_data\": \"alpha_vantage\", # Options: openai, alpha_vantage, local\n \"news_data\": \"alpha_vantage\", # Options: openai, alpha_vantage, google, local\n}\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> The default configuration uses yfinance for stock price and technical data, and Alpha Vantage for fundamental and news data. For production use or if you encounter rate limits, consider upgrading to [Alpha Vantage Premium](https://www.alphavantage.co/premium/) for more stable and reliable data access. For offline experimentation, there's a local data vendor option that uses our **Tauric TradingDB**, a curated dataset for backtesting, though this is still in development. We're currently refining this dataset and plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "a5dcc7da452e2840fedea4a4beede3175c8ccd62": {"t": 1785766205.135366, "n": 11513, "h": "3003636a0f4c3728", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will need the OpenAI API for all the agents, and [Alpha Vantage API](https://www.alphavantage.co/support/#api-key) for fundamental and news data (default configuration).\n\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\nexport ALPHA_VANTAGE_API_KEY=$YOUR_ALPHA_VANTAGE_API_KEY\n```\n\nAlternatively, you can create a `.env` file in the project root with your API keys (see `.env.example` for reference):\n```bash\ncp .env.example .env\n# Edit .env with your actual API keys\n```\n\n**Note:** We are happy to partner with Alpha Vantage to provide robust API support for TradingAgents. You can get a free AlphaVantage API [here](https://www.alphavantage.co/support/#api-key). Typically the quota is sufficient for performing complex tasks with TradingAgents thanks to Alpha Vantage’s open-source support program. If you prefer to use OpenAI for these data sources instead, you can modify the data vendor settings in `tradingagents/default_config.py`.\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\n\n# Configure data vendors (default uses yfinance and Alpha Vantage)\nconfig[\"data_vendors\"] = {\n \"core_stock_apis\": \"yfinance\", # Options: yfinance, alpha_vantage, local\n \"technical_indicators\": \"yfinance\", # Options: yfinance, alpha_vantage, local\n \"fundamental_data\": \"alpha_vantage\", # Options: openai, alpha_vantage, local\n \"news_data\": \"alpha_vantage\", # Options: openai, alpha_vantage, google, local\n}\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> The default configuration uses yfinance for stock price and technical data, and Alpha Vantage for fundamental and news data. For production use or if you encounter rate limits, consider upgrading to [Alpha Vantage Premium](https://www.alphavantage.co/premium/) for more stable and reliable data access. For offline experimentation, there's a local data vendor option that uses our **Tauric TradingDB**, a curated dataset for backtesting, though this is still in development. We're currently refining this dataset and plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "b01051b9f478fb054f4c6e93598322df74bd8a46": {"t": 1785766206.4083114, "n": 11472, "h": "746922091dcdb919", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will need the OpenAI API for all the agents, and [Alpha Vantage API](https://www.alphavantage.co/support/#api-key) for fundamental and news data (default configuration).\n\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\nexport ALPHA_VANTAGE_API_KEY=$YOUR_ALPHA_VANTAGE_API_KEY\n```\n\nAlternatively, you can create a `.env` file in the project root with your API keys (see `.env.example` for reference):\n```bash\ncp .env.example .env\n# Edit .env with your actual API keys\n```\n\n**Note:** The default configuration uses [Alpha Vantage](https://www.alphavantage.co/) for fundamental and news data. You can get a free API key from their website, or upgrade to [Alpha Vantage Premium](https://www.alphavantage.co/premium/) for higher rate limits and more stable access. If you prefer to use OpenAI for these data sources instead, you can modify the data vendor settings in `tradingagents/default_config.py`.\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\n\n# Configure data vendors (default uses yfinance and Alpha Vantage)\nconfig[\"data_vendors\"] = {\n \"core_stock_apis\": \"yfinance\", # Options: yfinance, alpha_vantage, local\n \"technical_indicators\": \"yfinance\", # Options: yfinance, alpha_vantage, local\n \"fundamental_data\": \"alpha_vantage\", # Options: openai, alpha_vantage, local\n \"news_data\": \"alpha_vantage\", # Options: openai, alpha_vantage, google, local\n}\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> The default configuration uses yfinance for stock price and technical data, and Alpha Vantage for fundamental and news data. For production use or if you encounter rate limits, consider upgrading to [Alpha Vantage Premium](https://www.alphavantage.co/premium/) for more stable and reliable data access. For offline experimentation, there's a local data vendor option that uses our **Tauric TradingDB**, a curated dataset for backtesting, though this is still in development. We're currently refining this dataset and plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "8fdbbcca3d9aabc7315e6e7659567ac39af9b337": {"t": 1785766207.919066, "n": 10926, "h": "5a5fe02ee9e22b2f", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will also need the [Alpha Vantage API](https://www.alphavantage.co/support/#api-key) for financial data. The free tier supports 25 API calls per day.\n```bash\nexport ALPHA_VANTAGE_API_KEY=$YOUR_ALPHA_VANTAGE_API_KEY\n```\n\nYou will need the OpenAI API for all the agents.\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\n```\n\nAlternatively, you can create a `.env` file in the project root with your API keys (see `.env.example` for reference):\n```bash\ncp .env.example .env\n# Edit .env with your actual API keys\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\n\n# Configure data vendors (default uses Alpha Vantage for real-time data)\nconfig[\"data_vendors\"] = {\n \"core_stock_apis\": \"alpha_vantage\", # Options: alpha_vantage, yahoo_finance, local\n \"technical_indicators\": \"alpha_vantage\", # Options: alpha_vantage, yahoo_finance, local\n \"fundamental_data\": \"alpha_vantage\", # Options: alpha_vantage, openai, local\n \"news_data\": \"alpha_vantage\", # Options: alpha_vantage, openai, google, local\n}\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> The default configuration now uses Alpha Vantage as the primary data provider, which provides access to real-time market data. For offline experimentation, there's a local data vendor option that uses our **Tauric TradingDB**, a curated dataset for backtesting, though this is still in development. We're currently refining this dataset and plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "7fc9c28a94d177851c205d4958be88014d16eba6": {"t": 1785766209.7257135, "n": 10878, "h": "c93ec767a2e64d6d", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will also need the Alpha Vantage API for financial data. The free tier supports 25 API calls per day.\n```bash\nexport ALPHA_VANTAGE_API_KEY=$YOUR_ALPHA_VANTAGE_API_KEY\n```\n\nYou will need the OpenAI API for all the agents.\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\n```\n\nAlternatively, you can create a `.env` file in the project root with your API keys (see `.env.example` for reference):\n```bash\ncp .env.example .env\n# Edit .env with your actual API keys\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\n\n# Configure data vendors (default uses Alpha Vantage for real-time data)\nconfig[\"data_vendors\"] = {\n \"core_stock_apis\": \"alpha_vantage\", # Options: alpha_vantage, yahoo_finance, local\n \"technical_indicators\": \"alpha_vantage\", # Options: alpha_vantage, yahoo_finance, local\n \"fundamental_data\": \"alpha_vantage\", # Options: alpha_vantage, openai, local\n \"news_data\": \"alpha_vantage\", # Options: alpha_vantage, openai, google, local\n}\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> The default configuration now uses Alpha Vantage as the primary data provider, which provides access to real-time market data. For offline experimentation, there's a local data vendor option that uses our **Tauric TradingDB**, a curated dataset for backtesting, though this is still in development. We're currently refining this dataset and plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "7bcc2cbd8aa4ccf05e3a86ea7afae74e1aa2b649": {"t": 1785766211.2755601, "n": 10687, "h": "a99398eaf2e2c591", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will also need the Alpha Vantage API for financial data. The free tier supports 25 API calls per day.\n```bash\nexport ALPHA_VANTAGE_API_KEY=$YOUR_ALPHA_VANTAGE_API_KEY\n```\n\nYou will need the OpenAI API for all the agents.\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\n\n# Configure data vendors (default uses Alpha Vantage for real-time data)\nconfig[\"data_vendors\"] = {\n \"core_stock_apis\": \"alpha_vantage\", # Options: alpha_vantage, yahoo_finance, local\n \"technical_indicators\": \"alpha_vantage\", # Options: alpha_vantage, yahoo_finance, local\n \"fundamental_data\": \"alpha_vantage\", # Options: alpha_vantage, openai, local\n \"news_data\": \"alpha_vantage\", # Options: alpha_vantage, openai, google, local\n}\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> The default configuration now uses Alpha Vantage as the primary data provider, which provides access to real-time market data. For offline experimentation, there's a local data vendor option that uses our **Tauric TradingDB**, a curated dataset for backtesting, though this is still in development. We're currently refining this dataset and plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "0ab323c2c6575d474575a0a623654dec126c55ce": {"t": 1785766212.7399917, "n": 10154, "h": "26392877afbdc197", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will also need the Alpha Vantage API for financial data. The free tier supports 25 API calls per day.\n```bash\nexport ALPHA_VANTAGE_API_KEY=$YOUR_ALPHA_VANTAGE_API_KEY\n```\n\nYou will need the OpenAI API for all the agents.\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> We recommend enabling them for experimentation, as they provide access to real-time data. The agents' offline tools rely on cached data from our **Tauric TradingDB**, a curated dataset we use for backtesting. We're currently in the process of refining this dataset, and we plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "a6734d71bcca0543296bc2f202a2c98dbf74612f": {"t": 1785766214.1716354, "n": 10142, "h": "f56d4121725ece46", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will also need the FinnHub API for financial data. All of our code is implemented with the free tier.\n```bash\nexport FINNHUB_API_KEY=$YOUR_FINNHUB_API_KEY\n```\n\nYou will need the OpenAI API for all the agents.\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> We recommend enabling them for experimentation, as they provide access to real-time data. The agents' offline tools rely on cached data from our **Tauric TradingDB**, a curated dataset we use for backtesting. We're currently in the process of refining this dataset, and we plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "26c5ba5a786e1da47c90b014faad889d759f6c76": {"t": 1785766215.5351756, "n": 10226, "h": "001c7603ca2e7bbf", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will also need the FinnHub API for financial data. All of our code is implemented with the free tier.\n```bash\nexport FINNHUB_API_KEY=$YOUR_FINNHUB_API_KEY\n```\n\nYou will need the OpenAI API for all the agents.\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\nconfig[\"online_tools\"] = True # Use online tools or cached data\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> For `online_tools`, we recommend enabling them for experimentation, as they provide access to real-time data. The agents' offline tools rely on cached data from our **Tauric TradingDB**, a curated dataset we use for backtesting. We're currently in the process of refining this dataset, and we plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "78ea029a0bbe3ea23c0016c1f54d022bc8c28459": {"t": 1785766217.2023344, "n": 10323, "h": "78f2144f1b821be3", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will also need the FinnHub API for financial data. All of our code is implemented with the free tier.\n```bash\nexport FINNHUB_API_KEY=$YOUR_FINNHUB_API_KEY\n```\n\nYou will need the OpenAI API for all the agents.\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\nconfig[\"online_tools\"] = True # Use online tools or cached data\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> For `online_tools`, we recommend enabling them for experimentation, as they provide access to real-time data. The agents' offline tools rely on cached data from our **Tauric TradingDB**, a curated dataset we use for backtesting. We're currently in the process of refining this dataset, and we plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Docker usage and local ollama tests ##\n\nSee [Docker Readme](./Docker-readme.md) for details.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "383deb72aac77d898c11e9bbbf5bfd17790a5371": {"t": 1785766218.5347402, "n": 10226, "h": "001c7603ca2e7bbf", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will also need the FinnHub API for financial data. All of our code is implemented with the free tier.\n```bash\nexport FINNHUB_API_KEY=$YOUR_FINNHUB_API_KEY\n```\n\nYou will need the OpenAI API for all the agents.\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\nconfig[\"online_tools\"] = True # Use online tools or cached data\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> For `online_tools`, we recommend enabling them for experimentation, as they provide access to real-time data. The agents' offline tools rely on cached data from our **Tauric TradingDB**, a curated dataset we use for backtesting. We're currently in the process of refining this dataset, and we plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "a87986839632535a61bdd1383e8c9f81dd3a87da": {"t": 1785766220.098545, "n": 10226, "h": "8837e7f41734382b", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n
\n \n Deutsch | \n Español | \n français | \n 日本語 | \n 한국어 | \n Português | \n Русский | \n 中文\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will also need the FinnHub API for financial data. All of our code is implemented with the free tier.\n```bash\nexport FINNHUB_API_KEY=$YOUR_FINNHUB_API_KEY\n```\n\nYou will need the OpenAI API for all the agents.\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\nconfig[\"online_tools\"] = True # Use online tools or cached data\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> For `online_tools`, we recommend enabling them for experimentation, as they provide access to real-time data. The agents' offline tools rely on cached data from our **Tauric TradingDB**, a curated dataset we use for backtesting. We're currently in the process of refining this dataset, and we plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "0013415378dc83f45f7cf56d3457f6bcef381b90": {"t": 1785766221.309299, "n": 9389, "h": "f6abba2404220012", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will also need the FinnHub API for financial data. All of our code is implemented with the free tier.\n```bash\nexport FINNHUB_API_KEY=$YOUR_FINNHUB_API_KEY\n```\n\nYou will need the OpenAI API for all the agents.\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\nconfig[\"online_tools\"] = True # Use online tools or cached data\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> For `online_tools`, we recommend enabling them for experimentation, as they provide access to real-time data. The agents' offline tools rely on cached data from our **Tauric TradingDB**, a curated dataset we use for backtesting. We're currently in the process of refining this dataset, and we plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "0fdfd3586784193d7dc69bfa7bc0b4f2002caca2": {"t": 1785766223.3014958, "n": 8807, "h": "dbe9feedfe257ad3", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will also need the FinnHub API for financial data. All of our code is implemented with the free tier.\n```bash\nexport FINNHUB_API_KEY=$YOUR_FINNHUB_API_KEY\n```\n\nYou will need the OpenAI API for all the agents.\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\nta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\nconfig[\"online_tools\"] = True # Use online tools or cached data\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> For `online_tools`, we recommend enabling them for experimentation, as they provide access to real-time data. The agents' offline tools rely on cached data from our **Tauric TradingDB**, a curated dataset we use for backtesting. We're currently in the process of refining this dataset, and we plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "e994e56c23889f4e223659c2d0017f8d1714597d": {"t": 1785766225.1904638, "n": 8736, "h": "11ab460f40aa22fc", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will also need the FinnHub API for financial data. All of our code is implemented with the free tier.\n```bash\nexport FINNHUB_API_KEY=$YOUR_FINNHUB_API_KEY\n```\n\nYou will need the OpenAI API for all the agents.\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\n\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\nconfig[\"online_tools\"] = True # Use online tools or cached data\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> For `online_tools`, we recommend enabling them for experimentation, as they provide access to real-time data. The agents' offline tools rely on cached data from our **Tauric TradingDB**, a curated dataset we use for backtesting. We're currently in the process of refining this dataset, and we plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}, "cc97cb6d5deb10eac370db0c6678e2796a62eba8": {"t": 1785766226.7445476, "n": 8750, "h": "9929c3e5a61c8710", "c": "

\n \n

\n\n
\n \"arXiv\"\n \"Discord\"\n \"WeChat\"\n \"X\n
\n \"Community\"\n
\n\n---\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework \n\n> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.\n>\n> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!\n\n
\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https://www.youtube.com/watch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n
\n\n## TradingAgents Framework\n\nTradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.\n\n

\n \n

\n\n> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)\n\nOur framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.\n- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.\n- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.\n\n

\n \n

\n\n### Researcher Team\n- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.\n\n

\n \n

\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.\n\n

\n \n

\n\n### Risk Management and Portfolio Manager\n- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.\n- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n

\n \n

\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https://github.com/TauricResearch/TradingAgents.git\ncd TradingAgents\n```\n\nCreate a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### Required APIs\n\nYou will also need the FinnHub API and EODHD API for financial data. All of our code is implemented with the free tier.\n```bash\nexport FINNHUB_API_KEY=$YOUR_FINNHUB_API_KEY\n```\n\nYou will need the OpenAI API for all the agents.\n```bash\nexport OPENAI_API_KEY=$YOUR_OPENAI_API_KEY\n```\n\n### CLI Usage\n\nYou can also try out the CLI directly by running:\n```bash\npython -m cli.main\n```\nYou will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.\n\n

\n \n

\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n

\n \n

\n\n

\n \n

\n\n## TradingAgents Package\n\n### Implementation Details\n\nWe built TradingAgents with LangGraph to ensure flexibility and modularity. We utilize `o1-preview` and `gpt-4o` as our deep thinking and fast thinking LLMs for our experiments. However, for testing purposes, we recommend you use `o4-mini` and `gpt-4.1-mini` to save on costs as our framework makes **lots of** API calls.\n\n### Python Usage\n\nTo use TradingAgents inside your code, you can import the `tradingagents` module and initialize a `TradingAgentsGraph()` object. The `.propagate()` function will return a decision. You can run `main.py`, here's also a quick example:\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\n\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\nYou can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.\n\n```python\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\nfrom tradingagents.default_config import DEFAULT_CONFIG\n\n# Create a custom config\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"deep_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"quick_think_llm\"] = \"gpt-4.1-nano\" # Use a different model\nconfig[\"max_debate_rounds\"] = 1 # Increase debate rounds\nconfig[\"online_tools\"] = True # Use online tools or cached data\n\n# Initialize with custom config\nta = TradingAgentsGraph(debug=True, config=config)\n\n# forward propagate\n_, decision = ta.propagate(\"NVDA\", \"2024-05-10\")\nprint(decision)\n```\n\n> For `online_tools`, we recommend enabling them for experimentation, as they provide access to real-time data. The agents' offline tools rely on cached data from our **Tauric TradingDB**, a curated dataset we use for backtesting. We're currently in the process of refining this dataset, and we plan to release it soon alongside our upcoming projects. Stay tuned!\n\nYou can view the full list of configurations in `tradingagents/default_config.py`.\n\n## Contributing\n\nWe welcome contributions from the community! Whether it's fixing a bug, improving documentation, or suggesting a new feature, your input helps make this project better. If you are interested in this line of research, please consider joining our open-source financial AI research community [Tauric Research](https://tauric.ai/).\n\n## Citation\n\nPlease reference our work if you find *TradingAgents* provides you with some help :)\n\n```\n@misc{xiao2025tradingagentsmultiagentsllmfinancial,\n title={TradingAgents: Multi-Agents LLM Financial Trading Framework}, \n author={Yijia Xiao and Edward Sun and Di Luo and Wei Wang},\n year={2025},\n eprint={2412.20138},\n archivePrefix={arXiv},\n primaryClass={q-fin.TR},\n url={https://arxiv.org/abs/2412.20138}, \n}\n```\n"}}}}