All exchange guides
OKX guide

How to create a read-only OKX API key

Read-only key with an API key, a secret and a passphrase you choose.

Futures: automatic trade cards every 2 minutes Key permissions checked automatically Needs a passphrase

1Create the key on OKX

Where: On the OKX website: Profile, then API and connections, then Create API key. In the OKX app: Menu, then API, then Create API key.

  1. Sign in to OKX on the web, open your Profile and choose API and connections.
  2. Click Create API key.
  3. Enter a name, then choose the Account (your main account, or the sub-account you trade futures on) and what the key is used for.
  4. Leave the IP address allowlist empty.
  5. Under Permissions choose Read only. Do not tick Trade or Withdraw.
  6. Enter a passphrase of your own and write it down. OKX cannot show it again or recover it.
  7. Complete OKX's security check, then copy the API key and the secret key.

Menu names as of November 2026, per OKX's own guide. If a screen looks different, follow the official guide below.

2Settings to choose

Permissions
Read only. Never tick Trade or Withdraw. The site checks this with OKX and refuses keys that can trade or withdraw.
Passphrase
Required. It is the password you set while creating the key, not your OKX login password. If you lose it, delete the key and create a new one.
IP whitelist
Leave the allowlist empty. Our server shares its address and it can change.
Expiry
OKX deletes keys with Trade or Withdraw permission and no IP allowlist after 14 days of inactivity. A read-only key is not affected by that rule.
Account
OKX's FAQ says your account needs more than 100 USD in assets to create a key. Choose Futures in our form to get automatic trade cards.

3Paste it into ChartsAndSetups.com

  1. Sign in and open Imported Trades, then the Connect exchange form. You need a verified email and an active membership or free trial.
  2. Choose OKX as the Exchange and pick the Market. Choose Futures to get automatic trade cards.
  3. Paste into: API Key, API Secret / Private Key, API Passphrase. Use the Show button to check for stray spaces.
  4. The site asks OKX what the key can do. If OKX does not answer, you are asked to tick "I confirm trading and withdrawals are off on this key".
  5. Click Test & Connect Exchange.

After connecting, new OKX futures positions appear as trade cards within about 2 minutes, and the result is recorded when the exchange closes them. You can add your notes and review to every card.

Create your account

How ChartsAndSetups.com keeps your key safe

  • Your key, secret and passphrase are encrypted when stored. After you connect, only the last four characters of the key are ever shown.
  • ChartsAndSetups.com only reads your account. It never places, changes or cancels an order and never moves funds.
  • OKX, Bitget and KuCoin tell us what a key is allowed to do, so keys that can trade or withdraw are refused.
  • Bitunix, Toobit and Kraken do not report key permissions, so you tick "I confirm trading and withdrawals are off on this key" before connecting.
  • Disconnecting deletes the stored key. You can also delete the key on the exchange at any time.
+
Feed