Atlas LP
  1. Home
  2. Blog
  3. How to Detect and Handle Crossed Order Books in Crypto Market Making

Spread & order book

How to Detect and Handle Crossed Order Books in Crypto Market Making

Learn what crossed order books are, why they matter for crypto market making, and how bots like Atlas LP identify and respond to these situations to maintain orderly markets.

Published

What Is a Crossed Order Book?

A crossed order book occurs when the best bid price (highest buy order) is equal to or higher than the best ask price (lowest sell order) on a trading venue. In a healthy, continuous market, the best bid should always be lower than the best ask, creating a positive bid-ask spread. When this relationship is inverted or zero, the order book is said to be "crossed."

Example of a crossed order book:

SidePriceSize
Ask100.005
Bid100.013

Here, the best bid (100.01) is higher than the best ask (100.00), which should not occur in normal circumstances.

Causes of Crossed Order Books

Crossed order books can result from several factors:

  • Exchange Data Issues: Delays or errors in order book updates can lead to outdated or inconsistent data.
  • API Latency: If the market making bot or exchange API experiences latency, the order book snapshot may not reflect the true market state.
  • Matching Engine Delays: Exchange matching engines may temporarily display crossed books before resolving trades.
  • Manual Order Entry Errors: Human traders may inadvertently place orders that cross the book, especially on less liquid markets.

Why Crossed Order Books Matter for Market Makers

For market makers, maintaining orderly and fair markets is essential. Crossed order books can:

  • Distort Price Discovery: Artificially crossed books can mislead participants about the true market price.
  • Increase Execution Risk: Bots placing orders based on crossed data may suffer from adverse selection or unintended trades.
  • Violate Exchange Rules: Some exchanges prohibit self-trading or wash trading, and crossed books can inadvertently trigger such violations if not handled correctly.

How Atlas LP Detects Crossed Order Books

Atlas LP is designed to operate only on spot markets and relies on accurate, real-time data from supported centralized exchanges. Each tick, the bot:

  1. Reads the Latest Order Book: Using WebSocket streams or REST API, Atlas LP fetches the current order book and ticker data.
  2. Checks for Data Integrity: The bot verifies that the order book is not stale and that the best bid is strictly less than the best ask.
  3. Skips Crossed or Stale Books: If the order book is crossed or the data is outdated, Atlas LP skips the tick and does not place, move, or cancel orders based on that snapshot.

This approach helps ensure that the bot only acts on valid, actionable market data, reducing the risk of placing orders at incorrect prices or contributing to market disorder.

Handling Crossed Order Books in Practice

When Atlas LP detects a crossed order book:

  • No Orders Are Placed or Modified: The bot will not attempt to update its quote ladder until a valid, non-crossed book is received.
  • Order Book Monitoring Continues: Atlas LP continues to monitor the order book on each tick, waiting for a valid spread to reappear.
  • Console Transparency: Users can view the current order book state, open orders, and recent fills in the Atlas LP console, making it easy to diagnose data quality issues.
  • Alerts and Snapshots: While the bot will not alert specifically on crossed books, users can set Telegram alerts for periods of no fills, which may coincide with data anomalies.

Best Practices for Market Makers

To minimize the risks associated with crossed order books:

  • Choose Reliable Exchanges: Prefer exchanges with robust, real-time data and reliable matching engines. See supported exchanges for options compatible with Atlas LP.
  • Monitor Data Quality: Use the Atlas LP console to monitor order book health and watch for signs of crossed or stale data.
  • Avoid Manual Crossed Orders: Ensure that manual order placement does not inadvertently cross the book, especially in thinly traded pairs.
  • Understand Exchange Rules: Familiarize yourself with exchange policies on self-trading and wash trading. Atlas LP prohibits any form of volume manipulation or self-trading.

The Role of Genuine Market Making

Genuine market making means providing liquidity by posting resting limit orders that any participant can trade against. It does not involve wash trading, self-trading, or artificially crossing the book to inflate volume or manipulate prices. Atlas LP is engineered to support only real, transparent liquidity provision.

For more on genuine market making, see [/market-making].

Conclusion

Crossed order books are a signal of market data issues or temporary market dislocations. By automatically detecting and skipping crossed books, Atlas LP helps market makers avoid unnecessary risk and maintain orderly, transparent markets. Continuous monitoring and robust data validation are essential for any automated liquidity strategy.

Atlas LP does not guarantee any profit, trading volume, price movement, or exchange listing.

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.

← Back to blog

Frequently asked questions

What is a crossed order book in crypto trading?

A crossed order book occurs when the best bid price is equal to or higher than the best ask price, which should not happen in a normal, orderly market. This signals a data or matching issue.

How does Atlas LP handle crossed order books?

Atlas LP detects crossed order books on each tick and skips placing or modifying orders until a valid, non-crossed book is available, helping maintain orderly trading.

Why are crossed order books risky for market makers?

Crossed order books can lead to incorrect pricing, increased risk of adverse trades, and may violate exchange rules if not handled properly.

Can Atlas LP prevent all crossed order book scenarios?

Atlas LP cannot prevent crossed books on the exchange, but it avoids acting on such data by skipping ticks where the order book is crossed or stale.

Does Atlas LP support wash trading or volume manipulation?

No. Atlas LP only supports genuine market making with resting limit orders and prohibits any form of wash trading, self-trading, or volume manipulation.

Related articles

Run your spot liquidity bot with clear controls

Connect an exchange API key, set your spread band and order levels, and monitor orders, fills and balances from one console.

Create an account