Atlas LP
  1. Home
  2. Blog
  3. A Guide to Managing Exchange API Permissions for Secure Spot Trading

Exchange API

A Guide to Managing Exchange API Permissions for Secure Spot Trading

Learn how to set up and manage exchange API permissions for secure, effective spot trading with automated bots, and why permission control is central to safe market making.

Published

Why API Permissions Matter in Spot Trading Bots

Connecting a trading bot to a centralized exchange account unlocks powerful automation for liquidity provision and market making. However, the security and reliability of this connection depend on how API permissions are configured. Understanding and managing these permissions is essential for protecting your assets and ensuring your bot operates safely within your intended scope.

This guide explains the key principles of API permission management for spot trading, focusing on best practices and the specific requirements for running a market making bot like Atlas LP.


Core API Permissions for Spot Trading Bots

When creating API keys on a centralized exchange, you typically have the option to enable or disable various permissions. For spot market making, the following permissions are relevant:

PermissionRequired for Market Making?Purpose
Read (View) AccessYesAllows the bot to read balances, orders, etc.
Spot TradingYesEnables the bot to place/cancel spot orders.
WithdrawalNoShould NOT be enabled for bots.
Futures/Margin TradingNoNot needed for spot-only bots.

Key Principle: Only grant the minimum permissions needed for your bot's operation. Never enable withdrawal access for automated trading bots.


How Atlas LP Uses API Permissions

Atlas LP is designed for secure, multi-tenant spot market making. It connects to your exchange account using API keys with the following requirements:

  • Read (view) permission: To access balances, open orders, recent trades, and market data.
  • Spot trading permission: To place and cancel limit orders on your behalf.
  • No withdrawal permission: Atlas LP never asks for, or requires, withdrawal rights. This protects your funds from unauthorized transfers.
  • No futures or margin permissions: Atlas LP operates exclusively in spot markets, and does not support futures or margin trading.

All API keys and secrets are encrypted with AES-256-GCM before storage. They are only decrypted by the specific worker process that needs to communicate with the exchange, and are never displayed again after initial input.


Setting Up API Permissions: Step-by-Step

  1. Create a New API Key on Your Exchange

    • Log in to your exchange account (e.g., Binance, DigiFinex, LBank, etc.).
    • Navigate to the API management section.
    • Create a new API key, giving it a clear name (e.g., "Atlas LP Bot").
  2. Assign Only Required Permissions

    • Enable Read (view) access.
    • Enable Spot Trading (sometimes called "Trade" or "Place Orders").
    • Do not enable withdrawal, futures, or margin permissions.
  3. Restrict IP Addresses (If Supported)

    • Some exchanges allow you to whitelist IP addresses for API access. If you use Atlas LP in a dedicated environment, consider restricting access to known IPs for added security.
  4. Store Your API Key and Secret Securely

    • Only enter your API key and secret into trusted software like Atlas LP.
    • Never share your API credentials with untrusted parties.
    • Once entered into Atlas LP, your secrets are encrypted and not displayed again.
  5. Verify and Test

    • Use Atlas LP’s API verification tools to check that the credentials work and permissions are correct. The bot will validate ticker, order book, balances, open orders, and can optionally test order placement and cancellation with a limit order far from the market.
    • If credentials are invalid or permissions are insufficient, Atlas LP will stop the bot and display an error status.

Permission Management Best Practices

  • Principle of Least Privilege: Only grant the permissions absolutely necessary for the bot’s function. This minimizes risk if credentials are ever compromised.
  • Regularly Review API Keys: Periodically audit your exchange account’s API keys. Remove any that are unused or have excessive permissions.
  • Rotate Keys When Needed: If you suspect a key may have been exposed, or as part of routine security hygiene, generate a new key and update your bot’s configuration.
  • Monitor Bot Activity: Use Atlas LP’s console to track open orders, recent fills, and account balances. Set up Telegram alerts to be notified if your bot has no fills for a chosen period.

What Happens If Permissions Are Incorrect?

If your API key is missing required permissions, Atlas LP’s verification process will detect this and prevent the bot from running. For example:

  • Missing Read Permission: The bot cannot access balances or order status, and will fail to start.
  • Missing Spot Trading Permission: The bot cannot place or cancel orders, and will not operate.
  • Withdrawal Permission Enabled: While Atlas LP will not use this permission, it is a security risk and should be avoided.

Genuine Market Making and Compliance

Genuine market making means placing resting limit orders that any participant can trade against. It is essential to avoid any practices that could be considered wash trading, self-trading, or volume manipulation. Atlas LP is designed to support compliant, transparent liquidity provision using only limit orders in spot markets.


Supported Exchanges

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

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

For an up-to-date list, see /supported-exchanges.


Summary Table: API Permissions for Atlas LP

PermissionShould Be Enabled?
ReadYes
Spot TradingYes
WithdrawalNo
Futures/MarginNo

Additional Resources


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 permissions should I enable for my exchange API key when using Atlas LP?

Enable only 'Read' and 'Spot Trading' permissions. Do not enable withdrawal, futures, or margin permissions.

How does Atlas LP protect my API keys and secrets?

Atlas LP encrypts all API keys and secrets with AES-256-GCM before storage. Secrets are only decrypted by the worker that connects to the exchange and are never displayed again.

What happens if I enable withdrawal permission by mistake?

While Atlas LP will not use withdrawal permission, enabling it is a security risk. Always disable withdrawal rights for any bot-connected API key.

Why are futures and margin permissions not needed?

Atlas LP operates only in spot markets and never interacts with futures or margin products. Only spot trading permissions are required.

How can I verify my API key permissions are set correctly?

Use Atlas LP's built-in API verification, which checks permissions and can test order placement and cancellation. If permissions are insufficient, the bot will not start.

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