It should also be noted at the
back end, the prices in a
securities market is made from limit orders. If somebody place a market order, what they get is the best limit order(s) available in the direction of the market they are addressing - the best sell order(s) if they are buying, and the best buy order(s) if they are selling.
At the securities market level, a limit order is active until it is explictly cancelled.