1.6.1Order Types & Mechanics

Understand market orders vs limit orders

2,002 words9 min readdifficulty · medium6 backlinks

WHY do we even need order types?

WHAT problem are we solving? When you click "buy", the exchange must answer two questions:

  1. At what price do I fill you?
  2. When / whether do I fill you at all?

An order type is simply your instruction to the exchange about how to trade off these two. The market has a spread: buyers post the highest they'll pay (the bid), sellers post the lowest they'll accept (the ask). The gap between them is where all the drama lives.


The Order Book — the machine underneath

WHY start here? Because you cannot understand orders without the book they hit.

Figure — Understand market orders vs limit orders

The limit order book is a sorted ladder:

  • Ask side (sellers): stacked upward from lowest ask.
  • Bid side (buyers): stacked downward from highest bid.

A limit order adds a resting rung to this ladder (it provides liquidity, "maker"). A market order walks down the ladder eating existing rungs (it takes liquidity, "taker").


Market Order

HOW it fills — step by step. Say you send BUY 300 shares MARKET and the ask side reads:

Ask price Shares
100.00 100
100.05 150
100.20 500
  • Eat 100 @ 100.00 → 100 done.
    • Why this step? Market order always takes the best (lowest) ask first.
  • Eat 150 @ 100.05 → 250 done.
    • Why? First rung exhausted; move to next best.
  • Eat 50 @ 100.20 → 300 done.
    • Why? Only 50 left to fill; take from next level.

Limit Order

WHY "or better"? A BUY limit at 100.00 will happily fill at 99.50 if available — a better price for you is always accepted. The limit is a worst-case bound, not an exact target.

HOW it behaves:

  • BUY limit @ 99.90 while best ask is 100.00 → does not fill now. It rests on the bid side as a new rung. It fills only if a seller drops to 99.90.
  • BUY limit @ 100.10 while best ask is 100.00 → this is marketable: it crosses the spread and fills immediately at 100.00 (better than your limit). Any unfilled remainder rests at 100.10.

Head-to-head

Market Order Limit Order
Guarantees Execution Price (or better)
Risks Bad price (slippage) May never fill
Role in book Taker (removes liquidity) Usually Maker (adds liquidity)
Fees (often) Higher (taker fee) Lower / rebate (maker)
Best for Liquid stocks, must-get-in/out Illiquid stocks, target price, patience

Worked Example 2 — protecting yourself

You want to buy a thin small-cap. Best ask 50.00, but only 40 shares there; next ask jumps to 53.00. You want 500 shares.

  • If MARKET: 40 @ 50, then 460 @ 53 → pˉ=40(50)+460(53)500=26380500=52.76\bar p = \frac{40(50)+460(53)}{500} = \frac{26380}{500}=52.76. Ouch — 5.5% above what you saw.
    • Why this step? Thin book → market order chews through a big price gap.
  • If LIMIT @ 50.50: fills only 40 shares, rest waits. You avoided the 53 disaster but got only partial fill.
    • Why? Limit refuses anything above 50.50. Price protected, execution sacrificed.

Lesson: in thin books, market orders are dangerous; limit orders are the safety valve.


Worked Example 3 — the fast-mover trap

Fast-rising stock, best ask 200. You place BUY limit @ 200. Price rockets to 205 before you fill.

  • Your limit @ 200 never fills — market ran away.
    • Why? No seller will accept 200 anymore; your rung is now below the whole book.
  • A market order would have filled ~200–201 and you'd be in.

Lesson: for time-critical entries in momentum, limits can leave you on the platform watching the train go.



Recall Feynman: explain to a 12-year-old

Imagine an ice-cream truck line. A market order is you shouting "give me ice cream RIGHT NOW!" — you'll definitely get one, but if the cheap flavor runs out you pay for the expensive one without complaining. A limit order is you saying "I'll buy ONLY if it's ₹10 or cheaper." You might get a great deal... or you might stand there all day and go home with nothing because it never dropped to ₹10. Fast-and-any-price, or wait-and-my-price. You can't have both perfectly.


Flashcards

What does a market order guarantee?
Execution (immediate fill) — but NOT the price.
What does a limit order guarantee?
A price no worse than your limit — but NOT that it fills.
When you BUY market, which quote do you actually pay?
The ask (best available seller prices), sweeping upward.
When you SELL market, which quote do you get?
The bid (best available buyer prices), sweeping downward.
Define slippage.
The difference between the best expected quote and your realized average fill price, pˉpbest\bar p - p_{best}.
Formula for average fill price across levels?
pˉ=ipiqiiqi\bar p = \frac{\sum_i p_i q_i}{\sum_i q_i}.
What is a "marketable limit order"?
A limit priced through the spread (e.g. buy limit above best ask) so it fills immediately at market, with a price cap.
Does a BUY limit @100 ever fill below 100?
Yes — "or better"; it fills at any price ≤ 100.
Maker vs taker: which order provides liquidity?
Limit orders (resting) provide/make liquidity; market orders take it.
Why avoid market orders in thin/illiquid books?
Few resting shares mean the order sweeps into far-away price levels → large slippage.
Risk of a non-marketable limit order in a fast-rising market?
It may never fill as price runs away above your limit.

Connections

Concept Map

highest buy

lowest sell

minus Bid

defines

adds resting rung

acts as

gives

walks ladder eating rungs

acts as

gives

filled across levels

minus best quote

Limit Order Book Ladder

Bid: highest buyer price

Ask: lowest seller price

Spread

Limit Order

Market Order

Provides liquidity - maker

Takes liquidity - taker

Certain execution, uncertain price

Certain price, uncertain execution

Average fill price VWAP

Slippage

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, market order aur limit order ka farak sirf ek soch ka hai: speed chahiye ya price control chahiye? Market order matlab "mujhe abhi chahiye, jo bhi bhaav ho" — fill pakka ho jayega, par price ki guarantee nahi. Buy karte waqt tum ask pe khareedte ho, aur agar ek level pe shares kam hain to order upar wale mehnge levels ko bhi kha jata hai — isko slippage kehte hain. Screen pe jo price dikh raha hai wo sirf photo hai, wahi price milega aisa zaroori nahi.

Limit order ulta hai: tum apna price bolte ho — "sirf 100 ya usse behtar pe kharidunga". Ab price ki guarantee hai (usse mehnga kabhi nahi milega), par fill ki guarantee nahi. Agar market bhaag gaya upar, tumhara limit @100 waisa hi pada reh jayega aur trade miss ho jayega. Yaad rakho "ya usse behtar" — buy limit @100 agar 99.80 pe mil jaye to bhi accept ho jayega.

Average fill nikalna simple hai: har level ka price × quantity jodo, phir total shares se divide karo — pˉ=piqiqi\bar p = \frac{\sum p_i q_i}{\sum q_i}. Yehi VWAP-of-fill hai. Patli (illiquid) stock mein market order khatarnak hai kyunki gaps bade hote hmain; wahan hamesha limit laga ke apni risk cap karo. Fast-moving momentum stock mein ulta — limit fill hi nahi hoga, market order behtar. Mnemonic: "Market = Money-now, Limit = Line-and-wait."

Test yourself — Order Types & Mechanics

Connections