All Courses are free for limited time.
NISM Professor

Immediate or Cancel

Also written IOC · Immediate or Cancel (IOC) · IOC order

A time condition on an order: whatever can be matched the moment it reaches the market is executed, and any unmatched balance is cancelled immediately rather than waiting in the order book.

In plain language

Most orders, once placed, sit in the exchange's order book until they are matched or the day ends. An Immediate or Cancel (IOC) order refuses to wait.

When an IOC order reaches the market, the system looks for matching orders on the other side at that instant. Whatever quantity can be matched is traded. Whatever cannot is cancelled straight away. The order never becomes a resting order that others can see or trade against later.

That makes IOC useful when you want liquidity now and do not want to leave a visible order behind - and it is the only kind of order a broker in risk reduction mode is allowed to place.

How it works

Chapter 3 (section 3.2.2.1, Types of order) groups order conditions into time, price and quantity conditions. Among time conditions:

ConditionMeaning
DAYValid for the day entered; unmatched balance cancelled automatically at end of trading day
IOCExecuted as soon as released into the market, failing which it is removed; partial match is possible and the unmatched portion is cancelled immediately
GTCStays until cancelled by the trading member
GTDStays until a specified day/date
Cancel on Logout (COL)All outstanding orders of the user cancelled when the user logs out of the TWS

The workbook notes that GTC and GTD orders are currently not available on the system as per SEBI directives.

Matching price. An incoming order is matched against resting orders on price-time priority, and a trade takes place at the passive (resting) order's price.

Risk reduction mode. When a stock broker breaches 90% collateral utilisation, only orders with the IOC attribute are permitted (Chapter 4, section 4.1.1.8), and all unexecuted orders are cancelled.

A worked example

This is the workbook's Example 3.3. An order is placed to buy 200 shares of ABC Industries at Rs 807.60, Immediate or Cancel. The order book shows:

Buy qtyBuy price (Rs)Sell price (Rs)Sell qty
1,606807.55807.60100
13807.50807.75119
383807.45807.80184
  1. The only sell quantity at or below Rs 807.60 is 100 shares at Rs 807.60.
  2. 100 shares trade at Rs 807.60 - the passive sell order's price. Value: 100 x Rs 807.60 = Rs 80,760.
  3. The remaining 100 shares are cancelled immediately, because nothing else is offered at Rs 807.60 or better.

Compare the workbook's Example 3.2: the same buy of 200 shares at Rs 807.60 as an ordinary limit order. There too 100 shares trade at Rs 807.60, but the unfilled 100 shares stay in the book as the new best buy order at Rs 807.60. The only difference is the IOC condition.

Why NISM asks about it

Chapter 3 (Introduction to Securities Broking Operations, section 3.2.2.1 on types of order) defines IOC with Example 3.3, alongside DAY, GTC, GTD, COL, disclosed quantity and minimum fill. Chapter 4 (section 4.1.1.8) makes IOC the only order type allowed in risk reduction mode. Chapter 3 carries the largest weightage in the paper (20%), and order-condition classification - is IOC a time, price or quantity condition? - is a standard question.

Common exam traps

  • IOC is a time condition, not a price or quantity condition.
  • Partial execution is allowed. IOC is not "all or nothing"; only the unmatched balance is cancelled.
  • The trade happens at the passive order's price, which can be better than the IOC order's limit.
  • Only IOC orders are allowed in risk reduction mode - a favourite cross-chapter question.
  • GTC and GTD are currently not available as per SEBI directives, even though the workbook defines them.
  • Do not confuse IOC with Cancel on Logout. COL cancels outstanding orders when the user logs out; IOC never leaves an outstanding order.

Where this is taught

Free preparation for NISM Series XVI

Related terms

← All terms
Something look wrong? Report it