Avellaneda-Stoikov Market Making Lab
Model Marco Avellaneda and Sasha Stoikov's (2008) high-frequency market making model, reservation price skewing, optimal bid-ask spreads, and inventory risk control.
Microstructure Parameters
Microstructure & Inventory Control Decomposition
Stochastic Control & Simulation Equilibrium| Metric / Parameter | Mathematical Formula / Definition | Simulated Equilibrium Value |
|---|
Sensitivity 1: Risk Aversion (\(\gamma\)) vs Fill Decay (\(\kappa\)) on Optimal Spread \(S^*\) ($)
Sensitivity 2: Inventory (\(q\)) vs Horizon Remaining (\(T - t\)) on Reservation Skew (\(r - s\))
Theoretical Foundations: The Avellaneda-Stoikov (2008) Framework
In high-frequency algorithmic trading, market makers provide liquidity by posting limit orders at both the bid and the ask. However, providing liquidity carries two acute financial risks: adverse selection (trading against informed order flow) and inventory risk (accumulating large directional positions whose value fluctuates wildly before they can be unwound).
In their landmark 2008 paper "High-frequency trading in a limit order book", Marco Avellaneda and Sasha Stoikov formulated market making as an optimal stochastic control problem under constant absolute risk aversion (CARA) utility:
1. Reservation Price (Indifference Valuation)
A market maker with inventory \(q\) values the asset differently from the unconstrained market mid-price \(s\). The reservation price \(r(s, q, t)\) satisfies the dynamic indifference condition:
When \(q > 0\) (long inventory), holding more shares increases portfolio variance. The market maker's private valuation drops below the mid-price (\(r < s\)), inducing them to shade both quotes downward to entice buyers and offload inventory.
2. Limit Order Fill Intensity
Incoming market order arrivals follow a Poisson process whose fill intensity decays exponentially with the distance \(\delta\) from the mid-price:
Where \(A\) is the baseline arrival rate and \(\kappa\) characterizes the order book liquidity elasticity. Quoting closer to the mid-price drastically increases fill probability at the expense of a narrower earned spread.
3. Optimal Bid and Ask Quoting Schedules
Solving the Hamilton-Jacobi-Bellman (HJB) PDE yields optimal half-spread distances \(\delta^a\) and \(\delta^b\) positioned symmetrically around the reservation price \(r(s, q, t)\):
Where the optimal baseline spread is \(S^* = \frac{2}{\gamma}\ln\left(1 + \frac{\gamma}{\kappa}\right)\). Quotes naturally track the reservation price, ensuring continuous inventory self-correction.
4. Why Naive Symmetric Market Makers Fail
A naive market maker centers quotes at the mid-price \(s_t \pm \frac{1}{2}S\) regardless of inventory position \(q\).
Without reservation price feedback, naive market makers suffer from inventory runaway: in trending or volatile conditions, adverse executions accumulate without self-correction, causing massive mark-to-market drawdowns and frequent ruin.
Avellaneda-Stoikov Market Making Mastery Quiz
Related Quantitative Trading & Microstructure Simulators
VPIN & Order Flow Toxicity Lab
Model Easley-López de Prado-O'Hara volume clock toxicity, bulk volume classification, and flash crash liquidity cascades.
Kyle's Lambda & Microstructure Lab
Model Pete Kyle's (1985) insider trading equilibrium, Glosten-Milgrom Bayesian price discovery, and adverse selection spreads.
Almgren-Chriss Optimal Execution Lab
Balance permanent and temporary market impact against execution risk on optimal non-linear trading trajectories.