Optimal quoting: the Avellaneda–Stoikov model
"Inventory risk and quote skewing" argued that a market maker holding too much of an asset should lower both quotes, and that the spread should reflect the risk it carries. This lesson turns the argument into one rule. Avellaneda and Stoikov start from the utility function of "Risk aversion and the optimal complete portfolio", let the market maker maximise it, and obtain a reservation price, which sets the skew, and a spread, which sets the width. We derive the first from scratch and state the second with a sketch of where it comes from.
Set-up
The mid price follows the Brownian motion of "Random walks and Brownian motion" without drift: . The maker has cash and an inventory of shares (negative when short), and trades until a horizon . At the end it is worth , and it values that outcome with exponential utility:
The parameter is the maker's risk aversion. The maker chooses its quotes as distances from the mid: a bid at and an ask at . A quote at distance is filled at the rate per unit of time, as in "Market makers and liquidity": the closer the quote, the more often it trades. A larger means that fills thin out faster as the quote moves away.
The reservation price
Suppose the maker does not trade at all until . With time left, with standard normal, and since ,
The last factor is the penalty for the variance of the position. Now ask what price makes the maker indifferent to buying one more share. After the purchase, cash is and inventory is , so equal utility requires equal exponents:
Since , this solves to the indifference bid below. The same steps for selling one share, with cash and inventory , give the indifference ask:
Their average is the reservation price:
With no inventory the reservation price is the mid. A long maker () values the asset below the mid, because every extra share adds variance to a position it already has too much of; a short maker values it above. The shift is proportional to the inventory, the risk aversion, the variance and the time left.
The optimal spread
The reservation price tells the maker where to centre its quotes. The spread is a separate decision, because each side now trades off two things: a quote far from the mid earns more per fill but fills less often. Writing the maker's value function and applying dynamic programming gives the Hamilton–Jacobi–Bellman equation of the problem. We do not derive it here. Avellaneda and Stoikov show that, to first order, the optimal distances are on the ask side and the mirror image on the bid side, and the total spread is
This is the paper's approximation, not an exact solution, but it is accurate in the range where the model is used. Each term has a meaning.
- The first term, , is the price of inventory risk: it grows with risk aversion, with variance and with the time left to hold a position, and it vanishes at the horizon.
- The second term, , comes from the fill rate. As it tends to , which is the spread of a risk-neutral maker who just maximises the income : the half-spread of "Adverse selection and informed trading" when every customer is noise.
Quotes
The maker centres the spread on the reservation price, not on the mid:
A long maker therefore has both quotes below where a flat maker would put them: the ask is cheap and likely to sell, the bid is low and unlikely to buy, which is the skew of the previous lesson, now with a size. As the horizon approaches, , the inventory term in the reservation price and the first term in the spread both shrink: the reservation price returns to the mid and the spread to its fill-rate term.
The effect of risk aversion
It is tempting to say that a more risk-averse maker always quotes wider. The two terms say otherwise. Early in the day the first term dominates and it grows with . Near the close it vanishes, and the second term, , is decreasing in . At the close above, gives a spread of 1.2908 and gives 1.1507: the more risk-averse maker is tighter. A maker that fears inventory wants to trade, and near the end it has no time left to be hurt, so it quotes close to the mid to get fills.
The figure shows the quotes on a price column and the total spread against the time left for three values of . Set the inventory to 0 and move the day clock: the reservation price sits on the mid and the quotes are symmetric. Now drag the inventory to and the quotes shift up. At the defaults (inventory 6, half-way through the day, ) the reservation price is 98.80, the spread 1.49, the bid 98.05 and the ask 99.55. At the start of the day the spread is 1.51 for , 2.05 for and 4.27 for . At the close the order reverses: 1.31, 1.25 and 1.07.
Total spread against the time left (T − t) for three values of γ; the vertical line marks the current time.
- Reservation price
- 98.80
- Total spread
- 1.49
- Bid
- 98.05
- Ask
- 99.55
Symmetric and inventory strategies
Avellaneda and Stoikov compare the inventory strategy above with a symmetric one that always centres the same spread on the mid, ignoring inventory. In their simulations the symmetric maker earns slightly more on average, since it never gives up a fill to manage a position. But its inventory wanders freely, so its final profit varies much more from one day to the next. The inventory strategy gives up a little profit for a large reduction in variance, which is what a risk-averse maker with this utility function wants.
The model assumes a constant , a smooth exponential fill rate and no informed customers. The last is a real simplification: with them the fill-rate term should be wider, as in "Adverse selection and informed trading".
Summary
- The maker has exponential utility, a Brownian mid with volatility and fills at rate at distance from the mid.
- The reservation price is the average of the prices at which the maker is indifferent to buying or selling one more share.
- To first order the total spread is , an inventory-risk term plus a fill-rate term.
- The quotes are of the spread: a long maker moves both below the mid, and both effects fade towards the close.
- Higher risk aversion widens the spread early in the day and narrows it at the close, and the inventory strategy trades some mean profit for much lower variance.