Docs — Connect an exchange
Connecting KuCoin to AlgoThink
How to create a trade-only API key on KuCoin and add it to AlgoThink, without ever granting withdrawal permission.
AlgoThink trades on your own KuCoin account through an API key you create yourself. It never holds your funds, and the key you give it is deliberately powerless to move money: you grant trading permission and leave withdrawals switched off, so the worst case is an unwanted trade, not a drained wallet.
Never enable withdrawal permission. AlgoThink does not have a withdrawal feature and never calls a withdrawal endpoint. Any tool asking for withdrawal rights on a trading key is asking for more than it needs.
1. Create the API key on KuCoin
Open KuCoin's API management page (their own walkthrough is here) and create a new key. What matters:
- Enable: Futures trading permission. AlgoThink also reads your balance and your account's fee tier, so plain read access needs to be on too — that's usually granted automatically alongside trading.
- Leave off: withdrawals, transfers, and anything touching account management.
- Passphrase: KuCoin asks you to choose one when creating the key. Write it down — it's a third credential AlgoThink needs, and it can't be looked up later.
- IP restriction is optional. AlgoThink doesn't publish a fixed egress IP, so if you restrict by IP you may have to update it later; leaving it unrestricted is the simpler path.
KuCoin runs futures on a separate API surface from spot, so the key you create must have Futures permission — a spot-only key will authenticate successfully but won't be able to place a single trade.
2. Copy your credentials
KuCoin shows the API secret exactly once, at creation time. Copy it before you close the dialog. If you lose it, you can't recover it — delete the key and create a new one.
You'll end up with three values: an API key, an API secret, and the passphrase you chose.
3. Add them to AlgoThink
- Open Account in the sidebar.
- Go to the API keys & notifications tab.
- Find the row labelled
kucoin API key, paste the key into the field, and press Save. - Do the same for
kucoin API secretandkucoin API passphrase.
Saved values are never shown back to you — the row displays only the last four characters as a hint, so you can tell at a glance that something is stored without exposing it. Keys are encrypted before they reach the database and are only decrypted to make the specific call you authorized.
4. Switch to live mode
On the Account page's General tab, set Trade on to kucoin, then press Switch to LIVE. AlgoThink runs a real authentication check against KuCoin at this point — if the key is wrong or lacks trading permission, the switch is refused with the error the exchange returned.
Two things must already be true: 2FA is enrolled on your AlgoThink account, and you have no open positions.
What to expect after switching
- Live mode alone doesn't send orders. There's a second switch — Arm live trading on the Dashboard. Until you arm it, live mode is a dry run: intended orders are logged and alerted, nothing reaches KuCoin. See how arming works.
- Arming re-checks your fees. AlgoThink compares your account's real taker fee against the cost assumption its validation used, and refuses to arm if your costs are higher.
- Removing a key disarms you. Clearing a saved key immediately disarms live trading. If you had open live positions, they stop being monitored for stop-loss and take-profit — you'd need to manage them on KuCoin directly.
- You can revoke from either side. Delete the key on KuCoin, or clear it in AlgoThink. Both take effect immediately.