Joaquin Bejar · Engineering notebook

Notes on building trading systems, and the mathematics underneath them.

Quantitative development, trading infrastructure and algorithms, explained with code and measurements. Written in English and translated into Spanish, French, German and Simplified Chinese.

Latest articles

All articles

Live demo

Chainwalk

Watch an options position breathe.

A simulator that walks a multi-leg options position through a stochastic market, step by step, showing the P&L and twelve Greeks as they move. Every price is a bid or an ask, so spread and commission are charged on entry, and every run is reproducible and shareable.

  • Many expirations and strikes alive at once on one market tape
  • Ten stochastic models, from geometric Brownian motion to Heston and GARCH
  • A study API for Monte Carlo reports over thousands of paths

Rust · TypeScript · OptionChain-Simulator · Monte Carlo

Open Chainwalk

Order books & matching

OrderBook-rs (GitHub)

A high-performance, thread-safe limit order book implementation written in Rust. This project provides a comprehensive order matching engine designed for low-latency trading systems, with a focus on concurrent access patterns and lock-free data structures.

Rust539 starsUpdated Sep 2026

Options & derivatives

OptionStratLib (GitHub)

OptionStratLib is a comprehensive Rust library for options trading and strategy development across multiple asset classes.

Rust251 starsUpdated Sep 2026

Market making & DeFi

market-maker-rs (GitHub)

A Rust library implementing quantitative market making strategies, starting with the Avellaneda-Stoikov model. This library provides the mathematical foundations and domain models necessary for building automated market making systems for financial markets.

Rust102 starsUpdated Sep 2026