What is Fill or Kill (FOK)?
Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy
How fill-or-kill works
FOK combines two conditions. "Fill" means the whole quantity, not part of it. "Kill" means that if the whole quantity cannot be matched the moment the order arrives, it is cancelled, with nothing resting in the book. The check is made once, against the prices available at that instant and within any limit price you set.
Fill-or-kill (FOK)
Immediate-or-cancel (IOC)
All-or-none (AON)
Worked example: when the full size is not there
In Figure 1 you want exactly 500 shares at no more than ₹1,500. The book offers 200 at ₹1,499.50 and 150 at ₹1,500.00, a total of 350, and the next shares are at ₹1,500.50. As FOK, the order is cancelled outright. As IOC, it would have bought 350 at an average of (200 × ₹1,499.50 + 150 × ₹1,500.00) ÷ 350 = ₹1,499.71. As a DAY limit, those 350 would fill and 150 would wait at ₹1,500.
When traders use it
- When a partial position would break the plan, for example one side of a hedge or an arbitrage that only works at the full size.
- When the stop and risk are sized for an exact quantity and a smaller fill would mean recalculating everything mid-trade.
- On platforms that offer it, in deep, liquid books where the full size is usually there at the quoted price.
The cost of that certainty is missed trades. In Figure 1 the FOK buyer ends with no shares; if the stock then moves up, the IOC buyer has 350 shares working and the FOK buyer has nothing. Whether that is a problem depends on whether a 350-share position would still have been a valid trade under your plan. If it would, IOC or a DAY limit fits better; if only the full 500 makes sense, FOK has done its job by refusing the rest.
Limits and journal notes
- In thin books, at the open and around news, FOK orders are often killed, so the trade you planned may simply not happen.
- A killed order is easy to miss on a busy screen. Confirm the order status before placing any linked hedge or stop.
- Log every killed FOK with the size you wanted and the size available. If the gap is regular, the size is too large for that instrument.
Reference guide
| Context | Value | Reading |
|---|---|---|
| Exact size needed, deep book | Fits the tool | FOK either gives the full position or nothing, so risk sums stay as planned |
| Large size in a thin book | Frequent rejections | The order keeps failing; reduce size or accept partial fills |
| Assuming the order went through | Hidden risk | A killed order leaves no position; check the order status before placing the hedge or the stop |
Questions
What is a fill-or-kill order?
An order that must be filled in full the moment it arrives, or it is cancelled. Partial fills are not allowed and nothing waits in the order book.
What is the difference between FOK and IOC?
IOC fills whatever is available now and cancels the rest. FOK fills only if the whole quantity is available now; otherwise it fills nothing.
Can I place a FOK order on NSE?
FOK is not a standard NSE validity; NSE offers DAY and IOC. Some broker platforms may offer similar behaviour, so check your broker’s order types.
Why does my fill-or-kill order keep getting cancelled?
The full quantity is not available at your limit at that instant. Reduce the size, widen the limit within your plan, or use IOC if a partial fill is acceptable.
Is FOK the same as all-or-none?
No. Both refuse partial fills, but an all-or-none order can wait in the book, while FOK is cancelled at once if it cannot fill in full.