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:
| Side | Price | Size |
|---|
| Ask | 100.00 | 5 |
| Bid | 100.01 | 3 |
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:
- Reads the Latest Order Book: Using WebSocket streams or REST API, Atlas LP fetches the current order book and ticker data.
- 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.
- 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.