NOONOO TRADINGStart in the bot

Market-Making Bots: Spread Income and Practical Limits

Market-making bots place buy and sell quotes simultaneously to collect the spread. This guide explains how the strategy seeks income through trading activity rather than direction, and the practical limits individual traders face.

What is market making?

Market making means simultaneously quoting a bid and an ask for an asset and repeatedly collecting the spread between them. Unlike a directional bet on rising or falling prices, it can accumulate gains even when prices move little, provided both sides fill in turn.

Example With BTC at $100,000, a bot quotes a bid of $99,990 and an ask of $100,010. If someone sells to it at $99,990 and another person buys from it at $100,010, the bot earns a $20 spread for one round trip. Repeating such round trips hundreds or thousands of times daily is the core idea.

Exchanges need participants to supply order-book liquidity, so market makers help markets function smoothly. This model, however, assumes substantial volume and a reasonably consistent spread.

Maker fees: the starting point for profitability

The first variable determining market-making economics is the fee structure. Exchanges charge differently for orders that provide liquidity to the book, described here as limit or maker orders, and those that take existing liquidity, such as market or taker orders.

TypeOrder methodTypical fee in the guide's futures example
MakerLimit order providing a quoteAbout 0.02% or less; some exchanges offer a rebate, or negative fee
TakerMarket order consuming a quoteAbout 0.04–0.06%

A market-making bot aims to execute almost entirely through maker limit orders, reducing fee costs. Certain exchanges or tiers may even pay small rebates per trade. An urgent market exit incurs taker fees, reducing spread income. If the round-trip spread is 0.02% and one side fills as a taker, that trade may lose money. This sensitivity to fees resembles scalping.

Inventory risk and sudden volatility

The biggest trap is inventory risk. Balanced fills on both sides keep the position neutral, but a one-way trend can cause only one side to keep filling, accumulating an unintended directional position.

Example If an announcement, hack or liquidation wave sends BTC down 3% in one minute, the bot's bids may fill successively above the new market price, leaving expensive inventory. Even if spreads normally earn 0.3% a day, this one event can erase several days of gains.

Live market-making bots therefore need defenses such as stop-loss logic, inventory limits and withdrawal of quotes when volatility jumps. These controls ultimately depend on capital management.

A bot's operating sequence

The essential workflow, without the full code, is:

  1. Receive live order-book and price data through an API key.
  2. Calculate bid and ask prices and sizes around the midpoint, setting the spread width.
  3. Submit limit orders on both sides and monitor fills.
  4. Check inventory, or net position, and skew quotes toward one side if limits are exceeded.
  5. Withdraw quotes or stop out when volatility or inventory crosses a limit.

Before live operation, backtesting should incorporate fees, slippage and execution delays. Yet fills depend on future order flow, so market making is especially prone to differences between backtests and live results.

Practical limits for individual traders

The theory is simple, but earning consistently as an individual is structurally difficult. Margins are thin, so professional firms' advantages in infrastructure, fees and speed directly affect profitability.

A market-making bot is not a safe strategy merely because it does not require a directional forecast; it is neither risk-free nor guaranteed to profit. It accumulates thin spreads through repetition while accepting inventory and sudden-volatility risks. Individual traders should start small, observe how fees, inventory and slippage affect actual results, and understand the broader risks of running a trading bot.

NOONOO TRADING invites you to follow live trading in our free chat.

Start in the bot

📈 OKX trading fee discount for new registrations

Register for the OKX Fee Discount →