CHARTTHREAD

Price-time priority

Also called: price time priority, price priority, FIFO matching, first in first out

Price-time priority is the rule most exchanges use to match orders. The best price trades first, and among orders at the same price, the one that arrived earliest fills first. It is also called FIFO, first in, first out.

Price-time priority is the rule inside the matching engine, the program that pairs incoming orders with the ones waiting in the order book. It decides who trades when several people want to trade at once. Knowing it explains two things traders often find strange: why a limit order can sit unfilled while price trades at it, and why moving an order by one tick can cost you a fill.

How price-time priority works

The engine applies two rules, in this order:

  1. Price first. An incoming sell trades with the highest bid; an incoming buy with the lowest ask. A better price is never skipped in favour of a worse one.
  2. Then time. At the same price, orders fill in the order they arrived. Each price level in the book is a queue.

When a market order is larger than the size at the best price, it fills the whole queue there and moves on to the next price, again filling that queue from the front.

Example: four orders at one price

Four traders place buy limits at $50.00, in this order: A for 5 shares, B for 3, you for 2, C for 4. A market sell for 9 shares arrives.

  • A gets 5. B gets 3. That is 8.
  • You get the last 1 of your 2. C gets nothing.

Now suppose B cancels a second before the sell arrives. The same 9 shares fill A’s 5, both of yours and 2 of C’s. Your order did not change; a cancellation ahead of you moved you up the queue.

If you had raised your bid to $50.01 instead, you would be alone at the best price and fill first. That is price priority beating time priority.

What it means for your orders

  • Joining an existing price means waiting. Check how much size is ahead of you. A busy best bid can take many minutes to clear.
  • Do not move the order at the last moment. Even one tick to the side puts you at the back of a new queue.
  • A touch is not a fill. Price can trade at your limit and turn away. Many traders place entries slightly in front of the price they really want.
  • Hidden size can be in the queue. An iceberg order refills its visible part; on many exchanges each refill joins the back of the line.

Price-time vs pro-rata

Rule At the same price, fills go to Rewards
Price-time (FIFO) the earliest orders being first
Pro-rata every order, by its share of the size being large

Price-time priority in the ChartThread method

Entries in the course are planned at a level before price arrives, often with a limit order. Price-time priority is why such an order may miss: the queue at the level fills before you, and price turns away. See the order book: how a price is made for the full queue example with real numbers.

Questions about price-time priority

What is price priority?

Price priority is the first half of the rule. A better price always trades before a worse one: the highest bid before lower bids, the lowest ask before higher asks. Time only matters among orders at the same price.

Why did trades print at my limit price while my order did not fill?

Because of time priority. Orders that joined that price before yours were filled first. Your order fills only when the queue ahead of it has been traded or cancelled.

Do I lose my place if I change my order?

Changing the price always sends the order to the back of the queue at the new price. On most exchanges, increasing the size also resets its time priority, while reducing the size usually keeps it. Rules vary, so check your exchange.

Do all exchanges use price-time priority?

Most stock and crypto exchanges do. Some futures markets, notably certain short-term interest rate contracts, use pro-rata matching, which shares each fill among all orders at the best price in proportion to their size.

Lessons that use this term

Related terms

All terms in the glossary