# Repository Briefing: hsliuping/TradingAgents-CN
> Source: https://repoforai.com/repo/hsliuping/TradingAgents-CN (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/hsliuping/TradingAgents-CN
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: See repository
- **Engineering Health**: A (86/100 · Maintenance 35/35 · Adoption 25/25 · Releases 20/20 · License 6/20)
- **Latest Release**: v3.0.3-pro (2026-12-02) — https://github.com/hsliuping/TradingAgents-CN/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Self-Hosted, API
- **Momentum**: 33,175 ★ total (+9 24h / +101 7d) · 6,896 forks
- **When to Use**: Best for: Chinese-language research teams and classrooms that want to screen A-shares, compare analyst viewpoints, and keep research records in a shared application. Skip if: You need live order execution, reproducible quantitative backtests, fully offline operation out of the box, or permissive redistribution of the full application.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Research orchestration: Role-based A-share analysts and opposing researchers produce debate-style reports at five analysis depths.
- Application interface: FastAPI REST endpoints and SSE/WebSocket push support a Vue 3, Vite, and Element Plus frontend.
- Market data: Tushare, AKShare, and BaoStock adapters support A-share research and a documented screening universe of 6,000+ stocks.
- Model configuration: Administrators can add providers and configure models from OpenAI, DeepSeek, and Qwen, with task-based model selection.
- Research workflow: Natural-language screening connects to watchlists, single-stock follow-up, Markdown reports, and paper-trade review.
- Community installation: Shell and PowerShell installers provision MongoDB and Redis runtimes and build the frontend without requiring Docker.
```

## Quick Start / Clone
```bash
curl -fsSL https://raw.githubusercontent.com/hsliuping/TradingAgents-CN/community/install.sh | bash
```
