The Avellaneda-Stoikov Model
The canonical high-frequency market-making model, an inventory-averse quoter derives a reservation price that skews with position, then sets optimal bid/ask offsets balancing spread capture against inventory risk, with a closed-form optimal spread.
Prerequisites: Brownian Motion, Expectation, Variance & Moments
Avellaneda and Stoikov (2008) gave market-making its cleanest quantitative recipe. A dealer must continuously post a bid and an ask; quote too wide and you never trade, too tight and you accumulate a dangerous inventory that the price then moves against. Their model solves this as a stochastic-control problem and produces two beautiful objects: a reservation price that shifts with your inventory, and an optimal spread around it. It is the practical face of Bid-Ask Spread Decomposition's inventory component and the starting point for essentially all modern automated market-making.
Setup
The mid-price is driftless Brownian motion (a Brownian Motion):
The dealer posts a bid at and an ask at . Orders arrive as a Poisson process whose intensity falls exponentially the further your quote is from the mid, quote closer and you fill more often:
Filling the bid adds one unit of inventory ; filling the ask removes one. The dealer holds cash and inventory , and maximizes expected exponential (CARA) utility of terminal wealth at horizon with risk aversion :
The inventory term is what carries the risk: holding a nonzero position at the mercy of is punished by .
The reservation price
Solving the Hamilton–Jacobi–Bellman equation for the value function, the dealer's indifference (reservation) price, the price at which they are indifferent to holding their current inventory, is
This is the single most important formula in the model. The reservation price is the mid shifted by an inventory penalty :
- If the dealer is long (), : they mark their fair value below the market mid, because they want to sell down the risky inventory. Their quotes drop, making their ask more attractive and their bid less so.
- If short (), : they lean up, eager to buy back.
- The penalty grows with risk aversion , volatility , and time remaining , more risk, or more time exposed to it, means a bigger inventory nudge. As , the penalty vanishes: no time left to be hurt.
This is precisely the inventory-control mechanism of Ho–Stoll, now closed-form: skew your quotes against your inventory.
The optimal spread
Quotes are placed symmetrically around the reservation price (not the mid), with a total spread that trades off capturing more edge per fill against filling less often. The optimal bid–ask spread is
Two terms with clean readings:
- Inventory-risk term : wider quotes when the world is riskier (high , high ) or when there is more time left to accumulate a bad position. This is the risk premium for making a market.
- Order-arrival term : depends on the liquidity/elasticity of order flow. Steeper intensity decay (large , fills fall off fast as you widen) argues for tighter quotes; it is the microstructural, spread-capture piece.
The dealer then posts and . Because the center moves with inventory while the width is roughly symmetric, the net effect is: when long, both quotes shift down (sell-side more aggressive); when flat, quotes straddle the mid.
Worked example
A dealer makes a market with (price units per ), risk aversion , order-flow decay , and time remaining . Mid .
- Flat inventory (): reservation price . Spread . So the dealer quotes bid , ask .
- Long 5 units (): the reservation price drops to . Keeping the same width , the quotes become bid , ask , the entire quote pair has slid $2 lower, making the dealer far more likely to sell and reduce the unwanted long. That inventory-driven skew, not the spread width, is the model's signature behavior.
Failure modes and caveats
- No adverse selection. Avellaneda–Stoikov models inventory risk but not informed flow: order arrivals are exogenous Poisson, blind to whether the mid is about to move. Real market-making is dominated by Adverse Selection, you get filled precisely when the price is about to move against you, so the pure model under-widens against toxic flow. Extensions add order-flow signals and asymmetric fill intensities.
- Driftless mid. Assuming with no drift ignores short-term predictability (order-book imbalance, momentum); a dealer with a drift view should skew beyond the inventory term.
- Constant , , . Intraday these are highly time-varying; naive calibration to a full day misprices open/close regimes.
- Terminal-horizon artifact. The factor and the terminal liquidation assumption are somewhat artificial for a perpetual market maker; the Guéant–Lehalle–Fernandez-Tapia treatment gives a cleaner infinite-horizon / inventory-bounded version with asymptotically constant quotes.
- Discrete ticks and queue. The continuous quote offsets must be snapped to the tick grid and combined with Order Book Mechanics queue-position logic; the closed form is a guide, not the literal order to send.
In interviews
This is the market-making model to know. Lead with the reservation price and explain its meaning: skew your fair value against your inventory, more so when volatility, risk aversion, or time remaining is larger, this is how a market maker manages inventory risk. Then give the optimal spread and read its two terms (inventory risk vs. order-flow elasticity). The insight interviewers want spoken aloud: a good market maker does not just quote a spread, they lean, long inventory drops both quotes to attract sellers-to-them and shed risk. The essential caveat to volunteer is that the model omits Adverse Selection, which is the dominant real-world risk and why practitioners bolt on order-flow toxicity signals.
Related concepts
Practice in interviews
Further reading
- Avellaneda & Stoikov (2008), High-Frequency Trading in a Limit Order Book
- Ho & Stoll (1981), Optimal Dealer Pricing Under Transactions and Return Uncertainty
- Guéant, Lehalle & Fernandez-Tapia (2013), Dealing with the Inventory Risk