How Stock Exchanges Match Buyers and Sellers

Every time a share changes hands on an electronic exchange, an algorithm inside a matching engine has already compared the incoming order against every resting order on the opposite side of the book. The entire process, from submission to confirmation, now takes microseconds. What most explanations leave out is everything that happens after that match, and why the picture a UK investor actually sees depends on where the trade was executed, how data reaches them, and how quickly settlement completes.

Order books and matching engine logic on stock exchanges

An order book is a live, two-sided ledger. One column holds buy orders (bids) ranked from highest to lowest price. The other holds sell orders (offers) ranked from lowest to highest. When a new order arrives, the matching engine scans the opposite side for a compatible price.

See also: UK pension funds and their role in the stock market

The dominant algorithm is price-time priority. The best-priced order on the opposite side always fills first. If two orders share the same price, the one that arrived earlier takes precedence. This straightforward rule underpins most equity exchanges, including the London Stock Exchange’s main order book.

Some derivatives venues, such as Eurex, use a pro-rata model for certain contracts: at a given price level, resting orders are filled proportionally to their size rather than by arrival time. The choice of algorithm shapes how market participants behave, what size they display, and how aggressively they price.

Related reading: How Index Funds Track the Wider Stock Market

What makes an order “firm”

LSE rules treat every order entered on its order book as firm. That means other participants can rely on those prices being genuine. The rules also caution that cancelling orders in ways that mislead other participants may breach market conduct obligations. For the investor, “firm” means the price visible on the book is the price available to trade against, not an indication.

Female financial analyst overlooking a bustling stock exchange trading hall from the gallery balcony inside a grand heritage building

Fragmented execution venues and UK share trading

A single order-book explanation, however clear, understates how UK shares actually trade. The FCA notes that trading in UK shares takes place across a wider range of venues and execution methods than a single exchange. Data focused mainly on traditional venues can understate the full volume.

The FCA’s market activity reporter brings together activity across UK execution venues and methods, including OTC-reported trades. This matters because a retail investor checking a price on one exchange may be seeing only a fraction of the liquidity available across the market.

  • Lit venues display orders publicly before execution, giving the broadest price transparency. The LSE’s main order book is the most visible example in the UK.
  • Dark pools match orders without pre-trade transparency, typically used for large institutional blocks to limit market impact.
  • Systematic internalisers are investment firms that execute client orders against their own capital, outside a traditional order book.
  • OTC trades are negotiated bilaterally and reported after the fact, adding volume that never touched a visible book.

For anyone assessing the true price of a share, relying on a single venue’s order book gives an incomplete picture. That gap is exactly what the FCA’s consolidated tape project aims to close.

Equity consolidated tape for UK market data

The FCA is building an equity consolidated tape designed to combine UK equity trade data from different venues and OTC sources. The stated goal is to make market-wide trading information more accessible and comparable, addressing the gaps that venue-by-venue data leaves for investors and firms assessing liquidity and execution quality.

The proposed funding model for the tape would distinguish between types and sizes of trading venue. The FCA’s stated aim is to encourage useful lit liquidity and support competition, though this remains a proposal rather than a final rule.

For the individual investor, a working consolidated tape would mean one reliable data feed showing where and at what price UK shares actually traded, regardless of venue. Without it, verifying best execution relies on patching together data from multiple sources, something most retail investors cannot realistically do.

Why data quality matters more than matching speed

Matching engines already operate at extraordinary speeds. The practical bottleneck for most investors is not how fast an order gets matched but how quickly and completely they can observe the result. A consolidated tape shifts the conversation from matching efficiency to post-trade transparency, a distinction worth keeping in mind when evaluating broker statements or execution reports.

Two senior financial professionals reviewing trade settlement reports and matching engine diagrams during a meeting inside a glass-walled conference room

UK settlement move to T+1 and what changes after matching

Matching an order is not the same as completing a transaction. After the matching engine confirms a trade, the process of clearing and settlement begins. Clearing involves a central counterparty (CCP) stepping between buyer and seller to guarantee both sides deliver. Settlement is the actual exchange of shares for cash.

The UK is moving to a T+1 settlement cycle, meaning securities trades will settle one business day after execution rather than the current two. This compresses every post-trade step: affirmation, allocation, funding, and delivery.

For investors, the practical effects are concrete:

  • Cash from a sale becomes available one day sooner, reducing the period during which capital is tied up.
  • The window for resolving trade mismatches or discrepancies shrinks, placing greater pressure on brokers and custodians to process trades promptly.
  • Counterparty risk, the chance that one side fails to deliver, is reduced because less time passes between agreement and completion.

The change does not alter how matching engines pair buy and sell orders. It alters the gap between a matched trade and a settled one, which is where the investor’s actual exposure sits. Understanding that distinction prevents the common confusion between seeing a “trade confirmed” notification and actually holding the shares in a settled account.

Verifying execution as a UK investor

Brokers in the UK are required to provide best execution. In practice, verifying that obligation depends on the data available. With trading spread across lit venues, dark pools, systematic internalisers, and OTC channels, checking whether a fill price was genuinely the best available requires comparing across all of them.

Until a consolidated tape is operational, investors can review their broker’s execution policy, which must specify the venues used and the factors prioritised (price, cost, speed, likelihood of execution). RNS announcements and LSE trade data offer partial visibility, but they do not cover every venue.

The shift to T+1 adds a timing dimension. With settlement compressed, any delay in checking or disputing a trade leaves less room for correction. Keeping records of order timestamps, fill prices, and venue identifiers becomes more valuable as the post-trade window narrows.

Stock exchanges match buyers and sellers through tested, transparent algorithms. The harder question for UK investors today is not how that matching works, but how completely they can see it happening across a fragmented market, and how quickly the result becomes final.

Don't miss any news

Money

Inheritance tax planning: gifts, allowances and common pitfalls

Inheritance tax planning gets complicated when an estate involves farmland, pension savings…

Real Estate

UK house prices in 2026: regional trends for buyers and sellers

The UK House Price Index for September 2026 records a national average…

Insurance

When Pet Insurance Can Help With Veterinary Bills

Pet insurance is a contract that reimburses a portion of eligible veterinary…