April 26, 2026 · 6 min read · By Stefano, Founder

Non-Custodial Trading: Why Your API Keys Should Never Leave Your Exchange

In 2024 alone, over $1.8 billion was lost in crypto exchange hacks and platform collapses. FTX taught the world an expensive lesson: if you do not hold your keys, you do not hold your coins. But when it comes to trading bots, most people do not think about custody at all. They hand over API keys, deposit funds into bot platforms, and hope for the best.

This article explains the critical difference between custodial and non-custodial trading platforms, how API keys actually work, and what security standards you should demand from any trading bot you use.

Custodial vs. Non-Custodial: What Is the Difference?

Custodial Platforms

A custodial trading bot requires you to deposit your cryptocurrency into the bot platform's wallets. The platform holds your funds and trades on your behalf from their own accounts.

The risks are enormous:

Non-Custodial Platforms

A non-custodial trading bot never touches your funds. Your money stays on your exchange (Bybit, Binance, OKX, etc.) at all times. The bot connects to your exchange account via API keys that have trading permissions only — no withdrawal permissions.

The advantages:

The golden rule of crypto trading bots: if a platform asks you to deposit funds into their wallets, walk away. There is no legitimate reason a trading bot needs custody of your money.

How API Keys Actually Work

API keys are the mechanism that makes non-custodial trading possible. Here is how they work:

  1. You create an API key on your exchange (e.g., Bybit). During creation, you specify permissions: "read" (view balances and positions), "trade" (place and cancel orders), and "withdraw" (send funds off the exchange).
  2. You disable withdrawal permission. This is critical. With only read and trade permissions, the API key can place orders but cannot move funds off the exchange.
  3. You provide the API key and secret to the bot platform. The bot uses these credentials to authenticate with the exchange's API and execute trades on your behalf.
  4. Every API call is signed with HMAC-SHA256, proving the request came from someone who holds the secret key. The exchange verifies the signature before executing any action.

Most exchanges also support IP whitelisting. You can restrict the API key to only work from specific IP addresses. Even if someone steals your API key, they cannot use it from a different server.

AES-256 Encryption: How Your Keys Should Be Stored

When you give your API keys to a trading bot platform, those keys need to be stored somewhere. How they are stored makes all the difference.

What Bad Platforms Do

What Good Platforms Do

DeepAlpha encrypts every API key with AES-256-CBC before storing it in the database. The encryption key is derived from a per-user salt and a server-side master secret that is never stored alongside the data. Even our own team cannot read your API keys in plain text.

Security Checklist: What to Look For

Before trusting any trading bot with your API keys, verify the following:

  1. Non-custodial architecture. The platform should explicitly state that funds remain on your exchange.
  2. No withdrawal permission required. If a bot asks for withdrawal-enabled API keys, it is a red flag.
  3. AES-256 encryption for key storage. Ask how keys are stored. If they cannot answer clearly, move on.
  4. TLS/HTTPS everywhere. Check that the dashboard uses HTTPS with a valid certificate.
  5. IP whitelisting support. The platform should tell you which IP addresses to whitelist on your exchange.
  6. Two-factor authentication. The platform itself should support 2FA for login.
  7. Transparent trade history. You should be able to verify every trade on your exchange's own interface.
  8. API key revocation. You should be able to instantly revoke access by deleting the key on your exchange.

Why DeepAlpha Is Non-Custodial

We built DeepAlpha as a non-custodial platform from day one because there is no ethical alternative. Taking custody of user funds introduces risk that cannot be justified. Our platform:

Your money stays where it belongs: on the exchange you chose, under your control, with your withdrawal passwords and 2FA protecting it. We just place the trades.

Trade Securely with DeepAlpha

Non-custodial. AES-256 encrypted. No withdrawal permissions. Your funds never leave your exchange. Start a free 7-day trial.

Start Free Trial

← Back to Blog