Market orders
A market order prioritises execution against available liquidity. The filled price may differ from the last transaction, especially if the order is large relative to the amounts available.
Limit orders
A buy limit sets the highest acceptable purchase price. A sell limit sets the lowest acceptable sale price. A limit can remain unfilled if the market never meets its terms.
A worked example
Imagine an order book offers two units at $10 and three units at $11. Buying four units immediately across both levels would cost $42 before fees. A buy limit of $10 would prevent purchases at the higher level.
Further reading Investor.gov · Types of orders