algoth.ink

Docs — Connect an exchange

Connecting CoinEx to AlgoThink

How to create a trade-only API key on CoinEx and add it to AlgoThink, without ever granting withdrawal permission.

AlgoThink trades on your own CoinEx 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 CoinEx

Open CoinEx's API management page and create a new key. What matters:

  • Enable: Futures/perpetual 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.
  • 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.

CoinEx is AlgoThink's default venue and the one the platform has run longest in production.

2. Copy your credentials

CoinEx 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 two values: an API key and an API secret.

3. Add them to AlgoThink

  1. Open Account in the sidebar.
  2. Go to the API keys & notifications tab.
  3. Find the row labelled coinex API key, paste the key into the field, and press Save.
  4. Do the same for coinex API secret.

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 coinex, then press Switch to LIVE. AlgoThink runs a real authentication check against CoinEx 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 CoinEx. 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 CoinEx directly.
  • You can revoke from either side. Delete the key on CoinEx, or clear it in AlgoThink. Both take effect immediately.

Related

Start on paper — no keys needed until you're ready.

Create free account