🤖 AI-Powered Chinese Stock Market Analysis. 一个基于 AI 的 A 股智能分析系统,提供技术分析、交易信号和智能投资建议。 内置 OpenClaw 内核,Agent 编排与记忆采用本地优先、分层记忆与心跳总结,支持单股分析、消息与热点追踪、持仓管理与统一问答。
OpenAshare An open-source AI stock research desk for US, mainland China, and Hong Kong markets. English · 简体中文 Live demo → https://openashare.com · Quick start · Features Watch the 30-second demo Why OpenAshare? Answers grounded in live workspace evidence: Unlike a blank chat box, responses are tied to price charts, company news, SEC filings, and verifiable source links in one research desk. Facts, inference, and…
Answers grounded in live workspace evidence: Unlike a blank chat box, responses are tied to price charts, company news, SEC filings, and verifiable source links in one research desk.
Facts, inference, and gaps stay separate: Source-backed facts, model interpretation, and missing data are kept distinct so you can inspect the evidence before forming a view.
Three markets, self-hostable with your key: Research US, mainland China, and Hong Kong equities in one MIT-licensed workspace, hosted locally or via Docker with any OpenAI-compatible model key.
Features
Research desk & agent
Bilingual (English / Simplified Chinese) research workspace with Quick and Deep research modes
Streaming tool-call progress, source-coverage disclosures, and follow-up question suggestions
Rule-based fallback when no LLM API key is configured, plus Markdown report and source exports
Charts & technicals
Interactive lightweight-charts candlestick views with MA20, MA60, MACD, RSI, and KDJ indicators
Chart period selection that passes exact trading-date windows into agent follow-up questions
News & hotspots
Company headlines, global market news, and aggregated theme hotspots with heat scores and linked tickers
docker-compose.yml mounts .env into the backend container via env_file, so create .env first:
cp .env.docker.example .env
# Optionally configure LLM_API_KEY and other services in .env
docker compose up --build
The workspace runs without a model key; model-powered features require LLM_API_KEY. Supabase is optional and provides authentication and cloud workspace persistence when configured.
Identifying app name + contact email for SEC EDGAR requests
FINNHUB_API_KEY
Optional Finnhub key for US news and fallback US quotes
EASTMONEY_TOKEN
Optional token for Eastmoney online stock-search completion
MONITOR_DB_PATH
SQLite database path (default ./data/monitor.db, /app/data/monitor.db in Docker)
BACKEND_BASE_URL
Internal FastAPI base URL used by Next.js server proxies
NEXT_PUBLIC_SITE_URL
Public HTTPS origin for canonical metadata and invite links
SUPABASE_URL
Optional Supabase project URL for auth and cloud workspace persistence
SUPABASE_PUBLISHABLE_KEY / SUPABASE_ANON_KEY
Optional Supabase public/anon key
SUPABASE_SERVICE_ROLE_KEY
Server-only Supabase admin key (never expose to browser code)
SUPABASE_REQUIRE_AUTH
Require Supabase auth for cloud-hosted workspace access (true / false)
See .env.docker.example for the complete annotated template. Keep real keys out of git.
Project structure
.
├── api/ # FastAPI entrypoints, schemas, SSE streaming, and agent orchestration
├── app/ # Next.js 16 App Router pages and API proxy routes
├── components/ # Frontend UI components (research desk, charts, landing)
├── lib/ # Frontend API client, shared TypeScript types, i18n, and SEO helpers
├── ashare/ # Analysis engine, stock search, monitoring, and market data modules
├── docker/ # Backend (Python 3.12) and frontend (Node 22) Dockerfiles
├── scripts/ # Local startup and build helpers
├── tests/ # Backend pytest suite and Node .mjs unit tests
└── docs/ # Architecture, US research, and deployment documentation
Testing
# Backend API tests
python -m pytest tests/test_api_app.py -q
# Full offline backend test suite
python -m pytest -q
# Frontend lint, production build, and Node unit tests
npm run lint
npm run build
node --test tests/*.test.mjs
Roadmap
Broader China and Hong Kong filings coverage, caching, and citation tracing
Backtesting, trading-calendar awareness, and strategy performance views
Richer multi-company comparison and saved research memory
Team workspaces and streamlined self-hosted deployment templates
Contributing
Contributions are welcome! Please read CONTRIBUTING.md before opening a pull request. Security issues should be reported privately as described in SECURITY.md.
Disclaimer
OpenAshare is for research and educational purposes only. It does not provide investment advice, recommendations, or trade execution. Market data may be delayed or incomplete, and AI-generated outputs may contain errors—always verify original sources and make your own decisions.
评论