Immediate or Cancel (IOC)
What Is Immediate or Cancel (IOC)?
Immediate or Cancel (IOC) is an order duration instruction that dictates an order must be executed immediately, either in full or in part, with any unfilled portion being cancelled instantly.
Immediate or Cancel (IOC) is a "time-in-force" instruction applied to a buy or sell order in financial markets. It tells the exchange or market maker that the order is urgent: it must be executed right now, using whatever liquidity is currently available at the specified price or better. The defining characteristic of an IOC is its treatment of partial fills. If the market cannot fulfill the entire order size immediately, the exchange will fill as much as possible and automatically cancel the remainder. This distinguishes IOC from other time-in-force instructions like "Day" (which stays open until the end of the trading day) or "Good-Till-Canceled" (which stays open indefinitely). It also differs from "Fill or Kill" (FOK), which demands the *entire* order be filled immediately or cancelled completely (no partials allowed). IOC orders are particularly useful in fast-moving markets or when trading large blocks of securities. They allow traders to grab available shares at a specific price point without the risk of the order resting on the order book. An order resting on the book can signal intent to other market participants, potentially moving the price against the trader. By using IOC, the trader attempts to take liquidity without posting liquidity.
Key Takeaways
- An IOC order requires immediate execution at the limit price or better.
- Unlike Fill or Kill (FOK), IOC orders allow for partial fills.
- Any portion of the order that cannot be filled immediately is cancelled.
- IOC orders are used to gauge liquidity without leaving an open order on the book.
- They are commonly used by high-frequency traders and algorithms to avoid "showing their hand."
- IOC is a time-in-force instruction, not a price instruction.
How Immediate or Cancel Works
When a trader submits an IOC order, the matching engine looks for matching orders on the other side of the book (sells for a buy order, buys for a sell order). If sufficient shares are available at the limit price (or better), the order fills completely. If only some shares are available, those shares are purchased/sold, and the rest of the IOC order vanishes. If no shares are available at the limit price, the entire order is cancelled immediately. This process happens in milliseconds. The primary utility is efficiency and stealth. For example, an algorithm might ping multiple exchanges with IOC orders to find hidden liquidity. It ensures that the trader never ends up with a "hanging" order that gets filled later at a disadvantageous time or after market conditions have shifted.
IOC vs. FOK vs. Day Orders
Comparing common time-in-force instructions highlights the unique utility of IOC.
| Order Type | Partial Fills? | Stays on Book? | Execution Speed |
|---|---|---|---|
| Immediate or Cancel (IOC) | Yes | No | Immediate |
| Fill or Kill (FOK) | No | No | Immediate |
| Day Order | Yes | Yes | Until EOD |
| Good-Till-Canceled (GTC) | Yes | Yes | Until Cancelled |
Real-World Example: Buying a Large Block
A trader wants to buy 10,000 shares of XYZ stock, which is currently trading at $50.00. The trader enters a Limit Buy order for 10,000 shares at $50.05 with the "Immediate or Cancel" (IOC) instruction.
Advantages of IOC Orders
The main advantage of an IOC order is control and speed. It allows traders to navigate fast markets without the risk of "stale" orders getting picked off. It also provides flexibility by accepting partial fills, unlike FOK orders which might result in no trade at all if the full size isn't there. For large institutional traders, IOC helps minimize market impact by preventing a large buy or sell wall from appearing on the public order book.
Disadvantages of IOC Orders
The primary disadvantage is the potential for partial execution. A trader needing a specific number of shares for a strategy (e.g., an arbitrage leg) might end up with only half the position, requiring them to re-enter the market, potentially at a worse price. Additionally, because unfilled portions are cancelled, a trader might have to submit multiple orders to build a full position, which could increase workload or commission costs if not managed by an algorithm.
FAQs
The key difference is partial fills. Immediate or Cancel (IOC) allows the order to be partially filled, with the rest cancelled. Fill or Kill (FOK) requires the *entire* order to be filled immediately; if the full quantity isn't available, the entire order is cancelled (nothing is bought or sold).
Yes. An IOC Market order will buy or sell whatever quantity is currently available at the best market prices and then cancel any unfilled portion. This protects the trader from getting filled at much worse prices if liquidity dries up deep in the order book.
Most advanced trading platforms and direct access brokers support IOC orders. However, some basic retail brokerage interfaces may only offer "Day" and "GTC" options to simplify the user experience.
You use IOC if you don't want your order to "sit" on the market. A Day order sits on the order book until filled or the market closes, essentially advertising your intent to trade. An IOC attempts to trade instantly and then disappears, offering more stealth.
IOC is a duration instruction that can be attached to either a limit order or a market order. When attached to a limit order, it respects the price limit. When attached to a market order, it takes whatever is available.
The Bottom Line
Traders looking to execute orders efficiently without revealing their full intent to the market may consider the Immediate or Cancel (IOC) instruction. IOC is the practice of submitting an order that demands immediate execution for any available quantity, with the automatic cancellation of any remainder. Through this mechanism, IOC orders allow traders to "ping" the market for liquidity and seize available shares without leaving a resting order on the book. On the other hand, the risk of partial fills means traders may not complete their desired position size in a single transaction. Unlike Day orders, IOC orders require active management or algorithmic re-submission if the initial attempt doesn't fill the full quota. Therefore, IOC is a favored tool for active traders and institutions who prioritize speed and stealth over the certainty of a full fill at a later time.
More in Order Types
At a Glance
Key Takeaways
- An IOC order requires immediate execution at the limit price or better.
- Unlike Fill or Kill (FOK), IOC orders allow for partial fills.
- Any portion of the order that cannot be filled immediately is cancelled.
- IOC orders are used to gauge liquidity without leaving an open order on the book.