What is IOC Order (Immediate or Cancel)?
An IOC (Immediate or Cancel) order must be filled the moment it reaches the exchange, fully or in part. Any quantity that cannot be matched right away is cancelled at once instead of waiting in the order book.
Also called: IOC, immediate or cancel, IOC vs day order, order validity IOC
Order types on today’s NIFTY at-the-money call
The 25,350 call (1 Dec expiry) last traded at 263.55 (₹17,131 per lot of 65). A market order buys at the best available offer right away; a limit order at 258.30 waits until someone sells at that price or lower; a stop-loss with a trigger at 210.85 exits automatically if the premium falls there.
| Order (illustrative, 1 lot) | Price | Per lot |
|---|---|---|
| Market buy (fills near LTP) | 263.55 | ₹17,131 |
| Limit buy, 2% below LTP | 258.30 | ₹16,790 |
| Stop-loss trigger, 20% below | 210.85 | −₹3,426 risk |
| Target / GTT sell, 30% above | 342.60 | +₹5,138 |
Levels are examples built from today’s price to show how each order type works, not suggestions. Prices move in ticks of ₹0.05.
Live NIFTY option chain →How it works
Every order carries a validity. The usual one is DAY: an unfilled order waits in the book until the session ends. IOC is the other choice. An IOC order is matched against the orders already in the book at that instant. Whatever quantity matches is filled, and the rest is cancelled immediately.
IOC can be combined with a limit price. A limit IOC buy at 150 fills only the quantity available at 150 or lower right now; it never sits waiting at 150. A market IOC takes whatever is on offer at the best prices at that moment.
So an IOC order never leaves a pending order behind. Within a moment, the trader knows exactly what was filled and what was not.
Worked example. a trader sends a limit IOC buy for 200 units (4 lots of an illustrative 50) of a NIFTY call at 60. At that instant the order book has 100 units offered at 59.50 and 50 units at 60, and the next offer is 61. The order fills 100 at 59.50 and 50 at 60, costing (100 × 59.50) + (50 × 60) = 5,950 + 3,000 = ₹8,950. The remaining 200 − 150 = 50 units are cancelled at once rather than waiting at 60.
Reading today's live example
The live example above shows today's NIFTY at-the-money call and how a market buy fills at the best offer. An IOC limit order at that best offer would fill only the quantity shown at that price or better, and cancel the rest. In the ATM strike the quantity on offer is usually large, so a small IOC order is likely to fill in full.
The same IOC order on a far strike, where fewer units are on offer, is more likely to come back partly filled or not filled at all.
How traders use it
Traders use IOC when a pending order would be a problem, for example when trying to catch a price that may vanish, or when an order left in the book could fill later at a bad moment. Algorithmic and arbitrage traders use IOC orders often, because they need to know at once whether each leg was done.
IOC is also useful in thin options: it takes what is available at an acceptable price without leaving a visible order that others can react to.
Common mistakes
Expecting an IOC order to fill fully. In thin contracts it often fills only partly or not at all, and the platform simply shows the balance as cancelled. Check the filled quantity, not just the order status.
Using IOC on one leg of a multi-leg strategy without checking the result. If one leg fills and the other is cancelled, the trader is left with an unhedged position.
Frequently asked questions
What is IOC order in simple words?
IOC means immediate or cancel. The order tries to fill straight away. Whatever quantity can be matched at that moment is filled, and the rest is cancelled. Nothing is left waiting in the order book.
What is the difference between IOC and DAY order?
A DAY order stays in the order book until it fills or the session ends. An IOC order fills what it can instantly and cancels the rest. DAY is the default validity on most platforms.
Can IOC order be partially executed?
Yes. If only part of the quantity is available at your price, that part fills and the balance is cancelled. In F&O, fills happen in multiples of the lot size.
Why do traders use IOC orders?
To avoid leaving an order in the book that might fill later at a bad moment, and to know instantly what was done. It is common in fast trading, arbitrage and algorithmic systems.
Related terms
Go deeper
For education only; not investment advice. Live figures from NSE via Quantsapp. Derivatives trading carries substantial risk. Disclaimer