Immediate-or-cancel order
Also called IOC
An order that fills whatever it can immediately and cancels any part that cannot be filled at once. Unlike fill-or-kill, it accepts a partial fill.

- Level
- Intermediate
- Reading
- 2 min
- Sources
- 5RegulatorExchangePlatform docs
- Updated
On this page· 5 sections
An immediate-or-cancel order takes what the market offers right now and walks away from the rest. It must be executed immediately, and any part that cannot be filled at once is cancelled[1].
The difference from fill-or-kill is one word: part. Fill-or-kill refuses a partial execution, while an IOC order accepts one[2].
How it works
Nothing is left resting. The order is executed in whole or in part as soon as it reaches the market, and the portion not executed is treated as cancelled[3]. It never waits in the queue, so it cannot be filled by a price that arrives a second later.
It can be a market or a limit order[3]. With a limit, it takes only the volume available at the limit or better, then cancels the remainder.
On MetaTrader 5, IOC is a fill policy. The trader agrees to a deal for the largest volume available in the market, up to the size of the order, and whatever cannot be filled is cancelled[5]. For limit and stop limit orders the platform offers a third choice, Return, under which a partly filled order keeps working with the remaining volume instead of being cancelled[4][5].
Example
Say you own 1,000 shares and send a sell IOC order with a limit of $45.00. At that moment buyers bid for 400 shares at $45.10, 300 at $45.00 and 600 at $44.90.
- The order sells 400 at $45.10 and 300 at $45.00: $18,040 + $13,500 = $31,540 for 700 shares.
- The 600 shares bid at $44.90 are below the limit, so the remaining 300 shares are cancelled.
- Average price: $31,540 ÷ 700 = $45.057.
- You still own 300 shares. A plain sell limit at $45.00, without the IOC instruction, would have left those 300 waiting at $45.00 instead.
Watch out
“Immediately” is a single moment. In a thin or fast market, the volume on offer at that moment can be small, and the rest of the order is cancelled rather than kept[1].
Not every platform lets you choose it. On MetaTrader 5 the trade server decides whether IOC can be used, and instant and request execution allow only fill-or-kill[5].
The remainder is gone, not paused. Taking the rest of the size later means sending a new order[1][3].
Sources
- RegulatorU.S. Securities and Exchange Commission (Investor.gov)Immediate-Or-Cancel OrderChecked November 9, 2026
- RegulatorU.S. Securities and Exchange Commission (Investor.gov)Understanding Order Types – Investor BulletinChecked November 9, 2026
- ExchangeNasdaqImmediate or canceled order (IOC order) DefinitionChecked November 9, 2026
- Platform docsMetaQuotes (MetaTrader 5 Help)Executing Trades - Trading Operations - MetaTrader 5 HelpChecked November 9, 2026
- Platform docsMetaQuotes (MetaTrader 5 Help)Basic Principles - Trading Operations - MetaTrader 5 HelpChecked November 9, 2026
