Immediate or Cancel Order
What Is an Immediate or Cancel Order?
An Immediate or Cancel (IOC) order is a specific order type that mandates the immediate purchase or sale of a security, allowing for partial execution, with any unfilled portion being immediately cancelled.
An Immediate or Cancel (IOC) order is a directive used in securities trading that compels a broker or exchange to execute an order immediately. The defining feature of this order type is its handling of order quantity: it accepts partial execution. If the market can only fulfill a portion of the requested shares at the specified price (or better), that portion is executed, and the remainder of the order is instantly removed from the system. This stands in contrast to a "Fill or Kill" (FOK) order, which is an all-or-nothing directive. With FOK, if the full quantity isn't available, nothing is traded. IOC is more flexible, ensuring the trader gets at least some of the shares they want right now. It also differs from standard "Day" orders, which sit on the order book waiting for a counterparty. An IOC order never sits; it interacts with existing orders in the blink of an eye and then ceases to exist. This order type is particularly favored by institutional investors and day traders who need to move into or out of positions quickly. By using IOC orders, they avoid "parking" orders on the book, which can influence market sentiment or allow other high-frequency algorithms to front-run their trades.
Key Takeaways
- IOC orders prioritize immediate execution over full fulfillment.
- They are essential for traders who want to access liquidity without resting orders on the book.
- Partial fills are accepted; the remaining balance is cancelled, not queued.
- This order type helps prevent "signaling" or revealing trading intentions to the market.
- It is commonly used in algorithmic trading and volatile markets.
- IOC is a duration qualifier often attached to limit or market orders.
How an IOC Order Works
When you submit an IOC order, it hits the exchange's matching engine and sweeps the order book. 1. **Submission**: You enter an order to buy 5,000 shares of stock A with an IOC instruction. 2. **Matching**: The engine checks for sell orders at your limit price or better. 3. **Execution**: - If 5,000 shares are available, you buy all 5,000. - If only 2,000 shares are available, you buy those 2,000. - If 0 shares are available, nothing happens. 4. **Cancellation**: In the case of the partial fill (2,000 shares), the remaining order for 3,000 shares is cancelled immediately. It does not become a limit order on the book. This entire sequence occurs almost instantaneously. The trader receives a report showing the number of shares bought/sold and confirmation that the rest of the order is dead. This allows the trader to reassess the market and decide whether to pursue the remaining shares at a different price.
IOC vs. Other Time-in-Force Options
Here is how IOC compares to other common duration instructions.
| Order Type | Partial Execution? | Resting? | Duration |
|---|---|---|---|
| IOC (Immediate or Cancel) | Yes | No | Instant |
| FOK (Fill or Kill) | No | No | Instant |
| Day Order | Yes | Yes | Ends at market close |
| GTC (Good Till Canceled) | Yes | Yes | Indefinite |
Real-World Example: Fast-Moving Market
Imagine a trader sees a breakout in a tech stock and wants to buy 1,000 shares at $100. The price is moving fast. If they place a standard Limit Order at $100, and the price jumps to $100.01, their order sits there unfilled.
Advantages of Using IOC Orders
The primary benefit is flexibility combined with speed. IOC orders allow traders to probe the market for liquidity and take what is available without committing to an open order. This reduces "execution risk"—the risk that the market moves away while an order is sitting. It is also a cleaner way to trade; you either get the fill or you don't, keeping your order book tidy and your exposure clear.
Disadvantages of Using IOC Orders
The main drawback is execution uncertainty. You might only get a fraction of the shares you wanted, which can complicate complex strategies (like options spreads) where legs need to be balanced. It can also lead to higher transaction costs if your broker charges per-trade (ticket charges) and you end up executing multiple small IOC orders to fill a large position.
FAQs
A Day order will remain active in the market until it is filled or the trading day ends. An IOC order is active only for the moment it is received; if it cannot be filled immediately, it is cancelled. Day orders add liquidity to the book; IOC orders remove liquidity.
Yes, IOC orders are frequently used in options trading, especially when trying to execute multi-leg strategies or when capturing arbitrage opportunities where prices change rapidly.
If submitted as a Limit IOC, it guarantees you will not pay more (or sell for less) than your limit price. If submitted as a Market IOC, it does not guarantee price, only immediate execution at the best available rates.
If your IOC order was cancelled with zero fills, it means there was no liquidity available at your limit price (or better) at the precise moment the order reached the exchange.
No. "Market" refers to the price (best available), while IOC refers to the duration/time. You can have a "Market IOC" order (buy best price immediately, cancel rest) or a "Limit IOC" order (buy at limit price immediately, cancel rest).
The Bottom Line
Investors looking to manage order execution precisely may consider the Immediate or Cancel (IOC) order. An IOC order is the practice of instructing a broker to fill as much of an order as possible right now and abandon the rest. Through the mechanism of instant matching and cancellation, IOC orders allow traders to access current market liquidity without the risks associated with leaving open orders on the book. On the other hand, the possibility of partial fills means a trader might end up with a smaller position than intended. Unlike Fill or Kill orders, which ensure all-or-nothing execution, IOC requires the trader to be comfortable with getting only a piece of the pie. Therefore, it is a strategic tool best suited for volatile markets or large block trades where stealth and speed are paramount.
More in Order Types
At a Glance
Key Takeaways
- IOC orders prioritize immediate execution over full fulfillment.
- They are essential for traders who want to access liquidity without resting orders on the book.
- Partial fills are accepted; the remaining balance is cancelled, not queued.
- This order type helps prevent "signaling" or revealing trading intentions to the market.