What is a market maker? The bid-ask spread, explained

Every time you place a market order, someone is on the other side instantly — that someone is usually a market maker. A market maker continuously quotes both a buy price (the bid) and a sell price (the ask) on an asset, profiting from the tiny gap between them: the bid-ask spread. They are the reason a liquid market has someone to trade against at all hours, and understanding them explains where the spread you pay actually goes, how maker rebates work, and what a retail market-making bot is really trying to do. This guide explains the role, the spread, inventory risk, and the retail reality.

On this page
  1. What a market maker does
  2. Earning the spread
  3. Inventory risk
  4. Maker rebates
  5. Retail market-making bots
  6. Adverse selection
  7. FAQ

What a market maker does

A market maker posts resting limit orders on both sides of the order book at once — a bid to buy slightly below the mid-price and an ask to sell slightly above it — and refreshes them constantly. By always standing ready to trade, they provide liquidity: the assurance that when you hit the market, there is someone there to fill you. In exchange for taking that role they collect the spread between their bid and ask.

Earning the bid-ask spread

mid-price MM bid (buy) MM ask (sell) spread = profit
Buy at the bid, sell at the ask: if both fill, the maker pockets the spread without predicting direction.

If the maker buys at their bid and later sells at their ask, they capture the difference regardless of which way the market moved in between. Multiplied across thousands of round-trips a day, that razor-thin spread becomes a real business — this is the engine behind a market-making bot.

Inventory risk

The catch is that fills are not balanced. If price falls, the maker’s bids keep filling while nobody hits their asks — they end up holding a growing long position into a falling market. This is inventory risk, and managing it (skewing quotes, hedging, capping position) is the hard part of market making. A naive bot that just quotes a fixed spread accumulates the wrong inventory at exactly the wrong time.

Maker rebates and the fee model

Because makers provide the liquidity exchanges need, many exchanges pay them a maker rebate or charge a lower maker fee, while charging takers more — the maker/taker model from the order types guide. For a high-frequency maker, that rebate can be a meaningful slice of the edge, sometimes larger than the spread itself.

Retail market-making bots

You are competing with professionals

Retail market-making bots (e.g. on Hummingbot) are real, but you are quoting against firms with co-located servers, faster data and deeper pockets. They will pick you off when you are mispriced and out-quote you when you are not. Retail makers survive only in thinner markets the big players ignore, with tight inventory limits and a clear understanding that this is a volume-and-discipline game, not a get-rich edge.

Adverse selection

The deepest risk is adverse selection: the orders that hit your quote are disproportionately the informed ones. When someone with better information trades, they take the side that is about to be right — so your fills are systematically slightly wrong. Professional makers price this into a wider spread; a retail bot that quotes too tight gets adversely selected into a loss. Test any market-making idea hard on the backtester and respect that the spread exists to pay for exactly this risk.

Not financial advice. This content is educational. Automated and algorithmic trading carries a real risk of financial loss. Never trade money you cannot afford to lose. Review the SEC investor.gov and CFTC resources before trading.

Frequently asked questions

What is a market maker?

A market maker is a participant that continuously quotes both a buy price (bid) and a sell price (ask) on an asset, standing ready to trade at all times. By doing so it provides liquidity to the market and earns the small gap between its bid and ask — the bid-ask spread — as compensation for that role.

How does a market maker make money?

A market maker profits from the bid-ask spread: it buys at its bid, sells at its ask, and pockets the difference, ideally without taking a directional view. Across thousands of round-trips a day that thin spread compounds into real revenue, and many exchanges add a maker rebate that can be as valuable as the spread itself.

What is inventory risk in market making?

Inventory risk is the danger of accumulating an unbalanced position. If price falls, a maker’s buy orders keep filling while nobody hits its sell orders, leaving it holding a growing long into a declining market. Managing this by skewing quotes, hedging and capping position size is the hardest part of market making.

Can a retail trader run a market-making bot?

Technically yes, using tools like Hummingbot, but you are competing against professional firms with co-located servers, faster data and deeper capital that will pick off mispriced quotes. Retail makers realistically survive only in thinner markets the big players ignore, with strict inventory limits, treating it as a volume-and-discipline game rather than an easy edge.

MB

Mustafa Bilgic

Algorithmic trading practitioner · Founder, AITradingBot.us

Mustafa builds and backtests automated trading systems and writes about them without the hype. Every tool on this site is free and runs entirely in your browser.