Key takeaway

Never move an API secret from one exchange to another; create a new least-privilege key on the destination. Start with market-data access, then a trade-only key with withdrawal disabled and an IP allowlist. Test signatures, client order IDs, cancel/reconnect and duplicate-order protection before moving capital or changing production routes.

Next step

Exclusive rebate for eligible usersUp to 50% rebate · final rate depends on the exchange you register with

Switching? Prove the route before moving funds

Compare the new account, test a small deposit and verify the fee tier before migrating your main balance.

Register through CEXAHCheck your fit first

CEXAH may earn an affiliate commission. Eligible user rebates are separate and paid by the exchange under its current regional, account and product terms. A click does not confirm registration or a rebate.

Bottom line: API migration is a software release, not a copy-paste operation. The new exchange has different signing, endpoint names, rate limits and order-state rules. Cut over with separate keys, minimal permissions and a reversible traffic path.

Permission ladder

Stage Permission Purpose
1 Public market data Confirm symbol and response format
2 Read-only private account Confirm balances and positions
3 Trade only, withdrawal disabled Test order lifecycle
4 IP allowlist and subaccount Limit blast radius
5 Production traffic Only after reconciliation and rollback pass

The destination key should be new. Do not email, paste into chat or store an exchange secret in a shared source file. Rotate any key that was exposed, even if the message was later deleted.

Endpoint and state mapping

Build a mapping table for symbol names, precision, side, position mode, order IDs, cancel-all, balance fields and error codes. A simple buy call may hide differences in reduce-only, time-in-force and position-side semantics.

Test client order IDs and idempotency. A timeout is not proof that an order was rejected. Reconciliation should fetch recent open orders and fills before retrying.

Cutover checklist

  1. Keep the old bot running in read-only shadow mode.
  2. Run the new adapter with no live capital.
  3. Submit minimum-size test orders and cancel them.
  4. Compare fills and fees with the old venue.
  5. Move a small amount of capital.
  6. Run both accounts under strict exposure limits.
  7. Route production traffic gradually.
  8. Disable and delete old keys only after the rollback window.

Security incident rule

If a key or secret is exposed, revoke it first, then investigate. Deleting a log entry does not revoke the credential. Review IP allowlists, subaccount permissions and recent orders immediately.

When the adapter is ready, open the relevant exchange profile and register before creating keys. Begin with market data and read-only access; never fund an account just to test a signature.

FAQ

Can I reuse one exchange's API key on another? No. Create a new key at the destination.

Should the bot have withdrawal permission? Normally no. Separate withdrawals from trading automation.

How do I avoid duplicate orders after a timeout? Use documented client order IDs and reconcile before retrying.

Keep a rollback key, old-account access and a tested emergency-stop procedure until the migration is complete.

Sources

Next step

Exclusive rebate for eligible usersUp to 50% rebate · final rate depends on the exchange you register with

Switching? Prove the route before moving funds

Compare the new account, test a small deposit and verify the fee tier before migrating your main balance.

Register through CEXAHCheck your fit first

CEXAH may earn an affiliate commission. Eligible user rebates are separate and paid by the exchange under its current regional, account and product terms. A click does not confirm registration or a rebate.