Setup
The Market Making Problem
A market maker simultaneously posts a bid and an ask, collecting the spread on each round-trip trade. The business model is simple in principle: buy low (bid), sell high (ask), pocket the half-spread on each side. In practice, the market maker faces two fundamental risks:
-
Adverse selection: informed counterparties trade against the market maker only when the posted price is wrong. The market maker buys at the bid just before the price falls, or sells at the ask just before the price rises.
-
Inventory risk: continuous order flow is unbalanced. The market maker accumulates net directional positions that must be unwound at cost, and that generate P&L variance proportional to the position squared times the volatility.
This module covers two foundational models: the Glosten-Milgrom (1985) model of the bid-ask spread from adverse selection, and the Avellaneda-Stoikov (2008) stochastic control model of optimal market making under inventory risk.
Conventions and Assumptions
- Mid-price: , modelled as a Brownian motion: (zero drift under the market maker's view).
- Inventory: , the signed position in shares (positive = long, negative = short).
- Bid and ask quotes: and , where are the half-spreads on each side.
- Order arrivals: Poisson processes with intensity depending on the posted spread: for buy orders hitting the bid, for sell orders lifting the ask.
- Finite horizon: the market maker operates over and liquidates at at the mid-price with a terminal inventory penalty.
- Volatility and time horizon : annualised; for typical equities.
Glosten-Milgrom Model
Setup
Glosten and Milgrom (1985) model a competitive dealer who sets bid and ask quotes to break even in expectation against a mixture of informed and uninformed traders.
Assumptions:
- True asset value: with prior probability .
- Fraction of traders are informed: they know and trade to profit.
- Fraction are uninformed (liquidity) traders: they buy or sell with equal probability , independently of .
- Trades arrive one at a time. The dealer observes the trade direction (buy or sell) but not the trader type.
Bayesian Updating
After observing a buy order, the dealer updates their belief :
where:
- (informed always buys when ; uninformed buys with prob 1/2).
- .
The posterior after a buy is — a buy order provides positive evidence that . After a sell, .
Equilibrium Quotes
The dealer sets quotes to break even against the mixture of trader types. At each step, the competitive equilibrium requires:
The bid-ask spread at time :
Key result: The spread is proportional to — the product of the probability of informed trading and the magnitude of the information asymmetry. As trades occur and the dealer updates beliefs, the spread narrows: the posterior converges to the true state, reducing uncertainty.
Price impact: Each trade causes the mid-quote to move. After a buy: the mid moves from to . This is the permanent price impact — the dealer revises their fair value estimate upward.
Avellaneda-Stoikov Model
Problem Formulation
Avellaneda and Stoikov (2008) model the market maker's optimal quoting problem as a stochastic control problem. The state is and the controls are the bid and ask half-spreads .
Mid-price dynamics:
Inventory dynamics: the market maker's inventory changes when orders arrive. With Poisson order flow, the intensity of bid fills at spread is and similarly for ask fills. The exponential demand curve is the simplest decreasing function in : large spread → low fill rate. Parameter controls the elasticity of order arrival to spread.
Wealth dynamics: on each fill, wealth changes by the fill price. The market maker's cash process: where and are counting processes of ask fills and bid fills, with intensities and .
Objective: maximise expected terminal wealth adjusted for inventory risk at :
where the terminal penalty is an approximation to the expected variance of the terminal inventory, with the risk aversion parameter. Equivalently, this is the CARA expected utility linearised near zero.
HJB Equation
The value function satisfies the Hamilton-Jacobi-Bellman equation: