Immediate or Cancel (IOC) Definition: An Immediate or Cancel order is a time-in-force instruction that executes any portion of the order matching at the specified price immediately, then cancels any unfilled remainder rather than resting in the order book. Unlike Fill or Kill orders that require complete execution, IOC orders accept partial fills — making them the preferred order type for liquidity-sweeping strategies that aim to capture available volume at specific price levels without leaving residual orders visible. IOC orders constitute approximately 25–30% of institutional order volume in liquid markets, far more common than FOK orders due to their flexibility around partial execution.
What Is an Immediate or Cancel Order?
IOC orders represent a middle ground between aggressive market orders and patient limit orders. Market orders execute immediately at whatever prices are available — accepting unlimited price movement to ensure complete fill. Limit orders specify maximum prices but rest in the order book waiting for matches — accepting unlimited time delay for the chance of better execution. IOC orders combine elements of both: they specify a maximum price like limit orders but reject any waiting like market orders, executing whatever matches immediately and discarding the rest.
The order type emerged from institutional trading needs around liquidity-sweeping strategies. An institutional trader wanting to acquire significant position at a specific price level may discover that visible liquidity exists at the desired price but partial execution is acceptable. IOC orders let the trader capture available liquidity instantly without committing to additional execution at worse prices. The discarded remainder can be re-submitted with adjusted parameters or abandoned entirely depending on the strategy. This flexibility makes IOC orders more useful than the binary FOK alternative for most institutional use cases.
How Does an Immediate or Cancel Order Work?
Knowing what IOC orders accomplish is the conceptual half; understanding the mechanics determines optimal use. When an IOC order arrives at an exchange, the matching engine immediately matches the order against available counterparty liquidity at the specified price (or better). Any portion that finds counterparty matches executes instantly. Any remaining quantity that cannot match — because the desired price has been exhausted or insufficient counterparty volume exists — is cancelled immediately. The order never rests in the public order book.
The timing is identical to Fill or Kill orders — evaluation occurs at the exact microsecond the order arrives at the matching engine. The difference is the treatment of partial matches. FOK requires complete fill or complete cancellation; IOC accepts whatever fills and cancels the remainder. This relaxed requirement substantially improves fill probability while still ensuring no order remains visible in the public book — an important consideration for institutional strategies that don’t want to signal intent through resting orders.
- Submit IOC order with specified size and price — through institutional execution platforms or retail brokerages.
- Exchange matches against available liquidity — any portion at the specified price or better executes immediately.
- Cancel unfilled remainder — any unmatched quantity is cancelled instantly, never resting in the order book.
- Re-submit if needed — strategies often issue follow-up IOC orders to capture additional liquidity at adjusted parameters.
Worked example: An institutional trader wants to buy 50,000 shares of Tesla at $250 or better, expecting strong upward movement and willing to accept partial execution. The public order book shows 30,000 shares available at $250.00 and 25,000 shares at $250.05. The trader submits an IOC buy order for 50,000 shares at $250.00 limit. The exchange immediately matches against the 30,000 shares at $250.00 — filling 30,000 of the 50,000 shares. The remaining 20,000 shares cannot match at $250.00 (next liquidity at $250.05 above the limit) and are immediately cancelled. The trader acquired 30,000 shares at $250.00 without signaling further buying intent. If Tesla continues higher, the trader can submit additional IOC orders at higher prices to acquire the remaining 20,000 shares.
IOC vs. Fill or Kill
| Aspect | Immediate or Cancel (IOC) | Fill or Kill (FOK) |
|---|---|---|
| Partial fills | Allowed (any portion) | Not allowed (all or nothing) |
| Cancel remainder | Yes (unfilled portion only) | Yes (entire order if not fully filled) |
| Fill probability | Higher (accepts partials) | Lower (requires complete fill) |
| Best for | Liquidity sweeping | Arbitrage, exact position sizing |
| Typical use frequency | 25–30% of institutional orders | 2–5% of institutional orders |
| Risk profile | Lower opportunity cost | Higher opportunity cost |
Why Are Immediate or Cancel Orders Important for Traders?
IOC orders provide the optimal balance between execution certainty and price control for most active trading strategies. Active traders sweeping liquidity at specific price levels benefit from IOC’s willingness to capture available volume without committing to additional execution at worse prices. Institutional traders building positions over time use sequential IOC orders to acquire market liquidity at multiple price levels without leaving residual orders visible to predatory algorithms. The flexibility makes IOC the workhorse order type for sophisticated execution strategies.
The order type also supports rapid execution decisions where market conditions change quickly. A trader observing temporary liquidity at favorable prices can capture it immediately with IOC orders, knowing that any unfilled quantity will cancel rather than rest in the book if conditions change. This contrasts with standard limit orders, which would remain visible after partial fills, potentially producing additional executions at prices the trader no longer wants. The combination of immediate execution and automatic cancellation makes IOC orders particularly suitable for momentum-based strategies where speed matters and price thresholds are firm.
The structural risk of IOC orders is execution uncertainty regarding total size. Unlike market orders that guarantee complete execution (though at uncertain prices), IOC orders may execute anywhere from 0% to 100% of intended size — leaving traders with positions that may differ substantially from intended sizes. This requires post-execution monitoring and potential follow-up orders to achieve target positions. On PrimeXBT, traders can use IOC orders on CFD positions when seeking immediate liquidity capture, alongside other time-in-force options.
Key Takeaways
- An Immediate or Cancel order executes any portion of the order matching at the specified price immediately, then cancels any unfilled remainder rather than resting in the order book.
- IOC orders accept partial fills, unlike Fill or Kill orders which require complete execution — making them the preferred order type for liquidity-sweeping strategies.
- IOC orders constitute approximately 25–30% of institutional order volume in liquid markets, far more common than FOK orders due to their flexibility around partial execution.
- The order type provides optimal balance between execution certainty and price control — capturing available liquidity instantly without committing to additional execution at worse prices.
- The structural risk is execution uncertainty regarding total size — IOC orders may execute anywhere from 0% to 100% of intended size, requiring follow-up orders to achieve target positions.
When should I use an IOC order instead of a market order?
Use IOC orders when you want price protection that market orders don't provide. Market orders accept unlimited price movement to ensure complete fill — potentially producing executions far from intended prices in volatile markets. IOC orders specify a maximum price but only execute at that price or better. The trade-off is that IOC orders may leave portions unfilled if liquidity is exhausted before the order completes.
What's the difference between IOC and FOK orders?
IOC accepts partial fills then cancels any unfilled remainder; FOK requires complete fill or full cancellation. IOC has higher fill probability because it doesn't require complete execution; FOK has higher cancellation rate because of stricter requirements. Use IOC when partial fills are acceptable; use FOK when complete execution matters more than getting any fill (typically for arbitrage strategies).
Can IOC orders execute at multiple prices?
Yes, within the specified limit. An IOC buy order at $250 can execute portions at $249.95, $249.98, $250.00 — all at the limit price or better. The order matches against available liquidity at each price level in sequence until either the order is fully filled or available liquidity at the limit or better is exhausted. Any remaining quantity that would require executing above the limit price is cancelled.
Are IOC orders visible in the order book?
No. IOC orders never appear in the public order book. They evaluate against existing book liquidity at the moment of arrival, execute whatever matches immediately, and cancel any remainder instantly. This invisibility makes them attractive for strategies that don't want to signal intent through resting orders.