Matching Orders

Matching Orders

Matching orders is the process by which a securities exchange pairs one or more unsolicited buy orders to one or more sell orders to make trades. For example, if both a 200-share buy order and a 50-share buy order at the same price are active when a compatible 200-share sell order arrives, the system will match 160 shares to the 200-share buy order and 40 shares to the 50-share buy order. For example, if a buy order for 200 shares of stock at $90 per share precedes an order for 50 shares of the same stock at the same price, the system must match the entire 200-share order to one or more sell orders before beginning to match any portion of the 50-share order. Under a basic FIFO algorithm, or price-time-priority algorithm, the earliest active buy order at the highest price takes priority over any subsequent order at that price, which in turn takes priority over any active buy order at a lower price. Generally, a buy order and a sell order are compatible if the maximum price of the buy order matches or exceeds the minimum price of the sell order.

Matching orders is the process of identifying and effecting a trade between equal and opposite requests for a security (i.e., a buy and a sale at the same price).

What Are Matching Orders?

Matching orders is the process by which a securities exchange pairs one or more unsolicited buy orders to one or more sell orders to make trades. This can be contrasted with requests for a quote (RFQ) in a security to proceed with a trade.

If one investor wants to buy a quantity of stock and another wants to sell the same quantity at the same price, their orders match, and a transaction is effected. The work of pairing these orders is the process of order matching whereby exchanges identify buy orders, or bids, with corresponding sell orders, or asks, to execute them. Over the past decade, this process has become almost entirely automated.

Matching orders is the process of identifying and effecting a trade between equal and opposite requests for a security (i.e., a buy and a sale at the same price).
Order matching is how many exchanges pair buyers and sellers at compatible prices for efficient and orderly trading.
Over the past decade, this process has become almost entirely automated.

How Matching Orders Works

Matching the orders of buyers and sellers is the primary work of specialists and market makers in the exchanges. The matches happen when compatible buy orders and sell orders for the same security are submitted in close proximity in price and time.

Generally, a buy order and a sell order are compatible if the maximum price of the buy order matches or exceeds the minimum price of the sell order. From there, the computerized, order-matching systems of different exchanges use a variety of methods to prioritize orders for matching.

Today, most exchanges match orders using computer algorithms; but historically, brokers matched orders through face-to-face interactions on a trading floor in an open-outcry auction.

Quick, accurate order matching is a critical component of an exchange. Investors, particularly active investors and day traders, will look for ways to minimize inefficiencies in trading from every possible source. A slow order-matching system may cause buyers or sellers to execute trades at less-than-ideal prices, eating into investors’ profits. If some order-matching protocols tend to favor buyers, and others favor sellers, these methods become exploitable.

This is one of the areas where high-frequency trading (HFT) was able to improve efficiency. Exchanges aim to prioritize trades in a way that benefits buyers and sellers equally so as to maximize order volume — the lifeblood of the exchange.

Popular Algorithms for Matching Orders

All major markets have transitioned to electronic matching. Each securities exchange uses its own specific algorithm to match orders. Broadly, they fall under two categories: first-in-first-out (FIFO) and pro-rata.

Under a basic FIFO algorithm, or price-time-priority algorithm, the earliest active buy order at the highest price takes priority over any subsequent order at that price, which in turn takes priority over any active buy order at a lower price. For example, if a buy order for 200 shares of stock at $90 per share precedes an order for 50 shares of the same stock at the same price, the system must match the entire 200-share order to one or more sell orders before beginning to match any portion of the 50-share order.

Pro-Rata

Under a basic pro-rata algorithm, the system prioritizes active orders at a particular price, proportional to the relative size of each order. For example, if both a 200-share buy order and a 50-share buy order at the same price are active when a compatible 200-share sell order arrives, the system will match 160 shares to the 200-share buy order and 40 shares to the 50-share buy order.

Since the sell order is not large enough to fulfill both buy orders, the system will partially fill both. In this case, the pro-rata matching algorithm fills 80 percent of each order.

Related terms:

Ask

The ask is the price a seller is willing to accept for a security in the lexicon of finance. read more

Batch Trading

Batch trading refers to an accumulation of orders that are executed simultaneously. read more

Bid

A bid is an offer made by an investor, trader, or dealer to buy a security that stipulates the price and the quantity the buyer is willing to purchase. read more

Call Auction

A call auction happens when participants buy or sell units of a good at a certain time at set buying or selling prices. read more

Day Trader

Day traders execute short and long trades to capitalize on intraday market price action, which result from temporary supply and demand inefficiencies. read more

Electronic Communication Network (ECN)

ECN is an electronic system that matches buy and sell orders in the markets eliminating the need for a third party to facilitate those trades. read more

Exchange

An exchange is a marketplace where securities, commodities, derivatives and other financial instruments are traded. read more

Exchange Distribution

Exchange distribution is a technique for selling large orders of shares of stock, by merging multiple buy orders and posting as one transaction. read more

First In, First Out (FIFO)

First-in, first-out (FIFO) is a valuation method in which the assets produced or acquired first are sold, used, or disposed of first. read more

International Clearing System

The International Clearing System is a trade clearing system for financial products or assets when parties are in different countries. read more