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.
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.
- Sign in to OKX on the web, open your Profile and choose API and connections.
- Click Create API key.
- 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.
- Leave the IP address allowlist empty.
- Under Permissions choose Read only. Do not tick Trade or Withdraw.
- Enter a passphrase of your own and write it down. OKX cannot show it again or recover it.
- 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
- Sign in and open Imported Trades, then the Connect exchange form. You need a verified email and an active membership or free trial.
- Choose OKX as the Exchange and pick the Market. Choose Futures to get automatic trade cards.
- Paste into: API Key, API Secret / Private Key, API Passphrase. Use the Show button to check for stray spaces.
- 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".
- 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 accountHow 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.