trading-agents
БесплатноБез исполняемых скриптовНе проверенTradingAgents is an open-source multi-agent LLM framework that analyzes a stock or crypto ticker with analyst, bull/bear researcher, trader, risk and…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
TradingAgents — Multi-Agent LLM Financial Trading Framework
Overview
TauricResearch/TradingAgents (Apache-2.0, built on LangGraph, v0.7.0 of 2026-10-16 when checked) models a trading firm: analysts (market/technical, social/sentiment, news, fundamentals) work in parallel, a bull and a bear researcher debate, a trader proposes a plan, a risk team challenges it and a portfolio manager approves or rejects. Past decisions are scored against later prices and fed back as memory. It is a research tool, not investment advice.
Analysts: Market | Sentiment | News | Fundamentals (parallel)
|
Researchers: Bull <-debate-> Bear -> Trader
|
Risk team -> Portfolio Manager -> rated decision
Instructions
1. Install
The package is not on PyPI. Install from a clone (Python 3.11 or newer), or from the wheel attached to a GitHub release:
git clone https://github.com/TauricResearch/TradingAgents.git
cd TradingAgents
python3 -m venv .venv && source .venv/bin/activate
pip install .
Docker alternative: cp .env.example .env, add keys, then docker compose run --rm tradingagents.
2. Configure provider and models
Set the API key of one provider (OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, XAI_API_KEY, DEEPSEEK_API_KEY, OPENROUTER_API_KEY, MISTRAL_API_KEY, GROQ_API_KEY and others; FRED_API_KEY and ALPHA_VANTAGE_API_KEY are optional data keys). Everything else is set with TRADINGAGENTS_* variables, which override DEFAULT_CONFIG:
| Variable | Config key | Meaning |
|---|---|---|
TRADINGAGENTS_LLM_PROVIDER |
llm_provider |
openai, anthropic, google, ollama, bedrock, chatgpt, openai_compatible, ... |
TRADINGAGENTS_QUICK_THINK_LLM |
quick_think_llm |
model for analysts, researchers, trader |
TRADINGAGENTS_DEEP_THINK_LLM |
deep_think_llm |
model for the managers |
TRADINGAGENTS_MAX_DEBATE_ROUNDS |
max_debate_rounds |
bull/bear rounds (default 1) |
TRADINGAGENTS_MAX_RISK_ROUNDS |
max_risk_discuss_rounds |
risk-team rounds (default 1) |
TRADINGAGENTS_OUTPUT_LANGUAGE |
output_language |
language of reports |
TRADINGAGENTS_RESULTS_DIR |
results_dir |
where reports go (default ~/.tradingagents/logs) |
Each tier can use its own provider (TRADINGAGENTS_QUICK_THINK_PROVIDER, TRADINGAGENTS_DEEP_THINK_PROVIDER). Model names come from the provider's current catalog; the shipped defaults are gpt-6-luna (quick) and gpt-6-sol (deep). Data comes from yfinance, SEC EDGAR (fundamentals), FRED and Polymarket by default; change vendors in the data_vendors config dict.
3. Run from the CLI
tradingagents opens an interactive screen (ticker, date, analysts, provider, depth). For scripts and cron, pass flags and the rest through variables:
export TRADINGAGENTS_LLM_PROVIDER=openai TRADINGAGENTS_QUICK_THINK_LLM=gpt-6-luna TRADINGAGENTS_DEEP_THINK_LLM=gpt-6-sol
tradingagents --ticker NVDA --date 2026-09-23 --analysts market,news,fundamentals --save --no-show
Other flags: --checkpoint (resume a crashed run), --portfolio holdings.json (size against your real position), --html/--no-html. Subcommands: tradingagents backtest NVDA,AAPL --start 2026-06-01 --end 2026-09-01 --every 7 scores past decisions over a ticker/date grid (--start and --end are required); tradingagents login chatgpt signs in a ChatGPT Plus/Pro plan for the chatgpt provider. Tickers use Yahoo Finance symbols: AAPL, 0700.HK, 7203.T, BTC-USD.
4. Use from Python
from tradingagents.graph.trading_graph import TradingAgentsGraph
from tradingagents.default_config import DEFAULT_CONFIG
config = DEFAULT_CONFIG.copy()
config["max_debate_rounds"] = 2
ta = TradingAgentsGraph(selected_analysts=("market", "news", "fundamentals"), debug=True, config=config)
state, decision = ta.propagate("NVDA", "2026-09-01") # (ticker, analysis date); pass asset_type="crypto" for BTC-USD
print(decision) # Buy, Overweight, Hold, Underweight, Sell, or REVIEW when no rating could be parsed
ta.save_reports(state, "NVDA") # report tree under results_dir/reports
5. Build a lighter pipeline yourself
For a custom, smaller version of the same idea, this LangGraph graph (tested with a stub LLM: 7 model calls, analysts in parallel, one risk and one portfolio step) uses real price data and passes facts, not guesses, to the agents. Install langgraph langchain-anthropic yfinance.
import os
from typing import TypedDict
import yfinance as yf
from langchain_anthropic import ChatAnthropic
from langgraph.graph import StateGraph, START, END
class TradingState(TypedDict, total=False):
ticker: str
fundamentals: str
technicals: str
news: str
bull: str
bear: str
risk: str
decision: str
def build_graph(llm):
def ask(prompt: str) -> str:
return llm.invoke(prompt).content
def fundame
Установить trading-agents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл trading-agents?
TradingAgents is an open-source multi-agent LLM framework that analyzes a stock or crypto ticker with analyst, bull/bear researcher, trader, risk and portfolio-manager agents and returns a rated trading decision. Use when running TradingAgents from its CLI or Python API, configuring its LLM providers and data vendors, backtesting its past decisions, or building a similar multi-agent financial analysis pipeline with LangGraph.
Как установить скилл trading-agents?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл trading-agents запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic