← Back to Leaderboard
Thsliuping

hsliuping/TradingAgents-CN

Self-hosted multi-agent research for China’s A-share market

View on GitHub ↗
Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
A · 86/100
Maintenance Activity
● Updated 2d ago
Latest Release
v3.0.3-pro
Commercial License Check
Custom / Check Repo

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

Maintenance35/35
Fork Adoption25/25
Release Cadence20/20
License Clarity6/20
Self-HostedAPI
Total Stars
★ 33,175
24h Growth
+9
7d Growth
+101
Forks
6,896

GitHub Star History

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

hsliuping/TradingAgents-CN Star History (2025-06-28 - 2026-12-04) ALL-TIME STAR HISTORY (2025-06 – 2026-12) +33.2k in 524d · avg +63/day 35k 17.5k 0 2025-06-28: ★ 12025-08-02: ★ 4,1692025-09-06: ★ 6,0942025-10-11: ★ 9,8172025-11-15: ★ 12,3222025-12-20: ★ 13,5212026-01-24: ★ 14,7182026-02-28: ★ 17,4532026-04-04: ★ 22,8372026-05-09: ★ 25,5992026-06-13: ★ 27,9672026-07-18: ★ 29,9662026-08-22: ★ 31,0162026-09-26: ★ 31,7932026-10-31: ★ 32,6452026-12-04: ★ 33,175 ★ 33.2k 2025-06 2026-03 2026-12

Evidence-Backed Technical Brief

AI Deep Review

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.

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.
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.

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

Quick Start & Installation

Self-HostedAPI
curl -fsSL https://raw.githubusercontent.com/hsliuping/TradingAgents-CN/community/install.sh | bash

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
TradingAgents-CN ★33.2k+101Python—Self-hosted multi-agent research for China’s A-share market
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
dify162.4k+370Python—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.

Raw .md ↗
curl -sL https://repoforai.com/repo/hsliuping/TradingAgents-CN.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.

hsliuping/TradingAgents-CN Star History on RepoForAI

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?

Use the FastAPI REST API to integrate with the self-hosted application and SSE or WebSocket for progress or status updates. Check the endpoint, authentication, and event contracts in the version you deploy; the protocol list alone does not establish a stable public SDK or interchangeable event payloads.

Do I need a GPU, and how should I size the host?

No fixed GPU or VRAM requirement is specified for the hosted-model deployment path. Start by sizing CPU and RAM for the Python services and databases, and disk for persisted data and logs. Test representative concurrent jobs, then tune for research depth, cache usage, and upstream rate limits. A locally served model would have separate hardware requirements; a local inference stack is not established here.

Can my company self-host or redistribute the Community Edition?

The core engine is Apache-2.0, but the Community application layer is proprietary and source-available. Check the applicable LICENSE terms before commercial self-hosting, redistribution, or embedding the UI or backend. Pro release packages are a separate distribution path; activation was explicitly required for the v3.0.1-pro Windows installer.

When should I choose this over the upstream framework or a dedicated quant stack?

Choose this project over a bare TradingAgents integration when Chinese-language A-share workflows, local data-source adapters, and a ready-made UI are the main requirements. Choose an engine integration for tighter control over orchestration and deployment. If the main requirement is deterministic screening, reproducible backtests, or broker execution, evaluate dedicated tools for those tasks instead.

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 hsliuping/TradingAgents-CN? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature hsliuping/TradingAgents-CN 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