Many crypto exchanges let customers use an API key: a secret credential that lets software read the account or place orders without logging into the website. People use keys for trading bots, portfolio trackers, tax tools, and personal scripts. The key is powerful in proportion to the permissions you grant it. A key that can only read balances is already sensitive. A key that can withdraw funds is close to a remote control over the account’s assets. This notebook explains how to keep permissions limited and why withdrawal-enabled keys deserve particular caution.
It is educational only. It is not instructions for evading exchange rules. If a key is leaked, losses can be fast and hard to reverse.
What an API key usually is
An API key is typically a public identifier plus a secret, sometimes with a passphrase as well. Software signs requests with the secret so the exchange knows the request came from someone who has that credential. The secret is meant to stay on your side. Anyone who has it, and who can reach the exchange’s API, can do whatever the key is allowed to do, until you revoke it.
The key is not the same as your login password, but it does not need the password if its permissions are wide. Two-factor authentication that protects a website login may not apply to each API request in the same way.
Permission levels
Exchanges differ, but permissions often include:
- Read or query. Balances, order history, and account details.
- Trade. Place, change, or cancel orders.
- Withdraw or transfer. Send assets out of the account to an address or another account.
Some platforms offer finer controls: allowed withdrawal addresses, limits, or a restriction to specific modules. The important habit is to grant only what the tool needs, and nothing more.
Why a withdrawal-enabled key is especially dangerous
A trading permission can lose money by placing bad orders. That is serious. A withdrawal permission can empty the account to an address the attacker controls, often in a short series of requests, at any hour. There is no need for the attacker to out-trade you. They only need the key and a destination.
If the exchange does not restrict withdrawals to a pre-approved address list, or if that list can be changed with the same key, the destination can be the attacker’s. Even with some limits, a determined leak can be costly.
For most personal uses — checking balances, downloading history, even running a simple trading strategy — withdrawal permission is unnecessary. Turning it on “just in case” is a common way people create a risk they never use.
How keys leak
Keys leak in several ordinary ways:
- Pasted into a spreadsheet, email, or chat message.
- Committed to a public or poorly protected code repository.
- Stored in a screenshot or a notes app that syncs.
- Typed into a phishing site that looks like the exchange or a popular trading tool.
- Left in a shared computer’s configuration file or in a cloud folder.
- Logged by a compromised or malicious application you authorized.
A “read-only” key that leaks can still reveal balances, addresses, and trading patterns. A withdrawal-enabled key that leaks can move funds. Attackers also scan public repositories and shared documents for key-shaped strings.
IP allowlists and other constraints
Many exchanges allow you to restrict a key to certain IP addresses, such as a home or a virtual private server you control. If the key is stolen, it may be unusable from the thief’s network, unless they also compromise that server. Allowlists are not perfect — a compromised machine on an allowed IP is still a problem — but they remove the open internet as an attack surface.
Other useful constraints, when the platform offers them, include withdrawal address allowlists, daily limits, and disabling transfer permissions entirely.
Practical habits
1. Create a separate key for each tool, so you can revoke one without tearing down everything. 2. Grant read permission only, unless you truly need trading, and grant withdrawal only in rare, tightly controlled cases, if ever. 3. Prefer official or well-reviewed tools; treat unknown “portfolio” or “yield” apps that ask for keys as high risk. 4. Store secrets in a carefully chosen password manager or an encrypted store, not in email or a plain text file on a desktop. 5. Enable IP restrictions when you can. 6. Review and delete unused keys on a schedule. 7. Never send a key to someone who contacts you offering support.
If you run software on a server, protect that server as if it held account access, because it does.
If you think a key was exposed
Revoke or delete the key on the exchange first, then rotate any related credentials, and review recent withdrawals, transfers, and orders. If funds left the account, contact the exchange through official channels and keep records. Speed matters more than reconstruction of every detail; you can write notes after the key is dead.
Tax and record-keeping tools
Some tax and accounting tools ask for an API key so they can pull trade history. That use case usually needs read access only. If a tool requests withdrawal or even trading permission for the purpose of building a tax report, that is a warning sign. Downloadable account statements are a slower alternative when you do not want to grant any key at all.
Why “limited” is the point of the whole design
API permissions exist so that a piece of software does not need the full power of your account. Using a withdrawal-enabled key for a dashboard throws that design away. The limited key is the one that still lets you run tools if you are careful, without turning a leaked config file into a remote emptying of the account.
Questions from readers
What can a read-only API key do?
It can usually view balances and history. It should not trade or withdraw, but it can still leak private account information if it is stolen.
Why is a withdrawal-enabled key so dangerous?
Anyone who has it may be able to send funds out of the account, often without using your website login.
Do I need withdrawal permission for a portfolio or tax tool?
Usually no. Those tools typically need read access, if they need a key at all.
What should I do if a key may have leaked?
Revoke it immediately on the exchange, then review withdrawals and orders and contact official support if funds moved.
More from the notebook
- A simple personal inventory of wallets and exchanges, for operations and records
- Centralized exchange withdrawal networks: choosing a chain without guessing a price
- How a seed phrase stored in a screenshot or email becomes a single point of failure
- How a carry-trade idea is described — and why it is not a guaranteed income plan
Note: Risk warning: digital assets are volatile and can lose most or all of their value, and smart-contract bugs, scams, and platform failures can cause permanent loss. This article is educational only. It is not investment, tax, or legal advice, a recommendation, or a price prediction. Consider your own circumstances and, where needed, a qualified professional.



