项目 / OpenByteInc/QuantDinger
The most complete open-source, self-hosted Agentic Trading OS—AI research, Python strategies, factor discovery, backtesting, optimization, paper/live multi-asset execution, risk controls, monitoring, MCP, and multi-tenant SaaS in one audit…
本站整理,非 GitHub 官方 description。
官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。
适配系统:量化投研平台、行情终端 · 得分 4.2
内置行情接入、因子计算与回测框架,可作为投研团队的策略实验与绩效归因底座。
适配系统:AI 应用平台、模型评测平台 · 得分 2.4
提供模型接入、编排与效果评测能力,可作为行业 AI 应用的工程底座与质量闸门。
以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。
用安装器输入管理员凭据、生成密钥并启动 GHCR Compose 栈,访问 127.0.0.1:8888 Web、8889 H5 和 5000/api/health。
运行时拓扑以 Nginx、Flask+Gunicorn API、PostgreSQL、Redis 和 Kafka 为容器所有权与事件数据流的真实来源,连接交易、策略调度、评估、审计、调度与监控组件。
来自 GitHub 仓库 README / 主页介绍正文,正文较长,已截断:保留前 20000 字符(原始 49,133 字节),完整内容见 GitHub 仓库。
<div align="center">
<a href="https://github.com/OpenByteInc/QuantDinger">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/screenshots/logo-dark.png">
<img src="docs/screenshots/logo.png" alt="QuantDinger logo" width="420">
</picture>
</a>
<p><strong>QuantDinger - Open-Source AI Quant Research Platform</strong></p>
<p>Turn trading ideas into Python strategies, backtests, paper trading, live execution, and monitoring — all in one self-hosted stack.</p>
<p><strong>QuantDinger is a product of Open Byte Inc.</strong></p>
<p><em>AI research → Strategy code → Backtest → Paper/Live execution → Monitoring</em></p>
<p>
<a href="README.md"><strong>English</strong></a>
·
<a href="README_CN.md"><strong>简体中文</strong></a>
·
<a href="README_TW.md"><strong>繁體中文</strong></a>
·
<a href="README_JA.md"><strong>日本語</strong></a>
·
<a href="README_KO.md"><strong>한국어</strong></a>
·
<a href="README_DE.md"><strong>Deutsch</strong></a>
·
<a href="README_FR.md"><strong>Français</strong></a>
·
<a href="README_RU.md"><strong>Русский</strong></a>
·
<a href="README_AR.md"><strong>العربية</strong></a>
·
<a href="README_TH.md"><strong>ไทย</strong></a>
·
<a href="README_VI.md"><strong>Tiếng Việt</strong></a>
</p>
<p>
<a href="docs/api/README.md"><strong>API</strong></a>
·
<a href="docs/agent/README.md"><strong>AI Agents & MCP</strong></a>
</p>
<p>
<a href="https://ai.quantdinger.com"><strong>Live App</strong></a>
·
<a href="https://www.quantdinger.com"><strong>Website</strong></a>
·
<a href="https://aws.amazon.com/marketplace/pp/prodview-ywy4zb5wnsari"><strong>Deploy on AWS Marketplace</strong></a>
·
<a href="#watch-quantdinger-in-action"><strong>Video Demo</strong></a>
·
<a href="mailto:support@quantdinger.com"><strong>Official Support Email</strong></a>
</p>
<p>
<a href="https://t.me/quantdinger"><img src="https://img.shields.io/badge/Telegram-Join-26A5E4?style=flat-square&logo=telegram&logoColor=white" alt="Telegram"></a>
<a href="https://discord.com/invite/tyx5B6TChr"><img src="https://img.shields.io/badge/Discord-Server-5865F2?style=flat-square&logo=discord&logoColor=white" alt="Discord"></a>
<a href="https://youtube.com/@quantdinger"><img src="https://img.shields.io/badge/YouTube-%40quantdinger-FF0000?style=flat-square&logo=youtube&logoColor=white" alt="YouTube"></a>
<a href="https://x.com/QuantDinger_EN"><img src="docs/badges/x-quantdinger.svg" alt="X @QuantDinger_EN"></a>
</p>
<p>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square" alt="Apache 2.0"></a>
<a href="https://codecov.io/gh/OpenByteInc/QuantDinger"><img src="https://codecov.io/gh/OpenByteInc/QuantDinger/branch/main/graph/badge.svg" alt="Codecov"></a>
<a href="https://scorecard.dev/viewer/?uri=github.com/OpenByteInc/QuantDinger"><img src="https://api.scorecard.dev/projects/github.com/OpenByteInc/QuantDinger/badge" alt="OpenSSF Scorecard"></a>
<a href="https://www.bestpractices.dev/projects/15860"><img src="https://www.bestpractices.dev/projects/15860/baseline" alt="OpenSSF Baseline"></a>
<a href="https://www.bestpractices.dev/projects/15860"><img src="https://www.bestpractices.dev/projects/15860/badge" alt="OpenSSF Best Practices"></a>
<a href="https://sonarcloud.io/summary/new_code?id=OpenByteInc_QuantDinger"><img src="https://sonarcloud.io/api/project_badges/measure?project=OpenByteInc_QuantDinger&metric=alert_status" alt="SonarQube Cloud Quality Gate"></a>
<a href="https://api.reuse.software/info/github.com/OpenByteInc/QuantDinger"><img src="https://api.reuse.software/badge/github.com/OpenByteInc/QuantDinger" alt="REUSE status"></a>
<a href="docs/compliance/OPENCHAIN_ISO_5230_SELF_ASSESSMENT.md" title="Open Byte Inc. OpenChain ISO/IEC 5230 conformant program"><img src="https://img.shields.io/badge/OpenChain_ISO%2FIEC_5230-conformant-0B6B53?style=flat-square" alt="OpenChain ISO/IEC 5230 conformant"></a>
<a href="docs/compliance/OPENCHAIN_ISO_18974_SELF_ASSESSMENT.md" title="Open Byte Inc. OpenChain ISO/IEC 18974 conformant program"><img src="https://img.shields.io/badge/OpenChain_ISO%2FIEC_18974-conformant-0B6B53?style=flat-square" alt="OpenChain ISO/IEC 18974 conformant"></a>
<img src="docs/badges/python-3.12.svg" alt="Python 3.12">
<img src="https://img.shields.io/badge/PostgreSQL-18-4169E1?style=flat-square&logo=postgresql&logoColor=white" alt="PostgreSQL 18">
<img src="https://img.shields.io/badge/Redis-8-DC382D?style=flat-square&logo=redis&logoColor=white" alt="Redis 8">
<img src="docs/badges/docker-compose.svg" alt="Docker Compose">
<a href="https://github.com/OpenByteInc/QuantDinger/releases/latest"><img src="docs/badges/latest-release.svg" alt="Latest release"></a>
</p>
<p>
<a href="https://github.com/orgs/OpenByteInc/projects/1"><img src="https://img.shields.io/github/issues/OpenByteInc/QuantDinger/roadmap?style=flat-square&label=Roadmap%20items&color=5319E7" alt="Open roadmap items"></a>
<a href="https://github.com/orgs/OpenByteInc/projects/1/views/4"><img src="https://img.shields.io/github/issues/OpenByteInc/QuantDinger/ready%20for%20contributors?style=flat-square&label=Ready%20tasks&color=0E8A16" alt="Tasks ready for contributors"></a>
</p>
<p><sub>SUPPORTED BY</sub></p>
<p>
<a href="https://www.atlascloud.ai/?utm_source=github&utm_medium=link&utm_campaign=quantdinger" title="Atlas Cloud — AI inference sponsor">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://www.atlascloud.ai/logo-white.svg">
<img src="https://www.atlascloud.ai/logo.svg" alt="Atlas Cloud" width="134" align="middle">
</picture>
</a>
<a href="https://aws.amazon.com/marketplace/pp/prodview-ywy4zb5wnsari" title="Deploy QuantDinger on AWS Marketplace">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://a0.awsstatic.com/libra-css/images/logos/aws_smile-header-desktop-en-white_59x35.png">
<img src="https://upload.wikimedia.org/wikipedia/commons/9/93/Amazon_Web_Services_Logo.svg" alt="Amazon Web Services" width="54" align="middle">
</picture>
</a>
<a href="https://openai.com/" title="OpenAI — open-source development tooling support">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/badges/openai-wordmark-white.svg">
<img src="docs/badges/openai-wordmark-black.svg" alt="OpenAI" width="150" align="middle">
</picture>
</a>
</p>
<p>
<a href="https://www.nvidia.com/en-us/startups/" title="Open Byte Inc. has joined NVIDIA Inception">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/badges/nvidia-inception-member-dark.png">
<img src="docs/badges/nvidia-inception-member.png" alt="NVIDIA Inception Program" width="64" align="middle">
</picture>
</a>
<strong>Open Byte Inc. has joined NVIDIA Inception.</strong>
</p>
</div>
> **Want to contribute?** Explore the
> [public roadmap](https://github.com/orgs/OpenByteInc/projects/1) or claim a
> scoped task from [Ready for contributors](https://github.com/orgs/OpenByteInc/projects/1/views/4).
> QuantDinger can submit real orders when live trading is explicitly enabled.
> Start with paper trading, use restricted API keys, and review the risk and
> compliance requirements for your jurisdiction. This project does not provide
> investment advice.
## Watch QuantDinger in action
<p align="center">
<a href="https://youtu.be/y9EiCZSaIt0">
<img src="docs/screenshots/quantdinger-youtube-overview.png" alt="Watch the latest QuantDinger overview on YouTube" width="800">
</a>
<br>
<strong><a href="https://youtu.be/y9EiCZSaIt0">▶ Watch the latest QuantDinger product tour on YouTube</a></strong>
</p>
## What QuantDinger is
QuantDinger is an **open-source AI Trading OS** for independent traders, Python
strategy authors, and small teams. Its local-first, self-hosted design keeps
market data, strategy code, broker credentials, and deployment under the
operator's control.
The project combines:
- multi-provider AI market research and analysis;
- Python indicators and Strategy API V2 development;
- a community-maintained library of ready-to-copy indicators and strategies;
- server-side backtesting and experiment workflows;
- paper and live execution across crypto exchanges and traditional brokers;
- web, mobile H5, human API, Agent Gateway, and MCP access;
- PostgreSQL-backed state, durable workers, audit logs, and optional monitoring.
It is not a black-box signal service. Strategy code, risk settings, credentials,
and deployment remain under the operator's control.
### Community indicator and strategy library
QuantDinger includes a file-based [community library](library/) for users who
want working examples without installing a package or importing database seed
data. Browse the ready-to-copy [indicators](library/indicators/) and
[Strategy API V2 strategies](library/strategies/), open a Python file, and paste
it into the corresponding QuantDinger editor.
The library is designed to grow through community pull requests. Indicator and
strategy authors are encouraged to contribute their own work, validation
evidence, fixes, and improvements so the collection can be maintained together.
See the [library contribution requirements](library/README.md#contributing) and
the main [contribution guide](CONTRIBUTING.md).
### Strategy evolution and signal-only virtual accounts
- **Factor Lab** loads one point-in-time universe panel once and benchmarks up
to 40 registered technical, fundamental, TA-Lib, or Qlib factors. It uses a
time-ordered holdout, out-of-sample IC retention, Benjamini-Hochberg
false-discovery control, cost-aware scoring, factor-life-cycle labels, and
cross-factor IC correlation. The same workflow is available from the web UI,
Human API, Agent Gateway, and MCP.
- **Strategy evolution** searches declared tunable parameters with random,
grid, or TPE optimization, using bar-count walk-forward validation and a final
blind holdout. Jobs run asynchronously with per-strategy history, automatic
pruning, composite scoring, PBO, Deflated Sharpe, block-bootstrap Monte Carlo,
and transaction-cost stress tests. Results compare parameter robustness; they
do not forecast future returns.
- **Signal-only virtual accounts** turn notification-mode signals into internal
virtual orders, fills, positions, trade records, PnL, and an equity curve. They
never connect to a broker or submit live orders. Each fill uses a fixed 0.05%
commission on executed notional and 0.05% adverse slippage; leverage is not
charged a second time in the commission calculation.
## What changed in v5
The v5 backend is organized around explicit runtime and operational boundaries:
- the HTTP API no longer owns long-running trading or scheduler loops;
- trading, scheduling, Celery jobs, and migrations run as separate processes;
- trusted workers retain strategy ownership, account checks, and order
submission, while untrusted Strategy API V2 discovery, backtests, and live
callbacks run in credential-free sandbox child processes;
- cache Redis and durable job Redis use separate instances and eviction policies;
- high-risk API contracts are represented in OpenAPI and protected by tests;
- JSON logs, request IDs, Prometheus metrics, dashboards, and alert rules are
available through an optional observability overlay;
- the production overlay runs backend processes as a non-root user with a
read-only root filesystem, dropped capabilities, and resource limits;
- CI checks syntax, lint, tests, release gates, Compose files, dependencies,
source security, secrets, API compatibility, version drift, and text encoding.
The source version is declared in [`VERSION`](VERSION). Git release tags use the
same semantic version with a leading `v`, for example `v5.0.1`.
## Architecture
<p align="center">
<img src="docs/screenshots/architecture-v5.png" alt="QuantDinger v5 architecture covering clients, Agent Gateway, core platform, distributed runtime workers, Kafka, infrastructure, observability, and the closed-loop trading workflow" width="100%">
</p>
<p align="center"><sub>The editable source is <a href="docs/screenshots/architecture-v5.svg">architecture-v5.svg</a>; the Mermaid topology below is the detailed runtime source of truth.</sub></p>
The static diagram above is the product-level view. The runtime topology below
is the current source of truth for container ownership and event/data flow.
```mermaid
flowchart TB
C["Web / Mobile / API / MCP clients"]
FE["Nginx frontend services"]
API["Flask + Gunicorn API"]
PG[("PostgreSQL")]
CACHE[("Redis cache")]
JOBS[("Redis jobs")]
KAFKA[("Kafka event backbone")]
TW["Trading workers\ncontrol, realtime, execution, grid actors"]
DISPATCH["Strategy dispatcher workers"]
EVAL["Strategy evaluator workers\nhot bar runtimes"]
SBOX["Credential-free strategy sandboxes\none live process per deployment\none process per backtest"]
AUDIT["Kafka audit worker"]
SW["Scheduler worker"]
CW["Celery workers\nAI/maintenance and backtest queues"]
BEAT["Celery beat"]
PROM["Prometheus"]
GRAF["Grafana"]
ALERT["Alertmanager"]
C --> FE --> API
API --> PG
API --> CACHE
API -->|"durable commands"| PG
TW -->|"leases, order intents, fills, grid actor state"| PG
TW -->|"closed bars and lifecycle events"| KAFKA
KAFKA --> DISPATCH --> KAFKA
KAFKA --> EVAL
EVAL -->|"inbox, leases, checkpoints, order intents"| PG
EVAL -->|"bar and state snapshots"| SBOX
SBOX -->|"validated intents and state"| EVAL
KAFKA --> AUDIT --> PG
PG -->|"owned pending orders"| TW
TW -->|"market, position, and order snapshots"| SBOX
SBOX -->|"validated intents and state"| TW
SW -->|"schedules, monitoring, heartbeats"| PG
API -->|"finite async jobs"| JOBS
BEAT --> JOBS --> CW
CW -->|"backtest snapshots"| SBOX
SBOX -->|"backtest results"| CW
CW --> PG
API -. metrics .-> PROM
PG -. exporter .-> PROM
CACHE -. exporter .-> PROM
JOBS -. exporter .-> PROM
PROM --> GRAF
PROM --> ALERT
```
One backend image is reused by several containers with different commands:
| Process | Responsibility |
| --- | --- |
| `migration` | Applies the database schema and exits before application services start. |
| `kafka-init` | Creates the versioned runtime topics and exits before event consumers start. |
| `backend` | Handles HTTP, authentication, validation, and durable command submission. |
| `trading-worker` | Owns control/realtime runtimes, exchange sessions, the fenced order gateway, reconciliation, and durable grid actors. |
| `strategy-dispatcher-worker` | Converts closed-bar events into stable strategy-shard evaluation batches. |
| `strategy-evaluator-worker` | Owns hot distributed bar runtimes and evaluates fenced strategy inbox events. |
| Strategy sandbox child | Executes untrusted indicator code and Strategy API V2 discovery, backtest, or live callbacks with a clean environment, JSON-only transport, resource limits, and Linux kernel confinement. It is spawned by a trusted owner and is not a standalone Compose service. |
| `kafka-audit-worker` | Validates and records the versioned event stream independently of execution. |
| `scheduler-worker` | Runs portfolio, deployment, payment, and signal schedules. |
| `celery-worker` | Executes finite AI, report, and maintenance jobs. |
| `celery-backtest-worker` | Executes backtests, factor research, and experiments; recycles its child after every task. |
| `celery-beat` | Dispatches periodic Celery tasks. |
See [Backend process roles](docs/architecture/PROCESS_ROLES_AND_TASKS.md),
[architecture](docs/architecture/ARCHITECTURE.md), and
[concurrency model](docs/architecture/CONCURRENCY_MODEL.md) for the ownership rules.
Use the [distributed runtime deployment and scaling guide](docs/deployment/DISTRIBUTED_RUNTIME_SCALING.md)
before changing replica counts or moving the stack to multiple hosts.
## Quick start
If you are unsure whether to choose Windows, Linux/macOS, a cloud server, SaaS,
or a mobile client, start with the
[installation and deployment overview](docs/getting-started/INSTALLATION.md).
Each path covers installation, verification, upgrades, post-install setup, and troubleshooting.
### Fastest cloud deployment: AWS Marketplace
<p align="center">
<a href="https://aws.amazon.com/marketplace/pp/prodview-ywy4zb5wnsari"><img src="https://img.shields.io/badge/AWS%20Marketplace-Deploy%20QuantDinger-FF9900?style=for-the-badge&logo=amazonaws&logoColor=white" alt="Deploy QuantDinger from AWS Marketplace"></a>
</p>
Launch the free QuantDinger software from its public
[AWS Marketplace product page](https://aws.amazon.com/marketplace/pp/prodview-ywy4zb5wnsari).
The Marketplace delivery option provisions the single-node container stack and
its required AWS infrastructure through CloudFormation. QuantDinger has no
software fee; normal AWS infrastructure charges still apply. See the
[deployment and upgrade guide](docs/deployment/AWS_MARKETPLACE_DEPLOYMENT.md)
for first login, backups, upgrades, rollback, and cost notes.
### Option A: prebuilt images
Prerequisites: Docker with Compose v2. Node.js and a local Python environment are
not required.
Linux or macOS:
```bash
curl -fsSL https://raw.githubusercontent.com/OpenByteInc/QuantDinger/main/install.sh | bash
```
Windows PowerShell:
```powershell
irm https://raw.githubusercontent.com/OpenByteInc/QuantDinger/main/install.ps1 | iex
```
The installer asks for the initial administrator credentials, generates the
required secrets, downloads the GHCR Compose stack, and starts it.
Open:
- Web: <http://127.0.0.1:8888>
- Mobile H5: <http://127.0.0.1:8889>
- API health: <http://127.0.0.1:5000/api/health>
### Docker administrator and settings notes
Detailed guides: [English](docs/deployment/ADMIN_AND_SETTINGS_TROUBLESHOOTING_EN.md) |
[中文](docs/deployment/ADMIN_AND_SETTINGS_TROUBLESHOOTING_CN.md)
On a fresh database, the backend creates the initial administrator from
`ADMIN_USER`, `ADMIN_PASSWORD`, and optional `ADMIN_EMAIL`. Passwords are stored
as hashes, never as plaintext. An existing PostgreSQL volume is not overwritten:
the backend only replaces the untouched legacy `quantdinger` / `123456`
administrator when a non-default administrator is explicitly configured. It
never overwrites an account whose password was already changed, and it refuses
to promote an existing account that already uses the requested username.
Manual Docker deployments retain `quantdinger` / `123456` only for backward
compatibility when the administrator variables are left at their defaults. This
credential is not suitable for an internet-facing deployment; change it before
first start or immediately after the first login. The one-command installer does
not accept `123456` as the chosen password.
The Settings UI writes runtime configuration to `/app/.env`, which is the
project-root `.env` on the host for both GHCR and source deployments. Current backend images automatically give runtime UID
`10001` ownership and keep mode `600`. Do not use `chmod 755` or recursive `777`:
these files contain passwords and API keys, and `755` still does not grant write
access to UID `10001` when root owns the file.
Verify write access with:
```bash
docker compose exec -u 10001:10001 -T backend \
sh -c 'test -w /app/.env && echo writable=yes || echo writable=no'
```
The hardened production override intentionally mounts `/app/.env` read-only.
When using `docker-compose.production.yml`, manage configuration on the host and
recreate the servic