Every Quant

Strategy guide

Market Making

Short answer

Market making is a trading approach in which a trader stands ready to both buy and sell an asset, posting a bid price and a slightly higher ask price. The market maker aims to earn the spread between them across many trades, while managing the risks of holding inventory and trading with better-informed counterparties.

See plansCore $299 a month · starter pack $99 for 5 entries

<figure>

<figcaption>A market maker sits between buyers and sellers. The spread is the reward; inventory and informed order flow are the risks.</figcaption> </figure>

How it works

Every market needs someone willing to trade when others want to. A market maker provides that service. It posts a price at which it will buy (the bid) and a higher price at which it will sell (the ask). When a seller arrives, the market maker buys at the bid. When a buyer arrives, it sells at the ask. If buyers and sellers arrive in balance, the market maker earns the gap between the prices, called the bid-ask spread, without holding much of the asset for long.

In practice, buyers and sellers rarely arrive in perfect balance, so the job has a few moving parts:

  1. Set a fair value. Estimate where the true price is right now, often from the midpoint of the highest bid and the lowest ask, recent trades and related markets.
  2. Quote around it. Post a bid below fair value and an ask above it. The width of the quotes reflects how risky and how competitive the market is.
  3. Manage inventory. When the market maker buys more than it sells, it holds a growing position. It can lower its quotes to attract buyers and discourage sellers, hedge in a related market, or reduce the size it shows.
  4. Protect against informed traders. Some counterparties know more about where the price is going. The market maker widens quotes or pulls back when it suspects it is trading against better information.
  5. Repeat constantly. Quotes are updated as prices, inventory and conditions change.

Market making exists in stocks, options, futures, currencies, bonds and crypto assets. Some firms do it under formal agreements with an exchange, which may give them fee rebates in exchange for quoting obligations. Others simply post limit orders on both sides in an open order book.

Why it can work (market behaviour)

Traders pay for immediacy. Many participants, such as funds rebalancing, hedgers and individuals, want to trade now rather than wait. They accept a slightly worse price in exchange for an immediate fill. The spread is the price of that convenience, and the market maker is paid for supplying it.

Most order flow is not informed. A large share of trades comes from people who are not trading on special knowledge: they are investing savings, hedging or rebalancing. Trades with these uninformed counterparties tend to leave the market maker with the spread.

Temporary imbalances revert. When a wave of selling pushes the price down briefly, the market maker who absorbs it can be compensated as the pressure fades. This links market making to short-term mean reversion.

Rebates and structure. In some markets, exchanges pay a small rebate to traders who post resting orders that add liquidity. This changes the economics, especially for firms with low costs and fast systems.

When it fails

  • Adverse selection. When the counterparty knows something the market maker does not, the market maker buys just before the price falls or sells just before it rises. This is the central risk of the business.
  • Trending markets. In a strong, sustained move in a single direction, the market maker keeps accumulating inventory on the losing side. Inventory risk can outweigh many spreads earned.
  • Sudden jumps and news. A surprise announcement can move the price past the market maker's quotes before it can update them.
  • Speed competition. In electronic markets, quotes that update a little too slowly get picked off by faster traders. Competition also narrows spreads, which shrinks the reward.
  • Liquidity crises. In stressed markets, spreads widen and many market makers withdraw. Those who stay face extreme volatility and the risk of large inventory losses.
  • Costs and infrastructure. Fees, technology, data and capital requirements can absorb the small edge earned per trade.

Main variants

VariantMarket behaviour it usesWhen it tends to struggle
Classic dealer market makingDemand for immediacy from clientsClient flow mostly on a single side; balance-sheet limits
Electronic order-book market makingSpread capture on open order booksSpeed races; adverse selection from fast traders
Options market makingSpread on options, hedged with the underlyingJumps and changes in implied volatility
Multi-venue or cross-market quotingThe same asset trading in several placesPrices diverging in a fast move
Inventory-skewed quotingSteering inventory back toward neutralStrong trends that keep inventory on a single side
Passive liquidity provision by fundsEarning part of the spread instead of paying itFills that come mostly when the price moves against the order
Automated market makers in decentralised financePricing formulas in liquidity poolsLarge price moves that leave the pool holding the weaker asset

How traders test it (method only)

Market making is harder to test than most strategies, because the result depends on which orders get filled, and that depends on everyone else in the order book.

  1. Use detailed order-book data. Price bars are not enough. Tests need the sequence of quotes and trades, and ideally the full depth of the order book.
  2. Model the queue. A resting order is filled only after the orders ahead of it at the same price. Assuming instant fills at the quoted price makes results look far better than reality.
  3. Model adverse selection. Check what happens to the price right after each simulated fill. If fills tend to come just before moves against the position, the test should show that loss.
  4. Include latency. Add realistic delays between seeing a price, sending an order and having it reach the market.
  5. Include all fees and rebates. Small per-trade edges are very sensitive to fee schedules.
  6. Track inventory and its risk. Measure how large inventory gets, how long it is held and how it behaves in fast markets.
  7. Stress test. Replay volatile and illiquid periods, including sudden jumps, to see how the strategy survives.

Common mistakes

  • Assuming every quote that touches the market price gets filled. In reality, the fills that do happen are often the bad ones.
  • Ignoring the queue position of orders in the book.
  • Testing on bar data and treating the spread as free profit.
  • Letting inventory grow without limits during a trend.
  • Underestimating fees, data costs and the speed of competitors.
  • Treating market making as low risk because most days are calm. The losses tend to come in a few fast, volatile periods.

Key terms

The bid is the highest price a buyer is currently willing to pay, and the ask or offer is the lowest price a seller will accept. The spread is the gap between them. A quote is a standing offer to buy or sell at a stated price, and depth describes how much can be traded near the current price. Inventory is the position a market maker builds up as orders arrive. Adverse selection is the risk of trading against someone who knows more about where the price is heading. Order flow describes the stream of buy and sell orders arriving at the market. A limit order book is the list of all standing buy and sell orders at each price.

Market making differs from most other strategy types because it does not start from a view on direction. A trend follower or a momentum trader tries to profit from price moves, while a market maker tries to earn the spread for providing a service and to keep price risk small. It also differs from arbitrage, which looks for mismatches between related prices. Some market makers do both, but the core of market making is continuous quoting rather than waiting for a mismatch. Compared with mean reversion, market making is closer in spirit because it tends to buy when others sell, but it acts at much shorter horizons and earns its income from the spread rather than from a larger price move.

Risks and costs in practice

The main risk is adverse selection: a market maker that keeps trading with better-informed participants will slowly lose money even if each trade earns the spread. Inventory risk is another, because a sudden price move can turn a balanced book into a large losing position. Technology, data and exchange fees are significant fixed costs, and competition from fast, well-funded firms can narrow spreads until little remains. Rules on market access and conduct vary by market and must be understood. Operational failures, such as a stuck quote or a faulty connection, can cause large losses very quickly.

Questions to ask before building a strategy of this kind

  • Who is on the other side of the trades, and how informed are they likely to be?
  • How is inventory kept within limits when order flow is lopsided?
  • How does the research model queue position, partial fills and missed trades?
  • What are the full costs, including fees, data and technology, and how do they compare with the spread?
  • What happens during a sudden price jump or a market halt?

Where to start reading

Demsetz described the spread as the cost of immediacy. Ho and Stoll modelled how a dealer sets prices while managing inventory. Roll showed how the spread can be estimated from price changes. Glosten and Milgrom, and Kyle, explained how informed trading shapes prices and spreads. Avellaneda and Stoikov studied quoting in a limit order book, and Menkveld looked at how modern electronic market makers operate.

Unlock the full library. Every Quant members get full written entries for market-making and liquidity-provision strategies, with the mechanics explained in words and a prompt to study each idea with your own AI. See plans

Education only. Not investment advice. Past behaviour of a strategy type does not predict results.

Entries

Entries for this part of the library are being written and checked.

Questions people ask

What does a market maker do?

A market maker continuously offers to buy and sell an asset, posting a bid and an ask. It gives other traders someone to trade with at any moment. In exchange, it hopes to earn the spread between its buying and selling prices across many trades.

How do market makers make money?

The main source is the bid-ask spread: buying slightly lower than they sell. Some also earn exchange rebates for posting resting orders. Their costs and risks include fees, technology, inventory losses and trading against better-informed counterparties.

What is adverse selection in market making?

Adverse selection happens when the market maker trades with someone who knows more about where the price is going. The market maker then tends to buy before prices fall and sell before they rise. Wider spreads are partly a defence against this risk.

What is inventory risk?

Inventory risk is the risk of holding a position that moves against the market maker before it can be offloaded. It grows when trades come mostly from a single side, such as in a strong trend. Market makers manage it by adjusting quotes, hedging or reducing size.

Can an individual trader do market making?

An individual can post limit orders on both sides of a market, which is a basic form of market making. In practice, professional firms compete on speed, costs and data, which makes it very hard for individuals in liquid electronic markets. Every Quant does not publish results; test any idea on your own data before you use it.

Is market making the same as high-frequency trading?

Not exactly. Much modern market making is automated and fast, so it overlaps with high-frequency trading. But high-frequency trading also includes other approaches, and market making exists at slower speeds in dealer markets and less liquid assets.

Can I backtest a market-making strategy in Python?

Yes, but you need order-book data with quotes and trades, not just price bars. The hard part is simulating which of your orders would really be filled and what the price did right after. Without queue and adverse-selection modelling, results are usually far too optimistic.

Papers

Written and checked by the Every Quant research team · Updated . How we write and check entries: methods.