Introduction
Spot market making bots rely on continuous, reliable access to exchange APIs to place and manage limit orders. However, both scheduled maintenance and unexpected downtime are realities for any centralized exchange. These interruptions can directly impact the ability of bots to provide liquidity, manage open orders, and maintain accurate market positions. In this article, we’ll examine how exchange downtime affects spot market making bots, what risks and operational challenges arise, and how teams using platforms like Atlas LP can prepare for and respond to these events.
Types of Exchange Downtime
Exchange downtime can be classified into two main categories:
- Scheduled Maintenance: Planned periods when the exchange is offline for upgrades, infrastructure improvements, or other routine tasks. These are usually announced in advance.
- Unscheduled Outages: Unexpected interruptions due to technical failures, DDoS attacks, or other incidents. These can occur without warning and may last from minutes to hours.
Both types can affect trading bots in similar ways, but scheduled maintenance allows for some degree of planning, while unscheduled downtime requires robust error handling and monitoring.
How Downtime Impacts Spot Market Making Bots
1. Loss of API Connectivity
Market making bots like Atlas LP operate by reading market data (tickers, order books, balances) and placing or canceling limit orders via the exchange’s API. During downtime, these API endpoints may become unavailable or return errors, preventing the bot from:
- Reading the latest market data
- Placing new orders
- Canceling or modifying existing orders
- Syncing balances and fills
This can leave the bot unable to react to market changes, manage risk, or maintain its intended order book presence.
2. Stale or Incomplete Market Data
If the exchange API is partially degraded, bots might receive stale or incomplete order book and ticker data. For example, Atlas LP skips a tick if the data is stale or crossed, ensuring it does not act on unreliable information. However, prolonged periods of stale data can mean the bot is effectively paused, unable to update its quotes or adapt to changing market conditions.
3. Open Order Management Challenges
When the exchange is offline, bots cannot cancel or adjust open orders. If the market moves significantly during downtime, these resting limit orders may become mispriced or exposed to adverse selection once trading resumes. While Atlas LP only places limit orders (never market orders) and validates order parameters before submission, it cannot manage existing orders during an outage.
4. Missed Fills and Event Logging
Bots depend on real-time fill events and balance updates to track executed trades and calculate asset value. Downtime can delay or interrupt this event stream, potentially causing temporary discrepancies in reporting or risk calculations. Atlas LP syncs open orders, recent fills (with fees), and balances when the exchange is available, but gaps may appear during outages.
5. Risk of Overlapping Orders After Recovery
After downtime, there may be a surge in order placement as bots reconnect and attempt to re-establish their intended order ladders. If not managed carefully, this can lead to overlapping or duplicate orders. Atlas LP addresses this by syncing open orders and only placing missing or mispriced levels, but teams should still monitor for anomalies after recovery.
How Atlas LP Handles Exchange Downtime
Atlas LP is designed to operate safely in the face of exchange interruptions:
- API Error Handling: If the exchange API returns errors (such as credential rejection or endpoint unavailability), Atlas LP stops the affected bot and sets an error status. This prevents the bot from acting on incomplete information or making unintended trades.
- Tick Skipping: Each tick, Atlas LP checks for fresh market data. If data is stale, crossed, or missing, the tick is skipped—no orders are placed or canceled until reliable data is available.
- Order and Balance Sync: When connectivity is restored, Atlas LP resyncs open orders, recent fills, and balances to ensure the bot’s state matches the exchange account.
- User Controls: Users can stop bots, cancel open orders, or monitor bot status from the console. Telegram alerts can notify users if a bot has had no fills for a specified period—useful for detecting prolonged downtime or inactivity.
Best Practices for Teams Using Market Making Bots
1. Monitor Exchange Status
Stay informed about scheduled maintenance windows and subscribe to exchange status updates. Plan to pause or adjust bots during these periods to avoid unexpected behavior.
2. Use Robust API Key Permissions
Atlas LP never asks for withdrawal permissions and only requires read and spot trading access. Ensure API keys are configured securely, and rotate them if the exchange reports any security incidents during downtime.
3. Review Open Orders After Outages
After any downtime, review open orders for each symbol to ensure they are still appropriately priced. Use Atlas LP’s console to cancel or adjust orders as needed.
4. Leverage Alerts and Event Logs
Enable Telegram alerts to receive notifications if a bot is inactive for longer than expected. Review event logs and daily asset value snapshots to track any discrepancies caused by downtime.
5. Avoid Over-Reliance on a Single Exchange
Consider running bots across multiple supported exchanges (such as Binance, DigiFinex, LBank, and others listed in Supported Exchanges) to diversify operational risk. Atlas LP allows users to register multiple exchange accounts and create bots per symbol.
Summary Table: Downtime Effects and Bot Responses
| Downtime Scenario | Bot Impact | Atlas LP Response |
|---|
| Scheduled Maintenance | API unavailable, no trading | Bot stops, alerts user |
| Unscheduled Outage | API errors, stale data | Tick skipped, error status set |
| Partial Degradation | Incomplete order book/ticker | No action on unreliable data |
| Post-Recovery | Order book may have shifted | Open orders and balances resynced |
Conclusion
Exchange maintenance and downtime are inevitable in crypto trading. Understanding their impact on spot market making bots is essential for maintaining liquidity and managing risk. Platforms like Atlas LP are built with robust error handling, data validation, and user controls to minimize disruption, but teams should remain vigilant and proactive in monitoring and responding to exchange events.
Genuine market making means providing real, tradable limit orders—never wash trading or manipulating volume. 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.