Granthara01.04.01Price-time priority: how orders are matched

01.04.01 · Price-time priority: how orders are matched

PreviouslyAt ₹500, a buyer and a seller traded for different reasons, and neither of them was wrong.

Your order joined a queue.

In 01.01.01 you bought ten shares of Bharat Foods at ₹500. Here is the moment before that purchase: your order is waiting inside the exchange, behind other orders.

A valid price is not enough. There must be enough selling to reach your place.

Updated

700
shares must be sold before the queue reaches your order
Part 01 · How the Exchange Actually Works
  1. 01.04.01 Price-time priority: how orders are matched
  2. 01.04.02 Pre-open, continuous session, closing auction
  3. 01.04.03 Circuit limits, price bands, trading halts
  4. 01.04.04 Settlement cycles, delivery vs intraday
  5. 01.04.05 Demat, clearing corporation, counterparty risk
  6. 01.04.06 Corporate surveillance: ASM, GSM, ban periods
0 of 6 read
Learn

The program between buyer and seller

Your broker sends the order to the exchange. Its checks eligible orders and pairs buyers with sellers. The holds orders still waiting to trade.

Matching engineExchange software that pairs eligible buy and sell orders under trading rules, including priority and protective checks.
Order bookThe exchange's record of orders waiting to trade. Ordinary displayed orders in continuous trading are ranked by price and arrival time.

In the ordinary continuous market, eligible resting orders follow price-time priority: better prices first, then earlier arrival at the same price. This lesson uses ordinary, fully displayed limit orders; auctions and special order conditions need their own rules.

For buyers, higher is better: ₹501 comes before ₹500. For sellers, lower is better: an offer at ₹499 comes before ₹500. Each side competes with orders on its own side.

See it

Four buy orders, and an arriving seller

The historical snapshot behind your purchase. Change the incoming market seller's quantity to inspect possible fills; the original ten-share purchase did complete.

The ₹499 buyer arrived earliest and is still last. At ₹500, the HNI's order is six seconds older than yours. The names explain the example; they do not buy queue priority.

Learn

Count what stands ahead of you

The first 200 shares sold meet the ₹501 bid. The next 500 meet the earlier ₹500 bid. Only after 700 shares have been sold into this unchanged snapshot does the seller reach your order.

At a seller quantity of 705, five of your ten shares fill. At 710, all ten fill. With 250 sold, 200 trade at ₹501 and 50 at ₹500; you receive nothing. A single incoming order can produce several trades.

Trades in this continuous-market example execute at the resting order's price. The seller does not receive one average price from the engine, although the broker may display an average across the separate fills.

Try it

Set the incoming seller's quantity to 705. How many of your ten shares fill?

Learn

A limit can trade immediately too

A names your worst acceptable price: the most you will pay to buy, or the least you will accept to sell. It need not wait. If eligible sell orders already exist at or below a new buy limit, that order can execute immediately against them.

Limit orderAn order setting the highest buy price or lowest sell price you accept. It can fill immediately at that price or better, wait, or remain unfilled.

A seeks the best available opposite orders without your own limit price. It can cross several price levels. Available quantity, exchange protections and order rules still constrain execution; a market order is not a promise of unlimited liquidity.

Market orderAn order seeking execution against the best available opposite orders without your own limit price. The execution price and a complete fill are not guaranteed.

Our four-row book is a frozen teaching snapshot. In a live book, orders arrive, cancel and change. Some modifications can change queue priority. Your position is not a permanent ticket.

Anonymous to the other trader does not mean unknown to the exchange

The exchange has participant information and applies controls, including self-trade prevention. Price-time priority means ordinary eligible orders do not jump the queue because the trader is rich or famous. It does not mean the exchange knows only two fields or ignores every other rule.

Try it

A new buy limit is ₹500. An eligible sell order is already resting at ₹499. In the normal continuous market, what can happen?

Remember

In the ordinary continuous book, eligible orders get better-price priority and then time priority; a resting order becomes a trade only when matching quantity reaches it.

Next
01.04.02 — Pre-open, continuous session, closing auction

Before the continuous queue starts, the opening auction gathers orders and discovers a common price.