Immediate or Cancel (IOC)

Immediate or Cancel (IOC) is a time-in-force instruction for an exchange order, usually a limit order. It fills whatever portion can be matched right away at the limit price or better and cancels any unfilled remainder.

When an IOC order reaches the exchange, it is matched against existing orders in the order book at the set limit price or better. Any part that cannot be filled at that moment is cancelled automatically rather than left waiting on the book. Partial fills are allowed, which is the key difference from a Fill or Kill (FOK) order, where the whole order must fill at once or nothing executes at all.

IOC matters because it lets a trader take the liquidity available right now without leaving a resting order behind. A leftover order could otherwise be filled later, after the market has moved. Combining an immediate fill with a price limit also helps control slippage. IOC is offered mainly on centralized exchanges and is widely used by active and algorithmic traders. Because IOC orders remove liquidity rather than add it, they are usually charged taker fees.

For example, a trader submits an IOC buy order for 10 tokens at a set limit price. Only 6 tokens are offered at or below that price, so 6 are bought immediately and the remaining 4 are cancelled. No order stays open.

A common misconception is that IOC ensures a complete fill. It does not. The order may fill only partly, or not at all if nothing is available at the limit price. A loosely set limit price can also still produce a worse fill than the trader expected.

Learn more

Related terms