51bodila/Gemini-TradingAgents
FinanceA CLI that runs four Gemini models as a trading research desk, producing a risk-checked verdict and optional paper orders.
What it does
Gemini TradingAgents is a Python command-line application that coordinates four Gemini model roles into a single trading-research workflow. One model drafts a thesis and test plan, a second pulls price, fundamental and news data and runs backtests, a third argues the trade as a bull/bear committee, and a fourth acts as a judge issuing GO, GO SMALLER or NO-GO with entry, stop, targets and position size. It installs and calls existing tools — TradingAgents, Vibe-Trading and Google's ADK — rather than reimplementing them, and an optional ai-hedge-fund plugin adds an investor-committee stage.
After the model stages, plain Python applies hard risk rules and a set of rules drawn from Jane Street's public materials. These rules can only block or shrink a trade, never loosen it. Targets are trading stocks (and some crypto data) with a Gemini API key; it is aimed at people who want a structured, auditable research pipeline rather than a trading bot.
Quick start
Requirements: Python 3.11–3.13 and a Gemini API key on a Google Cloud project with billing enabled. Billing is required because several of the models have no free tier.
-
Run the installer for your platform:
# Windows (PowerShell) .\install.ps1 # macOS / Linux sh install.shEach dependency set gets its own environment because their versions conflict. On Windows, TradingAgents is placed inside WSL; if no Linux distribution exists the installer prints the
wsl --installcommand and the pipeline falls back to querying Gemini directly. -
Put your key in
.env:GEMINI_API_KEY=... -
Verify the setup:
gemini-tradingagents doctor gemini-tradingagents models -
Run a report for a ticker:
gemini-tradingagents AAPLThe Markdown report is written to
reports/, alongside a data pack JSON/Markdown and a Pine Script file you can paste into TradingView. Use--fastfor a cheaper run and--dry-runto print the commands without calling anything.
Paper orders are optional: gemini-tradingagents AAPL --paper prints an Alpaca paper bracket order, and --send submits it to the Alpaca paper endpoint.
Cost
One default report costs roughly $1.50–2.50 at Google list prices, based on the project's own token-log estimates; --fast is under $0.50 and --deep several dollars. Real bills are often lower because cached input is billed at a lower rate. Reports include a per-stage token and price table.
Data and constraints
With only a Gemini key, data comes from Yahoo Finance and public sources, and crypto data from OKX's public API. Optional keys add Finnhub, Alpha Vantage, Tiingo, FMP, FRED, Tauric and Financial Datasets coverage; the ai-hedge-fund plugin runs only when its key is set. Yahoo Finance data is for personal use, and the tool fetches at run time without storing or redistributing it.
The risk rules are thresholds in .env, including maximum risk per trade, maximum position size, minimum reward-to-risk, ATR-based stop distance, daily loss limit and a file-based kill switch. A journal.csv records each run and gemini-tradingagents score evaluates resolved calls. The paper-trading path contains no live-trading endpoint and refuses dry-run results and NO-GO verdicts. The project is MIT-licensed and explicitly framed as research and paper trading, not financial advice.
HotRepo's take
On 2026-11-27 the repository appeared on HotRepo's new Python project list with 10 stars gained in a roughly one-hour window and 27 forks, but it has no recorded all-language daily rank, so the data supports only a brief early spike rather than a trend. The design stance that distinguishes it is architectural: the LLM judge and the Python rule layer are kept separate, and the rule layer is allowed to veto or reduce size but never increase it, with every rule's result written into the report. For a repo credited to three heavily starred upstream projects, the value here is the orchestration, the explicit risk gates and the auditable output — not a model of its own. Readers should still treat the four model role names and pricing figures as the project's own claims, and run --dry-run before spending on API calls.
Credits
Built on TradingAgents, Vibe-Trading and google/adk-python; the Jane Street rules are paraphrased from public interviews, a book review and blog posts, and the project states it is not affiliated with Jane Street.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- Dart-veider01/TradingAgents-cryptoA fork of TradingAgents that turns multi-agent crypto research decisions into demo or live exchange orders via bytx.
- TauricResearch/TradingAgentsA multi-agent LLM framework that debates and decides stock trades, for researchers and quant-curious developers.
- google-gemini/gemini-api-cliA Go CLI that lets coding agents and shell scripts call Gemini models, generate media, analyze files, and run managed agents.
- google-gemini/gemini-cliA terminal coding agent from Google that reads code, edits files and runs commands using Gemini models.
- HKUDS/Vibe-TradingA Python agent for market research, backtesting, paper trading and opt-in broker execution.