IOC Order: How It Works and When to Use It

Every order you place on an exchange carries a hidden instruction: what should the system do if it can't fill the entire order immediately?
For most standard orders, the answer is to sit in the order book and wait. An IOC, Immediate or Cancel, order gives a different answer: fill whatever you can right now, and cancel the rest. No waiting, no partial positions lingering on the book, no exposure to price changes while your order sits unfilled.
It's a small instruction with significant practical consequences, and understanding it changes how you think about order placement, especially in fast or volatile markets.
What Is an IOC (Immediate or Cancel) Order?

An Immediate or Cancel (IOC) order is a trade instruction that tells the matching engine to execute as much of the order as possible at the current moment, and immediately cancel whatever cannot be filled.
The key phrase is "at the current moment": an IOC does not queue. It does not wait for the right price to come along. It hits the book, takes what's available, and cancels the remainder in the same instant.
This makes IOC orders a tool for traders who want execution certainty over fill completeness; they'd rather get a partial fill immediately than risk a full fill at a price that no longer exists.
How IOC Orders Interact with the Order Book
To understand why IOC behaves this way, it helps to understand CLOB order matching
The engine running underneath most professional exchanges. In a CLOB, all limit orders queue by price and time priority. When you submit an IOC order, the matching engine scans the existing book for orders that match your price and size criteria but it only looks at what's already there right now.
If the book has enough liquidity to fill your entire order at your specified price, it fills entirely. If the book only has partial liquidity at that price, it fills what it can and immediately cancels the remainder, the unfilled portion never enters the queue. This is what distinguishes IOC from a standard limit order, which would sit in the book until fully filled, cancelled, or expired.
IOC vs Other Order Types: FOK, GTC, and Market Orders
The practical distinction between IOC and FOK is often overlooked: both are immediate-execution instructions, but FOK demands a complete fill or nothing, IOC is happy with whatever it can get right now. If you're trading a large size in a market with uneven liquidity, IOC gives you more flexibility to accumulate a position over multiple attempts.
When to Use an IOC Order
IOC orders aren't suitable for every situation, they shine in specific scenarios:
Fast-moving markets: When price is moving quickly and you want to grab available liquidity at a level without risking your order sitting on the book as price moves away. An IOC fills what's there and exits cleanly.
Algorithmic: high-frequency strategies: Automated strategies often use IOC to probe liquidity at specific levels. If the fill is partial, the algorithm reassesses and may resubmit. This avoids orders accumulating on the book during fast execution cycles.
Avoiding slippage from book depletion: A market order fills at whatever price is available, even if that means moving several levels through the book. An IOC limit order takes only the liquidity available at your specified price, so if the book is thin, you get a partial fill at your price rather than a full fill at a worse one.
Reducing market impact: For larger orders, resting a full-size limit order on the book signals your intentions to other participants. IOC orders leave no trace on the book, the unfilled portion disappears instantly.
- Institutional order flow: Institutions frequently use IOC in conjunction with smart order routing, scanning multiple venues for liquidity and firing IOC orders to capture available size at each price level without leaving footprints.
When Not to Use an IOC Order
IOC is powerful in the right situation, but it's the wrong tool when:
You need a guaranteed full fill: If your strategy requires entering a specific full size, IOC may leave you partially filled, especially in thin or fragmented markets. Use FOK if you need all-or-nothing, or a GTC limit order if you can wait.
You're trading illiquid markets: In markets with low liquidity, IOC orders often result in very small partial fills or no fill at all. The cancelled portion leaves you underinvested and potentially chasing price.
- Your strategy depends on a specific entry price: If you're sizing a position to a precise number (e.g. for a specific risk-per-trade calculation), a partial IOC fill complicates your position sizing. A standard limit order may be more appropriate.
IOC Orders on a No-CLOB Exchange
On a traditional CLOB exchange, your IOC order is visible to other participants the moment it touches the book, even for the fraction of a millisecond before the unfilled portion is cancelled. High-frequency traders can detect and react to IOC flow in ways that work against retail participants.
On Ouinex's No-CLOB model, institutional participants cannot see retail order flow, including IOC orders in progress. This means your immediate-or-cancel execution happens without signalling your intentions to faster-moving counterparts, preserving the tactical advantage that IOC orders are designed to give you.
Ready to Use IOC and Advanced Order Types?
Once you understand the mechanics, IOC orders are a natural part of a more precise trading toolkit. You can place IOC and advanced order types on Ouinex, including on spot and derivatives markets, with the structural protection of a No-CLOB execution model ensuring your order flow isn't front-run before it executes.
Not sure which order type fits your strategy?
You can test order types on a demo account before committing real capital, a low-risk way to build familiarity with IOC, FOK, GTC, and limit orders in real market conditions.
Other terms in this Category.