Trading strategies·mm-inventory

Inventory management

∞structural
By . Reviewed 22 October 2026. As of 2026: a permanent feature of the market, not an edge that decays.

A filled quote leaves you holding a position. Skew your quotes against your inventory (quote more aggressively on the side that flattens you) so the book mean-reverts toward zero before a move hurts.

See it move

Inventory skewdrag inventoryIX-INVENTORY
Inventory q+0
Reservation price100.000
Your bid99.206
Your ask100.794
midreservationbidask
Current inventory q+0
Risk aversion γ0.50

What to notice. Go long (q > 0) and both quotes slide down: you quote a keener ask to offload and a stingier bid to stop accumulating. The book mean-reverts your position toward flat. Raise γ and the skew gets more aggressive.

Why does a market maker accumulate inventory?

Because fills arrive unpaired. A maker posts a two-sided quote, but buyers and sellers do not show up in matched pairs: a run of sellers hitting the bid leaves it long, and a run of buyers lifting the ask leaves it short. With nothing pulling the position back, inventory follows a random walk and drifts to levels the maker was never paid to hold.

Even if hits and lifts were a fair coin, inventory would still wander. A symmetric random walk has no mean reversion, and its spread grows like t\sqrt{t}, which over a session is enough to leave you heavily long or short by chance alone, before any directional flow appears. Each fill nudges the position one way and nothing nudges it back.

That wandering position is the inventory-risk leg of the market-making trade-off. A maker wants to earn the spread, not bet on direction, yet every unit of inventory is an unwanted directional bet marked to the price (see fat tails), and one adverse move on a large position can erase days of spread capture. Worse, the flow that grows your inventory is often informed: a one-sided run of sellers may know something (adverse selection). Uncontrolled inventory and toxic flow tend to arrive together, exactly when you least want a big position. Switch the skew off in the simulator above and watch the path stick near the limit under a one-sided imbalance.

The finance literature has modelled this since 1980. Amihud and Mendelson (1980) described a dealer whose prices fall as inventory rises, with a preferred position; Ho and Stoll (1981) added return risk and a utility objective. Both predict that quotes should lean against inventory, which is what the rest of this page implements.

What is symmetric quoting, and why is it dangerous?

Symmetric quoting places the bid and ask an equal distance either side of the mid, regardless of the maker's position. It maximises spread capture per fill but does nothing to flatten inventory, so the position random-walks, accumulates directional risk and tends to get stuck at the limit. It is the baseline every skew rule improves on.

It treats every fill the same whether you are flat or dangerously long. You keep buying on the bid even when you are already long 500 lots, because your quotes never lean to discourage it, and nothing gives the market a reason to sell you back to flat. This is the simplest possible market maker, and a good place to start precisely because it fails in an instructive way: under any flow imbalance the inventory drifts to the position limit and parks there, carrying risk you were never paid for.

The fix is to make the quotes care about inventory, leaning them so the flattening side is cheaper to hit. Everything below does that, from a crude linear lean to the principled Avellaneda–Stoikov reservation-price shift.

What is inventory skew?

Inventory skew shifts both quotes toward the side that flattens the book. When the maker is long, it lowers both bid and ask, making its ask keener to be lifted (sell, get flat) and its bid less keen to be hit (stop buying more). When short, it raises both. The market then trades the maker back toward zero.

You tilt the whole quote, not the spread width. Long 50 lots? Drop both quotes by an amount proportional to how long you are. Your ask is now closer to (or below) the mid, so it gets lifted and the position comes off, while your bid sits further from the mid, so you buy less. The workhorse rule is linear inventory skew: shift the quote centre by a constant kk times your signed inventory qq, then place the bid and ask a fixed half-spread either side of that centre.

Shift both quotes away from your inventory by a constant skew strength times your signed position; quote the half-spread around that shifted centre.
centre  =  s  −  k q\text{centre} \;=\; s \;-\; k\,q

Here ss is the mid, qq the signed inventory in lots and kk the skew strength, a tuning knob. The rule is simple and robust. Open-source frameworks ship close relatives of it: Hummingbot, for instance, includes an Avellaneda–Stoikov strategy that quotes around a reservation price with an inventory target. Linear skew is the constant-kk simplification of the Avellaneda–Stoikov reservation price r=s−q γ σ2 (T−t)r = s - q\,\gamma\,\sigma^{2}\,(T-t), which makes the coefficient explicit, k=γσ2(T−t)k = \gamma\sigma^{2}(T-t). A–S tells you what kk should be: it grows with risk-aversion, volatility and time-to-close, and fades at the end of the session.

The trade-off is that more skew flattens faster but gives up spread on the side you lean (you sell cheaper or buy dearer than a flat book would). Too little skew and inventory runs away; too much and you bleed spread continuously. Push the skew-strength slider above and watch the inventory path pulled back toward flat as the spread-given-up readout climbs.

Position limits and hedging: the backstops

Skew handles the average case; position limits and hedging handle the tail. A hard limit stops quoting, or quotes only the flattening side, once inventory hits a cap. Hedging offsets the residual inventory in a correlated, more liquid instrument, turning position risk into basis risk.

Hard position limits. Set a maximum ∣q∣|q|. As you approach it, widen or pull the side that would grow the position, and at the cap quote the flattening side only. Skew makes a large position unlikely; limits make it impossible. This is also where kill switches and throttles come in, since an inventory breach is a classic trigger. Real dealers behave this way: Hansch, Naik and Viswanathan (1998) found that on the London Stock Exchange's dealership system inventory mean reversion was "highly nonlinear and increasing in inventory levels", so the pull back toward flat gets harder the larger the position, and that trading with other dealers played an important role in managing large positions.

Hedging. Rather than wait for the book to flatten you, offset the inventory directly: a crypto maker long spot hedging in the perpetual future, or an equity maker hedging single-name inventory in an index or ETF. This trades price risk for basis risk (hedge and inventory are not perfectly correlated) plus the hedge's own costs and market impact. It works when the hedge is cheap and liquid and fails when the basis breaks. Menkveld (2013) documents a cross-venue version: the HFT he studied traded mostly on the entrant Chi-X, and the working-paper version of the study describes it using the incumbent Euronext to offload unwanted positions.

Inventory as a mean-reverting target. Good inventory management turns the position from a random walk (no pull, variance growing without bound) into a mean-reverting process around a target, an Ornstein–Uhlenbeck-like dynamic where skew supplies the restoring force.

Skew acts like a spring: the position is pulled back toward its target at a rate set by the skew strength, with the flow as the random shock. That is mean reversion, not a random walk.
dq  =  −κ (q−q∗) dt  +  flow noisedq \;=\; -\kappa\,(q - q^{*})\,dt \;+\; \text{flow noise}

Here κ\kappa is the pull strength, not the fill-decay κ\kappa of the Avellaneda–Stoikov pages. The target q∗q^{*} need not be zero, and the data say it often is not. Madhavan and Smidt (1993) found that an NYSE specialist's inventory had a half-life of more than 49 days, falling to 7.3 days once shifts in the desired inventory were controlled for. Hendershott and Menkveld (2014), with twelve years of NYSE intermediary data, model the other half of the mechanism: intermediaries move prices (price pressure) to pull their inventory back toward target. A maker with a directional view, or one warehousing risk for a fee, can also target a non-zero inventory deliberately. Run the "Hard-limit skew" preset above to see the path capped at the limit even under strong one-sided flow.

The ladder from symmetric quoting to learned policies

Each rung adds structure to the same idea, making the quotes lean against inventory so the position mean-reverts.

Rung 0, symmetric. No inventory control; inventory random-walks. An instructive failure, never shipped alone. Rung 1, linear skew and hard limits. centre=s−kq\text{centre} = s - kq, capped. Simple and robust, and the realistic default for an independent or crypto quoting bot; you tune kk and the limit by hand or with a coarse backtest. Rung 2, Avellaneda–Stoikov. k=γσ2(T−t)k = \gamma\sigma^{2}(T-t) derived from risk-aversion, volatility and time-to-close, with the matching optimal spread: the principled answer to "what should kk be?". Guéant, Lehalle and Fernandez-Tapia (2013) solve the same problem with hard inventory bounds, which is the principled version of the limit in rung 1. Rung 3, extended or learned. Multi-asset inventory with hedging, regime-switching volatility, fee-aware skew and learned, state-dependent policies. What machine learning changes here is mostly calibration, a better regime-aware kk and limit, rather than the structure (see what AI changes for HFT).

You do not need rung 2 or 3 to not blow up. Rung 1 keeps you alive and the higher rungs squeeze out efficiency, so start at rung 1, understand rung 2, and reach for rung 3 only when the data justify it. The spread you give up to skew is netted into your P&L exactly as spread vs adverse selection accounts for it.

Worked example

A side-by-side of symmetric and linearly skewed quoting on identical flow, with illustrative numbers. Mid s=100.00s = 100.00, half-spread 0.050.05 each side, a flow imbalance of 60% sells and 40% buys (so the maker tends to get long), skew strength k=0.01k = 0.01 per lot. Reproduce it by moving the sliders above.

Symmetric quoting (k=0k = 0). The maker quotes 99.95 / 100.05 throughout, regardless of position. Under the sell-heavy flow it keeps buying on the bid, and after 200 fills its inventory has random-walked to roughly +45+45 lots and is still climbing toward the limit. Max-∣q∣|q| over the run is about 52 lots, and the position's mark-to-market swings dominate the spread P&L.

Linear skew (k=0.01k = 0.01). At inventory q=+45q = +45, the quote centre shifts to 100.00−0.01⋅45=99.55100.00 - 0.01\cdot 45 = 99.55, so the maker quotes bid 99.50 / ask 99.60. Its ask now sits 0.40 below the mid, so it gets lifted and sells off the position.

Long 45 lots, the centre drops to 99.55 and the ask falls to 99.60 (below the mid of 100.00) so the market lifts it and flattens you.
centre=100.00−0.01⋅45=99.55,pask=99.60,pbid=99.50\text{centre} = 100.00 - 0.01\cdot 45 = 99.55, \quad p^{\text{ask}} = 99.60, \quad p^{\text{bid}} = 99.50

As qq falls, the centre returns toward the mid. The inventory path mean-reverts around a small positive level, set by the residual flow imbalance, instead of drifting; max-∣q∣|q| over the same flow is about 18 lots.

The cost of the skew. At q=+45q = +45 the maker sold at 99.60 rather than the 100.05 a symmetric ask would have shown, giving up about 0.45 per lot on those flattening sells. That foregone spread is the price of mean reversion. Lower kk and inventory wanders more but you give up less per fill; raise kk and inventory hugs flat but you bleed spread. The A–S value k=γσ2(T−t)k = \gamma\sigma^{2}(T-t) balances this against the inventory variance you avoid.

With a hard limit of 30 lots. The maker quotes only its ask, the flattening side, once q≥30q \ge 30, so the position is capped at 30 however one-sided the flow gets. That is the backstop skew alone does not guarantee. Real skew strengths and limits are calibrated per instrument, venue and volatility regime.

Sources

  1. Amihud, Y. and Mendelson, H. (1980). "Dealership market: market-making with inventory". Journal of Financial Economics 8(1), 31–53. doi.org
  2. Ho, T. and Stoll, H. R. (1981). "Optimal dealer pricing under transactions and return uncertainty". Journal of Financial Economics 9(1), 47–73. doi.org
  3. Madhavan, A. and Smidt, S. (1993). "An analysis of changes in specialist inventories and quotations". Journal of Finance 48(5), 1595–1628. doi.org
  4. Hansch, O., Naik, N. Y. and Viswanathan, S. (1998). "Do inventories matter in dealership markets? Evidence from the London Stock Exchange". Journal of Finance 53(5), 1623–1656. doi.org
  5. Hendershott, T. and Menkveld, A. J. (2014). "Price pressures". Journal of Financial Economics 114(3), 405–423. doi.org
  6. Avellaneda, M. and Stoikov, S. (2008). "High-frequency trading in a limit order book". Quantitative Finance 8(3), 217–224. doi.org
  7. Guéant, O., Lehalle, C.-A. and Fernandez-Tapia, J. (2013). "Dealing with the inventory risk: a solution to the market making problem". Mathematics and Financial Economics 7(4), 477–507. doi.org
  8. Menkveld, A. J. (2013). "High frequency trading and the new market makers". Journal of Financial Markets 16(4), 712–740. doi.org

Where this fits

Common questions

What is inventory risk for a market maker?
Inventory risk is the danger that filled quotes leave you holding a directional position that then moves against you, turning a spread-capture business into a bet on price. Managing it means skewing quotes against your inventory (quoting more aggressively on the side that flattens you) so the book mean-reverts toward zero. Avellaneda–Stoikov (2008) formalises exactly this skew.