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.
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.
| Type | Order method | Typical fee in the guide's futures example |
|---|---|---|
| Maker | Limit order providing a quote | About 0.02% or less; some exchanges offer a rebate, or negative fee |
| Taker | Market order consuming a quote | About 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.
- Falling prices: Repeated bid fills mean the bot keeps buying a declining asset. Unrealized inventory losses can vastly exceed the small spreads earned.
- Sudden volatility: If price races through the quoted range, the bot's orders fill one-sidedly at unfavorable prices. Leverage adds liquidation risk.
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:
- Receive live order-book and price data through an API key.
- Calculate bid and ask prices and sizes around the midpoint, setting the spread width.
- Submit limit orders on both sides and monitor fills.
- Check inventory, or net position, and skew quotes toward one side if limits are exceeded.
- 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.
- Speed competition: Professional market makers may colocate servers near an exchange and update quotes in milliseconds. A bot on a home network updates more slowly and is more likely to fill at an unfavorable price.
- Fee tiers: High-volume rebates and discounts are difficult for individuals to access. The same strategy can lose money at a lower tier.
- Adverse selection: Faster-informed counterparties tend to trade against the bot's quotes when doing so favors them, making its average fill unfavorable.
- Inventory and volatility: A single tail-risk event can erase accumulated gains.
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 →