Immediate or Cancel validity (IOC) allows the client to buy/sell a security on-the-spot failing which, the order will be canceled from the system. Traders usually use IOC to check the market depth of a stock.
Note: In an IOC validity, a partial order can also be executed when there is not enough liquidity in the market.