Quant techniques · market microstructure

Limit-order fill probability: queue position, censoring, and adverse selection

A passive limit order may save the spread, but only if it fills in time—and fills often arrive precisely when the market is moving against the quote. A useful execution model therefore predicts more than whether the price touches the limit. It estimates time to fill from queue position and market state, then measures what happens after execution.

Queue position and fill chance

Chance of fill before 100 shares trade (%)

Illustrative uncertain marketable volume with logistic tail centered at 100 shares.

Start with the queue

Under price-time priority, a new order joins behind eligible displayed quantity at its price. Let Q0Q_0 be the quantity ahead of it, VV its own size, and DD the deadline. In a deliberately simple model, assume unit-sized executions against the queue arrive as a Poisson process with rate λ\lambda, no new orders join ahead, and there are no partial fills. Then

P(fill by D)=P{ND≥Q0+V}=1−∑k=0Q0+V−1e−λD(λD)kk!,P(\text{fill by }D)=P\{N_D\ge Q_0+V\} =1-\sum_{k=0}^{Q_0+V-1}e^{-\lambda D}\frac{(\lambda D)^k}{k!},

where ND∼Poisson⁡(λD)N_D\sim\operatorname{Poisson}(\lambda D). For a one-unit order with four units ahead, the queue must see at least five unit executions before the deadline. This gives a baseline intuition: a longer deadline or faster contra-side flow raises fill probability, while more quantity ahead lowers it.

Real queues are not that simple. Order sizes vary, orders arrive ahead only if they have priority by timestamp, cancellations may remove quantity in front, the queue can replenish, and a price move can execute or strand the order. A usable model conditions on book state, order-flow intensity, spread, imbalance, volatility, time of day, order price and size, and venue rules. Data quality matters: market-by-price feeds often do not reveal exactly which cancellations occurred ahead of a hypothetical order.

Treat time to fill as an event-time problem

For each historical order, define a fill time TfT_f and an outcome status. If it has not filled when the order is canceled, expires, or the data window ends, the observation is right-censored at that time. A survival function

S(t∣z)=P(Tf>t∣z)S(t\mid z)=P(T_f>t\mid z)

maps covariates zz and time to the probability that the order remains unfilled. The cumulative fill probability is 1−S(t∣z)1-S(t\mid z). A Kaplan–Meier estimate provides a nonparametric benchmark for a comparable cohort; a regression survival model can incorporate changing market state and queue features.

Censoring is not automatically benign. Traders cancel orders because market conditions changed, so censoring can be informative: the canceled cases may have had systematically different fill prospects or adverse-selection risk. Model cancellation as a competing event, or use a clearly specified censoring model and assess its assumptions. Also distinguish partial fill from full completion, and define whether a “fill” means any execution or the entire requested size.

A touch is not a fill

Bar data showing that the market traded at a limit price cannot reveal queue priority, displayed size ahead, cancellations, or partial execution. A backtest that fills every touched order can overstate both fill probability and spread capture.

From fill probability to an execution decision

The limit-versus-market comparison needs the consequences of both filling and not filling. Let pfp_f be the probability of fill by the deadline, GG the expected gain relative to immediate execution conditional on a fill, CnfC_{nf} the cost of non-fill (such as a later market order or missed target), and AfA_f the expected adverse-selection cost after a fill. A simple expected-value comparison is

EVlimit=pf(G−Af)−(1−pf)Cnf.EV_{\text{limit}}=p_f(G-A_f)-(1-p_f)C_{nf}.

This decomposition is only a decision aid: the quantities depend on the same market state and may be correlated. Estimate post-fill markouts at predeclared horizons, for example the midprice change from fill time to 1 second, 10 seconds, or 1 minute. A high fill probability can be undesirable if fills predict subsequent price moves against the order.

A practical model-development loop is:

  1. Reconstruct realistic order arrival time, price, size, queue ahead, and subsequent book events from message-level or sufficiently detailed data.
  2. Define the endpoint and horizon, including partial-fill and cancellation handling.
  3. Train on chronological data and generate only out-of-sample predictions. Avoid labeling an order as filled based solely on a later price touch.
  4. Evaluate fill-probability calibration, time-to-fill distributions, and performance by queue depth and market regime. Also evaluate markouts conditional on fill.
  5. Test a policy that includes non-fill cleanup cost, fees, rebates, latency, and market impact. Replay assumptions should reflect the order’s own effect on the book where material.

Limits and extensions

Queue-depletion models offer interpretability and fast calculations but rely on arrival assumptions that can fail during bursts, replenishment, and regime changes. Survival models handle right-censored durations naturally when their assumptions hold, but they do not solve missing queue information or strategic cancellation bias. Deep sequence models can use richer order-book histories, yet they still need realistic labels and chronological validation.

Fill probability is venue- and protocol-specific. Hidden liquidity, auctions, routing across venues, latency, and queue uncertainty can alter execution odds. Recalibrate when tick size, market structure, or order-routing behavior changes. Treat the output as conditional on the data and execution mechanism used to estimate it.

Show answer

An order has a high estimated chance of filling before its deadline, but filled orders have strongly negative post-fill markouts. Why might routing that order more aggressively reduce expected performance? Which outcome measures would you review before changing the policy?

Further reading

  • Cont, Stoikov, and Talreja, “A Stochastic Model for Order Book Dynamics,” on queue-based book dynamics and event probabilities, Operations Research.
  • Maglaras, Moallemi, and Wang, “A Deep Learning Approach to Estimating Fill Probabilities in a Limit Order Book,” on conditional time-to-fill estimation, paper PDF.