How Market Orders Become Executed Trades

A market order is an instruction to buy or sell a specified quantity at the best prices available when it is executed. Market order execution turns this instruction into completed trades. Your task is to identify which quotes the order can use, how much quantity each quote supplies, and what price the completed trade achieves. The price on the screen is a starting observation, rather than a promised transaction price.

Match the order to the opposite side

A market buy needs sellers. It therefore executes against the lowest available offer, also called the ask. A market sell needs buyers, so it executes against the highest available bid.


The order book shows why the displayed best price may cover only part of an order. Each level has both a price and an available quantity. If the order exhausts the best level, its remaining quantity can execute at the next available level.


Incoming order

Standing orders it uses

Price sequence in a fixed book

Market buy

Offers from sellers

Lowest offer first, then higher offers

Market sell

Bids from buyers

Highest bid first, then lower bids


Standing bids and offers show different prices and available quantities on each side of an order book.


In the figure, the best offer supplies only 120 shares. A larger purchase requires additional sellers. Similarly, the best bid supplies buyers for only 200 shares. Quotes on the same side as your instruction do not supply the counterparties needed to execute it.



For calculations using a displayed book, state the model: the listed quantities remain available, execution uses only those quotes, and no competing orders intervene. Under these assumptions, allocate shares in price order until the requested quantity is reached. Stop partway through the final level when appropriate.

Calculate the actual execution price

When an order executes in several portions, calculate its quantity-weighted average price. Let qiq_i be the number of shares executed at price PiP_i:


Q=∑iqi,V=∑iqiPi,Pˉ=VQ.Q=\sum_i q_i,\qquad V=\sum_i q_iP_i,\qquad \bar P=\frac{V}{Q}.


Here, QQ is the executed quantity, VV is the gross purchase cost or gross sale proceeds, and Pˉ\bar P is the average execution price in currency per share. Use the executed quantity in the denominator; if an order is only partly executed, its requested quantity would give the wrong average.


A simple average of the different prices is generally incorrect because the quantities can differ. Multiply each price by its executed quantity before adding. The resulting average should lie between the lowest and highest prices actually used. Fees, when specified, are added to purchase cost or deducted from sale proceeds separately.

Interpret the difference from the quote

Slippage is the difference between an execution price and a stated reference price. Always identify the reference and the direction that is adverse to the trader. Relative to the initial best offer, a higher average purchase price is adverse. Relative to the initial best bid, a lower average sale price is adverse.


The corresponding adverse monetary differences are:


Buy difference=Q(Pˉ−Pinitial offer),Sell difference=Q(Pinitial bid−Pˉ).\begin{aligned} \text{Buy difference}&=Q(\bar P-P_{\text{initial offer}}),\\ \text{Sell difference}&=Q(P_{\text{initial bid}}-\bar P). \end{aligned}


A positive result means greater purchase cost or lower sale proceeds than trading the whole quantity at that reference. A negative result means a favorable difference. These comparisons exclude separately charged fees.



Real quotes can change between submission and execution. Other orders may consume available quantities, and additional trading interest may appear. Consequently, a final average price alone usually cannot distinguish the contribution of limited depth from changes during processing. A market order prioritizes execution without setting a maximum purchase price or minimum sale price; completion still depends on available trading interest and market conditions.


What to remember

  • Buy from available offers; sell to available bids.
  • Allocate quantity at each price before calculating an average.
  • Weight prices by executed shares and identify the slippage reference.
  • Treat a displayed quote as information about available trading interest, rather than a guaranteed final price.

Example: From Available Offers to Purchase Cost

A portfolio analyst submits a market order to buy 750 shares. A fill is a completed portion of an order at an execution price. This order may receive several fills because sellers offer different quantities at different prices.


The table shows all available offers. Assume these quantities remain available and no competing orders or additional offers intervene. Execution proceeds from the lowest offer upward. All prices are in USD per share, and there are no fees.


Offer price (USD/share)

Available shares

42.10

300

42.14

250

42.20

500


a) Determine the quantity purchased at each price and the total purchase cost.


Start with the lowest offer. Buying its 300 shares leaves ________ still to purchase. The next offer supplies 250 shares, so the quantity needed from the final level is 200 shares. The order stops after obtaining those shares; it does not purchase all 500 available at that level.


The executed quantities are therefore 300 shares at 42.10 USD, 250 shares at 42.14 USD, and 200 shares at 42.20 USD.


Calculate the cost of each portion. The first costs ________, the second costs ________, and the third costs ________. Adding them gives:


V=(300)(42.10)+(250)(42.14)+(200)(42.20)=12630+10535+8440=31605 USD.\begin{aligned} V&=(300)(42.10)+(250)(42.14)+(200)(42.20)\\ &=12630+10535+8440\\ &=31605\text{ USD}. \end{aligned}


The quantities sum to 300+250+200=750300+250+200=750 shares, which matches the instruction. The purchase uses 300, 250, and 200 shares at the successive offers, for a total cost of 31,605 USD.


b) Calculate the average execution price, to two decimal places.


Weight each execution price by the shares purchased at that price. The total cost from part a already includes these quantity weights, so divide it by the total executed quantity:


Pˉ=∑iqiPi∑iqi=31605 USD750 shares=42.14 USD/share.\begin{aligned} \bar P&=\frac{\sum_i q_iP_i}{\sum_i q_i}\\ &=\frac{31605\text{ USD}}{750\text{ shares}}\\ &=42.14\text{ USD/share}. \end{aligned}


This lies between the lowest and highest execution prices, 42.10 and 42.20 USD per share. Its equality to the middle offer is a feature of these particular quantities; it is not a reason to select the middle price in other problems. The average execution price is 42.14 USD per share.


c) Calculate the adverse difference from buying all 750 shares at the initial best offer. Report both the per-share difference and the total monetary difference.


Use 42.10 USD per share as the reference because it was the initial best offer. For a buyer, an average price above this reference is adverse:


Pˉ−Pinitial offer=42.14−42.10=0.04 USD/share.\bar P-P_{\text{initial offer}}=42.14-42.10=0.04\text{ USD/share}.


Multiply this difference by the executed quantity:


D=(750 shares)(0.04 USD/share)=30.00 USD.D=(750\text{ shares})(0.04\text{ USD/share})=30.00\text{ USD}.


Check the result by comparing the actual cost with the reference cost:


31605−(750)(42.10)=31605−31575=30.00 USD.31605-(750)(42.10)=31605-31575=30.00\text{ USD}.


The reference assumes all shares could be bought at the best offer, although only 300 were available there. The difference arises from consuming higher offers in the stated fixed book, rather than from fees or changing quotes. The adverse difference is 0.04 USD per share, totaling 30.00 USD.

A trader submits a market order to buy 60 shares. The best bid is 11.72 USD per share, the best offer is 11.78 USD for 100 shares, and the last-traded price is 11.75 USD. Assume these quotes remain available and execution uses only the displayed book. At what price will the purchase execute?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A trading venue is reviewing the risks faced by liquidity providers and the rules used to allocate executions. Match each market microstructure concept to its description.

Match each term
A.

Exposure to losses from price movements while holding a net position

B.

An execution rule favouring more competitive prices, then earlier arrivals at the same price

C.

Resources spent receiving submissions, executing transactions, and maintaining trading records

D.

Exposure to trading with better-informed participants at prices that are unfavourable given their information

Adverse selection

Order-processing costs

Inventory risk

Price-time priority

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A portfolio assistant submits a market order to buy 420 shares. The complete available offer book is shown below. Assume no quotes change, no other orders intervene, and execution uses only these offers. Ignore fees. Calculate the average execution price in USD per share, to three decimal places.


Offer price (USD/share)

Available shares

24.20

150

24.25

200

24.40

250

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice