Atlas LP
  1. Home
  2. Blog
  3. Understanding the Role of Order Cancellation in Atlas LP’s Spot Market Making

Atlas LP

Understanding the Role of Order Cancellation in Atlas LP’s Spot Market Making

Explore how Atlas LP manages order cancellations for efficient, secure spot market making, and how users can safely control open orders on supported exchanges.

Published

Why Order Cancellation Matters in Spot Market Making

Order cancellation is a fundamental aspect of genuine market making. In spot crypto markets, market makers provide liquidity by placing resting limit orders on both sides of the order book. However, as market conditions shift—due to price changes, volatility, or updated strategy parameters—some orders may become mispriced, excessive, or otherwise undesirable to keep active. Efficiently managing which orders remain live and which are canceled is crucial for:

  • Maintaining accurate and competitive spreads
  • Reducing the risk of unwanted fills
  • Ensuring compliance with exchange rules and symbol filters
  • Preserving capital for optimal liquidity allocation

Atlas LP’s approach to order cancellation is designed to balance these needs while keeping user control and security at the forefront.

How Atlas LP Handles Order Cancellation

Atlas LP is multi-tenant software that runs a spot liquidity (market making) bot on the user's own centralized exchange account via API keys. The bot operates exclusively with limit orders and never uses market orders. Here’s how order cancellation fits into its workflow:

1. Tick-Based Order Management

On each tick (configurable from 0.5 seconds, default 3 seconds), the bot:

  • Reads the latest ticker and order book data (via WebSocket stream or REST API)
  • Checks for data freshness and skips the tick if data is stale or the order book is crossed
  • Computes the desired ladder of bid and ask limit orders based on the configured spread, number of levels, and order sizes
  • Places any missing limit orders
  • Cancels only those orders that are excessive (e.g., too many levels) or mispriced (e.g., outside the configured spread or not matching the strategy)

This targeted cancellation ensures the bot maintains the correct number and placement of orders without unnecessary churn, which helps avoid excessive API usage and potential rate limit issues.

2. Strategy-Driven Cancellation Logic

The Basic strategy in Atlas LP uses a spread band around a fixed base price, with settings for:

  • Min/max spread in basis points (at least 40 bps wide)
  • Nested day and hour bands
  • Number of bid and ask levels
  • Level spacing (from 0.1 bps)
  • Order size range (randomized between min and max, within exchange rules)

If market conditions or strategy parameters change, the bot recalculates the desired order ladder. Any open orders that no longer fit the updated ladder are canceled, ensuring the bot’s presence in the order book remains consistent with the user’s intent and risk profile.

3. User-Initiated Order Cancellation

Atlas LP gives users direct control over their open orders:

  • From the bot page, users can cancel a single open order or all open orders for a symbol
  • Stopping a bot immediately halts new order placements
  • All order cancellation actions are synchronized with the exchange and reflected in the real-time console

This transparency and control are essential for managing risk, especially if market conditions change rapidly or if the user wants to pause or adjust their strategy.

4. Exchange and Security Considerations

  • Atlas LP never asks for withdrawal permission; API keys require only read and spot trading rights
  • API keys and secrets are encrypted with AES-256-GCM before storage and are only decrypted by the worker that interacts with the exchange
  • If the exchange rejects the credentials, the bot stops with an error status, preventing further actions

Order cancellation commands are sent securely and only when necessary, minimizing exposure and ensuring that only valid, authorized actions are taken on the user’s behalf.

Order Cancellation Workflow: An Example

Let’s walk through a simplified example of how Atlas LP manages order cancellation:

Tick EventAction
1Bot reads fresh order book and ticker data
2Computes desired order ladder (e.g., 3 bids, 3 asks at specified spreads)
3Places missing limit orders
4Detects that 1 existing ask is now outside the max spread due to price movement
5Cancels the mispriced ask order only
6Console updates to reflect current open orders and recent fills

This process repeats on each tick, ensuring the bot’s orders are always aligned with strategy and market conditions.

Best Practices for Managing Order Cancellation

  • Monitor console updates: Atlas LP’s real-time console shows all open orders, recent fills, and bot events. Use this to track order status and cancellation activity.
  • Use Telegram alerts: Set up alerts to notify you if your bot has had no fills for a chosen number of minutes—this can signal the need to adjust your strategy or cancel stale orders.
  • Validate settings: All bot settings are validated before starting. Ensure your spread, order sizes, and level counts are appropriate for the exchange’s symbol rules to avoid unnecessary cancellations.
  • Avoid excessive cancellation: Only orders that are mispriced or excessive are canceled. Avoid strategies that require frequent, unnecessary order churn, as this can lead to higher API usage and potential rate limit issues.

Order Cancellation and Genuine Market Making

Genuine market making means providing real liquidity by posting resting limit orders that any participant can trade against. Atlas LP’s targeted order cancellation supports this by:

  • Keeping orders live as long as they are competitive and within strategy
  • Ensuring that canceled orders are only those that no longer serve the market or the user’s goals
  • Prohibiting wash trading, self-trading, or any form of volume manipulation

This approach helps maintain fair and transparent order books, supporting healthy market activity for token projects, exchanges, and trading teams.

Supported Exchanges

Atlas LP supports spot market making on the following centralized exchanges:

  • Binance
  • DigiFinex
  • LBank
  • BingX
  • XT.com
  • Biconomy
  • Toobit
  • CoinW
  • P2B
  • Azbit
  • Dex-Trade
  • Ourbit

Futures and margin trading are not supported. The bot operates with limit orders only.

Summary

Order cancellation is an essential tool for market makers using Atlas LP. By combining automated, strategy-driven cancellation with user control and robust security, Atlas LP helps ensure that liquidity provision remains efficient, transparent, and aligned with genuine market making principles.

Atlas LP does not guarantee 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

How does Atlas LP decide which orders to cancel?

Atlas LP cancels only those orders that are excessive (more than the configured number of levels) or mispriced (outside the user’s specified spread or not matching the strategy). This ensures the order book stays competitive and aligned with user intent.

Can I manually cancel open orders in Atlas LP?

Yes. From the bot page, users can cancel a single open order or all open orders for a symbol. All cancellations are synchronized with the exchange and shown in the console.

Does Atlas LP ever use market orders for cancellation?

No. Atlas LP operates exclusively with limit orders and never uses market orders. Order cancellations simply remove the specified limit orders from the order book.

Is order cancellation secure in Atlas LP?

Yes. API keys are encrypted with AES-256-GCM, and only the worker interacting with the exchange can decrypt them. Atlas LP never requests withdrawal permissions, and all actions are authorized and logged.

How can I monitor order cancellations and open orders?

The Atlas LP console displays all open orders, recent fills, and bot events in real time. You can also set up Telegram alerts to be notified if your bot has had no fills for a chosen period.

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