Order Types

Immediate or Cancel (IOC)Order

Last Updated
Quick Definition

Immediate or Cancel (IOC) Order — Immediate or Cancel (IOC) is an order type that fills as much as possible at the specified price instantly, then cancels any remaining unfilled quantity.

Track Immediate or Cancel (IOC) Order with JournalPlus

An Immediate or Cancel (IOC) order instructs a broker or exchange to fill as much of the order as possible at the specified price right now, then automatically cancel any remaining unfilled quantity. Unlike a Day limit order that sits passively in the order book or a market order that sweeps through every available price level, an IOC is a single, non-resting attempt to transact — making it the preferred execution tool for traders who need speed without exposure.

Key Takeaways

  • IOC accepts partial fills: if only 250 of your 400 requested shares are available at the limit price, you receive 250 and the remaining 150 are cancelled — never placed into the book.
  • IOC eliminates order book visibility risk. Because the order never rests, market makers and other participants cannot see or react to your resting interest.
  • Partial fills require immediate position sizing recalculation — your original stop-loss dollar risk applies to fewer shares than planned.

How an IOC Order Works

When a trader submits an IOC order, the exchange’s matching engine checks available liquidity at the specified price in that exact moment. Whatever quantity is available gets filled; the remainder is discarded. The entire sequence happens within a single matching cycle — there is no waiting, no queuing, and no resting order.

On NYSE and NASDAQ, IOC orders are explicitly marked as non-displayed. They expire in the same matching cycle they are submitted, which means they contribute zero queue position and leave no visible footprint in the Level 2 order book.

IOC vs. related order types:

Order TypePartial Fill AllowedRests in BookCancels Remaining
IOCYesNoImmediately
Fill or Kill (FOK)NoNoImmediately
Day LimitYesYesAt market close
GTC LimitYesYesUntil cancelled

The critical distinction from a Fill or Kill order: FOK requires 100% of the requested quantity to be available or it cancels entirely. IOC is more flexible — any partial fill is accepted. This makes IOC the better choice when trading larger size relative to average daily volume, where a full fill is unlikely but a partial position is still useful.

IOC is also the dominant time-in-force in dark pools and Alternative Trading Systems (ATS). Institutional desks use IOC orders to probe for hidden liquidity without telegraphing their full order size to the lit market.

Practical Example

A scalper is trading AAPL during an earnings gap-up. The trader wants to buy 400 shares at a limit order price of $198.50. The order book shows only 250 shares offered at $198.50, with the next available 200 shares sitting at $198.75.

With an IOC order submitted at $198.50:

  1. The matching engine finds 250 shares available at $198.50.
  2. Those 250 shares fill immediately at $198.50.
  3. The remaining 150-share order is cancelled — it never appears in the book at $198.50.
  4. No resting limit is visible to market makers.

The trader is now long 250 shares instead of the planned 400. The original plan was to risk $250 (1% of a $25,000 account) with a $1.00 stop. With 250 shares and a stop at $197.50, the risk is still exactly $250 (250 shares × $1.00). The position sizing math still works.

Had the trader used a FOK order, the entire 400-share order would have cancelled because the full quantity was not available at $198.50 — leaving the trader flat during the gap-up move.

An Immediate or Cancel order fills as much of your trade as possible at your specified price right now, then cancels whatever is left unfilled. It never sits in the order book, so other traders cannot see your resting interest. Partial fills are accepted.

Common Mistakes

  1. Ignoring partial fill risk before entry. Traders who plan their full stop-loss around 500 shares and receive only 200 often leave their stop at the original dollar amount — creating outsized risk per share. Recalculate stop distance immediately after a partial IOC fill.
  2. Using IOC in illiquid instruments without checking the spread. In thinly traded small-caps or pre-market sessions, an IOC limit order may return zero shares if the spread is wide and no seller is at your exact price. A market order may be more reliable when fill certainty matters more than price precision.
  3. Confusing IOC with FOK on platform order tickets. On some platforms the TIF dropdown lists both. Selecting FOK when you need a partial fill means the order may cancel entirely — confirm the label before submitting during fast-moving conditions.
  4. Sending multiple IOC orders in rapid succession. Stacking IOC orders to “chase” a moving price compounds slippage. If the first IOC doesn’t fill at your target, reassess whether the entry thesis still holds before resubmitting at a higher limit.

How JournalPlus Tracks IOC Orders

JournalPlus automatically imports execution data including time-in-force and fill details from connected brokers, so partial IOC fills are logged as distinct entries with actual fill quantity and price. The trade journal surfaces partial fill frequency over time, letting traders measure how often their IOC entries result in undersized positions and whether those positions underperform versus full-fill trades.

Common Questions

What is the difference between IOC and Fill or Kill orders?

An IOC order accepts partial fills — whatever is available at the limit price executes immediately and the rest is cancelled. A Fill or Kill (FOK) order requires the entire quantity to be filled at once or the whole order is cancelled.

When should a trader use an IOC order?

IOC orders are best in fast-moving markets — earnings gaps, FOMC releases, or pre-market spikes — where leaving a resting limit order exposes you to adverse selection risk from other market participants.

Can an IOC order result in a partial fill?

Yes. Partial fills are the defining characteristic of IOC versus FOK. If you send an IOC order for 500 shares and only 300 are available at your price, you receive 300 shares and the remaining 200 are cancelled.

Do IOC orders rest in the order book?

No. On NYSE and NASDAQ, IOC orders are non-displayed and expire within the same matching cycle they are submitted. They never appear as a visible resting order in the book.

Which platforms support IOC orders?

IOC is available as a Time-in-Force (TIF) setting on DAS Trader, thinkorswim, NinjaTrader, TradeStation, and most direct-access retail platforms. Look for 'IOC' in the order ticket's TIF dropdown.

Share this article

Track Immediate or Cancel (IOC) Order Automatically

JournalPlus calculates your immediate or cancel (ioc) order and other key metrics from your trade data. Import trades and get instant insights.

SSL Secure
One-Time Payment
7-Day Money-Back
4.9/5 (1,287 reviews)
Track Immediate or Cancel (IOC) Order automatically 7-Day Money-Back
Buy Now - ₹6,599 for Lifetime Buy Now - $159 for Lifetime