How to connect OKX to Winrate

Create an OKX API key for Winrate: where to find API, which permissions to choose, the passphrase, IP allowlist and common errors.

Restrict your API key to the Winrate IP

45.159.172.223

OKX connects with an API key. OKX keys have three parts: an API key, a Secret key and a Passphrase you make up yourself. Winrate needs all three.

Winrate shows the spot coins in your OKX Trading account. Futures positions and your Funding account are not counted.

Before you start

  • We suggest the OKX website on a computer. It is easier to copy the key from there. (OKX also lets you create keys in its app: Menu → API.)
  • Turn on 2FA on OKX.

Create the key

Menu names on OKX can change. If your screen looks different, pick the closest option.

  1. Log in to OKX and go to Profile → API and connections (it may also show as API).
  2. Click Create API key.
  3. Enter a name, for example "Winrate".
  4. Account: leave Main account, or pick the subaccount you want to connect.
  5. Used for: choose the API trading option.
  6. IP address allowlist: enable IP restriction (trusted IPs) for the key and add the Winrate IP: 45.159.172.223.
    • This is optional on OKX, but keys with Trade or Withdraw permission and no linked IP expire after 14 days of inactivity.
  7. Permissions:
    • Read to track your balance.
    • Trade too, if you want to buy and sell from Winrate. Trading in Winrate needs Premium.
    • Keep Withdraw off.
  8. Passphrase: make up a passphrase and save it somewhere safe. OKX can't show it again or recover it.
  9. Confirm with your 2FA codes.
  10. Copy the API key and Secret key.

Good to know: OKX deactivates keys that have Trade or Withdraw permission, have no IP address linked, and are not used for 14 days. Add the Winrate IP 45.159.172.223 to avoid this.

Add the key to Winrate

On the web

  1. Sign in at winrate.tech. In the sidebar, open Connections. You see Exchange connections.
  2. Click Add. The New exchange connection form opens.
  3. Under Choose an exchange, pick OKX.
  4. Under Connection details, fill in Connection name, API key, Secret key and Passphrase. The connection name is just for you, for example "OKX main".
  5. Click Add connection. Your balance appears within a few minutes.

In the iPhone app

  1. Open the Trade tab and tap Connect an exchange. If you already have a connection, open the exchange menu and tap Add connection.
  2. On Select exchange, pick OKX.
  3. On Connect exchange, fill in Connection name, API key, Secret and Passphrase.
  4. Tap Connect.

Your first connection is free. A second connection needs Winrate Premium. Buying and selling from Winrate also needs Premium.

Common errors

Many fixes below need a new key. Winrate can't swap the key on a connection: delete the old connection on the web (on its page) and add a new one. This removes that connection's order history, balances and charts. See Replace or rotate a key.

What you seeWhat to do
"Invalid API key or secret" or passphrase errorCheck all three parts. The passphrase is the one you made up for this key, not your OKX password.
Forgot the passphraseOKX can't recover it. Delete the key, create a new one and add it to Winrate.
Key stopped workingA trading key without an IP allowlist expires after 14 days without use. Create a new key and add the Winrate IP 45.159.172.223.
Connection fails after adding an allowlistCheck the allowlist on OKX for typos or missing addresses.
Wrong balanceCheck the key was created for the right account (main or subaccount). Coins in your OKX Funding account are not counted; move them to your Trading account.

FAQ

Why does Winrate ask for a passphrase for OKX?

OKX keys have three parts. The passphrase is a password you set when creating the key. Winrate needs it to read your account.

Which OKX permissions does Winrate need?

Read to track your balance. Trade if you want to buy and sell from Winrate. Never Withdraw.

Can I create the key in the OKX app?

Yes, OKX allows it (Menu → API). The website is easier for copying the key and secret.

Can I connect an OKX subaccount?

Yes. Pick the subaccount in the Account field when you create the key.

I forgot my OKX passphrase. What now?

OKX can't show or recover it. Delete the key, create a new one and connect it again in Winrate.

Still need a hand?

Email us what happened and where you saw it. Never send your password, API secret, passphrase, recovery phrase or full card number.

Email support

winrate.help@outlook.com