Market Structure

Market Microstructure: What Happens Behind the Order Button

Nov 18, 2026Jungmin Suh9 min read

Every time we press the order button, we pay someone a little. The payment never shows up on a receipt, yet it is the surest cost there is, and it grows with every trade.

Prologue: the airport currency booth

Before a trip, Mia stops at an airport currency booth. The board reads "We sell dollars at 1,400 won, we buy at 1,350." Mia hands over a million won and gets 714 dollars.

Then the trip is cancelled. Mia sells the 714 dollars straight back. The exchange rate has not moved a fraction in the past minute, yet Mia gets back 963,900 won. Thirty-six thousand won has vanished.

It went to the booth. The booth sells dollars dear and buys them cheap, and the gap pays its running costs and covers the risk of the rate moving against it. The gap between the buying price and the selling price is called the spread.

The same thing happens every moment on the order book in a brokerage app. The gap is just small and never shown on its own line, so it is easy to miss. This article is about what happens behind the order button, and who collects the cost. It follows on from the random walk article, which treated the "house edge" only as a number, and shows where that edge actually comes from.

1. Reading the order book: two queues

An order book is two queues, one of people wanting to buy and one of people wanting to sell, each standing at the price they want. A trade happens when the fronts of the two queues meet.

Sell orders (asks) stack up on top and buy orders (bids) below, each in price order. The lowest ask and the highest bid are the best quotes, and the gap between them is the spread. For an actively traded stock it is usually a single tick.

There are two basic ways to place an order.

Limit order Market order
How Name your price and join the queue Name no price and trade at once with whoever is at the front
Upside Never fills at a worse price than you set Fills immediately
Cost May never fill Pays the spread, and a large order walks to worse prices
Role in the market Supplies liquidity Takes liquidity

The queue has rules. In Korea Exchange's regular session, a better price goes first (price priority), and at the same price the earlier order goes first (time priority).

The size of one tick is set by the exchange for each price band. Korea revised its tick sizes in January 2023 for the first time in twelve years, and the KOSPI and KOSDAQ now share one table.

Share price (won) One tick Tick as a share of the price
Under 2,000 1 0.10% at 1,000 won
2,000 to 5,000 5 0.10 to 0.25%
5,000 to 20,000 10 0.05 to 0.20%
20,000 to 50,000 50 0.10 to 0.25%
50,000 to 200,000 100 0.05 to 0.20%
200,000 to 500,000 500 0.10 to 0.25%
500,000 and above 1,000 0.20% or less

The same one tick is 0.25% of the price for a 20,000-won stock and 0.05% for a 19,990-won stock. A stock sitting just above a band boundary has a minimum spread five times as wide.

2. Why spreads exist: someone who knows more than you

The spread is the price of the risk taken by whoever posts the quotes. The largest part is the risk of trading with someone who knows more.

Anyone who leaves a limit order on the book is offering others the chance to trade immediately. People who do this for a living are called market makers. They post a bid and an ask at the same time and live on the difference. Economists split the costs that the spread has to cover into three.

  1. Order processing. Systems, staff, fees: the running costs (Demsetz, 1968).
  2. Inventory risk. The risk that stock bought falls in price before it can be sold on (Stoll, 1978).
  3. Information asymmetry. The risk that the other side knows more than you do.

The third is the heart of it. In 1971 an article signed "Walter Bagehot" was the first to put the problem sharply. Behind the pen name was Jack Treynor, one of the people who anticipated the CAPM. His point: a market maker always loses when trading with someone who has better information. To cover those losses, it has to earn from ordinary investors who simply need to buy or sell, and the tool for that is the spread.

Glosten and Milgrom (1985) put this into mathematics. The more informed traders there are, the wider the spread. With too many, no spread covers the losses and trading stops altogether. Try being the market maker yourself.

Try it: the market maker game

Around a midpoint of 10,000, set the price at which you buy and the price at which you sell. Then press the button to serve 200 customers.

A simplified model. Each customer's true value is either 9,500 or 10,500. Informed customers know which and trade only when it pays. Ordinary customers come because they need to buy or sell, but the wider your quotes the more of them walk away, and at a half-spread of 400 nobody comes.

With 30% informed customers, no spread lets a market maker make money

Expected profit per customer by half-spread, in the model from the game above

-150-100-500500100200300400Half-spread (won)10% informed20% informed30% informed
With 10% informed customers, half-spreads from 60 to 380 won are profitable. At 20% the window narrows to 140–360. At 30% the line never gets above zero. ZapyLab calculations.

Quote too tight and informed customers pick you off. Quote too wide and ordinary customers leave. The spread is the width at which you can survive between the two. That is why spreads are wider where information is unevenly spread, for example at small companies that few analysts follow.

The structure tells an ordinary investor two things. Someone who trades with market orders pays the spread, precisely because they have no special information. And limit orders are not free either. If your limit order filled, it also means someone decided that price was a good deal for them.

3. Slippage and market impact: big orders eat into the book

If a market order is larger than the quantity waiting at the best quote, the rest spills to the next level, then the one after, filling at steadily worse prices. The gap between the price you expected and the price you actually got is called slippage.

Try it: a market order against the book

Change the quantity and send a market order. Shaded rows are the price levels your order ate through.

An imaginary order book with a best bid of 50,000 won, a best ask of 50,100 won and a tick of 100 won. Quantities are random, with more stacked further from the best quotes.

10 shares cost 0.1%, 1,000 shares 0.4%, and 5,000 shares 1.1%

Average fill price of a market buy compared with the midpoint, on the same imaginary order book as above (average of 4,000 books)

0%0.3%0.6%0.9%1.2%010002000300040005000Order size (shares)Half the spread, 0.1%10: 0.1%50: 0.1%100: 0.104%200: 0.151%300: 0.202%500: 0.276%750: 0.356%1000: 0.425%1500: 0.543%2000: 0.642%2500: 0.733%3000: 0.811%3500: 0.887%4000: 0.956%4500: 1.021%5000: 1.083%
A small order pays only half the spread, but a large one walks through several levels and the cost grows. Ten times the size (500 to 5,000 shares) costs about four times as much (0.28% to 1.08%). ZapyLab calculations.

A small order pays just half the spread. As orders grow, the cost climbs quickly. The interesting part is that it grows more slowly than the order size itself.

Research on real markets finds a similar shape. When institutions split a large order into many pieces, the total price move caused by the whole order is known to scale roughly with the square root of its size (Tóth et al., 2011). Four times the order, about twice the impact.

Part of that impact stays after trading stops, because a large buy order is itself information: someone wants this stock. Kyle (1985) showed that an informed trader who knows this will cut orders into small pieces to stay hidden. The execution algorithms that split large orders come back in the article on automated trading.

4. How big are the costs?

Trading costs have fallen a long way over a century, but they have not gone away, and they multiply with every trade.

Charles Jones (2002) assembled spreads and commissions for Dow Jones stocks from 1900 to 2000. The one-way cost of a trade (half the spread plus commission) averaged 0.84% over 1925 to 2000, and has been below 0.5% since 1991. Commissions peaked at 0.88% in the mid-1960s and fell sharply after US commissions were deregulated in 1975. The switch of US stock quotes from sixteenths of a dollar to cents in 2001 is also credited with narrowing spreads.

Buying and selling a listed stock in Korea today costs roughly this much.

Cost Size Visible?
Securities transaction tax (on sale) 0.20% (2026) Shown on the statement
Brokerage commission Varies by broker and channel Shown on the statement
Spread One tick, 0.05 to 0.25% of the price for large stocks Not shown
Slippage Depends on order size and depth Not shown

The invisible costs often outweigh the visible ones. In thinly traded stocks, levels on the book sit empty, and the real spread can stretch over several ticks.

The random walk article assumed a round-trip cost of 0.28% and showed that while cost piles up with each trade, luck does not grow fast enough to keep pace. Take out the tax, and the rest of that 0.28% is the spread and slippage described here.

5. Who is on the other side of your order?

Every trade has another side. The stock you bought is stock someone sold, and they either judged it the opposite way or had their own reason to trade.

Broadly, three kinds of people can be on the other side.

Other side Why they trade Against you
Market makers, high-frequency firms Posting quotes and earning the spread Earn the spread
Informed investors Analysis, speed or data tell them the price is wrong Have the edge on average
Investors like you Need cash, have cash, or have a hunch Break even on average (both lose after costs)

In his 1987 letter to shareholders, Warren Buffett quoted an old poker saying: "If you've been in the game 30 minutes and you don't know who the patsy is, you're the patsy."

If you are not the informed side in the market, the role left is the one that pays the spread. There is no shame in that. Long-term investors earn their return through time, not information. The trouble comes from trading often without information: each trade pays the spread and hands better prices to those who know more.

6. Rules for cutting the costs you cannot see

  1. Check the spread before you buy. How big is one tick as a share of the price, and how much is waiting at the best quotes? With a wide spread, you start behind the moment you buy.
  2. If it is not urgent, use a limit order. A market order pays the spread for immediacy. A limit order may not fill, and if it does, it is worth a moment's thought about why.
  3. Split orders larger than the quantity on offer. Eating through several levels at once raises the cost fast.
  4. Be careful with thinly traded stocks and quiet hours. The thinner the book, the wider the spread and the bigger the slippage.
  5. Trade less. Each cost is small, but it multiplies with every trade. The surest saving is the trade you do not make.
  6. Measure your real costs from your fills. Write down the price you saw when you placed the order and the average price you actually got, and you will see what each trade costs you.

Coming next

So far returns, volatility and probability have been described in words. The next article, financial math basics, puts numbers on them.

This article explains investment principles and is not a recommendation to buy or sell any product.

References