Leanpub Header

Skip to main content

Building a Production Quant Trading System

Building a Production Quant Trading System
This book is 100% completeLast updated on 2026-07-24

Most writing about quant trading is about finding edges. This book is about everything that happens after you think you've found one: proving it's real, wiring it to a broker without lying to yourself, sizing it so a bad month doesn't end you, and running it as a process that survives restarts, data outages, and your own future mistakes.

Repository (https://github.com/rayan-azhari/titan-quant).

Minimum price

$19.99

$34.99

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
About

About

About the Book

Everything that happens after you think you've found an edge.

Most writing about quant trading is about finding edges. This book is about the unglamorous 90% that decides whether a trading idea survives contact with a live market: proving the edge is real, wiring it to a broker without lying to yourself, sizing it so a bad month does not end you, and running it as a process that survives restarts, data outages and your own future mistakes.

It is built around a single real, sanitised system, a multi-strategy, broker-connected book called Titan, used as the running case study. Titan is opinionated and battle-scarred: it has shipped look-ahead bugs, mis-sized a position by a third on a currency assumption, crash-looped on its own data-quality gate, and had an entire quarter of "validated" results thrown out because the methodology underneath them could not be trusted. Those scars are the point. You will learn more from why each guardrail exists than from any clean architecture diagram.

What the book works through:

  • Foundations - the architecture, stack choices and project layout that survive live markets
  • Research and validation - deflated Sharpe ratios, walk-forward that is genuinely out-of-sample, a catalogue of the ways a backtest lies, and a decision matrix for when a strategy is ready
  • Data - sourcing, storage, and the quality gate that keeps bad ticks out of research
  • Research to production - broker realities and a typed contract that keeps live behaviour identical to the backtest
  • Portfolio and risk - position sizing via a modified Kelly criterion, a correlation-aware allocator, and a layered safety system with a real kill switch
  • Deploy and operations - containerisation, the paper-to-live transition, and a runbook for incidents at 3am

This is a guide to the engineering and methodology of a production systematic-trading stack. It is not a source of alpha: specific parameters, instrument lists and live performance are deliberately omitted or clearly labelled as illustrative. The value is the process, which is exactly what is safe to share. It is educational material, not investment advice.

Written by Dr. Rayan Azhari, who has followed the markets for fifteen years and built the system he wanted to read about. A sanitised, runnable companion framework on GitHub holds the validation, risk and metrics modules the chapters describe.

Author

About the Author

Dr. Rayan Azhari

Dr. Rayan Azhari is a London-based researcher and consultant (PhD; Chartered Environmentalist, CEnv MISEP) whose work spans sustainability and energy systems, with a long-running practice in programming and quantitative methods. This book

distils the engineering and methodology behind the systematic trading system he designed and runs, the parts that decide whether an edge survives contact with a real market.

Get the free Community Edition

You can get the free Community Edition in PDF or EPUB just by sharing your name and email address with the author, or you can just click this link to read a shorter sample online...

 

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub