Atlas LP
  1. Home
  2. Blog
  3. A Deep Dive into Order Book Data Freshness: Detecting and Handling Stale or Crossed Markets

Spread & order book

A Deep Dive into Order Book Data Freshness: Detecting and Handling Stale or Crossed Markets

Explore why order book data freshness is critical for market making, how bots detect stale or crossed books, and the practical steps Atlas LP takes to manage these scenarios for reliable spot liquidity.

Published

Why Order Book Data Freshness Matters

Order book data is the foundation of all automated trading and market making strategies. For liquidity providers, having an accurate, up-to-date view of the order book is essential to:

  • Place competitive and fair limit orders
  • Avoid mispriced quotes
  • React to market changes promptly
  • Maintain a healthy and genuine market presence

Stale or crossed order books can lead to poor liquidity, increased risk, and even regulatory concerns if not handled correctly. For market making bots like those managed through Atlas LP, robust detection and response mechanisms are crucial.

What Is a Stale Order Book?

A stale order book occurs when the data received from an exchange is outdated—meaning it does not reflect the most recent market activity. This can happen due to:

  • Network delays or interruptions
  • Exchange API issues
  • WebSocket or REST data lag
  • Internal processing delays

Risks of Acting on Stale Data

Placing or adjusting orders based on stale data can result in:

  • Orders being posted at non-competitive prices
  • Increased likelihood of adverse selection (being picked off by faster traders)
  • Missed opportunities or unnecessary losses
  • Distorted market signals

What Is a Crossed Order Book?

A crossed order book is a scenario where the best bid price is equal to or higher than the best ask price. In a healthy market, the best bid should always be lower than the best ask, leaving a positive spread. Crossed books can result from:

  • Data synchronization issues
  • Exchange-side errors
  • Incomplete or out-of-order data updates

Why Crossed Books Are Problematic

  • They signal a breakdown in market structure
  • Placing orders in a crossed market can result in immediate, unintended execution
  • They may indicate broader issues with exchange data feeds

How Atlas LP Detects Stale and Crossed Markets

Atlas LP is designed to prioritize data integrity and market fairness. Each tick (the bot’s decision cycle), Atlas LP:

  1. Reads the Latest Ticker and Order Book:
    • Uses WebSocket streams or REST endpoints to fetch current market data.
  2. Checks for Stale Data:
    • If the order book or ticker data is outdated (e.g., timestamp lags behind the current time or expected update frequency), the bot skips the tick. No new orders are placed or canceled until fresh data arrives.
  3. Detects Crossed Books:
    • If the best bid is equal to or greater than the best ask, the tick is skipped. This prevents the bot from acting on potentially corrupted or unsynchronized data.

By skipping ticks when data is stale or crossed, Atlas LP ensures that all trading decisions are based on reliable, up-to-date market information.

Practical Steps for Handling Stale or Crossed Data

1. Skipping the Tick

When data is stale or crossed, Atlas LP simply does not act. This means:

  • No new limit orders are placed
  • No cancellations are made
  • The bot waits for the next tick with valid data

This conservative approach protects both the user and the market from unintended trading activity.

2. Continuous Monitoring

Atlas LP continuously monitors the freshness and structure of incoming data. If the issue persists, users can investigate exchange status or network connectivity.

3. User Transparency

In the Atlas LP console, users can view:

  • The latest order book and ticker data
  • Bot event logs indicating skipped ticks due to stale or crossed data
  • Open orders and recent fills for full transparency

Why This Matters for Genuine Market Making

Genuine market making means providing resting limit orders that any participant can trade against, supporting fair price discovery and healthy liquidity. Acting on stale or crossed data undermines this role and can lead to:

  • Unfair trading conditions
  • Regulatory scrutiny
  • Loss of trust from counterparties

Atlas LP’s approach ensures that market making activity remains transparent, reliable, and in line with best practices for spot crypto markets.

Best Practices for Users

  • Monitor Exchange Status: If you notice frequent skipped ticks, check the exchange’s API status or announcements.
  • Adjust Tick Intervals if Needed: In volatile or high-latency environments, consider a slightly longer tick interval to reduce the chance of acting on stale data.
  • Stay Informed: Use Atlas LP’s console and Telegram alerts to stay updated on bot activity and market conditions.

Supported Exchanges

Atlas LP supports spot trading on a range of centralized exchanges, including Binance, DigiFinex, LBank, BingX, XT.com, Biconomy, Toobit, CoinW, P2B, Azbit, Dex-Trade, and Ourbit. Data freshness and order book structure can vary by exchange, so robust detection is built into every tick.

Summary Table: Data Freshness Handling in Atlas LP

ScenarioAtlas LP Response
Stale order book/tickerSkip tick, take no action
Crossed order bookSkip tick, take no action
Fresh, valid dataEvaluate and manage orders

Further Reading

Atlas LP never guarantees returns, prices, trading volume, or token 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.

← Back to blog

Frequently asked questions

What is a stale order book and why is it risky for market making?

A stale order book contains outdated market data. Acting on it can lead to mispriced orders, increased risk, and missed trading opportunities.

How does Atlas LP handle crossed order books?

If the best bid is equal to or greater than the best ask, Atlas LP skips the tick and takes no trading action until valid data is available.

What should I do if I see frequent skipped ticks due to stale data?

Check the exchange’s API status, review your network connectivity, and consider adjusting the bot’s tick interval for more stable operation.

Does Atlas LP ever use market orders to handle stale or crossed data?

No. Atlas LP places only limit orders and never uses market orders, regardless of market data conditions.

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