Systematic trading, built in Rust and Python

Clean data in. Tested strategies out. Every day, without babysitting.

Quant Blazer is a framework for researching, testing and trading rule-based strategies. A data layer keeps clean, versioned market data. Strategies are written in Python and backtested on NautilusTrader. Quant Blazer Pilot re-runs every backtest each night on the new data and turns the live strategies' signals into orders on Kraken.

From research to a live order

The data layer publishes one versioned copy of the market data, which the pilot and every development machine read. A strategy is built and stress-tested on that data, packaged once and loaded into the pilot. The same package on the same data gives the same fills on both sides, so what runs live is exactly what was tested.

Project 01 · Data

Data layer

The data modules of Quant Blazer Pilot, in a container of their own that holds no trading key and places no orders. Each night the Kraken module downloads the daily candles of every USD pair, keeps them exactly as received, builds a NautilusTrader catalog and publishes it for the pilot and for development machines.

  • Raw files never change. Vendor files are stored as received and the store refuses a changed file. The catalog is rebuilt from them, byte for byte the same every time.
  • Immutable snapshots. Every rebuild is a new snapshot named by a fingerprint of its contents, verified file by file against its manifest before it becomes current. A backtest pins the snapshot it started on.
  • An end-of-day gate. A night is marked ready only when its last bar is the session close and the required pairs are in. The pilot's cycle starts the moment it is.
  • No survivorship bias. Delisted pairs keep their history. Gaps in Kraken's archive are filled from older releases, and every day records where it came from.
  • Published and backed up. Each ready snapshot goes to cloud storage, snapshot first and pointer last, and development machines sync and verify it with qb-dev sync.
  • One folder per source. Each vendor and asset class is its own domain that shares nothing with the others, so futures data can be added beside Kraken.

Rust · NautilusTrader Parquet catalog · Backblaze B2

# one folder per data domain
kraken/
  raw/       files as received, never changed
  catalog/   NautilusTrader Parquet snapshots,
             rebuilt from raw
  meta/      manifest, data version,
             current pointer, end-of-day status

# readers only ever see
current  -> snapshot <data_version>
eod.json -> ready for the session?

Project 02 · Trading

Quant Blazer Pilot

One Rust program in one Docker image, run as three containers. It keeps the market data, backtests every strategy each night on the new bars, and trades the ones chosen to be Live. It has been trading on Kraken since November 2026.

  1. 1DataThe night's snapshot from the data layer, ready shortly after 00:00 UTC.
  2. 2BacktestEvery strategy re-run on the new data the moment it is ready, Live ones first.
  3. 3TicketThe backtest's new entries, sized to the real account; exits for the positions actually held.
  4. 4ApprovePer strategy, by hand or automatically, within caps and an expiry time.
  5. 5Send and trackOrders go to Kraken, fills are synced, and live results are compared with the backtest.

How it works

  • Three containers, one image. data keeps the market data, pilot runs the cycle and the page, and exec is the only holder of trading keys, with caps the pilot cannot change.
  • Live follows the backtest. Every strategy is backtested daily on the same standard account. Live entries are copied from it; exits follow the strategy's own rule for the positions really held.
  • Same package, same fills. Strategies arrive as hashed packages from qb-dev, and every run records the data version it used, so a result can always be reproduced.
  • Only what the account can trade. Pairs the exchange does not offer in the account's region are left out of the data itself, so the backtest never holds a coin the account cannot.
  • Told, not watched. Telegram and email say when a ticket is ready or something failed, and a dead man's switch raises the alarm if the pilot goes quiet.
  • Built from modules. Data vendors and brokers are modules switched on in settings. Kraken is the first of each; futures data and other brokers are planned the same way.

Rust · Docker · SQLite · NautilusTrader backtest worker

Project 03 · Research

Strategy Kit and qb-dev

The Strategy Kit is a Python SDK and backtest worker on NautilusTrader: one strategy per file, with named entry conditions, shipped as a versioned, hashed package. qb-dev is the command-line tool around it, from a new strategy to a package the pilot can load.

  • A mechanical gate. check passes or fails a strategy before any judgement is made about it.
  • Robustness studies. Year by year, parameter sweeps, removing conditions one at a time, random-entry baselines, size ladders, overfitting probability (PBO) and walk-forward.
  • An honest holdout. Every new strategy keeps its last 24 months back. Development and every study stop before it, and the out-of-sample run is made once, at the end.
  • Reports to read. view turns runs and studies into HTML pages and PDFs, with every strategy side by side.
  • Portfolios. Strategies are combined by weight from their own backtests, and each portfolio is kept and judged by its forward record.
  • Works with an AI agent. A Claude Code plugin with commands and skills, and an MCP server that offers the same tools to Claude Desktop, Codex and other MCP apps.

Python · NautilusTrader · Claude Code plugin · MCP

# a strategy from idea to package
qb-dev new
qb-dev backtest <strategy>
qb-dev check <strategy>
qb-dev research <strategy> walkforward
qb-dev oos <strategy>
qb-dev package <strategy>

# charts of every run and study
qb-dev view <strategy> --pdf

Project 04 · Ideas

qb-scout

A research bot that turns papers, articles and links into short wiki pages that wait for review. Send it a file or forward an email; it reads the document, extracts each strategy's rules and claimed results, and checks its own work before anything reaches the wiki.

  • Every claim marked. Each point is marked as found in the source (with its page), not found, only partly supported, or a guess.
  • Nothing without review. Pages land in an inbox. They join the wiki only when accepted, as edited.
  • Holdout aware. Each idea notes whether its results may already overlap the 24-month holdout used in research.
  • Private and local. A Rust program on the owner's machine, kept apart from the trading system because it reads outside documents.

Rust · Claude · Markdown wiki

# a document becomes a wiki page
file, link or email
  -> queue
  -> read and extract
  -> second read checks the claims
  -> code checks quotes and dates
  -> inbox, waiting for review
  -> accepted into the wiki