Market orders are "immediate or cancel" orders that are matched with the best bid or offer limit order at that moment, and for the quantity specified, regardless of price.
An immediate-or-cancel (IOC) order is an order to buy or sell a stock that must be executed immediately. Any portion of an IOC order that cannot be filled immediately will be canceled.