What is an API key, and how to connect your exchange to Kwant safely
Updated 2026-10-23
TL;DR: An API key lets Kwant read your exchange account without your password. You make it on the exchange, paste it into Kwant, and you can delete it any time. The one safety rule: never give the key permission to withdraw.
To show your real balances and trades, Kwant needs a way to read your exchange account. It never asks for your exchange password. Instead, you create an API key on the exchange and choose exactly what it is allowed to do.
What an API key is
An API is the door an exchange opens for apps. An API key is a key to that door, made only for one app: a password that lets an app read your account, without being able to log in as you. It cannot change your password, your email or your security settings.
When you create one, the exchange usually gives you two or three things:
- API key: the public part, like a username.
- Secret (or secret key): the private part, like a password. Most exchanges show it only once, so copy it right away. If you lose it, delete the key and make a new one.
- Passphrase: a password you choose yourself when you create the key. Only some exchanges ask for it (Bitget, BloFin and WEEX). Write it down: Kwant needs it too.
On-chain exchanges and prop firms work a little differently (a wallet address, an API wallet or a token instead), and their own tutorials explain it.
What you allow it to do
When you create the key, you tick its permissions:
- Read (read-only): Kwant can see your balances, positions, open orders and past trades. It cannot place any order. This is all you need to start.
- Trade: Kwant can also send orders. Even then, trading stays off in Kwant until you turn it on for that connection, and every order waits for you to tap Confirm. You can turn it off any time.
- Withdraw: never. A key that can withdraw could move your money out of the exchange. Kwant has no use for it and refuses any key that can withdraw whenever the exchange tells it so. If you tick it by mistake, Kwant tells you and does not keep the key: make a new one with withdrawals off. Some exchanges (MEXC, BloFin, Bitunix and WEEX) do not tell apps whether a key can withdraw, so Kwant shows "Withdrawals unknown" there and it is up to you to leave withdrawals off.
Why no IP restriction
Many exchanges offer to lock a key to an IP address (the address of the computer that uses the key), sometimes called an IP whitelist. Kwant's servers have no fixed IP address, so a key locked to one would stop working. Leave the IP list empty, or choose the option with no IP restriction.
On some exchanges, a key without an IP restriction then expires after a while. For example:
- Bybit: after 90 days. You can renew the same key by editing it and confirming No IP restriction again.
- MEXC: after 90 days, renewable in its last 5 days.
- BloFin: after 90 days; make a new one then.
- LBank: after 30 days; make a new one then.
On Binance, a key without an IP restriction is read-only unless it is a self-generated key. The Binance tutorial shows both paths.
What Kwant does with it
- Shows your balances, positions and open orders in Portfolio.
- Builds an automatic trade journal from your trades.
- Sizes trades from your real balance.
- With a trading key and trading turned on: prepares orders that you confirm before they are sent.
- It never withdraws.
Your key is encrypted when stored, only used from Kwant's servers, never shown again after you save it, and never sent to the AI.
Where to paste it in Kwant
- On the website, click your profile picture (top right).
- Open Exchanges.
- Pick your exchange.
- Paste the fields it asks for (API key, secret, and passphrase if your exchange has one).
- Click Connect.
Kwant checks the key with the exchange and shows what it can do: read, or read and trade. In the iPhone app, the same page is in Settings → Exchanges. If you are new, you also see this step during sign-up.
How to remove access
You can do one or both, at any time:
- On the exchange: open its API management page and delete the key. From that moment, the key no longer works anywhere. This is the surest way to cut access.
- In Kwant: open Exchanges, pick the connection and choose Remove. This deletes the key, that account's journal and its order history from Kwant. Nothing changes on the exchange.
Step-by-step tutorials for each exchange
- Binance
- Bybit
- Bitget
- MEXC
- BloFin
- Bitunix
- WEEX
- LBank
- Hyperliquid (on-chain)
- Lighter (on-chain)
- Propr (prop firm)
No exchange account yet? Start with how to buy your first crypto.
Questions
Is it safe?
A read-only key can look at your account but cannot place orders or move money. Kwant refuses keys that can withdraw (where the exchange says so), stores keys encrypted, and you can delete the key on the exchange whenever you want.
Can Kwant withdraw my money?
No. Kwant never withdraws, and it refuses any key the exchange reports as able to withdraw. On MEXC, BloFin, Bitunix and WEEX, which do not report it, leaving withdrawals off is up to you.
Can Kwant trade without asking me?
No. It needs a key with trading permission, trading turned on for that connection in Kwant, and your tap on Confirm for each order.
My key stopped working. Why?
The most common reasons: the key expired (some exchanges expire keys without an IP restriction, for example after 90 days on Bybit, MEXC and BloFin, or 30 days on LBank), it was deleted on the exchange, or its permissions changed. Make a new key, or renew it where the exchange allows, and paste it into Kwant again.
How do I disconnect?
Delete the key on the exchange, and remove the connection in Kwant under Exchanges. Deleting it on the exchange is what cuts access for good.