[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114672":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":14,"stars30d":15,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":16,"rankGlobal":8,"rankLanguage":8,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":8,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":13,"starSnapshotCount":13,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},114672,"TradingAgents-crypto","Dart-veider01\u002FTradingAgents-crypto","Dart-veider01",null,"Python",135,82,126,0,1,15,44.31,"Apache License 2.0",false,"main",true,[],"2026-11-15 11:01:37","2026-11-23 20:48:28","\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002FTauricResearch.png\" width=\"280\" alt=\"TradingAgents\">\n  &nbsp;&nbsp;&nbsp;\n  \u003Cimg src=\"assets\u002Fbyttrade\u002Flogo_byt.svg\" width=\"96\" alt=\"BYTtrade\">\n\u003C\u002Fp>\n\n# TradingAgents Crypto\n\nA multi-agent research desk for crypto. Analysts, a bull and bear debate, risk, and a portfolio manager land on Buy, Hold, or Sell. This fork sends that decision to an exchange through [bytx](https:\u002F\u002Fgithub.com\u002Fbyttrade\u002Fbytx) by [BYTtrade](https:\u002F\u002Fbyttrade.com).\n\n**English** | [Русский](docs\u002FREADME.ru.md) | [中文](docs\u002FREADME.zh-CN.md) | [Español](docs\u002FREADME.es.md) | [Português](docs\u002FREADME.pt-BR.md) | [日本語](docs\u002FREADME.ja.md) | [한국어](docs\u002FREADME.ko.md) | [Türkçe](docs\u002FREADME.tr.md)\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FTauricResearch\u002FTradingAgents\">\u003Cimg alt=\"Upstream\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fupstream-TauricResearch%2FTradingAgents-111\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fbytx\u002F\">\u003Cimg alt=\"bytx\" src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fbytx?label=bytx\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2412.20138\">\u003Cimg alt=\"arXiv\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FarXiv-2412.20138-B31B1B?logo=arxiv\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n## Two layers\n\nResearch stays with TradingAgents. Execution is bytx: one call on Binance, Bybit, OKX, BingX, KuCoin, Bitget, and more. The driver is off by default. When you turn it on, orders go to the exchange demo until you choose live.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fschema.png\" width=\"100%\" alt=\"TradingAgents agent desk\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fbyttrade\u002Fone_api.gif\" width=\"100%\" alt=\"One bytx API for every exchange\">\n\u003C\u002Fp>\n\n| Research | Execution |\n|---|---|\n| Yahoo prices and news, Reddit, StockTwits | Market order, or a post-only limit near the market |\n| Buy and Overweight open a long | Underweight and Sell close the position |\n| Hold and REVIEW send nothing | Equities are skipped; only crypto is sent |\n| Stop and target come from the agents | OKX, KuCoin, Bitget, and BloFin need a passphrase |\n\nDesk diagrams are from [TauricResearch\u002FTradingAgents](https:\u002F\u002Fgithub.com\u002FTauricResearch\u002FTradingAgents). Execution frames and the BYT mark are from [BYTtrade](https:\u002F\u002Fbyttrade.com) and [byttrade\u002Fbytx](https:\u002F\u002Fgithub.com\u002Fbyttrade\u002Fbytx).\n\n## Who decides\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fanalyst.png\" width=\"48%\" alt=\"Analyst team\">\n  \u003Cimg src=\"assets\u002Fresearcher.png\" width=\"48%\" alt=\"Researchers\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Ftrader.png\" width=\"48%\" alt=\"Trader\">\n  \u003Cimg src=\"assets\u002Frisk.png\" width=\"48%\" alt=\"Risk and portfolio manager\">\n\u003C\u002Fp>\n\nAnalysts read candles, indicators, and news. Bulls and bears debate. The trader proposes a transaction. The portfolio manager sets the final rating. Crypto runs skip the fundamentals analyst: a coin has no company filings.\n\n## How the order reaches the exchange\n\nA limit within 20 basis points of the market is sent post-only, so it does not cross the spread. A limit farther away stays a normal limit. With no entry price the order is a market order. The default size is 100 USDT. It is raised to the venue minimum, and never more than three times the size you asked for.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fbyttrade\u002Forder_book.gif\" width=\"78%\" alt=\"bytx order book\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fbyttrade\u002Fpaper.gif\" width=\"78%\" alt=\"bytx paper trading\">\n\u003C\u002Fp>\n\n## Run\n\n```bash\npip install \".[bytx]\"\n```\n\n```env\nBYTX_API_KEY=\nBYTX_SECRET=\nBYTX_PASSWORD=\nBYTX_EXCHANGE=bybit\nTRADINGAGENTS_EXECUTION_ENABLED=true\nTRADINGAGENTS_EXECUTION_DEMO=true\nTRADINGAGENTS_EXECUTION_NOTIONAL=100\n```\n\n`BYTX_PASSWORD` is the API passphrase. Only OKX, KuCoin, Bitget, and BloFin require it. Bybit and Binance need the key and the secret.\n\n```bash\ntradingagents --ticker BTC-USD --execute\n```\n\n```python\nfrom tradingagents.default_config import DEFAULT_CONFIG\nfrom tradingagents.graph.trading_graph import TradingAgentsGraph\n\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"execution\"][\"enabled\"] = True\nconfig[\"execution\"][\"demo\"] = True\n\nta = TradingAgentsGraph(debug=True, config=config)\nstate, decision = ta.propagate(\"BTC-USD\", \"2026-11-14\", asset_type=\"crypto\")\nprint(decision, state.get(\"execution_result\"))\n```\n\nPaper trading needs no keys: `config[\"execution\"][\"paper\"] = True`. This is not financial advice. Live trading can lose money.\n\n---\n\n# Upstream documentation\n\nThe rest of this page is the original [TradingAgents](https:\u002F\u002Fgithub.com\u002FTauricResearch\u002FTradingAgents) documentation from Tauric Research.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"tradingagents\u002Fassets\u002Ftauric-logo.svg\" width=\"60%\" alt=\"Tauric Research\">\n\u003C\u002Fp>\n\n# TradingAgents: Multi-Agents LLM Financial Trading Framework\n\n\u003Cdiv align=\"center\" style=\"line-height: 1;\">\n  \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2412.20138\" target=\"_blank\">\u003Cimg alt=\"arXiv\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FarXiv-2412.20138-B31B1B?logo=arxiv\"\u002F>\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fdiscord.com\u002Finvite\u002Fhk9PGKShPK\" target=\"_blank\">\u003Cimg alt=\"Discord\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDiscord-TradingResearch-7289da?logo=discord&logoColor=white&color=7289da\"\u002F>\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fx.com\u002FTauricResearch\" target=\"_blank\">\u003Cimg alt=\"X Follow\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FX-TauricResearch-white?logo=x&logoColor=white\"\u002F>\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FTauricResearch\u002F\" target=\"_blank\">\u003Cimg alt=\"Community\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FGitHub_Community-TauricResearch-14C290?logo=discourse\"\u002F>\u003C\u002Fa>\n\u003C\u002Fdiv>\n\n\u003Cbr>\n\u003Cdiv align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FTauricResearch\" target=\"_blank\">\u003Cimg alt=\"TradingAgents #1 Repository of the Day\" src=\"https:\u002F\u002Ftrendshift.io\u002Fapi\u002Fbadge\u002Frepositories\u002F16192\" width=\"250\" height=\"55\"\u002F>\u003C\u002Fa>\n\u003C\u002Fdiv>\n\n## Latest: [Trading-R1](https:\u002F\u002Fgithub.com\u002FTauricResearch\u002FTrading-R1) is now in early access\n\nAfter so many requests from the community, Trading-R1 has officially launched!\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FTauricResearch\u002FTrading-R1\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FTauricResearch\u002FTrading-R1\u002Fmain\u002Fassets\u002Ftrading-r1.gif\" alt=\"Trading-R1 answering a research question in the terminal\" width=\"100%\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Ch3 align=\"center\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FTauricResearch\u002FTrading-R1\" target=\"_blank\">Register for early access ↗\u003C\u002Fa>\u003C\u002Fh3>\n\n## News\n\n\u003C!-- news:start -->\n- [2026-11] **Trading-R1 v0.1.0** released, and [early access](https:\u002F\u002Fgithub.com\u002FTauricResearch\u002FTrading-R1) is open.\n- [2026-10] **TradingAgents v0.7.1** released with decisions scored only on final closes and settled across long market holidays, a fix for model dates that could read filings made after the run date, and fixes to portfolios, prices, SEC statements and reports.\n- [2026-10] **TradingAgents v0.7.0** released with runs on your own ChatGPT Plus or Pro plan, backtests scored from the first close after each decision, a note at start-up when a newer release is out, and a wheel attached to each GitHub release.\n\n\u003Cdetails>\n\u003Csummary>Earlier news\u003C\u002Fsummary>\n\n- [2026-10] **TradingAgents v0.6.0** released with reports saved as one HTML page, a provider per model tier so the managers and analysts can run on different models, past decisions settled for every ticker while the analysts work, and company news read from Yahoo search while Yahoo's news feed is down.\n- [2026-09] **TradingAgents v0.5.2** released with parallel analysts for a faster analysis, a CLI that runs without prompts from flags such as `--ticker` and `--date`, the run's settings recorded in every report, and backtests that see only data published by each analysis date.\n- [2026-09] **TradingAgents v0.5.1** released with a package layout organised by what each module holds (import paths moved), optional Jev screening of social posts, GPT-6 Sol and Luna as the default models, and fixes to run isolation and SEC EDGAR statements.\n- [2026-09] **TradingAgents v0.5.0** released with point-in-time integrity across every dated path, SEC EDGAR fundamentals served as filed, backtesting over a ticker and date grid, portfolio-aware runs, and current model lineups across every provider.\n- [2026-08] **TradingAgents v0.4.0** released with look-ahead \u002F point-in-time fixes across FRED macro, social sentiment, and the decision-log memory; clearer decision signals; working CLI checkpoint resume; Trader price grounding; and the GPT-5.6 and GLM-5.3 models.\n- [2026-07] **TradingAgents v0.3.1** released with correctness and stability fixes: Alpha Vantage look-ahead filtering, graph-router crash-safety, graph-shape-aware checkpoint resume, working crypto sentiment sources, a configurable LLM retry budget, Bedrock API-key auth, and Claude Sonnet 5 \u002F Fable 5 support.\n- [2026-06] **TradingAgents v0.3.0** released with a verified data-access contract, an expanded provider registry (NVIDIA, Kimi, Groq, Mistral, Bedrock, and any OpenAI-compatible endpoint), FRED and Polymarket data vendors, a current-generation model catalog, and a CI gate.\n- [2026-05] **TradingAgents v0.2.5** released with the grounded Sentiment Analyst, GPT-5.5 etc. model coverage, Qwen\u002FGLM\u002FMiniMax dual-region support, `TRADINGAGENTS_*` env-var configurability with API-key auto-detection, remote Ollama support, non-US alpha benchmarks, and ticker path-traversal hardening.\n- [2026-04] **TradingAgents v0.2.4** released with structured-output agents (Research Manager, Trader, Portfolio Manager), LangGraph checkpoint resume, persistent decision log, DeepSeek\u002FQwen\u002FGLM\u002FAzure provider support, Docker, and a Windows UTF-8 encoding fix.\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\u002FGemini 3.1\u002FClaude 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:\u002F\u002Farxiv.org\u002Fabs\u002F2509.11420) released, with [Terminal](https:\u002F\u002Fgithub.com\u002FTauricResearch\u002FTrading-R1) expected to land soon.\n\n\u003C\u002Fdetails>\n\u003C!-- news:end -->\n\n\u003Cdiv align=\"center\">\n\n🚀 [TradingAgents](#tradingagents-framework) | ⚡ [Installation & CLI](#installation-and-cli) | 🎬 [Demo](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=90gr5lwjIho) | 📦 [Package Usage](#tradingagents-package) | 🤝 [Contributing](#contributing) | 📄 [Citation](#citation)\n\n\u003C\u002Fdiv>\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## 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\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fschema.png\" style=\"width: 100%; height: auto;\">\n\u003C\u002Fp>\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:\u002F\u002Ftauric.ai\u002Fdisclaimer\u002F)\n\nOur framework decomposes complex trading tasks into specialized roles.\n\n### Analyst Team\n- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.\n- Sentiment Analyst: Aggregates news headlines, StockTwits, and Reddit chatter into a single sentiment read 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\nThe selected analysts work at the same time, each on its own tools, and the research debate starts once all of their reports are in.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fanalyst.png\" width=\"100%\" style=\"display: inline-block; margin: 0 2%;\">\n\u003C\u002Fp>\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\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fresearcher.png\" width=\"70%\" style=\"display: inline-block; margin: 0 2%;\">\n\u003C\u002Fp>\n\n### Trader Agent\n- Composes reports from the analysts and researchers to make informed trading decisions, determining the timing and magnitude of trades.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Ftrader.png\" width=\"70%\" style=\"display: inline-block; margin: 0 2%;\">\n\u003C\u002Fp>\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\u002Frejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Frisk.png\" width=\"70%\" style=\"display: inline-block; margin: 0 2%;\">\n\u003C\u002Fp>\n\n## Installation and CLI\n\n### Installation\n\nClone TradingAgents:\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FTauricResearch\u002FTradingAgents.git\ncd TradingAgents\n```\n\nTradingAgents needs Python 3.11 or later. Create a virtual environment in any of your favorite environment managers:\n```bash\nconda create -n tradingagents python=3.13\nconda activate tradingagents\n```\n\nOr with [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F):\n```bash\nuv venv --python 3.13\nsource .venv\u002Fbin\u002Factivate\n```\n\nInstall the package and its dependencies (`uv pip install .` with uv):\n```bash\npip install .\n```\n\nFor **live \u002F demo crypto execution** after a decision (bytx driver):\n```bash\npip install \".[bytx]\"\n# or: pip install bytx\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\nAfter updating the repository, rebuild the image with `docker compose build`.\n\nResults, reports, the memory log and the cache live in the `tradingagents_data` volume. To keep them in a folder on the host instead, create the folder and point `TRADINGAGENTS_DATA_DIR` at it, in `.env` or the shell: `mkdir -p data && TRADINGAGENTS_DATA_DIR=.\u002Fdata docker compose run --rm tradingagents`.\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 (international, dashscope-intl.aliyuncs.com)\nexport DASHSCOPE_CN_API_KEY=...    # Qwen (China, dashscope.aliyuncs.com)\nexport ZHIPU_API_KEY=...           # GLM via Z.AI (international)\nexport ZHIPU_CN_API_KEY=...        # GLM via BigModel (China, open.bigmodel.cn)\nexport MINIMAX_API_KEY=...         # MiniMax (global, api.minimax.io)\nexport MINIMAX_CN_API_KEY=...      # MiniMax (China, api.minimaxi.com)\nexport OPENROUTER_API_KEY=...      # OpenRouter\nexport MISTRAL_API_KEY=...         # Mistral\nexport MOONSHOT_API_KEY=...        # Kimi (Moonshot)\nexport GROQ_API_KEY=...            # Groq\nexport NVIDIA_API_KEY=...          # NVIDIA NIM\nexport FRED_API_KEY=...            # FRED macro data (free, optional)\nexport ALPHA_VANTAGE_API_KEY=...   # Alpha Vantage\nexport TYPESAFE_API_KEY=...        # Jev social-post screening (optional)\n```\n\nFor Azure OpenAI, copy `.env.enterprise.example` to `.env.enterprise` and fill in your credentials. With Docker, put these keys in `.env` instead: the image does not include `.env` files.\n\nTo run on your ChatGPT Plus or Pro plan instead of an API key, choose \"Subscription\" in the CLI's provider menu, or set `llm_provider: \"chatgpt\"`. Sign in once with `tradingagents login chatgpt`: it prints an address to open in your browser, which returns to this machine on `127.0.0.1`. When the browser runs on another machine, or TradingAgents runs in Docker (`docker compose run --rm tradingagents login chatgpt`), paste the address the browser ends up on. The sign-in is kept in `~\u002F.tradingagents\u002Fchatgpt-auth.json`, and `tradingagents logout chatgpt` revokes it. Runs count toward your plan's usage limits, and the plan does not accept `temperature` or `max_tokens`.\n\nFor AWS Bedrock, install the extra with `pip install \".[bedrock]\"`, set `llm_provider: \"bedrock\"`, configure AWS credentials (environment variables, `~\u002F.aws\u002Fcredentials`, or an IAM role) and `AWS_DEFAULT_REGION`, and use a Bedrock model ID, e.g. `us.anthropic.claude-opus-5-5`.\n\nFor local models, configure Ollama with `llm_provider: \"ollama\"`. The default endpoint is `http:\u002F\u002Flocalhost:11434\u002Fv1`; set `OLLAMA_BASE_URL` to point at a remote `ollama-serve`. Pull models with `ollama pull \u003Cname>`, and pick \"Custom model ID\" in the CLI for any model not listed by default.\n\nFor any other OpenAI-compatible server (vLLM, LM Studio, llama.cpp, or a custom relay), use `llm_provider: \"openai_compatible\"` and set the endpoint via `backend_url` (or `TRADINGAGENTS_LLM_BACKEND_URL`), e.g. `http:\u002F\u002Flocalhost:8000\u002Fv1` for vLLM or `http:\u002F\u002Flocalhost:1234\u002Fv1` for LM Studio. The model is whatever your server serves. No key is needed for local servers; set `OPENAI_COMPATIBLE_API_KEY` when the endpoint requires one.\n\nWith `TYPESAFE_API_KEY` set, the Sentiment Analyst screens StockTwits and Reddit posts with TypeSafe's Jev before reading them. Posts that are not about the company are dropped, and each source opens with a count of the remaining posts by stance: bullish, bearish, neutral, or unclear. Without the key, posts pass through unscreened. `jev-latest` moves with new releases; set `TYPESAFE_DEFAULT_MODEL` to a versioned ID such as `jev-1.13.0` to hold it fixed across runs. To reach Jev through OpenRouter, put an OpenRouter key in `TYPESAFE_API_KEY` and set `TYPESAFE_BASE_URL=https:\u002F\u002Fopenrouter.ai\u002Fapi`.\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. Your previous run's answers come back as the defaults, so pressing Enter accepts them. The `TRADINGAGENTS_*` variables in `.env` still skip their step entirely.\n\nTo run without questions, for a scheduled job or a script, answer the per-run steps with flags and the rest with `TRADINGAGENTS_*` variables:\n```bash\nexport TRADINGAGENTS_LLM_PROVIDER=openai TRADINGAGENTS_QUICK_THINK_LLM=gpt-6-luna TRADINGAGENTS_DEEP_THINK_LLM=gpt-6-sol\nexport TRADINGAGENTS_OUTPUT_LANGUAGE=English TRADINGAGENTS_MAX_DEBATE_ROUNDS=1 TRADINGAGENTS_MAX_RISK_ROUNDS=1\ntradingagents --ticker NVDA --date 2026-09-23 --analysts market,news,fundamentals --save --no-show\n```\nEach flag skips only its own question. Run without a terminal, a missing answer stops the run before it starts and names the flag or variable to set.\n\nAt start-up the interactive CLI mentions a newer release and notices from Tauric Research. It checks at most once a day, in the background, and sends nothing about your runs; set `TRADINGAGENTS_NO_UPDATE_CHECK=1` to turn it off. Runs without a terminal never check.\n\nA saved report also includes `complete_report.html`, the report as one page with its sections listed beside the text, for reading in a browser, on a phone or in print. Answering the save question at the prompt also asks about the page and can open it in your browser; `--no-html` skips it, and so does `ta.save_reports(state, \"NVDA\", html=False)` from Python.\n\n### Markets and tickers\n\nTradingAgents works with any market Yahoo Finance covers, using the exchange-suffixed ticker. Company identity and the alpha benchmark resolve automatically per market.\n\n- US: `AAPL`, `SPY`\n- Hong Kong: `0700.HK` · Tokyo: `7203.T` · London: `AZN.L`\n- India: `RELIANCE.NS`, `.BO` · Canada: `.TO` · Australia: `.AX`\n- China A-shares: Shanghai `.SS`, Shenzhen `.SZ` (e.g. `600519.SS` for Kweichow Moutai)\n- Crypto: `BTC-USD`, `ETH-USD`\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fcli\u002Fcli_init.png\" width=\"100%\" style=\"display: inline-block; margin: 0 2%;\">\n\u003C\u002Fp>\n\nAn interface will appear showing results as they load, letting you track the agent's progress as it runs.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fcli\u002Fcli_news.png\" width=\"100%\" style=\"display: inline-block; margin: 0 2%;\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fcli\u002Fcli_transaction.png\" width=\"100%\" style=\"display: inline-block; margin: 0 2%;\">\n\u003C\u002Fp>\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, international and China endpoints), GLM (Zhipu), MiniMax (global + China), OpenRouter, Ollama for local models, Azure OpenAI for enterprise, and your own ChatGPT plan.\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\nstate, decision = ta.propagate(\"NVDA\", \"2026-09-01\")\nprint(decision)\n\n# the same report tree the CLI saves, under results_dir\u002Freports\nta.save_reports(state, \"NVDA\")\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\"        # e.g. openai, google, anthropic, deepseek, groq, ollama; openai_compatible covers any OpenAI-compatible endpoint (vLLM, LM Studio, llama.cpp, ...)\nconfig[\"deep_think_llm\"] = \"gpt-6-sol\"    # Model for complex reasoning\nconfig[\"quick_think_llm\"] = \"gpt-6-luna\"   # Model for quick tasks\nconfig[\"max_debate_rounds\"] = 2\n\nta = TradingAgentsGraph(debug=True, config=config)\n_, decision = ta.propagate(\"NVDA\", \"2026-09-01\")\nprint(decision)\n```\n\nThe quick model serves the analysts, researchers, debaters and trader; the deep model serves the research and portfolio managers. Each can run on its own provider, for example the managers on Claude while the rest run on OpenAI:\n\n```python\nconfig[\"deep_think_provider\"] = \"anthropic\"\nconfig[\"deep_think_llm\"] = \"claude-opus-5-5\"\n```\n\nA tier on its own provider uses that provider's key and default endpoint; set `quick_think_backend_url` or `deep_think_backend_url` for a local or relay endpoint. The `TRADINGAGENTS_DEEP_THINK_PROVIDER` and `TRADINGAGENTS_QUICK_THINK_PROVIDER` variables set them for the CLI, together with the tier's model variable.\n\nSee `tradingagents\u002Fdefault_config.py` for all configuration options.\n\n### Live \u002F demo execution (bytx)\n\nUpstream TradingAgents stops at a **Buy \u002F Hold \u002F Sell** decision. This fork can send that decision to a real exchange through [bytx](https:\u002F\u002Fgithub.com\u002Fbyttrade\u002Fbytx) (Binance, Bybit, OKX, …).\n\n```bash\npip install \".[bytx]\"\n```\n\n```env\nBYTX_API_KEY=...\nBYTX_SECRET=...\nBYTX_EXCHANGE=bybit\nTRADINGAGENTS_EXECUTION_ENABLED=true\nTRADINGAGENTS_EXECUTION_DEMO=true          # keep true until you mean live funds\nTRADINGAGENTS_EXECUTION_NOTIONAL=100\n```\n\n```python\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"execution\"][\"enabled\"] = True\nconfig[\"execution\"][\"demo\"] = True\nconfig[\"execution\"][\"notional_usdt\"] = 100\n\nta = TradingAgentsGraph(debug=True, config=config)\nstate, decision = ta.propagate(\"BTC-USD\", \"2026-11-14\", asset_type=\"crypto\")\nprint(decision, state.get(\"execution_result\"))\n```\n\nOr from the CLI: `tradingagents --ticker BTC-USD --execute` (still uses `demo=true` unless you turn it off). Equities are skipped; only crypto tickers are sent to the exchange. **Not financial advice — you can lose money.**\n\n### Fundamentals as filed\n\nUS company statements come from SEC EDGAR, which records the date every figure was filed. A run dated in the past reads the statements exactly as they stood that day: a fiscal year that has ended but has not been filed yet is not served, and a figure restated later still reads as first reported. Apple's 2008 total assets were filed as $39.6B and restated to $36.2B in 2010, so a run dated in between reads $39.6B. EDGAR needs no account or API key.\n\nOther companies' statements come from Yahoo Finance, which dates a statement by the period it covers rather than by when it was published. A run dated today reads them; a run dated in the past is told they are withheld, since Yahoo cannot say which figures were public by then.\n\nInsider trades are dated by when they happened, not when they were filed, so a run dated in the past is told they are withheld as well.\n\nSEC asks callers to identify themselves and refuses requests that carry no contact address, so a default one is sent. Set your own so SEC can reach you rather than the project:\n\n```bash\nSEC_EDGAR_USER_AGENT=\"Your Name your@email.com\"\n```\n\nIt covers companies that file with the SEC, including foreign companies listed in the US. Anything else, such as Hong Kong or A-share listings, falls through to the next vendor in the chain. EDGAR's machine-readable filings begin in 2009, and a fourth quarter is reported as unavailable rather than derived, because filers publish it only inside the annual figure.\n\n### Current holdings\n\nBy default the agents do not know what you hold, so their guidance is written for a reader who applies it to their own position. Pass a portfolio to have the trader, the risk analysts and the portfolio manager work against your actual book.\n\n```python\nfrom tradingagents.portfolio import PortfolioContext\n\nportfolio = PortfolioContext.model_validate({\n    \"cash\": 25000.0,\n    \"currency\": \"USD\",\n    \"positions\": [{\"ticker\": \"NVDA\", \"quantity\": 120, \"average_price\": 150.0}],\n})\n_, decision = ta.propagate(\"NVDA\", \"2026-09-01\", portfolio=portfolio)\n```\n\nThe CLI takes the same content as a JSON file: `tradingagents --portfolio my_book.json`.\n\nAn empty `positions` list means a flat book, which is different from passing nothing. A run without a portfolio is never treated as flat.\n\n## Persistence and Recovery\n\nTradingAgents persists two kinds of state across runs.\n\n### Memory log\n\nThe memory log is always on. Each completed run appends its decision to `~\u002F.tradingagents\u002Fmemory\u002Ftrading_memory.md`. While the analysts of a later run work, TradingAgents settles every logged decision whose holding period has passed: it fetches the realised return (raw, and alpha against the instrument's regional benchmark) and generates a one-paragraph reflection. The Portfolio Manager then reads the most recent decisions for the same ticker plus recent lessons from other tickers, so each analysis carries forward what worked and what didn't. If settling fails, the run goes on and its report says so.\n\nOverride the path with `TRADINGAGENTS_MEMORY_LOG_PATH`.\n\nTo settle decisions without running an analysis, for a scheduled job, call `ta.settle_all_pending()`; it returns the decisions it settled and any it could not.\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. The run view says whether it resumed a saved run or started fresh. Checkpoints are cleared automatically on successful completion.\n\nPer-ticker SQLite databases live at `~\u002F.tradingagents\u002Fcache\u002Fcheckpoints\u002F\u003CTICKER>.db` (override the base with `TRADINGAGENTS_CACHE_DIR`). Use `--clear-checkpoints` to reset all of them before a run.\n\n```bash\ntradingagents --checkpoint           # enable for this run\ntradingagents --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-09-01\")\n```\n\n## Evaluating decisions over time\n\nOne run gives one decision, which cannot tell you whether the system decides well. `run_backtest` runs the same pipeline over a grid of tickers and dates, writes to a memory log of its own, and scores the decisions whose holding window has since traded.\n\n```python\nfrom tradingagents.backtest import iter_grid, run_backtest, summarize\n\ndates = iter_grid(\"2026-06-01\", \"2026-08-01\", every_n_days=7)\nresult = run_backtest([\"NVDA\", \"AAPL\"], dates, config, selected_analysts=[\"market\", \"news\"])\nprint(summarize(result).render())\n```\n\nFrom the CLI:\n\n```bash\ntradingagents backtest NVDA,AAPL --start 2026-06-01 --end 2026-08-01 --every 7\n```\n\nEach cell is scored on realized alpha against the instrument's regional benchmark, grouped by rating. A decision is entered at the first close after its date, because a run reads news published after that day's close. Your own memory log is never written to, and re-running the same grid with `run_id=result.run_id` skips the cells that already ran, so an interrupted sweep continues where it stopped.\n\n## Reproducibility\n\nTradingAgents is LLM-driven, so two runs of the same ticker and date can differ. This is expected for a research tool built on language models, not a defect. The variation comes from a few distinct sources, and it helps to separate them.\n\nLanguage model sampling is non-deterministic. Even at a fixed temperature, providers do not guarantee byte-identical output across calls, and reasoning models (the default GPT-6 family, and any thinking-mode model) vary the most because their internal reasoning is itself sampled.\n\nLive data moves. News, StockTwits, and Reddit return different content as time passes, so a run today sees different inputs than a run last week even for the same historical trade date. Pin the analysis date to hold the price and indicator window fixed, but the social and news sources still reflect \"now\".\n\nTo reduce variation you can lower the sampling temperature. Set `temperature` in your config (or `TRADINGAGENTS_TEMPERATURE` in `.env`); lower values make models that honor it more repeatable. The current curated models are reasoning-first and largely ignore temperature, so for tighter reproducibility name a non-reasoning model in your config, or in `TRADINGAGENTS_DEEP_THINK_LLM` and `TRADINGAGENTS_QUICK_THINK_LLM`. Any model ID your provider serves is accepted, whether or not the picker lists it.\n\n```python\nconfig = DEFAULT_CONFIG.copy()\nconfig[\"llm_provider\"] = \"openai\"\nconfig[\"temperature\"] = 0.0\n# Reasoning models ignore temperature. For tighter reproducibility, name a\n# non-reasoning model in deep_think_llm \u002F quick_think_llm.\n```\n\nWhat does not vary anymore: the analyzed company identity is resolved deterministically from the ticker before any agent runs, and the market analyst grounds exact price and indicator claims in a verified data snapshot. Earlier reports of \"different companies\" or fabricated price levels across runs are addressed by these two mechanisms.\n\nBacktest results are not guaranteed to match any published figure. Returns depend on the model, the temperature, the date range, data quality, and the sampling above. Treat the framework as a research scaffold for studying multi-agent analysis, not as a strategy with a fixed, replicable return.\n\n## Contributing\n\nContributions are welcome: bug fixes, documentation, and feature ideas; past contributions 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:\u002F\u002Farxiv.org\u002Fabs\u002F2412.20138}, \n}\n```\n","这是一个面向加密货币市场的多智能体交易研究框架，通过模拟分析师、多空观点代理、风险与组合经理等角色协同生成买卖决策。核心功能包括基于行情数据、新闻和社交舆情的多源分析，支持主流交易所（如Binance、Bybit、OKX等）的自动化订单执行（含市价单、限价单及post-only模式），并内置风险控制与仓位管理逻辑。项目采用模块化设计，研究层与执行层分离，执行层依赖bytx统一API适配多交易所。适用于量化策略研究、教学演示及轻量级实盘交易验证场景。",2,"2026-11-24 04:49:21","CREATED_QUERY"]