What is an IOC order?

Immediate or Cancel (IOC) orders allow you to buy or sell a security immediately upon being placed in the market. If the order is not executed, it is automatically cancelled and removed with a rejection error by the Exchange.