Introduction
You're watching a stock. The price just dipped to exactly where you wanted to buy. You place the order, but by the time the exchange processes it, the price has already moved.
This is the exact problem an IOC order solves.
Keep scrolling to know what is IOC order, why investors use it, when to use IOC order, how it’s different from Day order, GTC, or FOK, and what to do in worse case scenario.
What Is IOC (Immediate or Cancel) Order in the Share Market?
An IOC (Immediate or Cancel) order is a trading instruction that tells the stock exchange to execute this trade right now (fully or partially) and cancel whatever doesn't fill in that instant. The entire process plays out within milliseconds. So, nothing sits in the order book waiting.
For example, let’s assume you want to buy 500 shares of a company at ₹100. If only 200 shares are available at that price right now, the exchange will fill those 200 and cancel the remaining 300 automatically.
You can place an IOC order as either a market order (buy or sell at whatever price is available right now) or a limit order (buy or sell only at a specific price or better). Most traders pair IOC with a limit price for tighter control.
When to Apply IOC Order?
Now that you know What is IOC, the next question comes “When to use IOC order”?
If you're a long-term investor buying 10 shares of a blue-chip stock, a regular Day order works perfectly fine. IOC starts making sense when
1.Large Quanlity orders
If you're buying or selling a large block (say 5,000 or 10,000 shares), it can signal your intent to other traders. They may front-run your order, pushing the price up before you're fully filled.
Hence, an IOC order grabs whatever's available instantly and removes the rest, reducing your market footprint.
2. Fast-Moving Markets
During earnings announcements, budget days, or RBI policy updates, stock prices can swing sharply within minutes. An IOC order lets you attempt a trade at the current price without risking a fill at a completely different price 20 minutes later.
Some traders use IOC for thinly traded stocks to avoid getting stuck with a pending order in a dead order book. But be careful here.
If there aren't enough buyers or sellers, your IOC order may cancel entirely, and you'll need to try again.
IOC vs GTC vs FOK vs Day Order: Which Order Type Should Beginners Use?
Opening the app screen and seeing IOC, GTC, FOK, Day order together is another confusion. Before using any, learn the difference between them:
- Day Order - Stays active until the market closes at 3:30 PM (on NSE/BSE). If it doesn't fill by then, it cancels automatically.
- GTC (Good Till Cancelled) order — Also called GTT (Good Till Triggered) by brokers stays active for days, weeks, or even months until your target price is hit.
- FOK (Fill or Kill) order - It demands the full quantity be filled immediately, not a single share less. If even one share can't be matched right now, the entire order is killed. In short, no partial fills allowed.
- IOC (Immediate or Cancel) order - It sits between Day and FOK. It executes instantly, allows partial fills, and cancels whatever's left. It's faster than a Day order but more flexible than FOK.
Here's a quick reference:
| Order Type | How Long It Lasts? | Partial Fill Allowed? | Best For |
| Day | Until market close (3:30 PM) | Yes | Most regular trades |
| IOC | Milliseconds or Zero-duration | Yes | Fast execution, volatile stocks |
| FOK | Milliseconds | No — all or nothing | Institutional, block trades |
| GTC/GTT | Days up to 1 year | Yes | Long-term price targets |
How to Place an IOC Order: Step-by-Step Beginner Guide
The process is nearly identical across most Indian trading platforms. Here's how it typically works:
Step 1 - Log into your trading app.
Open your broker's app and log in with your credentials.
Step 2 - Search for the stock.
Type the company name or ticker symbol in the search bar.
Step 3 - Tap Buy or Sell.
Choose the direction of your trade depending on whether you want to enter or exit a position.
Step 4 - Set the order type.
Select "Limit" if you want to specify a price, or "Market" if you want whatever's available right now.
Step 5 - Change the validity to IOC.
This is the step most people miss. Look for a dropdown or toggle labelled "Validity" or "Order Validity." It usually defaults to "Day." Switch it to "IOC."
Step 6 - Quantity & Price
Enter quantity and price, then confirm. Double-check your numbers. Hit the confirm or place order button. The exchange will attempt to fill it instantly.
If the order executes (fully or partially), you'll see the trade in your positions. If it doesn't match, it'll appear in your order book as "Cancelled," and you can decide whether to try again.
What if IOC order fails in Share market?
When an IOC order "fails," it simply means it couldn't find a matching buyer or seller at your specified price in that exact instant.
Here's what actually happens behind the scenes, and what it means for you.
Scenario 1: No match at all
You place an IOC limit order to buy 500 shares at ₹100. But nobody is selling at ₹100 right now. The entire order gets cancelled automatically. No shares are bough, nor money is deducted.
Scenario 2: Partial fill
You want 500 shares at ₹100, and only 200 are available at that price. The exchange fills those 200, and the remaining 300 are cancelled. You now own 200 shares. The funds blocked for the remaining 300 shares are released back to your trading balance immediately.
Scenario 3: Market order IOC with no liquidity
Suppose you place a market IOC in a thinly traded stock. If the bid-ask spread is very wide or there are no sellers at all, the order may cancel completely, even though you selected "market."
Conclusion: Should You Use IOC Orders?
IOC orders are a sharp tool, but they're not an everyday tool for most retail investors in India. Where IOC genuinely adds value is in situations where speed, precision, and clean order management matter.
The biggest mistake beginners make with IOC is using it without understanding partial fills. Start with Day orders.
A Day order gives the market more time to find a match. Alternatively, you can try placing multiple smaller IOC orders across slightly different price levels to improve your chances of getting filled.
Learn how the order book works, understand bid-ask spreads, and then if wished, IOC order could be the next choice.


