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

- **GitHub URL**: https://github.com/KylinMountain/TradingAgents-AShare
- **Official Docs / Website**: https://app.510168.xyz
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: See repository
- **Engineering Health**: B+ (75/100 · Maintenance 35/35 · Adoption 20/25 · Releases 14/20 · License 6/20)
- **Latest Release**: v0.8.1 (2026-07-20) — https://github.com/KylinMountain/TradingAgents-AShare/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, API
- **Momentum**: 918 ★ total (+0 24h / +4 7d) · 245 forks
- **Topics**: `agents`, `ai`, `finance`, `llm`, `openclaw`, `openclaw-skills`, `skills`, `stock`
- **When to Use**: 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.

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

## Key Capabilities
```text
- 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.
```

## Quick Start / Clone
```bash
pip install uv
```
