Skip to main content

Connect OKX to Sumex

OKX keys come as a set of three: the API key, the secret key and a passphrase you choose yourself. Sumex needs all three. This guide covers creating the key on OKX, the expiry rule that catches many people out, and adding the key in Sumex.

What you get after connecting​

  • Spot and futures trading on your OKX account from the Sumex trading terminal.
  • Balances, orders and positions from OKX in your Sumex portfolio.
  • Trade Mode on the OKX card: OKX and Bybit are the two exchanges where a connected key can be switched into copy-trading signal mode.

Before you start​

  • OKX asks for your 2FA codes when you create a key, so have your authenticator ready.
  • In some regions OKX only lets accounts with more than 100 USD in assets create API keys.
  • Decide which account the key is for. To connect an OKX sub-account, create the key inside that sub-account and use that sub-account's key, secret and passphrase together. Don't mix credentials from the main account and a sub-account.
  • Pick the passphrase before you start and store it somewhere safe. OKX cannot recover it; if you lose it you must create a new key.

Create the API key on OKX​

  1. Log in on okx.com, open your profile menu (top right) and choose API (OKX also labels this area API and connections).
  2. Click Create API key.
  3. Enter a name for the key, for example "Sumex".
  4. Under the purpose / Used for option, choose API trading.
  5. Set the permissions:
    • Read: always on.
    • Trade: tick it if you want to place orders from Sumex. Leave it off for a tracking-only key.
    • Withdraw: leave it off. Sumex never needs it.
  6. Enter your passphrase.
  7. Complete OKX's security verification.
  8. OKX shows the API key and Secret key. Copy both, together with the passphrase you just set.
Withdraw stays off

A key with withdrawal rights shows a Can Transfer warning on its card in Sumex. Delete it on OKX and create a replacement with Read and Trade only.

IP allowlist and key expiry​

OKX lets you bind up to 20 IP addresses to a key. The Sumex connection form doesn't currently publish a server IP to bind, so a Sumex key usually has no IP allowlist.

Know OKX's rule for such keys: a key with Trade permission and no bound IP is deleted automatically after 14 days of inactivity. A key counts as active while it is used to read balances or place orders, which Sumex does while your Bundle is in use. If you stop using Sumex for a while and the key disappears, create a new one and reconnect.

Connect OKX in Sumex​

  1. Open the Exchanges tab of the Connection Manager and click Add Bundle.
  2. Choose OKX.
  3. Under If You Have Account, click Manual API Connect, or use Fast API Connect if it is shown (see below).
  4. On the Add OKX API screen, fill in:
    • Account Name: a label of your choice.
    • API Key
    • Secret Key
    • Pass Phrase: the passphrase you set on OKX, not your OKX login password.
  5. Click Connect.

The OKX card shows the permission level (TRADE or READ) and which markets the key covers (Spot, Futures).

Sumex Add OKX API form with Account Name, API Key, Secret Key and Pass Phrase and the Connect button

Fast API Connect​

If Sumex shows Fast API Connect for OKX, you can let OKX create the key for you: approve Sumex on OKX's page and you are sent back to Sumex, which finishes the connection. OKX allows one fast-connect key per account. If you used fast connect before, Sumex reports "OKX allows one fast-connect key per account"; delete the old Sumex key in OKX's API page and try again.

Troubleshooting​

What you seeWhat to do
"Passphrase is required for this exchange."The Pass Phrase field was empty. OKX keys always need it.
An authentication error from OKX on ConnectUsually a wrong passphrase, or a key and passphrase from different accounts (main vs sub-account). Recheck all three values.
The card shows Invalid KeyThe key was deleted on OKX, often by the 14-day inactivity rule. Click Check (or Reconnect when offered) and connect a new key.
The card shows READ onlyThe key has no Trade permission. Edit it on OKX or create a new one.
The card shows Can TransferWithdraw was enabled. Replace the key.
"Max API connections reached for your subscription"Free up a connection slot by deleting or disabling another exchange connection.

Security notes​

  • Sumex encrypts your secret key and passphrase before storing them, and never asks for your OKX password.
  • Revoke access at any time by deleting the Bundle in Sumex or the key on OKX.
  • A key in signal mode (Trade Mode) can only be used for read-only requests from the terminal; switch Trade Mode off before trading manually with it.