Order book and microstructure

Microprice

Also called micro-price, Stoikov microprice

An estimate of the fair price from the order book: the mid-price adjusted for the expected future mid given the current imbalance and spread.

How it works

The microprice is an estimate of fair value from the top of the order book, defined by Sasha Stoikov (Quantitative Finance, 2018) as the expected mid-price in the distant future given the book's current state.

The definition runs in steps. Let tau(1), tau(2) and so on be the times at which the mid next changes. P(i) = E[mid at tau(i) given the book now], and the microprice is the limit of P(i) as i grows. The book state is taken to be the mid M, the spread S and the imbalance I = bid size / (bid size + ask size). If price dynamics do not depend on the level of M, the result is microprice = M + g(I, S): the mid plus an adjustment that depends only on imbalance and spread.

In practice you bucket I and S, count transitions in tick data, and solve an absorbing Markov chain for g(1) = E[next mid change given I, S], then sum the later terms. Stoikov fitted it to March 2011 quotes for Bank of America (large tick) and Chevron (small tick).

It fixes known faults in the simpler prices. The mid ignores queue sizes and bounces between bid and ask, so it is not a martingale. The weighted mid, I x ask + (1 minus I) x bid, is noisy and can move the wrong way: when a small best offer is cancelled and the next offer is far bigger, the weighted mid can fall even though selling interest just left. When the limit exists, the microprice is a martingale by construction, and because it is a limit it needs no choice of horizon.

The usual confusion is with order book imbalance and order flow imbalance. Imbalance is one input to the microprice. OFI measures changes in the queues over an interval. The microprice is a price, estimated from data, and is not one fixed formula.

Worked example

Bid 50.00 x 900, ask 50.01 x 100. Mid is 50.005. I = 900 / 1,000 = 0.9, so the weighted mid is 0.9 x 50.01 + 0.1 x 50.00 = 50.009. Made-up numbers: suppose your fitted g for this bucket (I near 0.9, spread 1 tick) is +0.25 ticks: microprice = 50.005 + 0.0025 = 50.0075. Now the 100 offer cancels and the next offer is 50.02 x 2,700. I = 900 / 3,600 = 0.25 and the weighted mid is 0.25 x 50.02 + 0.75 x 50.00 = 50.005, a drop of 0.4 cents although a seller left. The microprice for the new state is the new mid, 50.01, plus g at (0.25, 2 ticks).

In an interview

"What is wrong with using the size-weighted mid as your fair price, and what would you use instead?"

The candidate should give the weighted mid, I x ask + (1 minus I) x bid with I = bid size / (bid size + ask size), and its faults: it jumps whenever queue sizes change, it is not a martingale, and it can move against intuition, for instance falling when a small best offer is cancelled and a large offer behind it becomes the best. The better answer is Stoikov's microprice: the limit of the expected mid at future mid changes, which works out as mid + g(I, S). You estimate g by bucketing imbalance and spread, fitting a Markov chain of transitions from tick data, and solving for the expected next mid change, then summing later terms. The follow-up is often how to test it: compare its adjustment with realised mid changes over several horizons out of sample, and check it stays between bid and ask.

Put it to work in a timed game.

Practise with Dice Market Making

Sources

  1. ideas.repec.org/a/taf/quantf/v18y2018i12p1959-1966.html
  2. ma.imperial.ac.uk/~ajacquie/Gatheral60/Slides/Gatheral60%20-%20Stoikov.…

Last checked November 2026.

← All 281 glossary terms

Was this definition clear?