1.6.11Order Types & Mechanics

Understand slippage and partial fills

1,787 words8 min readdifficulty · medium1 backlinks

WHY does this happen at all?

WHY slippage exists: a market order promises speed, not price. It marches up (or down) the book eating each level's available shares until your quantity is filled. If your order is bigger than the top level, later shares fill at worse prices → the average fill price drifts away from the quote.

WHY partial fills exist: a limit order promises price, not completion. If not enough counterparties want to trade at (or better than) your limit, only the available portion executes; the rest rests on the book or cancels (depending on order flags like IOC/FOK).


HOW slippage is computed

Deriving it from scratch (why the average, not the last price?): You pay each chunk at its own level's price. Total cost is a sum of price×size. To compare against a single quoted number you need one representative price — the size-weighted mean, because a big chunk at one level should count more than a tiny chunk at another. That is exactly pˉ=piqi/qi\bar p = \sum p_i q_i / \sum q_i. Slippage is then just "how far did that weighted mean drift from where I aimed."

For a sell market order you eat bids downward, so S=p0pˉS = p_0 - \bar p (you receive less than the quote).

Figure — Understand slippage and partial fills

Worked examples


The trade-off triangle


Common mistakes (steel-manned)


Recall Feynman: explain to a 12-year-old

Imagine a candy shop. The sign says "candy ₹5". But there are only 3 candies at ₹5, then 4 at ₹6, then more at ₹7. If you want 8 candies, you can't get them all for ₹5 — you scoop up the cheap ones, then pay more for the rest. The average price you paid ends up higher than the sign: that extra bit is slippage. And if you told the shopkeeper "I'll pay ₹5 and not a rupee more," you only get 3 candies — that's a partial fill; the other 5 you just don't get.


Active recall

What is slippage?
The difference between the expected/reference price and the actual average execution price of a trade.
What is a partial fill?
When only part of your ordered quantity executes, leaving the rest unfilled (resting or cancelled).
Why do market orders cause slippage?
They prioritize speed and completion, so they walk up/down the book eating multiple price levels at progressively worse prices.
Why do limit orders cause partial fills?
They cap the price, so only the quantity available at (or better than) your limit executes; the rest can't fill without violating the limit.
Formula for average execution price?
pˉ=ipiqiiqi\bar p = \frac{\sum_i p_i q_i}{\sum_i q_i} — the size-weighted mean of the filled chunks.
Buy-side slippage per share?
S=pˉp0S = \bar p - p_0, where p0p_0 is the reference (arrival) price.
Is slippage always positive (a cost)?
No — it can be favorable/negative if the market moves in your direction before you fill.
Difference between slippage and the bid-ask spread?
Spread is the top-of-book round-trip cost; slippage is the extra drift from walking beyond top-of-book when your size exceeds available liquidity.
What does an IOC order do to unfilled quantity?
Cancels it immediately after taking whatever is available now.
The trade-off triangle picks two of?
Price certainty, fill certainty, speed.

Connections

Concept Map

split into

finite qty causes

triggers

fills at worse levels

compared to

difference gives

not enough counterparties

leftover shares

too little at limit

Order Book: resting limit orders

Price levels with limited quantity

Market Order: speed not price

Limit Order: price not completion

Walks the book eating levels

Slippage: got price minus expected price

Partial Fill: only part executes

Size-weighted average fill price

Reference price p0 = best ask

Rest on book or cancel IOC/FOK

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, screen pe jo price dikhta hai wo sirf top of the book ka best price hota hai, aur usme sirf thodi si quantity available hoti hai. Jab tum ek bada market order lagaate ho, to tumhara order pehle wo cheap shares kha jaata hai, phir agla mehenga level, phir aur mehenga — is tarah tumhara average price upar chala jaata hai. Screen wale price aur actual average price ka jo gap hai, usko slippage kehte hain. Yani "speed ke badle price ki keemat".

Partial fill tab hota hai jab tum limit order lagaate ho. Limit order kehta hai "isse zyada main pay nahi karunga". Ab agar us price pe sirf 100 shares available hain aur tumne 250 maange, to sirf 100 fill honge, baaki 150 book pe wait karenge (ya IOC ho to cancel ho jaayenge). To yahan price to guaranteed mil gaya, par pura order complete nahi hua — ye hai partial fill.

Yaad rakhne ka simple rule: Market order → price ki tension, Limit order → fill ki tension. Dono ek saath perfect nahi mil sakte — price certainty, fill certainty aur speed, in teeno me se sirf do choose kar sakte ho. Isliye traders liquidity dekhte hain aur bade orders ko chote tukdo (slicing) me todte hain taaki slippage kam ho.

Ek important baat: slippage sirf loss nahi hota — kabhi market tumhare favour me move kare to favourable slippage bhi ho sakta hai. Aur slippage ko bid-ask spread mat samajh lena; spread top-of-book ka chhota cost hai, slippage tab badhta hai jab tumhara size top level se bada ho.

Test yourself — Order Types & Mechanics

Connections