Atlas LP
  1. Home
  2. Blog
  3. Inside the Tick Cycle: How Market Making Bots Process Real-Time Market Data

Engineering

Inside the Tick Cycle: How Market Making Bots Process Real-Time Market Data

Explore the engineering behind market making bots and how they process live market data, manage order books, and maintain liquidity—tick by tick.

Published

Understanding the Tick Cycle in Market Making Bots

Market making bots are the engines that help maintain liquidity and orderly price discovery in crypto spot markets. But what actually happens under the hood—tick by tick—when these bots operate? This post takes a technical look at the tick cycle: how a bot processes real-time data, manages orders, and keeps the order book healthy.

What Is a Tick in Market Making?

In automated trading, a "tick" is a single iteration of the bot's main loop. Each tick is an opportunity for the bot to observe the latest market conditions, make decisions, and take action. The tick cycle is fundamental to how market making bots react to changing prices and liquidity needs.

Atlas LP, for example, allows users to set tick intervals as low as 0.5 seconds (with a default of 3 seconds). This means the bot can update its view and actions multiple times per minute, ensuring responsiveness to market changes.

Step 1: Reading Real-Time Market Data

At the start of every tick, the bot fetches the latest market data for the trading symbol. This typically includes:

  • Ticker data: The most recent traded price, best bid, and ask.
  • Order book snapshot: Current depth of bids and asks, often via WebSocket stream or REST API.
  • Symbol rules: Exchange-defined constraints like minimum order size and notional value.
  • Account balances: Available funds to place new orders.

Atlas LP’s bot uses either WebSocket or REST endpoints, depending on exchange support. If data is stale (outdated) or the order book is crossed (bid exceeds ask), the tick is skipped to avoid acting on unreliable information.

Step 2: Validating Market and Account State

Before making any trading decisions, the bot verifies that:

  • The market data is fresh and uncrossed.
  • The account has sufficient balances for the intended order sizes.
  • Exchange symbol rules are satisfied (e.g., order meets minimum quantity and notional requirements).

This validation step is crucial for avoiding errors and rejected orders. Atlas LP performs detailed API checks before a bot can even start, and continues validating at every tick.

Step 3: Computing the Desired Order Ladder

With up-to-date market data, the bot calculates where to place its limit orders. In Atlas LP’s Basic strategy, this involves:

  • Base price: A fixed reference price around which orders are placed.
  • Spread band: Minimum and maximum spread (in basis points) from the base price, defining the width of the order ladder.
  • Nested day and hour bands: Optional bands for time-based spread adjustments.
  • Number of bid and ask levels: How many price levels on each side of the book.
  • Level spacing: Distance between each order, configurable from as little as 0.1 basis points.
  • Order size range: Each order’s size is randomized between user-defined minimum and maximum values, always meeting exchange minimums.

This computation results in a "ladder" of desired limit orders, each with a specific price and size.

Step 4: Managing Open Orders

The bot then compares the desired ladder to the current open orders on the exchange:

  • Missing levels: If a desired order is absent, the bot places a new limit order.
  • Excess or mispriced orders: If there are extra orders or orders at the wrong price, the bot cancels them.
  • No market quotes: If the order book is empty, Atlas LP seeds the book with one buy and one sell order around the base price.

This approach ensures that the bot always maintains a consistent presence in the order book, supporting liquidity without overtrading or creating unnecessary churn.

Step 5: Placing and Canceling Orders

Order placement is always via limit orders—never market orders. This is a core principle of genuine market making, as it ensures that any market participant can trade against the bot’s resting quotes. Atlas LP’s bot never uses market orders and does not support futures or margin trading, focusing solely on spot markets.

Order cancellation is equally important. The bot only cancels orders that are no longer needed (excess or mispriced), minimizing unnecessary API calls and reducing the risk of rate limit issues.

Step 6: Syncing Fills, Balances, and Events

After managing orders, the bot:

  • Syncs recent fills (executed trades), including fees paid.
  • Updates account balances to reflect new positions.
  • Records bot events (order placements, cancellations, errors) in the console for transparency.
  • Takes a daily snapshot of account asset value for monitoring.

These records help users track performance, troubleshoot issues, and maintain compliance. Telegram alerts can also notify users if a bot has had no fills for a specified period, signaling potential market inactivity.

Security and Compliance in the Tick Cycle

Security is woven into every step of the tick cycle:

  • API keys and secrets are encrypted with AES-256-GCM and only decrypted by the worker process that needs them.
  • Atlas LP never asks for withdrawal permissions; only read and spot trading permissions are required.
  • If the exchange rejects API credentials, the bot stops immediately with an error status.

These measures help protect user accounts and ensure that only authorized actions are taken.

Why Tick-by-Tick Processing Matters

High-frequency, tick-by-tick processing allows market making bots to:

  • Respond quickly to price movements and liquidity changes.
  • Maintain a stable and fair order book presence.
  • Avoid acting on stale or unreliable data.
  • Minimize operational risk by validating every action.

This engineering discipline is essential for both token projects seeking healthy markets and trading teams aiming for robust, compliant liquidity provision.

Atlas LP: A Practical Implementation

Atlas LP’s tick cycle reflects industry best practices for spot market making:

StepDescription
Data FetchGet ticker, order book, balances, symbol rules
ValidationCheck data freshness, balances, and symbol compliance
Ladder CalculationCompute desired order prices and sizes
Order ManagementPlace missing orders, cancel excess/mispriced orders
Sync & RecordUpdate fills, balances, events, and daily snapshots

By adhering to these steps, Atlas LP supports genuine market making—resting limit orders that any participant can trade against—while prohibiting wash trading, self-trading, or any form of volume manipulation.

For more on how Atlas LP supports secure, compliant, and effective market making, see our liquidity bot overview or explore supported exchanges.

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.

← Back to blog

Frequently asked questions

What is a tick in a market making bot?

A tick is a single iteration of the bot's main loop, during which it processes the latest market data, validates account and market state, and manages open orders.

How does Atlas LP ensure orders are placed securely?

Atlas LP encrypts API keys with AES-256-GCM, only requests read and spot trading permissions, and validates all settings and market data before placing or canceling orders.

Does Atlas LP use market orders?

No. Atlas LP only places limit orders, ensuring genuine market making by providing liquidity through resting quotes that any participant can trade against.

How does the bot handle stale or crossed order book data?

If market data is stale or the order book is crossed, the bot skips the tick to avoid acting on unreliable information.

Can Atlas LP guarantee trading profits or increased volume?

No. Atlas LP does not guarantee returns, price increases, trading volume, or listings.

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