Abstract
A market maker earns the gap between its bid and its ask, which pays for processing orders, carrying inventory and losing to better-informed traders. In the Glosten–Milgrom model the last of these alone sets the spread: with one trader in five informed and a $2 range of possible values, the opening spread is 40 cents, and it narrows as trades reveal the value. Knight Capital lost about $460 million in 45 minutes in 2012.
On August 1, 2012, the New York Stock Exchange opened a new program for retail orders, and Knight Capital, one of the largest market makers in American stocks, had installed new code to take part. In the days before, a technician copied it to seven of the eight servers that routed Knight’s orders. On the eighth, the new instructions woke a function called Power Peg, retired in 2003, whose counter of filled shares had been moved and never retested. Handling 212 small customer orders, that server sent child orders without stopping.
In about 45 minutes Knight obtained more than 4 million executions in 154 stocks, over 397 million shares, and found itself long about $3.5 billion of 80 stocks and short about $3.15 billion of 74 others. The next day it reported a pre-tax loss of about $440 million; the Securities and Exchange Commission later put it above $460 million. Within a week a group of investors brought together by Jefferies had put in about $400 million, in convertible securities, to keep it in business.
The business normally runs the other way. When Virtu Financial, another electronic market maker, filed to go public in 2014, it reported only one losing trading day in the 1,238 between January 2009 and December 2013. Both facts describe the same business. It earns a sliver on an enormous number of trades and depends on never holding much risk for long, and the economics of that sliver, the bid–ask spread, are the subject of market microstructure.
Three costs in one spread
A market maker posts a bid, the price at which it will buy, and an ask, the price at which it will sell. A customer who buys and sells at once loses the difference. The literature that followed Harold Demsetz’s 1968 study of the New York exchange divides that difference into three parts.
The first is order processing, the cost of handling each trade plus whatever profit competition leaves. The second is inventory. A dealer who has just bought is holding a position it did not choose, exposed to the price until another customer arrives to take it off its hands. Hans Stoll (1978) priced that exposure as the compensation a risk-averse dealer needs, and Thomas Ho and Stoll (1981) showed that an optimizing dealer sets its quotes around a price that falls as inventory rises, so that a dealer long the stock lowers both bid and ask, buying less eagerly and selling more cheaply until the position is gone.
The third part is adverse selection, and it is the one with no counterpart in an ordinary shop. Walter Bagehot, the pen name of Jack Treynor, observed in 1971 that some of a market maker’s customers trade because they know something, and the rest for reasons unrelated to value. It loses to the first group on average and must recover the loss from the second. Thomas Copeland and Dan Galai (1983) described a posted quote as a free option written to the market. A bid is a put and an ask is a call, and a better-informed trader exercises either only when it is worth exercising. The same mechanism drives the used-car market of the adverse selection lesson, here repeated thousands of times a day at a price that adjusts with every trade.
| Component | What it pays for | Survives with risk-neutral, costless dealers? | Anchor papers |
|---|---|---|---|
| Order processing | Labor, systems, fees, clearing, normal profit | No | Demsetz (1968) |
| Inventory | Price risk on positions the dealer did not choose | No | Stoll (1978); Ho and Stoll (1981) |
| Adverse selection | Expected losses to better-informed traders | Yes | Bagehot (1971); Copeland and Galai (1983); Glosten and Milgrom (1985) |
The components leave different traces. Processing and inventory costs are temporary: a trade at the ask is followed, on average, by prices drifting back toward the middle. Richard Roll (1984) turned this into a measure. If transactions bounce randomly between bid and ask around a value that changes only with news, successive price changes are negatively correlated, and their covariance equals minus the square of half the spread, so the spread is twice the square root of the negative covariance. A stock whose successive price changes have a covariance of −0.0004 squared dollars has an effective spread of \(2\sqrt{0.0004} = \$0.04\). Adverse-selection costs leave no such bounce, because the price move they cause is permanent: the trade has told the market something.
A dealer who learns from orders
Lawrence Glosten and Paul Milgrom (1985) built the cleanest model of that permanence. Their specialist is risk-neutral, pays nothing to trade and earns zero expected profit because of competition, so in their model the whole spread is adverse selection. The asset is worth either a high or a low value. Each arriving trader is, with some probability, informed and buys if the value is high and sells if it is low; otherwise the trader is uninformed and buys or sells with equal chance. Orders come one at a time. Because a purchase is more likely when the value is high, the dealer sets the ask at the expected value given that someone buys, and the bid at the expected value given that someone sells.
\[a = \mathbb{E}[V \mid \text{buy}] = V_L + \Delta V \,\frac{\theta(1+\mu)}{1+\mu(2\theta-1)}, \qquad b = \mathbb{E}[V \mid \text{sell}] = V_L + \Delta V\,\frac{\theta(1-\mu)}{1-\mu(2\theta-1)}\]
- \(V\)
- the asset’s value, either V_H or V_L
- \(\Delta V\)
- the gap V_H - V_L between the two possible values
- \(\theta\)
- the dealer’s current probability that the value is high
- \(\mu\)
- the share of arriving traders who are informed
- \(a,\; b\)
- the ask and the bid, set so that the dealer breaks even on each side
When the dealer starts with no view, \(\theta = \tfrac12\), the spread is simply \(a - b = \mu\,\Delta V\): the share of informed traders times the amount there is to know. With values of $99 and $101 and one trader in five informed, the first quotes are $99.80 and $100.20.
- Opening quotes, \(\theta = 0.5\) \[b = \$99.80, \quad a = \$100.20, \quad a-b = 0.2 \times \$2 = \$0.40\]
- A customer buys at the ask; the dealer updates \[\theta = \frac{0.5 \times 0.6}{0.5 \times 0.6 + 0.5 \times 0.4} = 0.60\]
- New quotes, \(\theta = 0.6\) \[b = \$100.00, \quad a = \$100.38, \quad a-b = \$0.38\]
After one purchase the dealer’s new bid equals the old midpoint and the whole quote has moved up. Each order is a noisy signal, and Bayes’ rule (the subject of the Bayes’ theorem lesson) folds it into the price. Glosten and Milgrom proved that the resulting transaction prices form a martingale: no one without private information can predict their next change, which is the efficient-markets property derived from the mechanics of trading rather than assumed. As the dealer becomes more confident, the remaining uncertainty shrinks and so does the spread. If informed traders are numerous enough relative to the gains from trade, the model also allows the market to shut down on one side, the microstructure version of a market for lemons.
Figure: The Glosten–Milgrom dealer. A risk-neutral dealer quotes a bid and an ask for an asset worth either $100 plus half the gap or $100 minus half of it. Traders arrive one at a time; informed ones, drawn as warm spheres, always trade toward the true value. Set the share of informed traders and the size of the gap, then let trades accumulate and watch the quotes converge on the value as the spread closes.
Albert Kyle (1985) asked the same question from the informed trader’s side. His single insider knows the value, faces market makers who see only the total order flow, and hides among noise traders who trade randomly. In the one-period version, prices move by \(\lambda\) for each unit of net order flow, with \(\lambda = \tfrac12\sqrt{\Sigma_0}/\sigma_u\), where \(\Sigma_0\) is the variance of the value before trading and \(\sigma_u\) is the standard deviation of noise trading. Kyle called \(1/\lambda\) the market’s depth, the order flow needed to move the price by a dollar: it grows with the amount of noise trading and shrinks with the amount of private information. The insider trades only as much as depth allows, and exactly half of the private information reaches the price. In the continuous-time version the insider trades gradually, depth stays constant, and all of the information is in the price by the end. Kyle’s lambda became the standard name for price impact. (Kyle’s market makers set one price for the whole batch of orders, so his model has price impact but no bid–ask spread; Glosten and Milgrom’s, with one order at a time, has a spread. The two are complementary descriptions of the same adverse selection.)
The empirical counterpart came from Joel Hasbrouck (1991), who modeled trades and quote revisions on the New York Stock Exchange as a joint time series. A trade’s full effect on prices emerged only after a lag, rose with its size at a decreasing rate, and was larger when spreads were wide and in smaller firms, where information asymmetries are greater.
Quoting with inventory
A modern electronic market maker is not a single specialist but one of many firms posting limit orders in an order book, and its practical problem is closer to Ho and Stoll’s than to Glosten and Milgrom’s. Marco Avellaneda and Sasha Stoikov (2008) gave it a tractable form. The firm treats the mid-price as the reference value, chooses how far from it to post, and knows that quotes further away are filled less often. Its answer has two parts. It quotes around a reservation price that leans against its inventory, \(r = s - q\,\gamma\sigma^2(T-t)\), where \(s\) is the mid-price, \(q\) the inventory, \(\gamma\) its risk aversion, \(\sigma\) the volatility and \(T-t\) the time left to hold the position. Around that price it sets a total spread of \(\gamma\sigma^2(T-t) + \tfrac{2}{\gamma}\ln(1+\gamma/k)\), where \(k\) measures how quickly the arrival of orders falls off with distance from the mid. A long position lowers both quotes, so the next trade is more likely to be a sale; a more volatile stock or a thinner flow of orders widens the spread.
Figure: Inventory and the market maker’s day. A market maker quotes a bid and an ask around its reservation price through 500 steps of a simulated day, earning the distance between its quote and the mid-price on each fill and gaining or losing on whatever it holds as the price moves. Set the width of the quotes and how much they lean against inventory, then let informed traders in, who trade only when news is about to make the quote stale.
The simulation shows the trade-offs that the formula compresses. Without skew, inventory follows the order flow wherever it goes, and the daily profit swings by several times as much as with even a modest lean. Tighter quotes trade more often and earn less on each trade. Informed flow changes the arithmetic most: at the narrowest quotes the losses to traders who know the next move exceed everything the spread collects, and the profitable width moves outward, which is the Glosten–Milgrom result reached from the other direction.
Albert Menkveld (2013) studied the trading of one large high-frequency firm in Dutch index stocks after the arrival of Chi-X, a new venue that opened in 2007 and took market share from the incumbent exchange. The firm took part in 64.4% of trades on Chi-X and 8.1% on the incumbent, and about four of every five of its trades were passive, meaning that others hit its posted quotes. It lost money on its positions and made it on the spread. Menkveld concluded that the firm looked much like an electronic version of the classic market maker. The same reading fits Virtu’s record: the consistency of its daily results comes from volume and short holding periods, not from being right about the direction of any single position.
Machines as market makers
Terrence Hendershott, Charles Jones and Albert Menkveld (2011) measured what the shift to algorithms did to liquidity. In 2003 the New York Stock Exchange began disseminating quote changes automatically, in stages across stocks, which made algorithmic trading cheaper in some stocks before others. Using that staggered rollout as a natural experiment, they found that for large stocks algorithmic trading narrowed quoted and effective spreads, chiefly by reducing adverse selection, and made quotes more informative. Revenue to liquidity suppliers, measured by realized spreads, rose at the same time, at least while the change was new.
The afternoon of May 6, 2010 tested that liquidity under stress. Markets were already down more than 4% on news of the European debt crisis when, at 2:32 p.m., a mutual fund complex began selling 75,000 E-mini S&P 500 futures contracts, worth about $4.1 billion, with an algorithm set to trade 9% of the previous minute’s volume, “without regard to price or time.” High-frequency firms bought at first and then sold to one another. Between 2:45:13 and 2:45:27 they traded more than 27,000 contracts, about 49% of all volume, while adding only about 200 to their net holdings, the “hot potato” of the joint report by the staffs of the Commodity Futures Trading Commission and the SEC. Buy orders resting in the E-mini fell below 1% of their morning level. At 2:45:28 the exchange paused the contract for five seconds. Individual stocks fell further than the futures: more than 20,000 trades in over 300 securities executed at prices more than 60% away from their values moments before, some at a penny, against stub quotes that market makers left in place to satisfy their quoting obligations without intending to trade. Accenture went to one cent and back within seconds. The Dow Jones Industrial Average, down nearly 1,000 points, or about 9.2%, at its low in the afternoon, closed down 3.2%.
Between 2:45:13 and 2:45:27, HFTs traded over 27,000 contracts, which accounted for about 49 percent of the total trading volume, while buying only about 200 additional contracts net. — CFTC–SEC staff report on the market events of May 6, 2010
Eric Budish, Peter Cramton and John Shim (2015) located a deeper problem in the design of the market itself. In a continuous limit order book, orders are processed one at a time, so when public news arrives the fastest trader can pick off, or snipe, stale quotes before their owners can cancel them. Studying the E-mini future and the SPY exchange-traded fund from 2005 to 2011, they found that the two prices, almost perfectly correlated over minutes, decoupled at the scale of milliseconds, leaving brief arbitrage opportunities whose median duration fell from 97 milliseconds in 2005 to 7 milliseconds in 2011 while their profitability did not fall. Competition raised the speed needed to win the prize without shrinking the prize, and the cost of being sniped is, in their model, built into every market maker’s spread. Their proposal was to replace continuous trading with frequent batch auctions, held for example every tenth of a second, in which orders arriving within an interval are treated as simultaneous and competition moves from speed to price.
Retail orders take a separate route. Many American retail brokers send their customers’ stock orders to wholesalers, which pay for the order flow and execute the trades themselves, often at a small improvement on the public quote. The adverse-selection component of the spread explains the business. Orders from individual investors are, on average, less informed than orders arriving on exchanges, so a dealer facing them has less adverse selection to price and can quote inside the public spread, sharing the difference with the broker and the customer. The business is concentrated. In the SEC staff’s study of GameStop trading in January 2021, three wholesalers executed 88% of the stock’s internalized dollar volume; Citadel Securities accounted for nearly half and Virtu for about 26%. An SEC proposal that would have required many retail orders to be exposed to competition in auctions before internalization, made in December 2022, was withdrawn in June 2025.
What the evidence does not settle
The three-way division of the spread is a matter of model as much as measurement. Roger Huang and Hans Stoll (1997) showed that earlier decompositions could not identify all three components at once; their own estimates found a large order-processing component and smaller adverse-selection and inventory components, but these changed with trade size and with assumptions about how orders relate to trades, and their two methods put the adverse-selection share at about 10% and about 22%. Roll’s estimator, for its part, gives no answer when the covariance comes out positive, as it often does for individual stocks over short samples.
The evidence on high-frequency market makers is narrower than the debate about them. Menkveld’s detailed results describe one firm; its risk-adjusted performance, he noted, depends heavily on what is assumed about its cost of capital. Hendershott, Jones and Menkveld studied a technological change in 2003, before the speed race that Budish, Cramton and Shim document. The flash crash shows that liquidity supplied by firms without an obligation to stay can vanish in seconds, although the joint report traced the start of the decline to the fundamental seller’s program, not to the high-frequency firms. Virtu’s run of profitable days comes from its own prospectus, measured in its own adjusted net trading income, and its later results are not part of that record. Market making is the most direct form of liquidity provision, and contrarian statistical arbitrage can be read as a slower and more dispersed version of it, but its returns accrue chiefly to firms with the technology, the exchange memberships and the order flow to run it, and the losses of August 1, 2012 accrued to one of them in 45 minutes.
Sources
- Demsetz, H. (1968). The Cost of Transacting. Quarterly Journal of Economics 82(1), 33–53.
- Bagehot, W. [J. L. Treynor] (1971). The Only Game in Town. Financial Analysts Journal 27(2), 12–14, 22.
- Stoll, H. R. (1978). The Supply of Dealer Services in Securities Markets. Journal of Finance 33(4), 1133–1151.
- Ho, T., and H. R. Stoll (1981). Optimal Dealer Pricing under Transactions and Return Uncertainty. Journal of Financial Economics 9(1), 47–73.
- Copeland, T. E., and D. Galai (1983). Information Effects on the Bid-Ask Spread. Journal of Finance 38(5), 1457–1469.
- Roll, R. (1984). A Simple Implicit Measure of the Effective Bid-Ask Spread in an Efficient Market. Journal of Finance 39(4), 1127–1139.
- Glosten, L. R., and P. R. Milgrom (1985). Bid, Ask and Transaction Prices in a Specialist Market with Heterogeneously Informed Traders. Journal of Financial Economics 14(1), 71–100.
- Kyle, A. S. (1985). Continuous Auctions and Insider Trading. Econometrica 53(6), 1315–1335.
- Hasbrouck, J. (1991). Measuring the Information Content of Stock Trades. Journal of Finance 46(1), 179–207.
- Huang, R. D., and H. R. Stoll (1997). The Components of the Bid-Ask Spread: A General Approach. Review of Financial Studies 10(4), 995–1034.
- Avellaneda, M., and S. Stoikov (2008). High-Frequency Trading in a Limit Order Book. Quantitative Finance 8(3), 217–224.
- Hendershott, T., C. M. Jones, and A. J. Menkveld (2011). Does Algorithmic Trading Improve Liquidity?. Journal of Finance 66(1), 1–33.
- Menkveld, A. J. (2013). High Frequency Trading and the New Market Makers. Journal of Financial Markets 16(4), 712–740.
- Budish, E., P. Cramton, and J. Shim (2015). The High-Frequency Trading Arms Race: Frequent Batch Auctions as a Market Design Response. Quarterly Journal of Economics 130(4), 1547–1621.