Open-source AI Trading OS
Turn trading ideas into Python strategies, backtests, paper trading, live execution, and monitoring — all in one self-hosted stack.
QuantDinger is a product of Open Byte Inc.
AI research → Strategy code → Backtest → Paper/Live execution → Monitoring
English · 简体中文 · API · AI Agents & MCP
Live App · Website · Video Demo · Official Support Email
SUPPORTED BY
The editable source is available as architecture-v5.svg.
The diagram above shows the complete product and process architecture. The runtime topology below focuses on container-to-container ownership and 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")] TW["Trading worker"] SW["Scheduler worker"] CW["Celery worker"] BEAT["Celery beat"] PROM["Prometheus"] GRAF["Grafana"] ALERT["Alertmanager"] C --> FE --> API API --> PG API --> CACHE API -->|"durable commands"| PG TW -->|"leases, orders, heartbeats"| PG SW -->|"schedules, monitoring, heartbeats"| PG API -->|"finite async jobs"| JOBS BEAT --> JOBS --> 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. | | `backend` | Handles HTTP, authentication, validation, and durable command submission. | | `trading-worker` | Owns strategy runtimes, pending orders, broker sessions, and reconciliation. | | `scheduler-worker` | Runs portfolio, deployment, payment, and signal schedules. | | `celery-worker` | Executes finite AI, backtest, experiment, report, and maintenance jobs. | | `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. ## Quick start ### 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:|
Atlas Cloud AI inference sponsor |
Amazon Web Services Cloud infrastructure sponsor |
If QuantDinger is useful to you, a GitHub star helps the project a lot.