# Market Maker Inventory Risk and Quote Skewing

How a maker's position turns price moves into P&L, why that risk grows with position and time, and how shading both quotes pulls inventory back to zero.

A market maker earns the spread on every round trip, but between the two halves of a round trip it holds a position, and the price keeps moving. "Market makers and liquidity" showed one such trip; this lesson asks what happens when many trips overlap and positions pile up on one side. It uses the idea from "Random walks and Brownian motion" that price changes behave like a random walk, measures the risk that position creates, and shows the maker's main tool for controlling it: shifting both quotes.

## Inventory profit and loss

The maker's **inventory** $q$ is the number of shares held: positive when long, negative when short. If the mid price changes by $\Delta m$ while the position is unchanged, the profit or loss is

$$
\text{P\&L} = q\,\Delta m.
$$

Suppose the mid moves like a random walk whose standard deviation is $\sigma$ per $\sqrt{\text{second}}$. Over $\tau$ seconds $\Delta m$ has mean 0 and standard deviation $\sigma\sqrt{\tau}$, so the position's P&L has mean 0 and

$$
\text{sd}(q\,\Delta m) = |q|\,\sigma\sqrt{\tau}, \qquad \text{Var} = q^2\sigma^2\tau.
$$

The risk grows in proportion to the size of the position and to the square root of the time it is held. Doubling the position doubles the standard deviation and quadruples the variance. The maker is not paid for this risk in expectation, since the mean is zero, so the sensible aim is to hold only as much of it as the spread income justifies.

## How inventory builds

Inventory changes only when a customer trades with the maker. A fill at the bid adds a lot (here 100 shares) and a fill at the ask removes one. Which side fills next is random, so even with quotes that are symmetric around the mid the position drifts. Suppose each side fills at rate $\lambda$ per second. In $T$ seconds the maker sees about $2\lambda T$ fills, each $+1$ or $-1$ lot with equal probability, so the position after $T$ seconds is a random walk with variance $2\lambda T$ lots$^2$. Its typical size grows like $\sqrt{T}$, exactly as a price does.

A quote at distance $\delta$ from the mid fills at the rate $\lambda(\delta) = A\,e^{-k\delta}$: the closer the quote, the more often it is hit. With $A = 0.25$ per second, $k = 30$ per USD and $\delta = 0.02$ USD, each side fills at $0.25\,e^{-0.6} \approx 0.137$ per second, about once every seven seconds. Such a maker will often end a minute holding several lots, none of which it chose.

## Skewing the quotes

The maker can influence which side is hit. If it is long, it wants a sell to come before a buy. It achieves that by moving **both** quotes down: the ask becomes cheaper and is hit more often, the bid becomes less attractive and is hit less often. This is called **skewing** the quotes. Let $\ell = q/100$ be the inventory in lots and $\theta$ the shift per lot, in USD. The bid and ask are then at distances

$$
\delta_{\text{bid}} = \delta + \theta\ell, \qquad \delta_{\text{ask}} = \delta - \theta\ell
$$

from the mid. The quotes' centre is $m - \theta\ell$ and the spread $2\delta$ is unchanged. The expected change in inventory per second is the bid fill rate minus the ask fill rate:

$$
\lambda_b - \lambda_a = A e^{-k\delta}\left(e^{-k\theta\ell} - e^{k\theta\ell}\right) = -2\lambda\,\sinh(k\theta\ell) \approx -2\lambda k\theta\,\ell,
$$

where $\lambda = A e^{-k\delta}$ and the approximation holds for small $k\theta\ell$. The drift is proportional to $-\ell$: long positions are pushed down and short ones up. Inventory is no longer a plain random walk but is pulled back to zero at rate $\kappa = 2\lambda k\theta$. Balancing the random fills against this pull gives a long-run variance of $1/(2k\theta)$ lots$^2$, which does not depend on $A$ and falls as $\theta$ grows.

## What skewing costs

Skewing reduces risk but it is not free. When the maker is long, its ask is closer to the mid than $\delta$, so each share it sells earns less than the full half-spread. It also fills less often on the side that would add to its position. Average spread income falls as $\theta$ rises, while the standard deviation of the final position and of the P&L falls too. The figure runs 200 simulated minutes with the same random numbers for every $\theta$, so the changes you see are caused by the skew alone.

Start with the skew at 0. The final inventory has a standard deviation of about 372 shares, the mean P&L is 36.01 USD and the P&L has a standard deviation of 39.62 USD. Drag the marker down, or use the slider, to 0.20 cents per 100 shares: the inventory spread falls to 253 shares and the P&L standard deviation to 34.50 USD, while the mean falls to 33.59 USD, about 7% less. At 0.40 cents the inventory spread is 202 shares and the P&L standard deviation 29.58 USD, but the mean has fallen to 30.39 USD. How much to skew depends on how much the maker dislikes risk, which is the question the next lessons answer precisely.

*[Interactive figure: inventory skew](https://quantsandbox.dev/guide/microstructure/inventory-risk)*

## Hedging instead of skewing

There is a second way to remove inventory: trade it away. The maker can **cross the spread**, selling at the bid what it holds, and pay the half-spread plus any fee. Or it can trade a correlated instrument, such as a future or an exchange-traded fund, and leave the shares in place; this is the idea of "Delta and hedging", applied to an equity position rather than an option. Crossing the spread is certain and immediate but costs money on every share. Skewing costs nothing up front and works slowly, so it suits small positions and calm markets. Hedging suits large positions, fast markets, or a maker who cannot wait for customers to arrive.

### Worked example: Hold the position or flatten it

1. A maker is long 500 shares and $\sigma = 0.02$ USD per $\sqrt{\text{second}}$. The standard deviation of the P&L over 60 seconds, in USD:
   $$500 \times 0.02 \times \sqrt{60}$$ → **77.46**
2. A one-sided 95% loss is 1.645 standard deviations, in USD:
   $$1.645 \times 77.46$$ → **127.42**
3. Flattening now means selling 500 shares at the bid, which is the half-spread of 0.01 plus a fee of 0.003 below the mid. The cost in USD:
   $$500 \times (0.01 + 0.003)$$ → **6.5**
4. The 95% loss avoided, net of the cost of flattening, in USD:
   $$127.42 - 6.50$$ → **120.92**

A cost of 6.50 USD for removing a 127.42 USD tail loss is cheap, which is why makers flatten large positions rather than wait. With a position of 50 shares the same trade buys little, and skewing is enough.

## Summary

- Inventory $q$ earns $q\,\Delta m$; its P&L standard deviation is $|q|\,\sigma\sqrt{\tau}$, so risk grows with the size of the position and the square root of time.
- With symmetric quotes, random fills make inventory a random walk whose typical size grows like the square root of time.
- Moving both quotes down by $\theta$ per lot when long makes the expected inventory change $-2\lambda\sinh(k\theta\ell)$, which pulls inventory back to zero.
- Skewing lowers the variance of inventory and P&L but gives up some spread income; the figure shows both effects.
- Crossing the spread or trading a correlated instrument removes inventory at a certain cost, which pays off for large positions.

> The next lesson, "Optimal quoting: the Avellaneda–Stoikov model", chooses the skew from the maker's risk aversion instead of treating it as a free number.

[Open the Market Making lab](https://quantsandbox.dev/market-making)

## Interactive labs

- [Market Making Simulator: Spread and Inventory](https://quantsandbox.dev/market-making)

## Practice questions

### 1. A maker is short 1,000 shares. The mid moves with $\sigma = 0.01$ USD per $\sqrt{\text{second}}$. What is the standard deviation of the position's P&L over 100 seconds, in USD?

**Answer:** 100

$|q|\,\sigma\sqrt{\tau} = 1{,}000 \times 0.01 \times \sqrt{100} = 100$ USD. The sign of the position does not matter, only its size.

### 2. The maker is long and wants to reduce its inventory using only its quotes. It should

- a) Lower both the bid and the ask
- b) Raise both the bid and the ask
- c) Widen only the ask
- d) Stop quoting the bid only

**Answer:** a) Lower both the bid and the ask

A lower ask is hit more often, so the maker sells; a lower bid is hit less often, so it buys less. Raising both quotes would make it buy more. Widening the ask makes selling harder, and withdrawing only the bid leaves the ask unchanged, so it does not actively push the position down.

### 3. A maker is long 2,000 shares. The half-spread is 0.01 USD and the fee is 0.002 USD per share. What does it cost to flatten the position at the bid, in USD?

**Answer:** 24

$2{,}000 \times (0.01 + 0.002) = 24$ USD.

---

Source: https://quantsandbox.dev/guide/microstructure/inventory-risk

Previous lesson: [Almgren–Chriss Optimal Execution and Price Impact](https://quantsandbox.dev/guide/microstructure/price-impact)

Next lesson: [Avellaneda–Stoikov: Reservation Price, Optimal Spread](https://quantsandbox.dev/guide/microstructure/avellaneda-stoikov)
