Avellaneda–Stoikov model: reservation price
∞structuralThe 2008 market-making model that quotes around a reservation price r = s − qγσ²(T − t), below the mid when the maker is long and above it when short.
See it move
What to notice. Crank γ down toward zero: the spread collapses, fills come fast, and the reservation price stops skewing, so inventory random-walks away and the P&L lurches. Market making is an inventory-risk problem, not a spread-capture freebie.
What is the Avellaneda–Stoikov model?
Avellaneda and Stoikov (2008) is the canonical model of optimal market-making quotes under inventory risk. It treats quoting as a stochastic-control problem: a maker with finite risk-aversion chooses bid and ask offsets to maximise the expected utility of terminal wealth over a session, and the solution is a pair of closed-form quotes that lean against inventory and widen with risk and volatility.
A market maker has two jobs in tension: earn the spread (quote tight, fill often) and avoid being stuck with a large position (quote so that you get flattened). The paper writes that tension down as a utility problem and solves it. The answer is not "quote a fixed spread around the mid". It is "quote around a private fair value that moves away from your inventory, at a spread that depends on your risk-aversion and on how the market behaves".
The setup comes from Marco Avellaneda and Sasha Stoikov, "High-frequency trading in a limit order book" (Quantitative Finance, 2008). They open by observing that on electronic books such as Nasdaq's INET anyone willing to submit limit orders can effectively play the role of a dealer, and they call their model closely related to the dealer-inventory work of Ho and Stoll (1981). A risk-averse maker (exponential, or CARA, utility with risk-aversion ) quotes an asset whose mid follows arithmetic Brownian motion with volatility . Orders fill its quotes with an intensity that decays in the distance of the quote from the mid, and the session runs to a terminal time . The output is a reservation price (your inventory-adjusted fair value) and an optimal spread, both in closed form, so you can compute where to quote at any inventory and any time-to-close. See the market-making hub for where it sits. Which equations to read first, and how much stochastic control the paper assumes, are noted in the reading guide entry for the paper.
What is the reservation price?
The reservation price is the maker's private, inventory-adjusted fair value, the price at which it is indifferent to holding its current position. It sits below the mid when the maker is long and above it when short, by an amount that grows with inventory, volatility, risk-aversion and the time remaining.
If you are long you would rather sell than buy, so your fair value for quoting purposes is shaded down: you will sell a touch cheaper to get flat and you are reluctant to buy more. At zero inventory the reservation price equals the mid, and the more you carry, the further it leans. The paper derives it first for an agent who never trades (a "frozen inventory" agent), then recovers the same expression for the active maker through an asymptotic expansion of the value function in (equation 29 in the paper).
Here is the mid price, the signed inventory in lots, the risk-aversion, the variance per unit time and the time left. The shift is linear in inventory and scales with the remaining variance . Early in a volatile session you skew hard for a given position. As the inventory term vanishes and : with no time left for the position to hurt you, there is no reason to lean.
You then quote symmetrically around , not around . A long book () places both quotes lower than a flat book would, so its ask is more likely to be lifted and the position shrinks. This is the principled form of inventory skew. Almgren–Chriss optimal execution strikes a similar balance between cost and price risk, for a different job: liquidating a position by a deadline.
What is the optimal spread?
The optimal total spread has two parts: an inventory-risk term that widens it when risk, volatility or time-to-close are high, and a fill-rate term that sets how far out to quote given how quickly fills decay with distance (equation 30 in the paper).
The first part pays you for the price risk of the inventory you will accumulate, , and it shrinks to zero at the close. The second, , comes from the trade-off between filling often (quote tight) and earning per fill (quote wide), and depends on how steeply fill probability falls with distance, which is governed by . The paper writes this decay parameter as k; this page uses .
The bid and ask sit symmetrically around the reservation price , each half this total away. Because itself leans against inventory, the quotes on the book are asymmetric around the mid even though they are symmetric around . The spread does not depend on ; the paper notes this follows from the assumption of exponential arrival rates.
The paper's own simulations show what risk-aversion buys. In 1,000 runs at , the inventory strategy earned a mean profit of 65.0 with a standard deviation of 6.6, while a symmetric strategy with the same average spread (1.49) around the mid earned 68.4 with a standard deviation of 12.7. Final inventory had a standard deviation of 2.9 against 8.4. At the average spread rose to 3.02, and profit fell to 31.4 (standard deviation 5.0) against 44.0 (11.0) for the symmetric rival; at the two strategies were almost indistinguishable (68.6 against 68.8). Crank and the variance falls, the mean edges down, and you have paid for safety with spread. The simulator above lets you feel that trade.
What is the fill intensity λ(δ)?
It is the model's assumption about how often your quote is hit: the further from the mid you quote, the less often you fill, decaying exponentially. A quote at the touch is hit constantly; one five ticks back almost never. The exponential is what turns "where do I quote" into an optimisation rather than a guess.
Avellaneda and Stoikov do not simply observe this shape; they derive it. They combine a power-law distribution of market-order sizes (exponents of roughly 1.4 to 1.5, citing Gopikrishnan et al., Maslov and Mills, and Gabaix et al.) with a logarithmic price impact (Potters and Bouchaud), and the result is an exponential intensity. They note that a power-law impact would give a power-law intensity instead. In practice is calibrated from data (how fast fill probability decays with distance) and from overall trade frequency. A high forces you to quote tight, so the fill-rate term shrinks; scales overall flow and cancels out of the optimal offsets, affecting only the number of fills. Real implementations fit both per instrument and per regime, and some replace the static exponential with a learned, state-dependent fill model.
The same flow that fills you is the flow you must classify as informed or noise (adverse selection), and its imbalance is what OFI and the microprice read to sharpen the fair value you centre on.
Show the derivation: the HJB problem behind it
The model rests on a Hamilton–Jacobi–Bellman equation for the maker's value function. The maker maximises expected exponential utility of terminal wealth (cash plus inventory marked at the mid) over the bid and ask offsets, given an arithmetic-Brownian mid and exponential fill intensities. The paper then simplifies the PDE with an asymptotic expansion in inventory and a first-order (linear) approximation of the arrival term, which gives the closed-form reservation price and spread above.
▸ Show the derivation optional
State and controls. Wealth in cash , inventory , and the mid following arithmetic Brownian motion. The maker chooses quote offsets (bid distance below mid) and (ask distance above mid). A buy order fills the bid at rate (raising , lowering cash); a sell fills the ask at rate (lowering , raising cash).
Objective. Maximise the expected exponential (CARA) utility of terminal mark-to-market wealth, with risk-aversion .
The HJB equation. The value function satisfies a PDE: the time-decay and diffusion of the value, plus the best the maker can do by choosing each offset against its fill rate, sum to zero.
with terminal condition .
The ansatz. Guess a separable form. The exponential utility makes the cash dimension separable; is the indifference value of holding units.
Defining the reservation bid and ask as the prices at which the maker is indifferent to one more fill, the reservation price is the midpoint of the reservation quotes.
The two optimisations. Maximising each over its offset gives the optimal offsets; summing them and substituting the intensities yields the total spread. The approximation in is what makes the offsets independent of inventory.
What is approximated. The clean closed form relies on small inventory, an arithmetic (not geometric) Brownian mid, a single risk factor, constant , the exponential fill law and a continuous treatment of inventory. The full problem has no such tidy solution. Guéant, Lehalle and Fernandez-Tapia (2013) solve it with hard inventory limits and give closed-form asymptotic quotes, Guéant (2017) generalises to other intensity functions and several assets, and Cartea, Jaimungal and Penalva (2015) give the textbook derivation.
How far is this from a real market maker?
Far enough to respect. The model is a single-asset, single-period, constant-volatility, exponential-fill, fee-free, competition-free toy. A production market maker adds multi-asset hedging, stochastic volatility, state-dependent fill intensities, fees and rebates, latency and queueing, jump risk and live toxicity detection. The model gives the shape of the answer, not the answer.
One asset, no hedging. Real books quote many correlated instruments and hedge inventory in the most liquid one; the model says nothing about that cross-asset problem. Constant , no jumps. Volatility comes in bursts and prices gap (see fat tails and irregular time), and one jump through your quotes can dwarf a day of spread. Exponential fills, no competition. The intensity ignores the queue (price-time priority), other makers, and the fact that the flow filling you is partly informed. The model does not treat adverse selection directly. No fees, rebates or latency. Real P&L depends on the maker-taker schedule, the rebate, and whether your re-quote reaches the matching engine before the price moves (the other side of latency arbitrage).
The reservation-price-and-skew structure is still the right scaffolding. The open-source Hummingbot framework ships an "Avellaneda Market Making" strategy: you set the risk factor, the bot estimates the order-book intensity parameters itself, and it quotes around a reservation price with an inventory target (50% of the base asset by default). Its documentation lists the strategy as community-maintained. Extensions then bolt on a better fair value (the microprice), a toxicity gate (VPIN), fee terms and a fill model fitted to real book data (see data and tools). Machine learning can sharpen the inputs, such as volatility , the fill rate and fair value, but the control structure it feeds stays the one above (see what AI changes for HFT).
Worked example
A single quote computation with illustrative numbers. Parameters: mid , risk-aversion , volatility (per ), fill-decay , session , current time so . These are the same values the paper uses in its own simulations (section 3.3).
Flat book, . The reservation price equals the mid, since there is no inventory to lean against: . The total spread is:
So you quote bid ≈ 99.155 / ask ≈ 100.845, symmetric around the mid. The paper's table reports an average spread of 1.49 over the session: the inventory term falls linearly from 0.40 to zero, averaging 0.20, and 0.20 plus the constant 1.29 gives 1.49.
Long inventory, . The reservation price leans down: . Your private fair value is 2.00 below the mid because you are long and want to sell. The total spread is unchanged (it does not depend on in the closed form), so you quote symmetrically around : bid ≈ 97.155 / ask ≈ 98.845. Both quotes are now below the mid. Your ask at 98.845 sits well under 100.00, so it is very likely to be lifted, flattening you. Whether you would literally quote an ask below the mid is the kind of edge case the closed form produces and a real implementation clamps.
Near the close, , so . The reservation price is now . The lean has almost vanished: with little time left the inventory cannot hurt you much, so the model re-centres on the mid.
Raising risk-aversion to (flat book). The inventory term now dominates, and the fill-rate term (about 1.07) brings the total spread to roughly 4.27. Fills collapse, and over a Monte-Carlo batch the terminal-P&L histogram narrows sharply while its mean falls. You bought variance reduction with foregone spread; tune it live in the simulator above. In practice , , and are calibrated per instrument and regime.
Sources
- Avellaneda, M. and Stoikov, S. (2008). "High-frequency trading in a limit order book". Quantitative Finance 8(3), 217–224. doi.org
- 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
- 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
- Guéant, O. (2017). "Optimal market making". Applied Mathematical Finance 24(2), 112–154. doi.org
- Cartea, Á., Jaimungal, S. and Penalva, J. (2015). Algorithmic and High-Frequency Trading. Cambridge University Press. ISBN 978-1-107-09114-6.
- Hummingbot documentation, "Avellaneda Market Making" strategy (accessed October 2026). hummingbot.org