
Immediate Or Cancel Order (IOC)
An immediate or cancel order (IOC) is an order to buy or sell a security that attempts to execute all or part immediately and then cancels any unfilled portion of the order. An IOC limit order is entered at a specific price, whereas an IOC market order has no price attached and transacts with the best offer price for a buy and best bid price for a sell. An immediate or cancel order (IOC) is an order to buy or sell a security that attempts to execute all or part immediately and then cancels any unfilled portion of the order. IOC orders differ from other duration orders in that they only require a partial fill, whereas both FOK and AON orders must be filled in their entirety or canceled. Let's assume another investor places an IOC limit order to buy 1,000 shares of Apple at $169 around the market open when the stock is currently offered at $170.

What Is an Immediate or Cancel Order (IOC)?
An immediate or cancel order (IOC) is an order to buy or sell a security that attempts to execute all or part immediately and then cancels any unfilled portion of the order. An IOC order is one of several "duration," or time in force orders, that investors can use to specify how long the order remains active in the market and under what conditions the order is canceled.
Other commonly used duration order types include fill or kill (FOK), all or none (AON) and good ‘till canceled (GTC). Most online trading platforms allow IOC orders to be placed manually or programmed into automated trading strategies.



Basics of an IOC Order
Investors can submit either a “limit” or “market” immediate or cancel order (IOC) depending on their specific execution requirements. An IOC limit order is entered at a specific price, whereas an IOC market order has no price attached and transacts with the best offer price for a buy and best bid price for a sell.
IOC orders differ from other duration orders in that they only require a partial fill, whereas both FOK and AON orders must be filled in their entirety or canceled. GTC orders remain active until either executed in the market or canceled by the client, although most brokers cancel them between 30 and 90 days. IOC orders help investors to limit risk, speed execution and provide price improvement by providing greater flexibility.
When to Use an IOC Order
Investors typically use IOC orders when submitting a large order to avoid having it filled at an array of prices. An IOC order automatically cancels any part of the order that doesn’t fill immediately. Assume, for example, that a client places an IOC order to purchase 5,000 shares of International Business Machines Corporation (IBM). Any portion of the 5,000 shares not purchased immediately is automatically canceled. Those who trade several stocks throughout the day may use an IOC order to minimize the risk of forgetting to cancel an order at the close manually.
Real-World Example of an IOC Order
Suppose an investor places an IOC market order to buy 1,000 shares of Apple Inc. (AAPL). Let’s say the order book shows 2,000 shares bid at $170.95 and 500 shares offered at $171.00. The order would immediately fill 500 shares at the offer price ($171) and cancel the unfilled portion of 500 shares.
Let's assume another investor places an IOC limit order to buy 1,000 shares of Apple at $169 around the market open when the stock is currently offered at $170. The S&P 500 drops slightly in the afternoon, at which time a seller offers 700 shares of AAPL at $169. The IOC order, however, would not be filled because it was cancelled immediately after not being filled earlier in the day.
IOC limit orders protect against getting a bad fill in a fast moving or illiquid market. On the other hand, IOC market orders ensure a complete or partial execution in a strongly trending stock that has heavy buying demand.
Related terms:
All Or None (AON)
An all or none (AON) order is an instruction to fill the order completely at the specified price or cancel it. read more
Away-from-the-Market
Away-from-the-market order is a limit order to buy at a price lower than the current market or sell at a price higher than the current market. read more
Buy Limit Order
A buy limit order is an order to purchase an asset at or below a specified price. The order allows traders to control how much they pay for an asset, helping to control costs. read more
Buy Stop Order
A buy stop order directs to an order in which a market buy order is placed on a security once it hits a pre-determined strike price. read more
Canceled Order
A canceled order is a previously submitted order to buy or sell a security that gets cancelled before it executes on an exchange. read more
Conditional Order
A conditional order is an order that includes one or more specified criteria or limitations on its execution. read more
Contingent Order
A contingent order is an order that is linked to, and requires, the execution of another event. The contingent order becomes live or is executed if the event occurs. read more
Day Order
A day order is an order to buy or sell a security at a specific price that automatically expires if it is not executed on the day the order was placed. read more
End of Day Order
An end of day order is a buy or sell order requested by an investor that is only open until the end of the day. read more