All topics
The trading floor of the New York Stock Exchange
Foundations

Who is actually on the other side of your trade

Every share you buy, somebody sold to you — at that moment, at that price, for a reason. Knowing who that person usually is, and why they were willing, explains more about markets than most charts do.


Press "buy" in a brokerage app and a share appears in your account a moment later. It is easy to picture the share coming from "the market", as if the market were a warehouse with stock on the shelves. It is not. A market is only a place where two parties who want opposite things meet. Every share you buy was sold by someone, at that price, in that second, and every share you sell was bought by someone who thought the price was worth paying.

That sounds obvious. But it has a consequence most new investors never think through: whenever you trade, you are trading against a real counterparty who has decided the other side of your trade is a good idea. Knowing who that usually is — and why they were willing — explains spreads, the "free" trading apps, why short-term trading is so hard, and why liquidity disappears when you need it most.

The order book: where buyers and sellers wait

On an exchange, people who want to trade at a specific price leave standing orders called limit orders. Orders to buy at a price are bids; orders to sell are asks (or offers). The full list of resting bids and asks at each price is the order book. The highest bid and the lowest ask are "the quote", and the gap between them is the spread.

Bids (to buy)PriceAsks (to sell)
$20.03300
$20.02500
$20.01200
400$20.00
600$19.99
1,000$19.98
The callout’s tiny order book. The quote is the two highlighted rows: $20.00 bid, $20.01 ask.

When prices tie, most exchanges fill whoever was there first: price-time priority. That is why speed matters so much to professional traders, and why the front of the queue at a popular price is valuable.

The usual suspects

Who is actually resting in that book, or taking from it? Broadly, six kinds of counterparty, each with a different reason to be there.

  • Market makers. Firms paid, in effect, to always be there — they post both a bid and an ask and earn the spread between them. In the short run they are the most common counterparty for small orders. They do not care whether the share is a good investment; they care about not being caught holding it when the price moves.
  • Other individual investors. Someone somewhere decided to sell the day you decided to buy — for a house deposit, a tax bill, or a different view. Their reason is usually unrelated to yours, which is exactly what makes a market work.
  • Institutions working large orders. A pension fund that wants to buy two million shares cannot do it at once without moving the price, so its broker's algorithm slices the order into thousands of small pieces over hours or days. Your 50-share order may be one sliver of the other side.
  • Index funds and ETFs. When a company joins an index, or money flows into a fund that tracks one, the fund must buy — whatever it thinks of the price. This flow is large and predictable, and other traders position for it.
  • Informed traders. Funds with better research, better data or faster reactions. When they trade against you it is usually because they believe the price is wrong in your favour — theirs, that is.
  • The company itself. Firms buy back their own shares, and sometimes issue new ones. When a company is selling you new stock, it is worth asking why it thinks now is a good time to raise money.
Six kinds of counterparty, and why each one is there.

Where your order actually goes

In Hong Kong, the great majority of share trades meet in one place: HKEX's central order book, where brokers' orders are matched against each other by price and time. In the United States it is more fragmented. There are more than a dozen stock exchanges, plus private venues ("dark pools") and wholesale market makers that fill retail orders away from the exchanges altogether. In recent years somewhere around 40 to 50 per cent of US share volume has traded away from the public exchanges.

That is why the question "who sold me this share?" has a surprising answer for many US app users: a wholesale market maker such as Citadel Securities or Virtu, which paid your broker for the right to fill your order. The arrangement — payment for order flow — has its own topic, because it is the hidden engine of commission-free trading.

Why it matters: the zero-sum part of trading

Owning shares for years is not a zero-sum game. Companies earn profits and pay dividends; over long periods owners as a group can all do well, because the pie grows. But the act of trading — buying today and selling next week — is close to zero-sum before costs: if you buy at $20.01 and the price rises to $21, the person who sold to you missed exactly the gain you made. After costs, short-term trading is negative-sum for the traders as a group.

So the honest question before any short-term trade is: why would the person on the other side be the one making the mistake? Sometimes there is a good answer — an index fund forced to buy, an investor selling for reasons unrelated to price, a market maker who only wants the spread. Often there is not, and the counterparty is a professional with better information, better tools and lower costs. Studies of real brokerage records keep finding the same thing — the best known is Brad Barber and Terrance Odean's "Trading Is Hazardous to Your Wealth" (2000): the more often individuals trade, the worse they tend to do after costs.

What this piece does not cover

The mechanics of the orders themselves — market, limit and stop orders, and the costs hiding in each — are in the order-types piece. What exchanges and brokers each do, and how "free" brokers are paid, is in its own topic. And why the counterparty sometimes vanishes altogether — the moments when there is simply nobody on the other side at a sensible price — is the subject of the piece on liquidity.

This is educational background on how markets work, not advice about whether or how to trade.

Learn it properly, with a free account

Interested in market makers? What market makers do and how they are paid.

Investment Fundamentals · FundamentalsMarket Makers

Interested in the bid-ask spread? The bid, the ask and the order book, read line by line.

Investment Fundamentals · FundamentalsBid, Ask & The Order Book

Interested in limit orders? Market against limit orders, and what each one guarantees.

Investment Fundamentals · Placing a TradeMarket Orders & Limit OrdersFull plan

Interested in stop-loss orders? How stops fill, and why they can fill far from where you set them.

Investment Fundamentals · Placing a TradeStop Orders & Stop-Limit OrdersFull plan