Skip to content
LeetQuant
QT07 Market Making and Microstructure

QT07 · Market Making and Microstructure · Lesson 2 of 5

Inventory Risk

Quoting with a position, risk limits, and the Avellaneda–Stoikov intuition.

25 min

Inventory is risk you did not choose

A market maker's position is a by-product of whoever chose to trade. If you hold qq units of something whose price moves with volatility σ\sigma per unit time, your PnL over a horizon τ\tau has variance

q2σ2τ.q^2\sigma^2\tau .

Risk grows with the square of the position. Doubling inventory quadruples variance, which is why market makers work hard to keep ∣q∣|q| small and turn over positions quickly, earning the spread many times rather than taking directional bets.

The reservation price

The Avellaneda–Stoikov model makes this precise. A market maker with risk aversion γ\gamma, inventory qq and time T−tT - t left values the asset not at the mid ss but at a reservation price

r=s−q γ σ2 (T−t).r = s - q\,\gamma\,\sigma^2\,(T - t) .

Long inventory (q>0q > 0) lowers the price at which you are happy to trade; short inventory raises it. You then quote around rr, not around ss. The total optimal spread is

δa+δb=γσ2(T−t)+2γln⁡ ⁣(1+γk),\delta^a + \delta^b = \gamma\sigma^2(T - t) + \frac{2}{\gamma}\ln\!\Big(1 + \frac{\gamma}{k}\Big),

where kk measures how fast order arrival falls as you quote further from the mid. The first term pays for inventory risk; the second is the monopoly-style mark-up from order flow.

Worked example

how far to skew

Mid is 100, you are long 5 lots, γ=0.01\gamma = 0.01, and the price has volatility σ=2\sigma = 2 per unit time with one unit of time left. Where is your reservation price, and how should a quote 1 wide look?

Show solution

r=100−5×0.01×4×1=99.8r = 100 - 5 \times 0.01 \times 4 \times 1 = 99.8.

Centre the quote at 99.8: bid 99.3, ask 100.3. Compared with the symmetric 99.5 / 100.5, you are less likely to buy more and more likely to sell. Note the skew is a fraction of the width: you still want to trade, just leaning one way.

Managing inventory in practice

  • Skew both quotes in the direction that reduces inventory, as above.
  • Size down on the side that would add to your position.
  • Hedge with a correlated, more liquid instrument: a futures contract against a basket of stocks, or the underlying against an option's delta.
  • Limits. Hard position limits stop you quoting one side at all. Know what you will do when you hit them.
  • Cross the spread when the risk is worth more than the cost of paying it. Being stuck with a large position just before uncertainty resolves (an earnings release, the final card being revealed) is usually worse than paying half a spread.

Knowledge check

You are short 10 lots and fair value has not changed. How should you adjust your quotes?

Knowledge check

In the Avellaneda–Stoikov model, volatility doubles while everything else stays fixed. What happens to the inventory skew q·γ·σ²·(T − t)?

Knowledge check

Your position goes from 5 lots to 15 lots. By what factor does the variance of your inventory PnL grow?

Practice problems

Finished reading?

Answer the 3 knowledge checks to complete this lesson (0 done).