New$10 Sign Up Bonus & $30 Free Trial Reward
Start challenge

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.

Reading
2 min
Sources
5RegulatorExchangePlatform docs
Updated
On this page· 5 sections
  1. How it works
  2. Example
  3. Watch out
  4. Sources
  5. Related terms

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.

  1. The order sells 400 at $45.10 and 300 at $45.00: $18,040 + $13,500 = $31,540 for 700 shares.
  2. The 600 shares bid at $44.90 are below the limit, so the remaining 300 shares are cancelled.
  3. Average price: $31,540 ÷ 700 = $45.057.
  4. 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].

All terms in Tronexopedia

Your challenge starts here

Start your challengeFree TrialNew
Registration bonus

Get $10 free in your Wallet when you sign up

Register and use your $10 Wallet credit to reduce the price of your first challenge.

The $10 bonus is credited to your personal Wallet and can only be used to reduce the price of a challenge purchase. Credits cannot be withdrawn or used for payouts.

Start now & get $10