Guéant-Tapia-Manziadi (2012) Market Making Lab
Simulate Olivier Guéant, Charles-Albert Tapia, and Olivier Manziadi's (2012) closed-form solution to the Avellaneda-Stoikov market making problem. Model exact tridiagonal matrix exponential linearization, hard inventory bounds $[-Q, +Q]$, and non-linear optimal bid-ask quoting.
1. Cole-Hopf Ansatz & Tridiagonal Linear System
Avellaneda & Stoikov's coupled nonlinear Hamilton-Jacobi-Bellman PDE is linearized using the ansatz $u(x, q, s, t) = -\exp(-\gamma(x + q s)) v_q(t)^{-\gamma/\kappa}$. The vector $v(\tau) = (v_{-Q}(\tau), \dots, v_Q(\tau))^T$ with $\tau = T - t$ satisfies:
Where $M_{i,i} = -\frac{1}{2}\kappa\gamma\sigma^2 q_i^2$ on the diagonal, and $M_{i,i\pm 1} = C = \frac{A}{1+\gamma/\kappa}(1+\frac{\gamma}{\kappa})^{-\kappa/\gamma}$ on the off-diagonals.
2. Exact Closed-Form Optimal Half-Spreads
From the exact solution $v(\tau)$, the dealer quotes optimal bid and ask offsets without heuristic asymptotic approximations:
At limits $q = Q$ and $q = -Q$, quotes naturally retreat to $+\infty$, eliminating the need for ad-hoc inventory clipping rules.
HFT Equities Market Maker: Tight order book queue liquidity (kappa = 1.5, A = 140) and moderate risk aversion (gamma = 0.10) with inventory limits +/-5 shares.
Sensitivity Grid 1: Inventory $q$ vs Risk Aversion $\gamma$ → Total Spread $(\delta_a^* + \delta_b^*)$
Shows how optimal total quoted spread expands non-linearly as dealer risk aversion and inventory accumulation intensify:
Sensitivity Grid 2: Liquidity $\kappa$ vs Volatility $\sigma$ → Half-Spread at Zero Inventory $\delta^*(q=0)$
Quantifies baseline quoting half-spread across order book depth elasticity and asset price uncertainty:
Cartea-Jaimungal (2014) Market Making Lab
Optimal high-frequency quoting with short-term predictive alpha drift signals, Ornstein-Uhlenbeck processes, and inventory risk control.
Explore Cartea-Jaimungal LabAvellaneda-Stoikov Market Making Lab
Classical stochastic optimal control, Poisson fill intensities, reservation price skewing, and inventory risk control.
Explore Avellaneda-Stoikov LabCont-Stoikov (2010) Order Book Lab
Markovian queue depletion, birth-death depth dynamics, 2D harmonic absorption, and order book imbalance.
Explore Cont-Stoikov Lab