Atlas LP
  1. Home
  2. Blog
  3. Engineering Multi-Tenant Market Making Systems: Challenges and Solutions

Engineering

Engineering Multi-Tenant Market Making Systems: Challenges and Solutions

Explore the technical hurdles of building secure, scalable multi-tenant market making platforms, and how robust encryption and permission controls are essential to protecting user assets and data.

Published

Introduction

Building a multi-tenant market making system for crypto spot markets is a demanding engineering challenge. Such platforms must serve multiple users—each with their own exchange accounts and security requirements—while maintaining high performance, reliability, and robust safeguards against unauthorized access. In this article, we explore the core technical challenges of engineering secure, scalable multi-tenant market making systems, and examine practical solutions, including encryption and permissions management, as implemented in Atlas LP.

What Is a Multi-Tenant Market Making System?

A multi-tenant system allows multiple users ("tenants") to operate independently within the same software infrastructure. In the context of market making, this means each user can connect their own centralized exchange account, configure trading bots, and manage liquidity strategies—all without interfering with other users or exposing sensitive information.

Key Requirements

  • Isolation: Each user's data, configurations, and API keys must be strictly separated.
  • Security: Sensitive credentials must be protected at rest and in transit.
  • Scalability: The system must handle many users and bots without performance bottlenecks.
  • Reliability: Failures in one tenant's bot should not impact others.

Core Engineering Challenges

1. Secure Storage and Handling of API Keys

Market making bots require access to users' exchange accounts via API keys and secrets. These credentials are highly sensitive: if compromised, they could allow unauthorized trading or data access.

Solutions in Atlas LP

  • Encryption: API keys and secrets are encrypted with AES-256-GCM before storage. This industry-standard encryption ensures that even if the database is accessed by an attacker, the credentials remain protected.
  • Controlled Decryption: Secrets are decrypted only by the worker process that needs to interact with the exchange. They are never displayed again after initial entry, reducing the risk of accidental exposure.

2. Permissions Management

APIs for centralized exchanges often allow granular permission settings. For market making, bots need only read and spot trading permissions—never withdrawal rights.

Solutions in Atlas LP

  • Minimal Permissions: Atlas LP never asks for withdrawal permission. Users are instructed to grant only the necessary read and spot trading rights.
  • API Verification: When a user connects an exchange account, Atlas LP runs detailed checks—verifying ticker access, order book data, symbol rules, balances, open orders, and recent trades. Optionally, it can place and immediately cancel a limit order far from the market to confirm trading permissions without risking unintended trades.
  • Immediate Error Handling: If an exchange rejects the credentials, the bot stops with an error status, preventing any further action with invalid keys.

3. Tenant Isolation and Data Segregation

With multiple users on a single platform, strict isolation is essential. Data leaks or cross-tenant actions can have severe consequences.

Solutions in Atlas LP

  • Account Separation: Users can register multiple exchange accounts, but each bot operates independently per symbol and account.
  • No Cross-Tenant Access: Each user's bots, API keys, open orders, and trading data are isolated and never accessible to other tenants.

4. Validating and Managing Bot Settings

Misconfigured bots can create operational risks, such as placing nonsensical orders or failing to comply with exchange rules.

Solutions in Atlas LP

  • Comprehensive Validation: Before a bot can start, the system validates all settings—spread bands, order sizes, tick intervals, and symbol-specific rules—to ensure compliance with exchange requirements.
  • Safe Order Placement: The bot only places limit orders (never market orders), and order sizes are randomized within user-defined ranges, always meeting exchange minimums.

5. Real-Time Data Handling and Performance

Market making bots must react quickly to market changes, but not at the expense of security or stability.

Solutions in Atlas LP

  • Efficient Data Streams: The bot reads the latest ticker and order book via WebSocket or REST, skipping ticks if data is stale or crossed to avoid acting on unreliable information.
  • Order Book Seeding: If the market has no quotes, the bot seeds one buy and one sell around the base price to establish initial liquidity.
  • Granular Tick Intervals: Users can configure tick intervals from as low as 0.5 seconds (default: 3 seconds), balancing responsiveness and resource usage.

6. Monitoring, Alerts, and Operational Control

Operators need visibility into their bots' actions and the ability to respond to market or system events.

Solutions in Atlas LP

  • Console Visibility: Open orders, recent fills (with fees), balances, and bot events are synced and displayed in the console. Daily snapshots record account asset value for tracking.
  • Alerts: Telegram notifications can alert users if a bot has had no fills for a user-defined period, helping detect inactivity or market issues.
  • Order Management: Users can cancel individual or all open orders directly from the bot page. Stopping a bot halts new order placement immediately.

Security Best Practices for Multi-Tenant Market Making

ChallengeSolution in Atlas LP
API key exposureAES-256-GCM encryption, controlled decryption
Over-permissioned keysNever request withdrawal permission
Configuration errorsRigorous bot setting validation
Cross-tenant data leaksStrict account and data isolation
Stale/crossed market dataTick skipping, real-time data validation

Why Genuine Market Making Matters

Genuine market making means placing resting limit orders that any market participant can trade against. This is fundamentally different from wash trading, self-trading, or any form of volume manipulation—all of which are prohibited and undermine market integrity. Atlas LP is designed to support genuine liquidity provision and does not facilitate or condone manipulative practices.

Conclusion

Engineering secure, scalable multi-tenant market making systems demands careful attention to encryption, permissions, data isolation, and operational reliability. By implementing robust security controls and operational safeguards, platforms like Atlas LP enable token projects, exchanges, and trading teams to deploy liquidity bots with confidence.

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

How does Atlas LP protect my exchange API keys?

Atlas LP encrypts all API keys and secrets using AES-256-GCM before storage. Secrets are only decrypted by the worker process that interacts with the exchange and are never displayed again after initial entry.

What permissions does Atlas LP require for my exchange account?

Atlas LP only requires read and spot trading permissions. It never asks for withdrawal rights, reducing the risk of unauthorized asset transfers.

How does Atlas LP ensure tenant isolation?

Each user's data, exchange accounts, and bots are strictly isolated. There is no cross-tenant access to API keys, orders, or trading data.

What happens if my API keys are invalid or revoked?

If the exchange rejects your credentials, Atlas LP immediately stops the affected bot and sets its status to error, preventing further actions.

Does Atlas LP support futures or margin trading?

No, Atlas LP supports spot trading only. It does not place market orders, and only uses limit orders for liquidity provision.

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