A fill-or-kill (FOK) order must be executed immediately and in its entirety, or it is cancelled completely; no partial fills are allowed.
In short
- All or nothing, right now.
- Useful when a partial position would be unwanted.
- Fails often in less liquid markets.
How it works
A fill-or-kill (FOK) order must be executed immediately and in its entirety, or it is cancelled completely. No partial fills are allowed.
The exchange or broker checks whether the full quantity can trade at your limit price or better at that moment. If yes, the whole order fills; if not, nothing trades and the order is cancelled.
Example: an FOK order to buy 5,000 shares at 120 fills only if at least 5,000 shares are available at 120 or below right away. If only 4,000 are available, no shares are bought.
FOK combines two conditions: immediate execution, like an immediate-or-cancel (IOC) order, and full quantity, like an all-or-none (AON) order. IOC allows partial fills, and AON can wait, but FOK allows neither.
FOK orders are used when only the full quantity makes sense, for example in arbitrage, where a partial fill on one side would leave an unwanted open position, or for large trades where traders do not want to reveal their interest by leaving orders in the book.
Support for FOK varies by exchange and broker. In retail forex, some brokers apply FOK or IOC execution rules to every order by default, which can lead to orders being rejected in fast markets.
An example with numbers
A fund sends an FOK order to buy 50,000 shares at 31.20 or better. Only 42,000 are available at that price, so the whole order is cancelled and nothing is bought.
How it differs by market
| Market | What to know |
|---|---|
| Crypto exchanges | FOK is a standard time-in-force option on most large exchanges. |
| Equities | Available at many brokers for stocks and options, mainly used by professional traders. |
Where people go wrong
- Using FOK for large sizes in thin markets, where it rarely fills.
- Confusing FOK with all-or-none, which can wait.
Common questions
What is the difference between fill-or-kill and all-or-none?
Both require the full quantity, but FOK must fill immediately, while an all-or-none order can stay open and wait until the full size is available.
When is FOK useful?
When filling only part of an order would leave you with an unbalanced position, for example one leg of a hedge.
Does a FOK order cost anything if it is cancelled?
Usually not, though some brokers or exchanges charge order or cancellation fees.
Is FOK the same as IOC?
No. IOC allows a partial fill; FOK does not.