Connect the OKX API to a trading bot: set up a V5 key safely — Illustrative trading workspace, not a product or performance screenshot

AIMarkt · knowledge & practice

Connect the OKX API to a trading bot: set up a V5 key safely

How to create a OKX API key for a trading bot: read and trade only, withdrawals off, IP whitelist on and a secure handover.

Illustrative trading workspace, not a product or performance screenshot

Where do you create a OKX API key?

Log in to OKX, open your profile and choose API. Click ‘Create V5 API key’, choose a name and your own passphrase. Menu names can change; always follow OKX's current help page. Create a separate key per bot or service so you can revoke one connection without affecting others.

Which permissions should a trading bot get on OKX?

Select ‘Read’ and ‘Trade’. Leave ‘Withdraw’ off. Store the passphrase separately: key, secret and passphrase are all required. Never enable withdrawals: a bot does not need them to place orders. Your balance stays on your own OKX account and software cannot send it elsewhere.

IP whitelist, storage and revocation

OKX allows an IP whitelist; trading keys without an IP may expire after a period of inactivity. Share the secret only through the agreed encrypted channel, never in a public chat or screenshot. If in doubt, delete the key and create a new one; the bot stops trading immediately.

Connecting an AIMarkt robot

After payment and approval you hand over the key following the onboarding instructions. AIMarkt first checks that balances and markets are readable and that a small order appears correctly. Nova scans one market, Orion three, Titan five, Apex ten and Sovereign unlimited; the connection itself is identical.

Checks before proceeding

  1. Withdrawals are disabled.
  2. An IP whitelist is set where the exchange allows it.
  3. You know how to revoke the key.
  4. Two-factor authentication is on.

Worked example

You connect a OKX account holding 1,000 USDT. A 10 USDT test order appears in your order history. That proves a working connection, not that the strategy is profitable.

OKX trading bot

OKX trading bot: an AI bot for your own OKX account

Sources and limitations

These articles use AIMarkt package terms and general execution explanations. Examples are illustrative, not customer results. No independent performance report or proof of every platform feature is published here. Consult official platform documentation and the FCA for UK rules. Translation does not establish permission to provide services in the UK.

OKX Help · API

Continue reading