← Back to Leaderboard
TKylinMountain

KylinMountain/TradingAgents-AShare

A self-hosted multi-agent app for A-share research and portfolio tracking

Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
B+ · 75/100
Maintenance Activity
● Updated 3d ago
Latest Release
v0.8.1
Commercial License Check
Custom / Check Repo

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption20/25
Release Cadence14/20
License Clarity6/20
DockerSelf-HostedAPI
Total Stars
★ 918
24h Growth
+0
7d Growth
+4
Forks
245

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

KylinMountain/TradingAgents-AShare Star History (2026-03-10 - 2026-12-03) ALL-TIME STAR HISTORY (2026-03 – 2026-12) +917 in 268d · avg +3/day 969 485 0 2026-03-10: ★ 12026-03-28: ★ 862026-04-18: ★ 1802026-05-09: ★ 3112026-05-30: ★ 4672026-06-20: ★ 5842026-07-11: ★ 6762026-08-01: ★ 7392026-08-22: ★ 7782026-09-12: ★ 8182026-10-03: ★ 8482026-10-24: ★ 8742026-11-10: ★ 8962026-12-03: ★ 918 ★ 918 2026-03 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

TradingAgents-AShare wraps the upstream TradingAgents workflow in a self-hostable A-share application. The Python 3.10+ backend uses LangGraph and LangChain; the manifests include a SQLite checkpoint adapter, FastAPI, Uvicorn, SQLAlchemy, and market-data libraries such as AkShare and BaoStock. The analysis graph takes six parallel analyst perspectives—fundamentals, sentiment, news, technicals, macro, and major capital flows—into claim-driven bull/bear debate. A research director synthesizes a plan, a trader proposes an action, and three risk perspectives review it before the portfolio manager makes the final call.

The application separates analysis logic in tradingagents/ from the API, frontend, and scheduler. POST /v1/analyze returns a job ID rather than holding a REST request open for the full analysis; separate endpoints expose status and results. The browser shows token-level debate as it unfolds, while scripts and the OpenClaw skill can integrate through the API. This gives external clients a clear integration point without requiring them to run or modify the graph.

Key Capabilities & Differentiators

The chat interface resolves a stock and a short- or medium-term horizon from a natural-language prompt. The debate drawer groups streamed contributions by round and highlights verdicts separately. Structured reports can be searched by symbol and date, and their decision cards expose direction, confidence, target price, and stop-loss. The workflow is useful for inspecting how a recommendation was formed, not just reading the final card.

Watchlist schedules support batch edits and manual test runs, reuse holdings context, and disable tasks after repeated failures. The tracking board pairs imported positions, cost basis, and portfolio weights with prices, intraday ranges, P&L, and prior-report ranges. Users can configure providers and models in the browser, including OpenAI, Anthropic, Gemini, DeepSeek, Moonshot, Zhipu, and SiliconFlow. Saving a configuration triggers warmup; a manual raw-response test helps diagnose connectivity separately from a full analysis run.

Trade-offs & Limitations

Compared with upstream TradingAgents, this fork gives users an integrated A-share research workspace rather than a framework they have to turn into an application. Compared with a single-model summarizer, role separation and visible disagreement make the reasoning easier to inspect, but successive debate and risk stages add model calls, token spend, and exposure to provider latency or rate limits. Provider choice, concurrency, and schedule density should drive capacity planning; a visible debate is not evidence of better forecasts.

Default SQLite and a combined API/scheduler container reduce operational overhead for a small installation. Split deployment separates those processes but adds Redis to operate. Market inputs can arrive late or contain errors, and the confidence and price levels on the cards are model outputs, not validated signals or evidence of order execution. Licensing is also an adoption constraint: upstream is Apache 2.0, while the fork identifies new API and frontend modules and substantial core changes as PolyForm Noncommercial 1.0.0. Review the root LICENSE before commercial use.

Hardware & Deployment Guide

The bundled image includes the backend and built frontend. The default docker-compose.yml exposes port 8000, runs the API and scheduler in one container without Redis, and mounts ./data at /app/data for SQLite persistence. Set and preserve TA_APP_SECRET_KEY: it encrypts stored model API keys and signs login JWTs. Without SMTP, the login page displays a development verification code, so configure real email delivery before exposing the service to users. docker-compose.split.yml runs the API, scheduler, and Redis in separate containers.

For source development, use Python 3.10+, uv, Node.js 18+, and npm; build frontend/ and start the API with uv run python -m uvicorn api.main:app --port 8000. The documented provider-based runtime does not require a local GPU, but self-hosting the application does not make the full workflow offline. v0.8.0 added job timeout guards, fast failure on model errors, and scheduler throttling; v0.8.1 added first-class DeepSeek support and provider setup guidance.

Research graph: Six parallel analyst perspectives feed claim-driven bull/bear debate and three-way risk review.
Debate UI: Token-level streaming groups contributions by round and highlights verdicts separately.
Model configuration: Provider, model, and key are editable in the UI, with automatic warmup and a raw-response test.
Recurring research: Batch-managed watchlist jobs reuse holdings context and disable themselves after repeated failures.
REST integration: Bearer-authenticated analysis jobs can be polled by ID; existing reports can be retrieved in batches by symbol.
Deployment topology: Default Compose runs the API and scheduler together with SQLite; split Compose separates them and adds Redis.
Best For

Individual researchers or noncommercial teams that want to inspect A-share analyst debates, keep searchable reports, and run recurring research with holdings context.

Skip If

You need validated trading signals, broker execution, a fully offline deployment, or commercial rights without a separate license review.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedAPI
pip install uv

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
TradingAgents-AShare ★918+4Python—A self-hosted multi-agent app for A-share research and portfolio tracking
TradingAgents124.7k+709TypeScriptApache-2.0A multi-agent CLI for source-cited financial research and reporting
hermes-agent268.1k+1.5kPythonMITSelf-hosted Python agent with persistent memory and automation across chat and C
daily_stock_analysis75.9k+870PythonMITA Python Agent workbench for multi-market watchlist research and scheduled repor

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/KylinMountain/TradingAgents-AShare.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

KylinMountain/TradingAgents-AShare Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about TradingAgents-AShare

How should a script or dashboard integrate with the analysis pipeline?

Generate an API token in the web settings and send it as a bearer token. POST /v1/analyze returns a job ID; poll GET /v1/jobs/{job_id}, then fetch GET /v1/jobs/{job_id}/result. For a dashboard that only needs existing reports, POST /v1/reports/latest-by-symbols avoids starting fresh analyses.

Do I need a GPU, and what should I size for?

No GPU is specified for the documented deployment, which calls external model APIs rather than serving model weights. Size CPU and RAM around concurrent analyses and data processing, and storage around report retention. Measure model latency, token spend, and provider rate limits under your expected schedule; no fixed hardware minimum is established.

Can I self-host this fork as part of a commercial product?

The upstream TradingAgents code is Apache 2.0, but this fork identifies api/, frontend/, and substantial core changes as PolyForm Noncommercial 1.0.0. Self-hosting does not grant commercial-use rights. Review the root LICENSE and obtain appropriate permission before relying on the fork for a paid service or other commercial deployment.

When should I choose this over upstream TradingAgents or a single-model workflow?

Choose this fork when the A-share application layer matters: a browser UI, visible debate, reports, watchlists, and recurring analyses. Start with upstream TradingAgents if you mainly need a framework to build a different product around, subject to checking the terms of the code you use. A simpler single-model workflow is a better starting point if you do not need role-by-role review and want fewer model calls.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining KylinMountain/TradingAgents-AShare? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature KylinMountain/TradingAgents-AShare on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare