KylinMountain/TradingAgents-AShare
A self-hosted multi-agent app for A-share research and portfolio tracking
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
Individual researchers or noncommercial teams that want to inspect A-share analyst debates, keep searchable reports, and run recurring research with holdings context.
You need validated trading signals, broker execution, a fully offline deployment, or commercial rights without a separate license review.
Quick Start & Installation
pip install uv
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| TradingAgents-AShare ★ | 918 | +4 | Python | — | A self-hosted multi-agent app for A-share research and portfolio tracking |
| TradingAgents | 124.7k | +709 | TypeScript | Apache-2.0 | A multi-agent CLI for source-cited financial research and reporting |
| hermes-agent | 268.1k | +1.5k | Python | MIT | Self-hosted Python agent with persistent memory and automation across chat and C |
| daily_stock_analysis | 75.9k | +870 | Python | MIT | A 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.
curl -sL https://repoforai.com/repo/KylinMountain/TradingAgents-AShare.md
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?
Do I need a GPU, and what should I size for?
Can I self-host this fork as part of a commercial product?
When should I choose this over upstream TradingAgents or a single-model workflow?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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