📘 CodingMarble Learn

Trading: Order Types and How the Trading System Works

Today shares are traded on computer screens. Brokers send buy orders (bids) and sell orders (asks) to the exchange's computer, which keeps them in an order book and matches them automatically: the best price first, and at the same price, the earliest order first (price-time priority). A market order trades at once at the best price available; a limit order trades only at your price or better and may wait; a stop-loss order wakes up when the price touches a trigger. Orders also have time conditions such as day, immediate-or-cancel and good-till-cancelled. After a trade, clearing and settlement move shares and money between buyer and seller.

🎬 Step-by-step story

  1. Trading is screen-based now. Brokers' screens send orders to the exchange computer, which matches buyers and sellers in a split second.
  2. The order book: green bars are buy orders (bids), red bars are sell orders (asks). Best bid ₹99, best ask ₹100. The gap is the spread.
  3. Market order: buy 3 shares now at the best price. It trades at once with the cheapest seller at ₹100.
  4. Limit order: buy 3 shares, pay at most ₹98. No seller is that cheap, so the order waits in the queue of bids.
  5. Stop-loss order: if the price falls to ₹98, sell for me. It sleeps until the price touches the trigger, then becomes a sell order.
  6. Your turn: choose buy or sell, market or limit, a price and a quantity. See if your order trades or waits.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Is there still a trading floor where people shout?

Almost everywhere trading is now electronic: brokers' screens send orders to the exchange computer.

Who decides the price of a share?

No single person. The price is where the highest buyer and lowest seller meet in the order book.

Why did my market order cost more than the price on screen?

If your order is bigger than the quantity at the best ask, it moves up to the next price levels.

Why is my limit order not trading?

No seller is at your price or lower yet. It waits in the queue; time priority decides who is first at that price.

Does a stop-loss guarantee my exact price?

No. It triggers at the trigger price; a stop-loss market order can fill a little lower in a fast fall.

What if I set a buy limit above the best ask?

It trades at once at the best ask, because that is better than your limit. Try it in free play.

The trading system: from trading floor to screens

Long ago, traders stood in a trading ring (floor) and shouted prices (open outcry). Today almost all exchanges use screen-based trading: an online, fully automated system.

Some markets also have market makers who always quote a buy and sell price (a quote-driven market).

The order book and how orders are matched

A bid is a price at which someone wants to buy; an ask (or offer) is a price at which someone wants to sell. The highest bid and the lowest ask are the best bid and best ask. The difference between them is the spread.

Price-time priority

  1. Price first: the best price is served first (highest buy, lowest sell).
  2. Then time: among orders at the same price, the one placed earlier trades first.

When a new buy order's price is equal to or higher than the best ask, a trade happens. The price at which it happens is the last traded price (LTP).

Order types

Based on price

Based on time (validity)

Based on quantity

Trading hours, circuits and settlement

Key formulas and definitions

Worked examples

1. Best bid ₹249.50, best ask ₹250.25. Find the spread.

Spread = 250.25 − 249.50 = ₹0.75.

2. Sellers in the book: 5 shares at ₹100, 8 at ₹101. You place a market buy for 7 shares. What do you pay in total and on average?

5 × 100 = 500 and 2 × 101 = 202. Total ₹702. Average = 702 ÷ 7 ≈ ₹100.29.

3. You place a limit buy at ₹98 when the best ask is ₹100. What happens?

No trade, because no seller is at ₹98 or lower. Your order waits in the bid queue until a seller comes down to ₹98 or you cancel.

4. Two buy orders at ₹99: A placed at 10:01, B placed at 10:03. A seller at ₹99 arrives for 4 shares; A wants 3, B wants 5. Who gets what?

Same price, so time decides. A gets 3 shares, B gets the remaining 1 share.

5. You bought at ₹500 and set a stop-loss at ₹470. The price falls to ₹470. What happens and what is the loss per share (ignore fees)?

The trigger is hit, so a sell order is sent. If sold near ₹470, the loss is about ₹30 per share instead of a bigger loss if the fall continues.

6. A trade is done on Monday. When is it settled under T+1 if Tuesday is a working day?

On Tuesday (one working day after the trade day).

Common mistakes

Practice quiz

1. Modern stock exchanges mostly use:
2. An order to buy immediately at the best available price is a:
3. Best bid ₹50, best ask ₹51. Spread?
4. Matching follows:
5. An order that trades what it can now and cancels the rest:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What are the types of orders in the stock market?

By price: market, limit and stop-loss orders. By time: day, immediate-or-cancel and good-till-cancelled orders. By quantity: disclosed quantity and all-or-none orders.

What is the difference between a market order and a limit order?

A market order trades immediately at the best available price; a limit order trades only at your set price or better and may wait or not trade.

How are orders matched on an exchange?

The exchange computer uses price-time priority: the best price is served first, and among equal prices, the earliest order first.

Where this is taught

CBSE (India)Class 12Trading

Learn first

Learn next

Related lessons

All Business Studies lessons