Immediate or Cancel (IOC)

Order Types
intermediate
9 min read
Updated Sep 15, 2023

What Is Immediate or Cancel (IOC)?

Immediate or Cancel (IOC) is an order duration instruction that dictates an order must be executed immediately, either in full or in part, with any unfilled portion being cancelled instantly.

Immediate or Cancel (IOC) is a "time-in-force" instruction applied to a buy or sell order in financial markets. It tells the exchange or market maker that the order is urgent: it must be executed right now, using whatever liquidity is currently available at the specified price or better. The defining characteristic of an IOC is its treatment of partial fills. If the market cannot fulfill the entire order size immediately, the exchange will fill as much as possible and automatically cancel the remainder. This distinguishes IOC from other time-in-force instructions like "Day" (which stays open until the end of the trading day) or "Good-Till-Canceled" (which stays open indefinitely). It also differs from "Fill or Kill" (FOK), which demands the *entire* order be filled immediately or cancelled completely (no partials allowed). IOC orders are particularly useful in fast-moving markets or when trading large blocks of securities. They allow traders to grab available shares at a specific price point without the risk of the order resting on the order book. An order resting on the book can signal intent to other market participants, potentially moving the price against the trader. By using IOC, the trader attempts to take liquidity without posting liquidity.

Key Takeaways

  • An IOC order requires immediate execution at the limit price or better.
  • Unlike Fill or Kill (FOK), IOC orders allow for partial fills.
  • Any portion of the order that cannot be filled immediately is cancelled.
  • IOC orders are used to gauge liquidity without leaving an open order on the book.
  • They are commonly used by high-frequency traders and algorithms to avoid "showing their hand."
  • IOC is a time-in-force instruction, not a price instruction.

How Immediate or Cancel (IOC) Works: The Logic of a Split-Second Execution

The operational logic of an Immediate or Cancel (IOC) instruction is centered on the concepts of "speed" and "non-persistence." Unlike standard orders that are entered into the exchange's "central limit order book" (CLOB) to wait for a counterparty, an IOC order is designed to be ephemeral. It exists for the exact duration it takes the exchange's matching engine to compare it against the currently resting orders on the opposite side of the book. When a trader submits an IOC buy order, the matching engine instantly performs a high-speed scan of the available sell orders at or below the trader's specified limit price. 1. The Full Fill: If the cumulative number of shares offered by sellers at that price matches or exceeds the IOC order size, the trade is executed in full. 2. The Partial Fill: If the engine finds that only 40% of the requested shares are available at the specified price, it will execute a trade for that 40%. The remaining 60% of the order is then instantly "killed" by the system. 3. The No-Fill: If no shares are available at the specified price, the entire order is cancelled immediately with zero shares executed. This process is fundamentally a "take-it-or-leave-it" proposition for the market. By ensuring that the order never rests on the book, the trader avoids providing "free options" to other market participants. In a resting order, other traders can see your price and size, and they can choose to trade with you only when it is to their advantage (e.g., when the price is about to break through your level). With an IOC, you are the one choosing to take the liquidity that is already there, maintaining the tactical advantage of initiative.

IOC and the Prevention of "Order Signaling"

One of the most strategic reasons for using Immediate or Cancel instructions is to prevent "order signaling"—the unintentional broadcasting of a large trading intention to the broader market. When a massive "Buy" order rests on the public book, it acts as a "magnet" for other traders. Momentum-based algorithms may see the large buyer and start buying ahead of them, driving the price higher and making it more expensive for the original trader to finish their purchase. By using IOC orders, often in conjunction with a "smart order router," a large institution can "probe" the market in small, non-persistent increments. This allows them to "vacuum up" available liquidity across dozens of different trading venues without ever displaying a large, intimidating bid that would scare away sellers or alert competitors. In the high-stakes world of institutional execution, the IOC is an essential tool for maintaining "stealth" while navigating a fragmented and highly competitive electronic marketplace.

IOC vs. FOK vs. Day Orders

Comparing common time-in-force instructions highlights the unique utility of IOC.

Order TypePartial Fills?Stays on Book?Execution Speed
Immediate or Cancel (IOC)YesNoImmediate
Fill or Kill (FOK)NoNoImmediate
Day OrderYesYesUntil EOD
Good-Till-Canceled (GTC)YesYesUntil Cancelled

Real-World Example: Buying a Large Block

A trader wants to buy 10,000 shares of XYZ stock, which is currently trading at $50.00. The trader enters a Limit Buy order for 10,000 shares at $50.05 with the "Immediate or Cancel" (IOC) instruction.

1Step 1: Submission - The order hits the market.
2Step 2: Liquidity Check - The exchange sees 2,000 shares offered at $50.00, 3,000 shares at $50.02, and nothing else below $50.05.
3Step 3: Execution - The order buys the 2,000 shares at $50.00 and the 3,000 shares at $50.02.
4Step 4: Cancellation - The remaining 5,000 shares of the order are immediately cancelled because there is no more stock available at or below the limit price.
5Step 5: Result - The trader owns 5,000 shares with an average price of $50.012, and has no open orders remaining.
Result: The trader secured available liquidity without posting a bid for the remaining 5,000 shares, which might have driven the price up.

Advantages of IOC Orders

The main advantage of an IOC order is control and speed. It allows traders to navigate fast markets without the risk of "stale" orders getting picked off. It also provides flexibility by accepting partial fills, unlike FOK orders which might result in no trade at all if the full size isn't there. For large institutional traders, IOC helps minimize market impact by preventing a large buy or sell wall from appearing on the public order book.

Disadvantages of IOC Orders

The primary disadvantage is the potential for partial execution. A trader needing a specific number of shares for a strategy (e.g., an arbitrage leg) might end up with only half the position, requiring them to re-enter the market, potentially at a worse price. Additionally, because unfilled portions are cancelled, a trader might have to submit multiple orders to build a full position, which could increase workload or commission costs if not managed by an algorithm.

FAQs

The interpretation and application of Immediate-or-Cancel can vary dramatically depending on whether the broader market is in a bullish, bearish, or sideways phase. During periods of high volatility and economic uncertainty, conservative investors may scrutinize quality more closely, whereas strong trending markets might encourage a more growth-oriented approach. Adapting your analysis strategy to the current macroeconomic cycle is generally considered essential for long-term consistency.

A frequent error is analyzing Immediate-or-Cancel in isolation without considering the broader market context or confirming signals with other technical or fundamental indicators. Beginners often expect a single metric or pattern to guarantee success, but professional traders use it as just one piece of a comprehensive trading plan. Proper risk management and diversification should always accompany its application to protect capital.

The key difference is partial fills. Immediate or Cancel (IOC) allows the order to be partially filled, with the rest cancelled. Fill or Kill (FOK) requires the *entire* order to be filled immediately; if the full quantity isn't available, the entire order is cancelled (nothing is bought or sold).

Yes. An IOC Market order will buy or sell whatever quantity is currently available at the best market prices and then cancel any unfilled portion. This protects the trader from getting filled at much worse prices if liquidity dries up deep in the order book.

Most advanced trading platforms and direct access brokers support IOC orders. However, some basic retail brokerage interfaces may only offer "Day" and "GTC" options to simplify the user experience.

You use IOC if you don't want your order to "sit" on the market. A Day order sits on the order book until filled or the market closes, essentially advertising your intent to trade. An IOC attempts to trade instantly and then disappears, offering more stealth.

IOC is a duration instruction that can be attached to either a limit order or a market order. When attached to a limit order, it respects the price limit. When attached to a market order, it takes whatever is available.

The Bottom Line

Traders looking to execute orders efficiently without revealing their full intent to the market may consider the Immediate or Cancel (IOC) instruction. IOC is the practice of submitting an order that demands immediate execution for any available quantity, with the automatic cancellation of any remainder. Through this mechanism, IOC orders allow traders to "ping" the market for liquidity and seize available shares without leaving a resting order on the book. On the other hand, the risk of partial fills means traders may not complete their desired position size in a single transaction. Unlike Day orders, IOC orders require active management or algorithmic re-submission if the initial attempt doesn't fill the full quota. Therefore, IOC is a favored tool for active traders and institutions who prioritize speed and stealth over the certainty of a full fill at a later time.

At a Glance

Difficultyintermediate
Reading Time9 min
CategoryOrder Types

Key Takeaways

  • An IOC order requires immediate execution at the limit price or better.
  • Unlike Fill or Kill (FOK), IOC orders allow for partial fills.
  • Any portion of the order that cannot be filled immediately is cancelled.
  • IOC orders are used to gauge liquidity without leaving an open order on the book.

Congressional Trades Beat the Market

Members of Congress outperformed the S&P 500 by up to 6x in 2024. See their trades before the market reacts.

2024 Performance Snapshot

23.3%
S&P 500
2024 Return
31.1%
Democratic
Avg Return
26.1%
Republican
Avg Return
149%
Top Performer
2024 Return
42.5%
Beat S&P 500
Winning Rate
+47%
Leadership
Annual Alpha

Top 2024 Performers

D. RouzerR-NC
149.0%
R. WydenD-OR
123.8%
R. WilliamsR-TX
111.2%
M. McGarveyD-KY
105.8%
N. PelosiD-CA
70.9%
BerkshireBenchmark
27.1%
S&P 500Benchmark
23.3%

Cumulative Returns (YTD 2024)

0%50%100%150%2024

Closed signals from the last 30 days that members have profited from. Updated daily with real performance.

Top Closed Signals · Last 30 Days

NVDA+10.72%

BB RSI ATR Strategy

$118.50$131.20 · Held: 2 days

AAPL+7.88%

BB RSI ATR Strategy

$232.80$251.15 · Held: 3 days

TSLA+6.86%

BB RSI ATR Strategy

$265.20$283.40 · Held: 2 days

META+6.00%

BB RSI ATR Strategy

$590.10$625.50 · Held: 1 day

AMZN+5.14%

BB RSI ATR Strategy

$198.30$208.50 · Held: 4 days

GOOG+4.76%

BB RSI ATR Strategy

$172.40$180.60 · Held: 3 days

Hold time is how long the position was open before closing in profit.

See What Wall Street Is Buying

Track what 6,000+ institutional filers are buying and selling across $65T+ in holdings.

Where Smart Money Is Flowing

Top stocks by net capital inflow · Q3 2025

APP$39.8BCVX$16.9BSNPS$15.9BCRWV$15.9BIBIT$13.3BGLD$13.0B

Institutional Capital Flows

Net accumulation vs distribution · Q3 2025

DISTRIBUTIONACCUMULATIONNVDA$257.9BAPP$39.8BMETA$104.8BCVX$16.9BAAPL$102.0BSNPS$15.9BWFC$80.7BCRWV$15.9BMSFT$79.9BIBIT$13.3BTSLA$72.4BGLD$13.0B