OpenByteInc/QuantDinger
Self-hosted quant trading with isolated Python strategies, backtesting, and agent access
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
QuantDinger uses Nginx to serve its web and mobile H5 interfaces, with Flask/Gunicorn handling HTTP. The API writes durable commands to PostgreSQL rather than running trading loops in request processes. Kafka carries closed-bar and lifecycle events through strategy dispatch and evaluation; a separate audit worker persists Kafka records to PostgreSQL. Trading and evaluation workers also use PostgreSQL for ownership leases, checkpoints, and order intents. Celery uses a dedicated jobs Redis instance, separate from the API cache.
Strategy API V2 is the Python extension boundary. There is one sandbox process per live deployment or backtest. Sandboxes receive snapshots and return intents and state without gaining access to credentials. Trusted workers retain account checks, reconciliation, and order submission; leases, heartbeats, and fencing tokens govern long-running ownership. Integrators can use the Human API, Agent Gateway, or MCP without embedding broker submission logic in the client.
Key Capabilities & Differentiators
The workflow spans multi-provider AI research, Python indicators and strategies, server-side backtesting, and paper or live execution across crypto exchanges and traditional brokers. Factor Lab loads a point-in-time universe panel once to benchmark up to 40 registered technical, fundamental, TA-Lib, or Qlib factors. It combines time-ordered holdout, out-of-sample information coefficient (IC) retention, Benjamini–Hochberg false-discovery control, cost-aware scoring, and cross-factor IC correlation. The workflow is available through the web UI, Human API, Agent Gateway, and MCP.
Strategy evolution searches declared tunable parameters asynchronously with random, grid, or TPE optimization. Bar-count walk-forward validation and a final blind holdout are paired with PBO, Deflated Sharpe, block-bootstrap Monte Carlo, and transaction-cost stress tests. These help assess robustness, not predict returns. Signal-only virtual accounts turn notifications into internal orders, fills, positions, and equity curves without contacting a broker. Their fixed 0.05% commission on executed notional and 0.05% adverse slippage are simulation assumptions, not estimates of venue costs.
Trade-offs & Limitations
QuantDinger makes sense when research and execution are both in scope: the same platform takes a Python strategy through backtesting and paper trading to a separately authorized live deployment. A standalone backtester is easier to operate if research is the endpoint; a managed platform can reduce infrastructure work if you are willing to give up some control over deployment and credential custody. Kafka, PostgreSQL, two Redis instances, and several worker roles make this a larger system to monitor, back up, and upgrade than a Python research tool.
Sandboxing reduces the authority granted to strategy code, but it also introduces a hard compatibility gate: untrusted code will not run if Linux seccomp and Landlock confinement cannot be activated. Confirm this in the intended host environment before committing to the stack. Before enabling live trading, validate venue behavior in paper mode, use restricted broker keys, and review applicable market-data and trading terms. Historical robustness metrics and simulated fills do not establish live execution quality.
Hardware & Deployment Guide
Prebuilt deployments use Docker Compose v2 and do not require Node.js or Python on the host. The source path uses scripts/bootstrap_env.py to create or update the root .env; the default Compose stack builds the backend locally and pulls the web and mobile images from GHCR. The v6.0.7 release provides a Sigstore-signed backend image for amd64 and arm64, with IMAGE_TAG=v6.0.7 for pinning in docker-compose.ghcr.yml. AWS Marketplace offers a single-node CloudFormation deployment.
For production, use docker-compose.production.yml for a non-root backend with a read-only root filesystem and dropped capabilities. It also mounts .env read-only, so configure it on the host rather than through the UI. Keep the database, Redis, and monitoring endpoints private behind a TLS reverse proxy for public access. Back up PostgreSQL and durable jobs Redis, and preserve the credential-encryption key across upgrades. Size the host against real worker concurrency and backtest workloads; self-hosting does not make connected market data, AI providers, or broker services available offline.
Python strategy authors and small teams that need to move from research to paper and live trading on infrastructure they control, with API or MCP access for agents.
You only need notebook-scale backtests, want a fully managed execution service, or cannot operate the multi-service stack on a Linux runtime that supports the sandbox requirements.
Quick Start & Installation
curl -fsSL https://raw.githubusercontent.com/OpenByteInc/QuantDinger/main/install.sh | bash
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| QuantDinger ★ | 14.2k | +185 | Python | Apache-2.0 | Self-hosted quant trading with isolated Python strategies, backtesting, and agen |
| Vibe-Trading | 39.6k | +490 | Python | MIT | A self-hosted trading agent for evidence-linked research and inspectable backtes |
| FinceptTerminal | 34.5k | +217 | C++ | AGPL-3.0 | A native C++20/Qt6 terminal for financial research, quant analytics, and AI agen |
| nanobot | 50.5k | +157 | Python | MIT | A self-hosted Python gateway for personal AI across web, terminal and chat. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/OpenByteInc/QuantDinger.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about QuantDinger
How should an external application or agent integrate with QuantDinger?
Do I need a GPU, and what determines host capacity?
Can I self-host it commercially, and what obligations remain?
When is it preferable to a standalone backtester or a managed platform?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy