Basic Prerequisites: 02 · The Market-Maker Problem.
1. Intuition & Practical Objective
This is the complete closed-form lookup page for the AS model. The practical objective: one master recipe for the optimal bid and ask quotes, with the derivation of the asymptotic solution the paper actually uses. Everything below is AS 2008 §3, cross-checked numerically against the paper’s own tables.
The solution is a two-step procedure:
- Compute the reservation price - solve the PDE for (or use the asymptotic closed form) to get the dealer’s inventory-adjusted fair value.
- Calibrate quotes to the book - solve the implicit first-order conditions for the distances , which for exponential intensities gives the closed-form spread.
The headline result is beautifully compact:
with . The quotes are the reservation price plus/minus half the spread - and the spread itself does not depend on inventory (a consequence of exponential intensities). All inventory dependence lives in the skew of .
2. Mathematical Ground Truth & Derivations
2.1 The reduced equation for
From 02, the ansatz turns the HJB into (AS eq. 3.3)
with . The first-order conditions for the two maxes give the implicit quote distances (AS eq. 3.6–3.7). For exponential intensities they solve explicitly.
2.2 Asymptotic expansion in inventory
Expand (3.10). The indifference relations (3.4)–(3.5) give
so that and the spread is . Grouping orders of :
- Order 1: , ⇒ - the reservation price at zero inventory is simply the mid-price.
- Order : , ⇒
Hence , recovering the frozen-inventory reservation price, and the spread is
Reading the spread. It has two economics:
- - the adverse-selection/book component: wider when risk aversion is high or the book is thin (small ). In the risk-neutral limit this tends to (finite).
- - the inventory-risk component: wider when the position can hurt (high , high , far from ). It vanishes at .
2.3 The two-component interpretation of
- = reservation price at zero inventory.
- = sensitivity of the quotes to inventory. If is large, accumulating drives the quotes aggressively down. The skew per unit inventory is exactly (the two terms are intentionally asymmetric in sign)… - see 04 · Inventory & Risk Aversion.
3. Computational Implementation - the AS quote engine + paper verification
The engine below reproduces the paper’s own spread column exactly. NumPy only.
The stationary spread column reproduces the paper’s Tables 1–3 (, , ) to their published precision. Note the skew: at both quotes sit $2 below the mid (bid , ask ) - the dealer is actively trying to sell.
4. Failure Modes & First-Principles Breakdowns
- Quote crossing / marketable quotes. If the skew exceeds half the spread, the “bid” rises above the “ask” of the unskewed market, or the quote becomes marketable (crosses the spread). Production engines clamp and cap ; the raw formula does not.
- Inventory-independent spread is an artefact. is independent of only because intensities are exponential and the expansion is linear. A quadratic approximation of the arrival term makes solve a nonlinear PDE (AS §3.2) and restores inventory dependence - don’t over-claim the closed form.
- The linear expansion is only good near . Guéant et al. (2013) show the approximation degrades for large inventories, where the true quotes must be clamped by an inventory limit. The AS formula is a local (small-) result.
- Spread is quoted around , not . A common bug is to quote the spread symmetrically about the mid and then add the skew - double-counting inventory. The correct construction: skew the centre to first, then add .
5. References
- Avellaneda & Stoikov (2008), Quantitative Finance 8(3)
- Guéant, Lehalle & Fernandez-Tapia (2013), Math. & Financial Econ. 7(4)
- Cartea, Jaimungal & Penalva (2015), Algorithmic and High-Frequency Trading