HUB
Sign inSign up

quantbook/quantbook-node

By quantbook

•Updated 4 days ago

Self-hosted trading node: WebSocket hub, durable store, REST API and terminal UI in one container.

Image
Message queues
Web servers
Monitoring & observability
0

179

quantbook/quantbook-node repository overview

⁠Docker Hub listing: quantbook/quantbook-node

Paste the two sections below into the repository settings on Docker Hub.

⁠Short description (max 100 characters)

Self-hosted trading node: WebSocket hub, durable store, REST API and terminal UI in one container.

⁠Repository overview (full description)

⁠Quantbook Node

The Quantbook node is a self-hosted trading server. In one container it provides:

  • A WebSocket/HTTP hub that routes market data, orders, fills and positions by topic.
  • Durable storage (BadgerDB) with TTLs and replay, so clients can catch up on anything they missed.
  • A REST API for publishing, replaying, browsing the store, routes and administration.
  • A process supervisor that starts, stops and monitors exchange connectors, the Lua logic VM and AI agent services.
  • The terminal UI, a docked trading workspace with a price ladder, order entry, positions and service management, served at /terminal/.

The image bundles the paper exchange (a simulated venue) and the Lua logic runtime. Neither needs exchange credentials, so you can place simulated orders and run strategies straight away. Real exchange connectors and other services are installed from a package registry inside the terminal UI.

⁠Quick start

docker run -d --name quantbook \
  -p 8080:8080 \
  -e MASTER_PASSWORD='choose-a-strong-password' \
  -v quantbook-data:/var/lib/quantbook/database \
  quantbook/quantbook-node

Open http://localhost:8080/terminal/⁠ and sign in with the password. Start the paper exchange from the Services panel.

With MASTER_PASSWORD unset, authentication is disabled and anyone who can reach the port has full access. Only do that on a private machine.

⁠Docker Compose

services:
  quantbook:
    image: quantbook/quantbook-node:latest
    ports:
      - "8080:8080"
    environment:
      MASTER_PASSWORD: ${MASTER_PASSWORD}
    volumes:
      - quantbook-data:/var/lib/quantbook/database
    restart: unless-stopped

volumes:
  quantbook-data:

⁠Tags

TagContents
latest, <version>The standard build.
oss, oss-<version>The open build, without Volume Premium billing.

Images are multi-arch (linux/amd64, linux/arm64). Pin a version tag for anything you rely on.

The standard build asks you to accept the end-user licence agreement in the terminal UI on first use.

⁠Configuration

Port8080 (HTTP, WebSocket at /ws, UI at /terminal/)
Data volume/var/lib/quantbook/database
Config file/etc/quantbook/config.yml (mount your own over it to replace it)
UserNon-root (quantbook, uid 10001)
Health checkPolls /terminal/ every 30 seconds

Secrets come from environment variables, which always override the config file:

VariablePurpose
MASTER_PASSWORDProtects the UI, REST API, WebSocket and admin endpoints.
TLS_CERT, TLS_KEYPaths to PEM files to serve HTTPS directly. Otherwise put the node behind a TLS-terminating proxy.
QUANTBOOK_MODULE_ORIGINPackage registry to install and update modules from.
QUANTBOOK_RELEASE_PUBLIC_KEYSExtra trusted release-signing keys (comma-separated) for node updates.

Any string in the config file can also use ${NAME}, ${NAME:-default} or ${file:/path}, which works well with Docker secrets, for example master_password: ${file:/run/secrets/quantbook_password}.

⁠Persistence

Only the database is a volume. Installed modules and per-service config live under /app/services. To keep them across container re-creation, mount a volume there as well:

-v quantbook-services:/app/services

A new named volume is filled from the image on first use, so the bundled paper exchange and Lua runtime are still there. Bind mounts are not filled this way and start empty.

⁠Updates

The container runs the Quantbook launcher, which starts the active node version and restarts it after an update. New node releases are installed only when their ed25519 signature verifies against a trusted key, and installing never switches versions on its own: you activate and restart as separate steps. The simplest upgrade path is to pull a newer image tag and recreate the container; the database volume carries over.

⁠Security notes

  • Set MASTER_PASSWORD and use TLS (directly or through a proxy) before exposing the port beyond localhost.
  • The AI agent services are read-only advisors: they cannot place, cancel or modify orders.
  • Exchange private keys can be supplied through environment variables or secret files rather than written into config.
  • quantbook/quantbook-registry: a self-hostable package registry for services, logics and node releases.
Tag summary
Recent tags
Content type
Image
Digest
sha256:ea87f6a59…
Size
74 MB
Last updated
4 days ago
docker pull quantbook/quantbook-node:latest