Connect your OKX account to OrderTrade AI
OrderTrade AI connects to the OKX account you already have, using an API key you create yourself. You review graded AI signals for crypto, then place trades yourself or let the platform place approved trades within the risk limits you set. Your funds stay on OKX.
What the OKX connection does
- Reads your account balance and sizes each trade against it.
- Places crypto orders on your own OKX account.
- Watches open positions with stop-loss, take-profit and trailing-exit protection.
- Never needs permission to withdraw. Do not enable it.
What you need from OKX
An OKX API key has three parts: the API key, the secret key and a passphrase that you choose when you create it. You enter all three in OrderTrade AI.
Create your OKX API key
- Log in to OKX on the web and open API from your profile menu.
- Click Create API key.
- Enter a name, such as OrderTrade AI, and choose the account the key belongs to. A sub-account is a good way to limit what the key can reach.
- Choose an API trading purpose.
- Tick Read and Trade. Leave Withdraw unticked.
- Set a passphrase and write it down. OKX will not show it again.
- Optional: add the OrderTrade AI server IP address shown in the app to the IP allowlist. OKX accepts up to 20 addresses per key.
- Finish the security check, then copy the API key, secret key and passphrase straight away. The secret is not shown again.
Live and demo keys are separate
OKX has a Demo Trading mode with its own API keys, created under Trade, Demo Trading, then Demo Trading API. A demo key does not work on your live account, and a live key does not work in demo. Use the key type that matches the account you want to connect.
Connect it in OrderTrade AI
- Create your OrderTrade AI account and verify your email. The 30-day free trial starts with no card needed.
- Open your dashboard and choose OKX as your crypto exchange.
- Paste your API key, secret key and passphrase.
- Preview signals first. Turn on live trading only when you are ready.
Your API keys are encrypted at rest and only decrypted at the moment a request is made on your own account.
Which plan do I need?
OKX trades crypto, so choose Crypto, Crypto + Stocks, or All markets. The free trial includes everything. See the pricing section for current prices.
Protection on every trade
- Each trade gets a stop-loss and take-profit based on the instrument's real price range.
- Stops move to break-even and then follow the price up as a trade gains.
- New entries pause after a run of stop-outs, and trading stops for the day at a 2% daily loss.
- You can pause trading at any time. A paused account opens nothing new but keeps protecting open positions.
For the full explanation of pauses, exits and limits, read the risk management guide.
Why a signal may not trade
A trade is placed only if it passes your limits. Common reasons for a skip are a trade size below the exchange minimum, a position cap for that asset class, or a daily or safety limit. The reason is shown next to each skipped signal in Preview.
Frequently asked questions
Does OrderTrade AI hold my money?
No. Every trade is placed directly on your own OKX account. OrderTrade AI is a signal and execution layer, not a custodian.
Should I turn on withdrawal permission?
No. OrderTrade AI only needs Read and Trade. A key without withdrawal permission cannot move coins out of your account.
I get an IP error from OKX. What now?
If you added an IP allowlist, the key only works from those addresses. Check that the OrderTrade AI server IP from the app is on the list, or remove the restriction.
I forgot my passphrase.
OKX cannot show it again. Create a new API key with a new passphrase and update it in OrderTrade AI.