Introduction
Order book gaps are a common feature in many crypto exchanges, especially for less liquid trading pairs. For market makers, these gaps present both challenges and opportunities. Understanding how order book gaps affect market making strategies is essential for anyone looking to provide liquidity, manage risk, or operate automated bots in spot markets.
This article explores the mechanics of order book gaps, their impact on market making bots like Atlas LP, and practical considerations for adapting strategies to maintain liquidity and minimize risk.
What Are Order Book Gaps?
An order book gap refers to a price range where there are no resting buy or sell limit orders between two price levels. This can occur on either the bid or ask side, or both. Gaps are more common in illiquid markets or during periods of high volatility.
Example:
| Price | Bid Size | Ask Size |
|---|
| $10.10 | | 2.0 |
| $10.00 | 1.5 | |
| $9.90 | | |
| $9.80 | 2.0 | |
In this example, there is a gap on the bid side between $10.00 and $9.80, and on the ask side between $10.10 and $9.90.
Why Do Gaps Matter for Market Makers?
Order book gaps can significantly influence the effectiveness and risk profile of market making strategies:
- Increased Spread: Gaps widen the distance between best bid and best ask, often resulting in a larger spread. Market makers may need to adjust their quoting strategy to remain competitive without taking excessive risk.
- Higher Fill Risk: Placing orders near a gap exposes the market maker to sudden price moves if the gap is filled by aggressive market orders or volatility.
- Liquidity Perception: Large gaps signal low liquidity to other traders, potentially reducing trading activity and fill rates for market makers.
- Adverse Selection: If a market maker’s order fills just before a price moves across a gap, it may result in unfavorable outcomes, especially if the bot cannot react quickly enough.
How Atlas LP Handles Order Book Gaps
Atlas LP is a multi-tenant platform for running spot market making bots on supported centralized exchanges. Its bots operate by placing resting limit orders on the user’s own exchange account, never using market orders. The bot reads the latest ticker and order book data each tick—using either WebSocket streams or REST APIs—and computes the desired order ladder according to user-defined spread bands, level spacing, and order size ranges.
When the bot detects an order book gap, several mechanisms come into play:
- Order Book Validation: Each tick, Atlas LP checks for crossed or stale order books. If detected, the bot skips the tick to avoid placing orders based on unreliable data.
- Spread Band Enforcement: Users set minimum and maximum spreads (in basis points), ensuring that orders are not placed too close together or too far apart, even if gaps exist.
- Order Ladder Recalculation: The bot recalculates the desired order levels each tick. If a gap is present, it may result in wider spacing between some levels, or fewer active orders if the spread band cannot be honored.
- Seeding the Book: If the market has no quotes at all, Atlas LP seeds one buy and one sell order around the base price to help reestablish liquidity.
Adapting Market Making Strategies to Gaps
Order book gaps are not always avoidable, but market makers can adapt their strategies to manage their impact:
1. Adjust Spread Bands
Wider gaps may require increasing the minimum and maximum spread bands to avoid placing orders in risky or illiquid zones. Atlas LP enforces a minimum spread width of 40 basis points, but users can set higher values for volatile or thin markets.
2. Tune Order Level Spacing
Fine-tuning the spacing between order levels can help distribute liquidity more effectively across the available price range. In Atlas LP, level spacing can be set from as little as 0.1 basis points, allowing for granular control.
3. Randomize Order Sizes
Randomizing order sizes within a defined range (while meeting exchange minimums) makes it less likely that all orders will be swept in a single trade, reducing risk during gap events.
4. Monitor Market Data Quality
Bots should always validate that order book data is fresh and not crossed. Atlas LP skips ticks when data is stale, helping to avoid placing orders based on outdated information.
5. Use Alerts for Inactivity
If gaps lead to periods with no fills, Atlas LP can send Telegram alerts when a running bot has had no fills for a user-defined number of minutes. This allows operators to review and adjust strategy if needed.
Practical Example: Spot Market Making with Gaps
Suppose you are providing liquidity for a new token on a supported exchange, and the order book is thin with frequent gaps. You might configure Atlas LP as follows:
- Spread Band: Set a wider min/max spread to avoid placing orders right next to a gap.
- Order Levels: Reduce the number of levels to avoid overexposing your inventory in illiquid zones.
- Order Size Range: Use smaller, randomized order sizes to minimize risk if a gap is suddenly filled.
- Tick Interval: Consider a shorter tick interval to react more quickly to changing market conditions.
Risks and Limitations
- Slippage: If a gap is filled by a large market order, your limit order may be executed at an unfavorable price.
- Inventory Risk: Wide gaps can lead to sudden position changes if your orders are filled aggressively.
- Data Quality: Always ensure that your bot is acting on reliable, up-to-date order book data.
Best Practices for Managing Gaps
- Regularly review order book depth and gap frequency for your trading pairs.
- Adjust bot parameters to match current market conditions.
- Avoid placing orders directly adjacent to large gaps unless you are prepared for higher risk.
- Use the console and alerts to monitor bot activity and react to periods of inactivity or unusual fills.
Conclusion
Order book gaps are an inherent part of many crypto markets, especially in new or illiquid tokens. Market makers must understand how these gaps affect their strategies and use tools like Atlas LP to adapt their approach. By tuning spread bands, order spacing, and monitoring data quality, it’s possible to provide effective liquidity while managing risk.
Genuine market making means placing resting limit orders that any participant can trade against. Wash trading, self-trading, and volume manipulation are prohibited and undermine market integrity.
Atlas LP does not guarantee returns, prices, volume, or listings.
Crypto trading involves risk. Atlas LP is software for placing and managing limit orders; it does not guarantee returns, prices, volume or listings. Follow the rules of each exchange and applicable law.