OpenClaw US Market Research System is an English-language, evidence-grounded, ethics-aware multi-agent decision support project built on OpenClaw.
The current implementation targets the US equity market and uses:
yfinancefor market and fundamental snapshotsSEC EDGARfor public filings ingestion- the
Magnificent 7as the default stock universe
The system is designed for research support, not autonomous execution. Every major output is routed through evidence retrieval, risk review, critic review, and action-boundary labeling.
The project uses a hybrid architecture:
OpenClawas the control plane- deterministic
FastAPIservices as the execution plane Postgres + Lightweight Graph + Chromaas the storage and retrieval plane
ingestion- collects SEC EDGAR filing metadata and normalized document records
rag- builds chunked retrieval indexes and graph-aware evidence packs
planner- the single entry point for user queries, report routing, and agent collaboration
quant- structured technical, valuation, and fundamental analysis based on yfinance-backed caches
risk- portfolio risk, drawdown, concentration, beta, and scenario analysis
report- daily and weekly markdown report generation
critic- mandatory evidence, freshness, consistency, and overstatement review
The OpenClaw-native orchestration layer lives under:
openclaw/workspaces/openclaw/skills/openclaw/runtime/
Current collaboration paths:
DOC_QA:Planner -> KnowledgeQUANT_QUERY:Planner -> QuantRISK_QUERY:Planner -> RiskMIXED_QUERY:Planner -> parallel(Knowledge, Quant, Risk)DAILY_REPORT:Planner -> parallel(Knowledge, Quant, Risk) -> Report -> CriticWEEKLY_REPORT:Planner -> Knowledge + Quant + Risk -> Report -> Critic
Postgres- documents, run logs, reports, graph entities, graph relations, metric snapshots, risk snapshots
Lightweight Graph- entity and relation context for companies, industries, themes, filings, and evidence links
Chroma- vector retrieval for indexed document chunks
- local caches
data/marketdata/financialsdata/rawdata/reports
The project is aligned to an ethics-oriented AI workflow.
Each major response includes:
- evidence status
- data freshness
- critic status
- action boundary
- human approval requirement
- accountability trail
The critic layer checks:
- whether key claims are supported by evidence
- whether data freshness is explicit
- whether quant and risk outputs conflict
- whether overstatement language appears
- whether the action boundary is appropriate
- Python 3.11+
- Docker Desktop
- PowerShell on Windows
- optional: OpenClaw CLI and Feishu credentials for interactive channel testing
Copy-Item .env.example .envThen edit .env and confirm at least:
POSTGRES_PASSWORDDATABASE_URLSEC_USER_AGENT- optional model keys for live provider-backed workflows
docker compose up -dThis starts:
postgreschromaadmineringestionragquantriskplannerreportcritic
Stop the stack with:
docker compose downpython scripts/init_db.py
python scripts/verify_stack.pypython scripts/fetch_sample_data.pyThis fetches cached daily data for the Mag 7 and SPY.
python scripts/run_phase0_smoke.pypytest -q -p no:cacheprovider testspowershell -ExecutionPolicy Bypass -File .\openclaw\runtime\bootstrap.ps1 -SkipGatewayRestartpython scripts/run_planner_demo.py "Apple latest filing"
python scripts/run_quant_demo.py --stock-code AAPL --mode daily
python scripts/run_risk_demo.py --holding AAPL:0.4 --holding MSFT:0.35 --holding NVDA:0.25 --mode check
python scripts/run_daily_report_demo.py --date 2026-04-08 --stock-code AAPL --stock-code MSFTservices/ FastAPI services and business logic
scripts/ setup, sync, validation, and demo scripts
docs/ plans, architecture, and transformation notes
templates/ report templates
tests/ regression and smoke tests
openclaw/ OpenClaw workspaces, skills, and runtime helpers
data/ local runtime caches and generated artifacts