hedgefund.wiki — institutional knowledge base

Immediate or Cancel Order

Market Microstructure · basic · CC-BY-4.0

An immediate-or-cancel (IOC) order is a limit order instruction that requires any unfilled portion of the order to be immediately cancelled after the order has been exposed to the market for matching against available contra-side liquidity. Unlike a day order or good-till-cancelled order, an IOC order does not rest in the limit order book; it fills what it can at the specified price or better in the instant it is submitted and cancels any unexecuted remainder, giving the trader precise control over execution price and eliminating residual market exposure.

Key takeaways

Explanation

The immediate-or-cancel order type addresses a core tension in electronic market microstructure: a trader who wishes to execute at a specific price but does not want to maintain a resting limit order visible in the public book. Resting limit orders provide liquidity to the market but expose the submitting trader to information leakage (other participants can see the posted price and quantity and may react adversely) and adverse selection risk (the order may only fill when the market is moving against it, as informed traders 'pick off' stale quotes). IOC orders minimize these risks by eliminating the resting period entirely.

The mechanics of IOC execution follow a simple logic: upon receipt, the exchange matching engine immediately checks the order against available contra-side liquidity at or better than the specified limit price. Any quantity that can be immediately crossed against resting orders in the book is executed. Any unfilled balance is cancelled without entering the book. The trader receives an immediate execution report — a partial fill or a full cancel — within microseconds on modern electronic markets. This speed and finality distinguish IOC from other limit order types.

The distinction between IOC and fill-or-kill (FOK) orders is operationally significant. FOK orders demand complete execution of the entire specified quantity at the limit price or better, failing which the entire order is cancelled — partial fills are not acceptable. IOC orders, by contrast, accept whatever partial fill is available at the moment of submission and cancel only the unfilled residual. This makes IOC more suitable for algorithmic strategies that incrementally build positions across multiple order submissions, each IOC picking up available liquidity without concern for the specific tranche size fulfilled.

In the context of high-frequency trading, IOC orders are the preferred tool for latency arbitrage and cross-venue arbitrage strategies. When an HFT firm detects a price discrepancy between two venues — for example, if the same futures contract is quoted at slightly different prices on CME and ICE — it submits IOC limit orders simultaneously on both sides of the spread, aiming to fill at better prices before the discrepancy is corrected. Because the orders are IOC, there is no risk of resting on a stale price that subsequently moves unfavorably.

For institutional investors using algorithmic execution, IOC orders serve as the core building block of participation-rate algorithms (such as VWAP and TWAP implementations). The algorithm sweeps liquidity at specified intervals by submitting IOC orders at or near the current market price, capturing available contra-side volume without leaving residual visible orders that would signal the fund's ongoing interest to market participants. This tactical usage underscores the IOC order's role as a precision liquidity-taking instrument optimized for environments where market impact management and information control are paramount.

Example

An equity algorithmic trading system submits an IOC limit order to buy 50,000 shares at $30.00 on a stock currently quoted with 20,000 shares offered at $29.98, 15,000 at $29.99, and 10,000 at $30.00. The IOC order immediately sweeps all 45,000 shares offered at or below $30.00 (20,000 at $29.98, 15,000 at $29.99, and 10,000 at $30.00), generating a partial fill of 45,000 shares at a volume-weighted average price of approximately $29.99. The remaining 5,000-share balance is immediately cancelled without appearing in the order book. The trader's VWAP algorithm will submit additional IOC tranches in subsequent market intervals to fill the remaining 5,000 shares.

Related terms

Algorithmic Trading Arbitrage Day Order Electronic Trading Equity Exchange Futures Contract High Frequency Trading Latency Latency Arbitrage Limit Order Liquidity