How to Connect Your Exchange With API Keys Without Withdrawal Permission

NivelixPro ยท

How to Connect Your Exchange With API Keys Without Withdrawal Permission

For a bot to trade on your exchange, it needs a way to communicate with it. That way is API keys. Understanding what they are and which permissions to grant them is probably the most important security decision you will make when automating a strategy.

This guide explains what an API key is, which permissions to enable, which never to enable and which habits reduce risk. Never share your keys with anyone other than the tool you have decided to use, whether in a comment, an email or a screenshot.

A warning first: no measure removes risk entirely. What we do here is reduce it and limit what could go wrong.

What Is an API Key?

An API key is a pair of credentials generated by your exchange that lets an external program perform actions on your account without you having to enter your username and password. It normally has two parts, or three on some exchanges:

What matters is that each key is created with specific permissions that you choose. The program using it can only do what those permissions allow. That is why permission settings are the core of the connection's security.

The Permissions, One by One

Each exchange names and groups permissions in its own way, and the menus change over time, so check your exchange's documentation. Conceptually, these types usually exist:

Read

Allows you to query account information: balances, orders, history. The bot needs it to know what you hold and what it has executed. It does not allow moving or trading anything.

Trading

Allows creating and cancelling buy and sell orders. It is the permission that lets a strategy bot work. Although it is necessary, keep its scope in mind: it can be used to execute trades on your account, so a configuration mistake has real consequences.

Withdrawal

Allows sending funds out of the exchange, for example to an external address. This is the permission you should never enable for a trading bot. A bot that buys and sells does not need to take funds out of the exchange. If a key with this permission were leaked, someone could drain the account. Without it, the potential damage is limited to trades inside the account.

Other Permissions (Transfers, Margin, Futures, etc.)

Some exchanges offer additional permissions, such as internal transfers, margin trading or derivatives. Apply the principle of least privilege: enable only what your strategy really needs. A spot strategy, like NivelixPro's DCA and Grid bots, needs none of them, and NivelixPro rejects keys that have them when the exchange lets it check.

Permissions at a Glance

Permission Does a spot bot need it? Safest setting
Read Yes Enable
Trading Yes Enable
Withdrawal No Never enable
Other (margin, derivatives, transfers) No, for spot strategies Do not enable

How It Works in NivelixPro

In NivelixPro you connect your own exchange with your own API keys, with read and spot trading permissions and never withdrawal. NivelixPro only accepts keys with read and spot trading: on the exchanges where the platform can read a key's permissions (Binance, Bybit, OKX, Bitget, Coinbase and Bitfinex, 6 of the 9 supported), it rejects keys that have withdrawal, transfers, margin or derivatives. On KuCoin, MEXC and Kraken it cannot check, so on those, and in general, always create the key yourself without withdrawal permission and review its permissions before connecting it. NivelixPro is automation software: it does not hold your funds, which stay in your exchange account. We are not an exchange, a broker or a portfolio manager.

Control stays with you. You can revoke the key at any time from your exchange and the bot will no longer be able to trade, without depending on anyone else. Orders already placed on the exchange remain active until you cancel them there. In addition, the availability of each exchange depends on your country: do not create keys or new bots on one that cannot serve you.

Best Practices When Creating and Using an API Key

These good practices are general and apply to any tool you connect to your exchange:

  1. Create a dedicated key for each tool. Do not reuse the same key across several services. If you ever need to revoke one, the others will not be affected.
  2. Do not enable withdrawal permission. If your exchange offers it as a default option, explicitly untick it.
  3. Restrict by IP if your exchange allows it and the tool supports it. In NivelixPro, the connection screen shows the IP address you must authorize on your exchange; with other tools, check their documentation and do not improvise.
  4. Store the secret key in a password manager.
  5. Enable two-factor authentication on your exchange account. A key's security does not count for much if someone gets into your main account.
  6. Do not share keys by chat, email or screenshot. No legitimate party will ask you for them that way.
  7. Use an account or subaccount holding only the capital you need, if your exchange allows it. Reducing the amount exposed limits the potential damage in any incident.
  8. Revoke the key immediately if you suspect it has been compromised. Do not wait to confirm: creating a new one is quick.

Red Flags

Be wary if you run into any of these situations:

Risks That Remain Even Without Withdrawal Permission

Removing withdrawal permission is necessary, but it does not solve everything. With trading permission, a compromised key or a badly configured bot could execute unwanted trades on your account. And the market itself carries risk: a correctly connected strategy can lose money. Connection security protects against one category of problems, not against losses from trading.

That is why we insist on an order of work: first learn, then explore the demo and simulation, and only then, if you decide to subscribe to a plan, connect your exchange and automate with capital you can afford to lose.

Frequently Asked Questions

Why doesn't a trading bot need withdrawal permission?

Because its job is to buy and sell inside your account, not to take funds out of it. Withdrawing is a different operation and only you should be able to do it. Without that permission, even if the key leaked, it could not be used to send funds to an external address.

Can I revoke the key whenever I want?

Yes. Keys are managed from your exchange. If you delete or disable them, the tool can no longer trade with them.

Is not granting withdrawal permission enough to be protected?

Not entirely. It significantly reduces risk, but does not remove it. It should be combined with two-factor authentication, dedicated keys per tool, IP restriction where possible and limited capital in the account you connect.

What should I do if I think my key has been exposed?

Revoke it from your exchange immediately, review the account's recent activity and create a new one only once you have confirmed your main access is still protected.

Keep reading

If you want to go deeper, these NivelixPro guides complement this article:

Next Step

If you want to get to know NivelixPro before connecting anything, create your free account (no card required) and start the free 30-day demo, with example bots and a step-by-step guide. The figures you will see in the demo are fictitious and do not represent real or expected results. In the demo you do not connect your exchange: that step comes after you subscribe to a plan. Once subscribed you can also use Simulation mode, in Grid bots and in DCA plans, with live prices and no orders sent to the exchange. When you move to real mode, use a read and spot trading key that you created yourself, without withdrawal permission, and follow the best practices in this guide.


Risk warning: Cryptocurrency trading carries substantial risk and may result in the total loss of the capital invested. Past performance does not guarantee future results. NivelixPro is automation software: it does not hold funds or provide investment advice.

Read on NivelixPro