How Stock Exchanges Work: Orders, Liquidity and Market Structure
A stock exchange is a regulated trading venue where eligible buyers and sellers submit orders for listed securities under published matching and market-integrity rules. Exchanges support price discovery and transaction execution, but they are only one part of a wider system containing brokers, market makers, trading platforms, clearing organisations, custodians and settlement infrastructure.
Understanding how stock exchanges work is essential when interpreting the last traded price, liquidity, volatility and the actual cost of trading. A quoted price does not mean unlimited shares can be bought or sold at that level. This guide examines the journey from order submission to settlement, with examples that explain where execution risk arises.

What does a stock exchange actually do?
An exchange establishes market rules, admits eligible securities and participants, provides trading technology, displays market information and determines how eligible orders interact. Its trading rules define opening and closing procedures, permitted order types, priority, tick sizes and procedures for exceptional conditions. Regulators oversee relevant conduct and market integrity; exchanges also have their own monitoring obligations.
Not every share changes hands on its principal listing exchange. Depending on jurisdiction and instrument, transactions may occur on competing exchanges, multilateral trading facilities, alternative trading systems, dark trading venues or through authorised intermediaries. A professional trader must distinguish the listing venue from the execution venue and understand the broker’s routing and execution arrangements.
For a simple illustration, imagine that an investor wants to purchase 2,000 shares in Company A. The investor uses a broker platform to submit an order. The broker verifies it is valid, may perform risk and funding checks, and routes it according to its execution policy. The order might match resting sell orders on an exchange, be handled by another venue or remain unfilled. Only an execution creates a trade; order submission alone does not transfer ownership.
Primary versus secondary markets
The primary market is where a company issues securities to raise capital or where an offering allocates shares under its terms. The secondary market is where existing securities trade among participants. A public company’s share price in the secondary market may affect its future financing opportunities, but routine purchases and sales of existing shares usually do not provide new cash to the issuer.
An IPO is not simply the moment a ticker appears on a screen: it involves due diligence, pricing, allocation and the distinction between new shares issued by the company and existing shares sold by current holders. Secondary trading starts after listing and admission conditions are met. The distinction is explained further in What Are Stocks and Shares?.
Understanding the order book: bids, asks and depth
A bid expresses willingness to buy at a specified price and quantity, and an ask expresses willingness to sell. On an order-driven exchange, eligible orders can rest in a limit order book, subject to the trading system’s visibility and priority rules. The best bid is the highest visible buying price; the best ask is the lowest visible selling price. Their difference is the displayed spread.
Consider a hypothetical stock with the following visible sell orders: 400 shares at £10.02, 600 at £10.04 and 1,000 at £10.08. A market purchase of 1,000 shares may execute 400 at £10.02 and 600 at £10.04 if no other orders or market changes intervene. The volume-weighted execution price is (400 × £10.02 + 600 × £10.04) ÷ 1,000 = £10.032. The top-of-book ask was £10.02, but the average paid is higher because the order consumed more than one price level.
| Sell-side ask price | Visible quantity | Potential cumulative fill |
|---|---|---|
| £10.02 | 400 shares | 400 shares |
| £10.04 | 600 shares | 1,000 shares |
| £10.08 | 1,000 shares | 2,000 shares |
Hypothetical illustrative ask-side depth; the book can change before or during execution.
This illustrates market impact, not a guaranteed outcome. Orders may be cancelled, modified or replenished; other market participants may trade simultaneously. Hidden liquidity and venue-specific rules may affect the result. Displayed size is therefore a snapshot of a particular market, not an enforceable promise that an investor can trade an unlimited quantity.
Market orders, limit orders and stop orders
A market order generally seeks prompt execution against available liquidity, with no specified maximum purchase price or minimum sale price. It may execute across several price levels. It is often inappropriate to interpret “market” as “the price currently visible on a chart”, particularly around illiquid periods, sharp announcements or reopening auctions.
A limit order instructs a broker not to buy above a specified price or sell below it. That adds price control but creates the possibility of partial or no execution. A stop order becomes eligible for another order action after the stop condition is triggered; a basic stop-market order does not guarantee the stop price. Stop-limit orders can provide a price boundary but can remain unfilled during rapid price moves.
| Order | Primary objective | Main risk or trade-off |
|---|---|---|
| Market order | Seek execution against available prices | Final execution price and impact are uncertain |
| Buy limit order | Buy at the specified price or lower | The market may never trade at an executable eligible price |
| Sell limit order | Sell at the specified price or higher | May remain unfilled or only partially filled |
| Stop-market order | Trigger market execution after the stop condition | Slippage or gaps can produce an execution far from the stop |
| Stop-limit order | Trigger a limit order after the stop condition | Price control may result in no exit at all |
Order behaviour depends on the trading venue, broker and product; check the applicable instructions.
Additional orders can include auction-only instructions, midpoint orders, iceberg or reserve orders and various time-in-force conditions. Terms may differ across exchanges. The SEC’s Types of Orders explains several common retail order structures.
Price-time priority and order matching
Many order-driven markets use price priority, meaning a better-priced eligible order ranks ahead of an inferior-priced one. If several orders are priced equally, some venues use time priority, while others use allocation rules involving other factors. These are venue-specific design choices rather than a universal stock-market law.
Imagine two sell orders placed at £10.00, one for 300 shares followed by another for 500. A new 400-share buy order eligible to trade at £10.00 might fill the first order entirely and 100 shares of the second under a simple price-time mechanism. On a venue with another published matching model, the distribution could differ. The trader’s queue position affects execution probability and can matter especially when a liquid stock is trading in a tight range.
What is a market maker and why is liquidity supplied?
A market maker is a participant that, under its strategy or formal obligations, posts buying and selling interest. It may earn a spread or other compensation, but it also bears inventory risk, adverse selection and costs. Some exchanges designate specialist market makers for particular securities; other venues use a broader network of competing liquidity providers.
Liquidity is dynamic. Quotes can widen during earnings announcements, unexpected regulatory news, funding stress or large market moves. A displayed spread of one penny during calm trading says little about the cost of executing a large order during a volatile opening. The NYSE explanation of its equity trading markets describes designated market makers and opening and closing auction arrangements.
High trading volume does not guarantee low execution cost. A market can record substantial volume because participants are trading rapidly during disorderly conditions. Conversely, a deep market may absorb institutional orders with relatively modest price impact even though its visible spread changes throughout the day. The relationship between volume, depth, spreads and volatility is explored in Stock Market Liquidity and Volatility.
Opening and closing auctions
Many stock exchanges use scheduled auctions to establish opening or closing prices. Rather than matching every eligible order continuously, the system aggregates eligible demand and supply and determines an execution price under published rules. Auction design can help concentrate liquidity at a common reference price, although the outcome can still be volatile when imbalances are large.
The closing auction can be especially relevant to funds that track indices or benchmark execution against official closing prices. Institutional flows, index rebalances and corporate actions can affect auction imbalances. The last continuous-trading quote is not necessarily the final official closing-auction price.
Trading halts, volatility controls and market disruption
Exchanges and regulators may use trading halts, volatility interruptions or limit mechanisms to manage exceptional conditions and information disclosure. These controls differ by venue, country and instrument. They cannot eliminate investment risk or ensure that a share will reopen near its previous price.
For example, an unexpected corporate event may prompt a halt. When trading resumes, the new order imbalance can imply a price far below the last execution before the halt. A stop order does not create liquidity during the interruption. Traders should understand the venue’s auction reopening procedures and the product’s actual order behaviour.
Clearing and settlement: what happens after the trade?
Execution establishes a binding transaction under market rules. Clearing establishes or manages the parties’ obligations, often involving a central counterparty. Settlement is the final delivery of securities and funds. The broker or custodian can show a position immediately after execution even though post-trade settlement is not yet complete.
US securities markets adopted standard next-business-day settlement for most applicable transactions on 28 May 2024, commonly described as T+1. Other markets have their own settlement calendars, exception categories and evolving arrangements, so a trader should verify the specific venue and product rather than assume one international rule. FINRA’s settlement-cycle guide explains the US transition.
Where do commissions, spreads and slippage fit?
Trading cost includes explicit commissions and regulatory or exchange charges where applicable, but also implicit costs. These can include crossing the bid–ask spread, slippage against an arrival price and market impact from the order itself. Foreign currency conversion can add a separate cost for international equity trades.
Suppose the bid–ask quote is £5.00/£5.02 and a trader buys 1,000 shares at £5.02. The immediate quoted spread relative to the best bid is £0.02 per share, or £20 across the position, if the trader immediately sells at the bid under unchanged conditions. A £4 commission in each direction would add £8 to the hypothetical round-trip cost. If the sale later occurs at a different price, that market movement affects the actual outcome; the illustration isolates execution mechanics only.
How a trader can evaluate market structure
- Identify the listed security, currency and relevant execution venue.
- Check the official trading schedule, auction periods, holiday calendar and potential halt rules.
- Examine the bid, ask, displayed size and order-book depth at the intended order quantity.
- Match the order type to the risk of non-execution versus the risk of an adverse price.
- Consider volatility around financial results, opening auctions and significant index events.
- Record the intended benchmark, actual fill price, fees, currency conversion and timestamps.
- Review whether execution was materially different from the anticipated cost and why.
Market mechanics are not a substitute for understanding the underlying business. A tight spread and efficient execution do not make an overvalued or financially weak stock attractive. Equally, a sound company may be difficult to trade efficiently if its listed shares have little available liquidity.
Interpreting consolidated quotes and market-data snapshots
An investor may see one bid and ask pair on a brokerage screen, but that display can reflect a particular venue, market-data entitlement or consolidation rule. In markets with competing execution venues, the most relevant executable price may depend on routing, order eligibility, trading status and quote protection rules. A delayed quote is not a reliable benchmark for an immediate market order.
Level-one data typically show summary prices such as the best bid and ask available under the feed’s methodology. Level-two or depth data reveal more price levels for supported markets, but even these screens do not necessarily expose hidden orders or every venue. Market data are observations with timestamps, not promises of future execution. Cross-check unusual prices with the official exchange’s trading status and the broker’s order confirmation.
A worked example of the cost of execution
Imagine that a stock’s best quote is £24.98 bid and £25.02 ask, with only 200 shares available at the displayed ask. A trader wants to buy 2,000 shares urgently. If subsequent visible selling interest totals 800 shares at £25.05 and 1,000 shares at £25.12, the simplified market order would pay £5,004 + £20,040 + £25,120 = £50,164, an average of £25.082 per share. The average is 6.2 pence above the initial best ask.
But actual execution could differ: some resting orders might disappear, a new seller might improve the quote or the order could be routed across several venues. The example therefore illustrates sensitivity to market depth, not an executable prediction. A limit order might constrain the maximum paid but could be only partly filled. Those trade-offs are particularly important around earnings announcements, as explained in How to Analyse Earnings Reports.
Professional execution analysis compares the final fill with a clearly defined benchmark, such as the arrival midpoint or a time-weighted reference. The choice of benchmark should follow the trading objective. An investor who needs certainty of execution may accept a different trade-off from one who prioritises price control and can tolerate a missed trade.
Frequently asked questions about stock exchanges
Does a market order guarantee the displayed price?
No. It generally prioritises execution against available orders, and the book can move or lack sufficient quantity at the displayed price. The execution may take place across several price levels.
What is the difference between stock exchange and stockbroker?
The exchange operates a trading venue and its rulebook. A broker accepts client instructions, handles routing or execution, applies account and product terms, and may use one or more venues.
Is higher trading volume always better?
No. Volume describes trading activity, not necessarily the quantity available at a particular price or the spread paid by a new participant. Volatility, size and venue conditions matter.
Why is the opening price sometimes different from yesterday’s close?
Orders and information accumulate while continuous trading is closed. A reopening or opening auction can clear accumulated demand and supply at a new price, including after overnight news.
Does settlement happen the moment an order executes?
Usually not. The trade is executed first, while final exchange of securities and cash occurs according to the market’s settlement rules.
Key takeaways
Stock exchanges organise trading, but execution requires compatible orders and available liquidity. Traders should understand order types, venue rules, market depth, auctions and settlement. The economically relevant result is the price and quantity actually executed after all material costs and risks—not simply the last price visible on a screen.
Sources and further reading
- SEC Investor.gov — How Stock Markets Work.
- SEC Investor.gov — Types of Orders.
- New York Stock Exchange — Equity Trading.
- FINRA — Settlement Cycles.
Important notice: General financial-market education only. This material is not financial advice or a recommendation to trade. Prices and quantities are hypothetical; real orders may execute differently and financial losses are possible, particularly with leveraged products.