What is an API key (and how to use it safely)
An API key is a pair of codes (the key and the secret) that the exchange generates for you. It lets a program, such as a bot, check balances and place orders on your account without using your login and password. Each key has permissions that you choose.
What an API key is used for
An API is the communication gateway an exchange offers to other programs. Instead of you clicking buy or sell on the screen, software sends the order through that gateway. The API key is the credential that identifies who is asking and what that person or program is allowed to do.
It usually has two parts: the public key (an identifier) and the secret, which is shown only once, when the key is created. Some exchanges also ask for an API password (passphrase).
Common permissions and restrictions
When you create the key, the exchange lets you tick what it is allowed to do. Options vary, but the market standard is this:
- Read: check balance, positions and history.
- Trade: open and close orders, including on futures.
- Withdraw: take funds out of the account. This is the most dangerous permission. See withdrawal permission.
Many exchanges also let you restrict the key to specific IP addresses, so that it only works from servers you have authorized.
Treat the secret like a password. Do not send it by email or chat, do not publish it in screenshots, and revoke the key on the exchange if you suspect a leak.
How to create one safely
The option is usually in the account or security area of the exchange, under API management. First turn on two-factor authentication, which is normally required to create the key.
- Give it a name that reminds you of its use (for example, funding bot).
- Tick read and trade; leave withdrawal unticked.
- If the exchange offers it, restrict the key by IP.
- Store the secret in a safe place and paste it only into the service you chose.
The detailed step-by-step is in how to create an API key without withdrawal permission. To understand address restriction, read IP restriction on the API.
Common mistake
The most frequent mistake is turning on every permission in a hurry. Another is reusing the same key across several services, which makes it harder to find the source of a problem.
In Multi Arbitrage: With Multi Arbitrage you create the API key on the exchange itself, without withdrawal permission. The bot only reads and trades, the keys are stored encrypted and your money stays in your account on the exchange.
Frequently asked questions
Is an API key the same thing as a password?
No. The password gives full access to the login. An API key has limited permissions that you define and can be revoked without changing your account password.
Can someone who has my API key withdraw my money?
Only if the withdrawal permission is on. Without it, whoever has the key generally cannot take funds out, but they can still send orders, which is why the secret must be protected.
What should I do if the key leaks?
Delete or revoke the key immediately in the exchange dashboard and create a new one. Review open orders and positions on the account.
Want a bot to do this math and place the trades for you?
Multi Arbitrage picks the coins, opens both legs at the same time and protects the trade on the exchange. API key with no withdrawal permission.
Create a free accountThis content is for information only and is not investment advice. Trading crypto derivatives involves a high risk, including the total loss of your capital. Past results do not guarantee future results, and the figures mentioned are examples. Before trading, check whether trading crypto derivatives is allowed in your country and what your tax obligations are. Assess whether the product suits your profile before investing.