hsliuping/TradingAgents-CN
Self-hosted multi-agent research for China’s A-share market
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-CN turns the upstream multi-agent engine into a self-hosted A-share research application. The v3 stack replaces Streamlit with a FastAPI/Uvicorn backend (app.main:app) and a Vue 3 single-page interface built with Vite and Element Plus. The unified assistant lets an agent plan a research task and compose tools; the single-stock workflow uses market, sector, fundamental, and news analysts alongside bullish and cautious researchers to develop competing views.
REST is the integration surface, while SSE and WebSocket provide progress and system-status updates. MongoDB and Redis underpin the application, and caching can span both stores and the filesystem. The Python manifest includes Pydantic, Motor/PyMongo, Redis, PyJWT, and APScheduler. The Skill Center provides an application-level extension path for custom data retrieval: skills can be generated, tested, validated, and registered. The manifest also lists mcp and mem0ai, but those dependencies alone do not establish MCP transport support or a particular memory-store configuration.
Key Capabilities & Differentiators
The application combines five-depth single-stock research with open-ended research questions, natural-language and condition-based stock screening, and a shortlist that can feed follow-up analysis. Tushare, AKShare, and BaoStock supply market and financial data, subject to each provider’s access requirements. The screening universe is listed at more than 6,000 stocks; that figure is not a guarantee of complete field coverage across all providers. The assistant can also use web search, invoke tools, and retain facts in project-level memory.
The model settings support adding providers and selecting models by task, with OpenAI, DeepSeek, and Qwen among the configuration examples. Beyond the research workflow, the application provides grouped watchlists, historical analyses, Markdown export, and paper trading with review. Authentication, roles, operation logs, and a visual configuration center make it an end-user application rather than just an engine. Paper trading is for simulation; the supplied features do not establish live broker execution.
Trade-offs & Limitations
Compared with integrating upstream TradingAgents directly, this project adds a Chinese-language UI, A-share data adapters, persistent research workflows, user roles, and live task updates. Those additions save application work but leave operators responsible for MongoDB, Redis, provider credentials, and the frontend build. Provider choice moves inference off the application host on the hosted-API path, but repeated model and tool calls can make turnaround and cost sensitive to research depth, concurrency, and upstream quotas. Cache effectiveness and data freshness should be tested with the feeds and workflows you intend to use.
Compared with a rules-based screener or a dedicated backtester, the advantage is synthesizing qualitative evidence and exposing competing interpretations, not deterministic results or validated strategy performance. Verify financial fields and generated conclusions against their sources. Licensing is also an architectural decision: Apache-2.0 applies to the core engine, while the Community application layer is proprietary and source-available. Check which components you intend to deploy or redistribute rather than treating the whole application as Apache-licensed or assuming Pro terms carry over.
Hardware & Deployment Guide
The Community Edition has two setup paths. The one-click install.sh and install.ps1 installers provision MongoDB and Redis runtimes, build the frontend, install Python dependencies, and generate .env secrets without Docker. The manual path targets Python 3.11, Node.js 18+, MongoDB 7.0+ (8.0 recommended), and Redis 6+ (7 recommended); the Python package itself declares >=3.10. Configure database connections and JWTSECRET from .env.example, start uvicorn app.main:app, and use npm run dev from frontend/ for the development UI. The documented Docker option runs the two datastores, not the full application.
On initial startup, the backend imports system configuration and creates admin from ADMIN_DEFAULT_PASSWORD if no users exist. Configure model API keys and any required market-data tokens after login. Hosting the application locally does not make its hosted-model, web-search, or remote-data workflows offline. For a shared deployment, keep the datastores private, protect .env and backups, and size against representative concurrent jobs rather than a fixed GPU target. Source installation is distinct from the Pro assets: Apple Silicon portable packages appeared in v3.0.2-pro, and v3.0.3-pro lists both a Windows installer and an Apple Silicon archive.
Chinese-language research teams and classrooms that want to screen A-shares, compare analyst viewpoints, and keep research records in a shared application.
You need live order execution, reproducible quantitative backtests, fully offline operation out of the box, or permissive redistribution of the full application.
Quick Start & Installation
curl -fsSL https://raw.githubusercontent.com/hsliuping/TradingAgents-CN/community/install.sh | bash
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| TradingAgents-CN ★ | 33.2k | +101 | Python | — | Self-hosted multi-agent research for China’s A-share market |
| 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 |
| dify | 162.4k | +370 | Python | — | Visual workflow and RAG workspace for building and serving LLM apps |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/hsliuping/TradingAgents-CN.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about TradingAgents-CN
How should I integrate an internal tool with the research workflow?
Do I need a GPU, and how should I size the host?
Can my company self-host or redistribute the Community Edition?
When should I choose this over the upstream framework or a dedicated quant stack?
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