Basic Prerequisites: Stochastic Calculus & Itô’s Lemma and Probability & Stochastic Control. (these are the folder-level prerequisites for pages 02–06; page 01 states its own, smaller, entry requirements)
1. Intuition & Practical Objective
The Avellaneda–Stoikov (AS) model is the zero point of optimal high-frequency market making, the way Black–Scholes is the zero point of derivative pricing. Its claim is sharp: a dealer who quotes a two-sided market and maximizes the expected exponential utility of his terminal wealth should shade his quotes off the mid-price by a reservation price that depends on his inventory, and should quote a spread that is fixed by risk aversion and the liquidity of the book.
This folder is the topic-folder for Pillar 6 of the Kwant-Atlas. It is a hub: it (a) gives you the fast formula lookup below (job #1 - the reservation price and the optimal spread), and (b) routes you to six sub-pages that walk you from raw intuition through the market-maker’s problem, the solution, risk aversion, the failure modes, and the extensions.
The one-sentence essence. “A market maker with inventory and risk aversion should treat the reservation (indifference) price - not the mid-price - as his personal fair value, and quote a spread around it.”
2. Mathematical Ground Truth & Derivations
Quick-Reference Lookup (job #1). All formulas below are transcribed from Avellaneda & Stoikov (2008), High-frequency trading in a limit order book, Quantitative Finance 8(3) - the canonical paper - and cross-checked against Guéant, Lehalle & Fernandez-Tapia (2013) and Cartea, Jaimungal & Penalva (2015). The numbers in the check column were re-executed and reproduced exactly (see §3).
Notation: mid-price, inventory (shares), time, terminal horizon, remaining time, mid-price volatility (per unit time), absolute risk aversion, book liquidity density, order-arrival scale, distances of the bid/ask from the mid.
| Quantity | Formula | Verified check |
|---|---|---|
| Mid-price dynamics | (arithmetic BM, no drift) | AS eq. (2.1) |
| Value function (frozen inventory) | AS eq. (2.3) | |
| Reservation (indifference) price | ||
| Reservation bid | numerically at | |
| Reservation ask | numerically at | |
| Indifference mean | exact | |
| Fill intensity at distance | AS eq. (2.11) | |
| Optimal total spread | AS eq. (3.18) | |
| Stationary spread ( term out) | ; paper Table 1: | |
| Optimal quotes | bid , ask |
Critical scaling caveat. The paper’s Tables 1–3 report a spread of for - those figures are the stationary -component alone. The full spread at adds the inventory-risk term . Confusing which component is which is the single most common lookup error in this model.
3. Computational Implementation - the AS quote engine
This runs on NumPy and reproduces every checked number above, including the paper’s own spread column. It is the same engine the sub-pages use.
The spread column reproduces the paper’s exactly (to their two decimals). Note that long inventory shifts both quotes down by : at the MM is willing to sell below the mid-price because carrying the position is expensive.
4. Failure Modes & First-Principles Breakdowns
Hub signposts - the folder’s failure-mode analysis lives in 05 · Failure Modes & Practice. In one line each:
- Adverse selection is not in the model. AS prices pure inventory risk over a Poisson flow of uninformed orders. Informed flow (pick-off risk) is invisible to it - our simulation shows the AS P&L only turning negative once roughly 60% of fills are informed (it stays positive to ~40%).
- Parameter estimation kills it. The arrival parameters and must be estimated from the book, and chosen; the strategy is only as good as those numbers. collapses in news, exactly when quotes matter most.
- The terminal penalty vanishes near . As the reservation skew , so the model abandons inventory protection just when liquidity evaporates (the reason production systems add a hard inventory cap - see 06 · Advanced Extensions).
5. References
- Avellaneda, Marco & Stoikov, Sasha: High-frequency trading in a limit order book, Quantitative Finance 8(3), 217–224 (2008). The canonical paper for this folder; every formula above transcribed and numerically verified.
- Guéant, Olivier, Lehalle, Charles-Albert & Fernandez-Tapia, Joaquin: Dealing with the inventory risk: a solution to the market making problem, Mathematics and Financial Economics 7(4), 477–507 (2013). *Rigorous HJB treatment
- Cartea, Álvaro, Jaimungal, Sebastian & Penalva, José: Algorithmic and High-Frequency Trading, Cambridge University Press (2015). The modern textbook; the A–S family, adverse selection, and execution in one voice.
- Ho, Thomas & Stoll, Hans: Optimal dealer pricing under transactions and return uncertainty, Journal of Financial Economics 9(1), 47–73 (1981). The intellectual ancestor: dealer pricing under inventory risk.
- Cartea, Álvaro & Jaimungal, Sebastian: Risk metrics and fine tuning of high-frequency trading strategies, Mathematical Finance 25(3), 576–611 (2015). *Generalizes A–S beyond exponential utility
6. Connected Graph Bridges
- Foundational base: Stochastic Calculus & Itô · Probability & Stochastic Control
- Sibling topic (in-pillar): Inventory Management & Quote Skewing · Adverse Selection & Glosten–Milgrom
- Sub-pages (in-folder): 01 From Zero · 02 The Market-Maker Problem · 03 The AS Model · 04 Inventory & Risk Aversion · 05 Failure Modes · 06 Advanced Extensions
- Cross-pillar: Optimal Execution & Almgren–Chriss