Back to Blog

What is an Immediate or Cancel Order (IOC)? Complete Guide for Beginners

When you need to trade quickly but want flexibility on how much gets filled, immediate or cancel orders offer a practical solution. They execute whatever is available right now and cancel the rest. In this guide, we will explain how IOC orders work and when they are most useful.

What is an Immediate or Cancel Order?

An immediate or cancel (IOC) order is an instruction to execute as much of the order as possible immediately and automatically cancel any unfilled portion. Unlike fill or kill orders that demand everything or nothing, IOC orders accept partial fills.

The simple version: An IOC order says "Buy or sell as much as you can right now at my price, and cancel whatever you cannot fill." You get what is available immediately, and the rest disappears.

How Immediate or Cancel Orders Work

Here is the step-by-step process:

IOC Order Examples

Example: Partial Fill

You want to buy 1,000 shares of Apple at $175 using an IOC order.

Total: You now own 600 shares of Apple at a cost of $105,000.

Example: Full Fill

You want to sell 500 shares of Microsoft at $380 using an IOC order.

Total: You receive $190,000 from the sale (before fees).

Example: No Fill

You want to buy 500 shares at $50, but the lowest ask price is $51.

You do not purchase any shares because none were available at your price.

When to Use IOC Orders

IOC orders work best in these situations:

Advantages of IOC Orders

Disadvantages and Risks

IOC orders have some drawbacks to consider:

Tip: IOC orders are particularly useful when you want to trade at a specific price without revealing your full order size to the market.

IOC vs FOK: What is the Difference?

Both order types require immediate execution, but they handle partial fills differently:

Side-by-Side Comparison

You want to buy 1,000 shares but only 700 are available at your price.

IOC vs Day Orders: What is the Difference?

Both order types can result in partial fills, but the timing differs:

Use IOC when you only want what is available right now. Use day orders when you are willing to wait for fills throughout the trading session.

IOC Orders with Market vs Limit Prices

IOC orders can be combined with different price types:

Most traders use IOC with limit prices to maintain price control while getting immediate feedback.

Practical Use Cases

Tips for Using IOC Orders

Track Your Trading Performance

Pro Trader Dashboard helps you track all your trades and analyze your execution quality. See fill rates, average prices, and optimize your order strategy.

Try Free Demo

Summary

Immediate or cancel orders give you instant execution while accepting partial fills. They are ideal when you want to trade quickly without leaving orders sitting in the market. Unlike fill or kill orders that demand everything, IOC orders take what is available and move on. They are valuable tools for active traders who prioritize speed and want to maintain control over their exposure.

Want to learn about related order types? Check out our guide on fill or kill orders or learn about day orders.