Market microstructure & order books

Price-time priority & queue value

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

Better-priced orders fill first; among orders at the same price, the earliest fills first (FIFO). That is why queue position is an asset: being early means you trade before the orders behind you.

See it move

Queue position & fill probabilitydrag the queueIX-QUEUE
Ahead of you1,200
Your order1 lot
Fills this episode800
You get filled?no
ahead
behind
fill front
Queue ahead of you1,200
Queue behind you800
% of level that trades40%

What to notice. Your order only fills once the trade front reaches it, so the size ahead of you is the whole game. Lower it (arrive earlier, or pick a thinner level) and the same flow now fills you. That is why queue position is an asset.

What price-time priority means

Price-time priority decides which resting order an incoming aggressive order trades against: better price first, and among orders at the same price, the earliest arrival first. Higher bids and lower asks rank ahead of worse ones. An incoming marketable order fills against the front of that ranking and works backwards. It rewards both improving the price and committing early.

Think of a supermarket queue with one twist. You can jump to the very front by offering a better price, improving the quote by a tick. If you join a price where orders already rest, you go to the back of that price's queue. The engine stamps each resting order with its arrival time, and the moment you cancel and re-post that stamp is reset. CME's FIFO rules go further: an order is also re-queued if you increase its quantity, change its price or change its account. This is why posting a new best price is so contested: a one-tick improvement puts you at the front of a brand-new, empty queue. It is also the mechanical basis of quote-matching, or stepping ahead.

Pure price-time is also a simplification. US exchanges rank by price, then display, then time. Under Nasdaq BX Rule 4757, displayed orders at a price come before non-displayed orders at that price (including the hidden reserve of an iceberg), each group in time order.

Bid-side ranking: a better price always wins; at an equal price, the earlier arrival wins. Asks mirror it with lower prices first. Move the slider in the explorer above to see your rank change.
A≻B  ⟺  pA>pB    or    (pA=pB  and  tA<tB)A \succ B \iff p_A \gt p_B \;\; \text{or} \;\; \left(p_A = p_B \;\text{and}\; t_A \lt t_B\right)

Why queue position is worth money

A passive order earns the spread only if it fills before the price moves away, so the further forward you sit, the more of the incoming flow reaches you on terms you like. Moallemi and Yuan (2016) make this formal by valuing queue position directly in a limit order book model: position is an asset with a price.

The danger is an asymmetry. Back-of-queue fills correlate with adverse moves: you are reached at the back precisely when sellers keep hitting the bid, which is when the price is about to keep falling against your resting buy. That is adverse selection expressed through the queue. A good position raises the share of benign fills relative to toxic ones; a poor one loads you up on the toxic kind. The trade-off is that to sit at the front you must either commit early, and carry the risk of resting through news, or improve the price and earn a thinner spread. Queue value quantifies whether waiting where you are beats re-pricing to jump forward.

A passive order's edge is the spread it captures times the chance it fills benignly, both of which rise as you move forward in the queue.
E[edge]≈P(fill before adverse move)×S2  −  P(toxic fill)×Δv\mathbb{E}[\text{edge}] \approx P(\text{fill before adverse move}) \times \tfrac{S}{2} \; - \; P(\text{toxic fill}) \times \Delta v

Fill probability, position and cancellations

Fill probability falls as the size ahead of you grows and rises with the level's trade-arrival rate. You fill when the cumulative trades and cancellations ahead of you reach your position before the price moves. Two processes empty the queue ahead, and both advance you: executions, where someone trades against the level, and cancellations, where someone ahead pulls their order. Cancellations advance you for free, with no trade required.

That free advancement is the counter-intuitive part, because most resting liquidity is cancelled, not executed. Hasbrouck and Saar (2009), studying 100 Nasdaq stocks on the INET book, found that over one-third of non-marketable limit orders were cancelled within two seconds; they called these "fleeting orders". An earlier working-paper version, on Island ECN data from the last quarter of 1999, put the fleeting share at 27.7% of limit orders, about 40% cancelled within ten seconds, and found that only 12.6% of the shares in non-marketable limit orders ever executed. Those figures are old and the venue is gone, but the direction holds in modern lit books. So "I'm 60% of the way through the queue, so I have roughly 60% fill odds" is wrong: some of the size ahead will evaporate without trading, and some of your fills will arrive as toxic flow you would rather have missed. Modelling the queue means modelling cancellations as carefully as trades.

You fill when executions plus cancellations ahead of you reach your position before an adverse price move arrives. Both terms move you up; cancellations cost nothing.
fill  ⟺  ( execahead(τ)+cancelahead(τ) )≥Qahead    before    τmove\text{fill} \iff \big(\,\text{exec}_{\text{ahead}}(\tau) + \text{cancel}_{\text{ahead}}(\tau)\,\big) \geq Q_{\text{ahead}} \;\; \text{before} \;\; \tau_{\text{move}}
▸ Show the queue-reactive sketch optional

Model the volume ahead of you, QaheadQ_{\text{ahead}}, as a birth–death process. Departures (which advance you) arrive as executions at rate λexec\lambda_{\text{exec}} and cancellations at rate λcancel\lambda_{\text{cancel}}; arrivals behind you do not affect your rank. Your fill is the event that QaheadQ_{\text{ahead}} hits zero before an adverse-move stopping time τmove\tau_{\text{move}}.

dQaheaddt=−(λexec+λcancel)\frac{dQ_{\text{ahead}}}{dt} = -(\lambda_{\text{exec}} + \lambda_{\text{cancel}})

Under constant, independent rates the expected time to clear the queue ahead is the position divided by the total departure rate. Because λcancel\lambda_{\text{cancel}} usually dominates λexec\lambda_{\text{exec}} on fast lit books, cancellations do most of the advancing.

E[τclear]=Qaheadλexec+λcancel\mathbb{E}[\tau_{\text{clear}}] = \frac{Q_{\text{ahead}}}{\lambda_{\text{exec}} + \lambda_{\text{cancel}}}

Huang, Lehalle & Rosenbaum (2015) relax the constant-rate assumption: their queue-reactive model makes the order-flow rates depend on the current state of the book, so rates vary with queue size and book shape.

Two papers give the standard formal treatments, and each has its own result. Cont, Stoikov and Talreja (2010) model the book as queues with random arrivals and cancellations and derive the probability that an order at the bid executes before the ask moves. Huang, Lehalle and Rosenbaum (2015) model the book as a Markov queuing system with state-dependent rates and use it as a simulator and for transaction-cost analysis. Fitted rates differ by venue and period, so they have to be re-estimated rather than copied.

FIFO versus pro-rata matching

FIFO fills the earliest order at a price completely before touching the next, so time decides everything; pro-rata fills all resting orders at the best price at once, in proportion to size, so size matters and time barely does. The same passive strategy needs opposite tactics: on FIFO you optimise queue position, on pro-rata you optimise displayed size. Get the venue's algorithm wrong and your fill model is fiction.

FIFO-style price-time rules drive the race to be first, which fuels the latency arms race and every queue-position strategy on this site. Under pro-rata an incoming order is split across the resting orders at the best price by size, so the incentive flips: post large, not early. CME's SOFR futures match with its Allocation algorithm, which gives top-order priority to the first order that bettered the market, then allocates pro-rata with a two-lot minimum, then hands leftover lots out by FIFO. CME lists several other variants (FIFO with market-maker allocations, threshold pro-rata, a configurable algorithm), while SOFR packs and bundles match FIFO. Some options venues also use pro-rata. Read the specific contract's matching specification rather than assuming.

FIFO gives the whole incoming order to the front of the time queue; pro-rata splits it across the level in proportion to displayed size. Opposite incentives: be early, versus be big.
fillipro-rata=M×Qi∑jQj,filliFIFO=min⁡ ⁣(Qi, M−∑k≺iQk)\text{fill}^{\text{pro-rata}}_i = M \times \frac{Q_i}{\sum_j Q_j}, \qquad \text{fill}^{\text{FIFO}}_i = \min\!\big(Q_i,\, M - \textstyle\sum_{k \prec i} Q_k\big)

Worked example: C at the back of 300 lots

Take one price level on a FIFO book; the numbers are illustrative, and you can reproduce them in the explorer above. Resting bids sit at 50.00 in arrival order: A = 100 lots, B = 200 lots, C = 50 lots, and you are C, behind 300 lots. Your queue position is 300, so you fill only after 300 lots of executions or cancellations clear ahead of you, and only if the bid is still resting at 50.00 when they do.

Trades only. Suppose sellers hit the 50.00 bid for 250 lots in total. Order A fills fully (100) and B fills 150 of its 200, and the 250 lots are exhausted before reaching you. C gets nothing. This is the back-of-queue problem in one line.

Cancellations help. Now suppose B cancels its 200 lots instead. Your position jumps from 300 to 100 with no execution at all. Just 100 lots of selling now fills A, and the very next lot reaches you. The cancellation ahead advanced you 200 lots for free, the dynamic the cancellation-rate slider isolates in the explorer.

On FIFO, 250 lots of pure selling strand you at the back; but a single 200-lot cancellation ahead pulls you to within 100 lots of a fill, for free.
Qahead:300→  B cancels 200  100Q_{\text{ahead}}: 300 \xrightarrow{\;\text{B cancels 200}\;} 100

Pro-rata contrast. Put the same book on a pro-rata venue and a 250-lot market sell against the 350 lots resting fills A, B and C proportionally: A gets 250×100/350≈71250 \times 100/350 \approx 71, B gets ≈143\approx 143, and you (C) get ≈36\approx 36, so you fill something immediately despite arriving last. The 36 is rounded to the nearest lot; a venue that rounds every allocation down, as CME's pro-rata step does, would give C 35 and pass the leftover lots on by FIFO. Size, not time, set your share. One change of matching rule flips you from nothing to 36 lots on identical orders.

Sources

  1. Hasbrouck, J. and Saar, G. (2009). "Technology and liquidity provision: the blurring of traditional definitions". Journal of Financial Markets 12(2), 143–172. doi.org (working-paper version: nyu.edu)
  2. Cont, R., Stoikov, S. and Talreja, R. (2010). "A stochastic model for order book dynamics". Operations Research 58(3), 549–563. doi.org
  3. Huang, W., Lehalle, C.-A. and Rosenbaum, M. (2015). "Simulating and analyzing order book data: the queue-reactive model". Journal of the American Statistical Association 110(509), 107–122. doi.org
  4. Moallemi, C. C. and Yuan, K. (2016). "A model for queue position valuation in a limit order book". SSRN working paper. doi.org
  5. CME Group. "Supported Matching Algorithms" (CME Globex client systems wiki). cmegroup.atlassian.net
  6. Nasdaq BX. Rule 4757 (Book Processing), "Execution Algorithm – Price/Display/Time", as printed in SEC filing SR-BX-2024-057, Exhibit 5. sec.gov

Where this fits

Common questions

What is price-time priority?
Price-time priority is how most order-driven venues rank resting orders: better-priced orders fill first, and among orders at the same price, the one that arrived earliest fills first (FIFO). It is why queue position has economic value: being early in the queue at a price means you trade before later orders. Some venues use pro-rata or size-time hybrids instead.