Order Types

What is Fill or Kill (FOK)?

Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy

DefinitionFill-or-kill (FOK) is an order instruction that must be filled in full, immediately, or not at all: no partial fills and nothing left waiting. A buy of 500 shares at a ₹1,500 limit, when only 350 are offered at or below ₹1,500, is cancelled entirely as FOK. FOK is not one of the standard order validities on NSE, which offers DAY and IOC, so Indian traders meet it mainly on overseas or broker-specific platforms.
Formula
If quantity available at or better than the limit ≥ order quantity: fill all of it now; otherwise fill nothing and cancel
Example
Wanted 500; available at ₹1,500 or better = 200 + 150 = 350. Since 350 < 500, filled = 0 and all 500 are cancelled
Buy 500 shares · limit ₹1,500.00 · illustrative stockAsk priceQtyvs your limit₹1,500.50400above limit₹1,500.00150within limit₹1,499.50200within limityour limit ₹1,500.00AVAILABLE AT OR BELOW ₹1,500350 of 500 sharesDAY limit350 filled @ ₹1,499.71150 wait in the book at ₹1,500IOC350 filled @ ₹1,499.71150 cancelled at onceFOK0 filledAll 500 cancelled (only 350 available)Same book, three validities · before charges
Figure 1. Illustrative stock order book. You want to buy 500 shares with a limit of ₹1,500.00, but only 350 are offered at or below it (200 at ₹1,499.50 and 150 at ₹1,500.00); the next 400 are at ₹1,500.50, above the limit. A DAY limit order fills 350 at an average of ₹1,499.71 and leaves 150 waiting in the book. An IOC order fills the same 350 and cancels 150 at once. A FOK order fills nothing and cancels all 500.

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)

All now, or nothing. No partial fills, no waiting.
Figure 1: 0 of 500 filled

Immediate-or-cancel (IOC)

Whatever is available now, the rest cancelled. Partial fills allowed.
Figure 1: 350 of 500 filled

All-or-none (AON)

All or nothing, but the order can wait in the book until the full size is available.
Not immediate

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.

Wanted
500 shares
Available at ₹1,500 or less
350
Filled as FOK
0
Filled as IOC
350 @ ₹1,499.71

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.

For traders in India
NSE’s standard order validities are DAY and IOC; FOK is not one of them. Indian traders meet FOK mainly on overseas or crypto platforms, or as a broker-specific feature. If you need all-or-nothing behaviour on NSE, the closest tools are an IOC order sized to what the book shows, or a multi-leg strategy order where your broker documents how partial fills are handled. Check your broker before assuming any order is all-or-nothing.

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

ContextValueReading
Exact size needed, deep bookFits the toolFOK either gives the full position or nothing, so risk sums stay as planned
Large size in a thin bookFrequent rejectionsThe order keeps failing; reduce size or accept partial fills
Assuming the order went throughHidden riskA 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.

Related terms