• Practice
  • About 15 min
  • 5 practice questions

Market orders, limit orders and the order book

Tell a market order from a limit order, read a simple order book of bids and asks, and work out how much of an order fills and at what cost.

If something looks wrong, please tell us.

The foundation course showed that a broker places your order on the exchange, which matches buyers with sellers. This lesson looks at what kind of order you place. The two basic types, the market order and the limit order, trade off certainty of execution against certainty of price, and practice questions test exactly that trade-off, often with a small order book to calculate from. All prices and quantities are invented and labelled 'suppose'.

The order book: bids and asks

At any moment an exchange holds waiting orders for a share. Orders to buy are bids; orders to sell are asks (also called offers). The best bid is the highest price any buyer is waiting to pay; the best ask is the lowest price any seller is waiting to accept. The gap between them is the spread. A trade happens when a new order is willing to meet a waiting order on the other side.

Market order

A market order says: buy (or sell) this quantity now, at the best prices available. A market buy is matched with the lowest asks first, a market sell with the highest bids first. The investor gets speed and near-certain execution when there are enough orders on the other side, but does not fix the price. If the order is larger than the quantity at the best price, it moves on to the next price level, so different parts may fill at different prices.

Limit order

A limit order sets the worst price the investor will accept. A buy limit at ₹120 will buy at ₹120 or lower; a sell limit at ₹310 will sell at ₹310 or higher. If no matching order exists, the limit order waits in the order book until one arrives or the order lapses. So a limit order gives certainty about the price but not about execution. If a limit order can be met at once at a better price than the limit, it fills at that better waiting price.

Market versus limit
OrderControlsRisk
Market buy / sellSpeed of executionPrice may be worse than expected, especially for large orders
Limit buy at LPays at most LMay not fill, or fill only partly
Limit sell at LReceives at least LMay not fill, or fill only partly

Worked example 1: will it fill?

Suppose the best bid for a share is ₹199.50 and the best ask is ₹200.00, with plenty of quantity at each. (a) A market buy of 50 shares fills at ₹200.00: cost ₹10,000. (b) A limit buy at ₹199 does not fill now, because no seller is asking ₹199 or less; it waits. (c) A limit sell at ₹199 can be met at once by the buyer bidding ₹199.50, which is better than the limit, so it fills at ₹199.50. The spread is ₹0.50.

Worked example 2: walking the book

Suppose the asks waiting for a share are: 100 shares at ₹50.00, 200 at ₹50.20 and 300 at ₹50.50. An investor places a market buy for 250 shares. Working: the first 100 fill at ₹50.00 = ₹5,000; the remaining 150 fill at ₹50.20 = ₹7,530. Total cost = ₹12,530, an average of 12,530 ÷ 250 = ₹50.12 per share. If instead the investor placed a limit buy for 250 at ₹50.10, only the 100 shares at ₹50.00 would fill; the other 150 would wait, because ₹50.20 is above the limit.

Market order: certain to trade (if there are orders on the other side), price not fixed. Limit order: price fixed (buy at or below, sell at or above), trade not certain. Market buys take the lowest asks first; market sells take the highest bids first.

Key takeaways: read the book from the best price outward; multiply each level's quantity by its price and add; a limit order never fills at a worse price than its limit but may fill at a better one; and the spread is best ask minus best bid.

Check your understanding

  1. 1. What does a market order offer the investor?

    1. Prompt execution at the best prices available, without a fixed price
    2. A fixed price chosen by the investor
    3. Execution only at or below a price the investor sets
    4. A guarantee that the whole order fills at a single price
    Show answer

    Answer: A. A market order trades at once against the best waiting orders. It does not fix the price, and a large order may fill at several prices.

  2. 2. Suppose the best bid for a share is ₹305 and an investor places a limit sell order at ₹310. What happens immediately?

    1. It sells at once at ₹305
    2. The order waits in the book until a buyer is willing to pay ₹310 or more
    3. It sells at once at ₹310
    4. It is converted into a market order
    Show answer

    Answer: B. A sell limit at ₹310 accepts only ₹310 or higher. The best buyer offers ₹305, so the order waits.

  3. 3. Suppose the best bid for a share is ₹412.40 and the best ask is ₹412.90. What is the spread?

    1. ₹412.65
    2. ₹0.90
    3. ₹825.30
    4. ₹0.50
    Show answer

    Answer: D. Spread = best ask − best bid = 412.90 − 412.40 = ₹0.50.

  4. 4. Suppose the asks for a share are 200 shares at ₹75.00 and 300 shares at ₹75.50. What does a market buy of 400 shares cost in total?

    1. ₹30,100
    2. ₹30,000
    3. ₹30,200
    4. ₹29,900
    Show answer

    Answer: A. 200 × ₹75.00 = ₹15,000, and the next 200 × ₹75.50 = ₹15,100. Total = ₹30,100.

  5. 5. An investor places a buy limit order at ₹120. This means the shares will be bought:

    1. At ₹120 or any higher price
    2. Only at exactly ₹120
    3. At ₹120 or any lower price
    4. At whatever the market price is
    Show answer

    Answer: C. A buy limit sets the highest price the buyer will pay, so it can fill at ₹120 or below, never above.

Privacy · Terms · Refunds · Delivery