Immediate or cancel (IOC) orders execute all or part immediately and then cancel any unfilled portion of the order. IOC orders do some of the housekeeping work for you. They remove the need to manually cancel any remaining portion of an order that wasn’t filled.