Open-source agentic framework for quantitative finance: thesis -> data agents -> strategy -> deterministic backtest -> DuckDB analytics.
Use scripts/set_github_metadata.ps1 to set GitHub description, homepage, and topics in one shot:
$env:GITHUB_TOKEN="YOUR_PAT"
.\scripts\set_github_metadata.ps1Sample output artifacts from:
python -m quantflow run "short small-cap biotech on FDA rejection patterns" --ticker XBI --offline --verbose| run_id | ticker | side | sharpe | max_drawdown | calmar |
| ---------------- | ------ | ----- | ------- | ------------ | ------- |
| 20260422T235445Z | XBI | short | -1.9527 | -0.3193 | -0.9041 |
| 20260422T233723Z | XBI | short | -1.9527 | -0.3193 | -0.9041 |
- Python core (
quantflow/): SEC + Reddit agents, strategy orchestration, backtest runtime, report generation. - Go interface (
cmd/,internal/quantflowui/): interactive Bubble Tea TUI to run and monitor the full pipeline. - Rust scaffold (
engine-rs/): JSON-driven deterministic backtest binary for low-latency evolution. - DuckDB layer: persisted filings, sentiment, strategies, and backtest metrics.
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
python -m quantflow run "short small-cap biotech on FDA rejection patterns" --ticker XBI --offline --verboseArtifacts are stored in runs/<run_id>/ and analytics in quantflow.duckdb.
The TUI gives a live, demo-friendly view of pipeline stages and streaming logs.
go run . tuiKey controls:
tab/up/down: switch input fieldo: toggle offline fixture modeenter: run pipeliner: rerun with current inputsq: quit
Run the Python pipeline through Go (useful for demos and automation):
go run . run "short small-cap biotech on FDA rejection patterns" --ticker XBI --offline --verbose- SEC Filing Agent fetches and scores
10-K,10-Q,8-Ksignals. - Reddit Sentiment Agent measures ticker mention velocity and sentiment.
- Strategy Orchestrator converts thesis + signals into executable strategy rules.
- Backtest Engine computes Sharpe, max drawdown, Calmar, CAGR, return series.
- DuckDB captures intermediate and final outputs for reproducible analysis.
- Artifact exporter writes
report.json, strategy code, run README, and chart.
- Current implementation uses a deterministic strategy-orchestration policy for reproducibility.
- LLM slot is intentionally isolated in
quantflow/agents/strategy.pyto swap in Claude/GPT orchestration. - DuckDB acts as the memory/analytics substrate so future LLM reasoning can query run history without refetching raw data.
QuantFlow is positioned as an open foundational engine for production-grade systematic research workflows, including startup-scale commercialization paths (managed execution + strategy registry).
See:
docs/axiom-positioning.mddocs/architecture-deep-dive.md
pytest -q
go test ./...