Skip to main content

How to connect to OKX with API Keys?

Create API keys on OKX, add Trade permission, set a passphrase, whitelist Cryptohopper's IP addresses, and select your OKX region (EU, Worldwide, or US) to connect.

Written by Pete Darby
Updated over a week ago

This article explains how to create API keys on OKX and connect your exchange account to Cryptohopper so your trading bot can start trading.

Tip: Want a quicker way to connect? Use Fast Connect instead — no API keys needed.

To get subtitles in your language on YouTube, click the Settings button on YouTube.

Steps

  1. Go to the OKX exchange website and log in or create an account.

  2. Click your profile in the upper right corner, select API, then click Create APIs.

  3. Enter a memorable name for your API key. Select the account you want to trade with and whitelist the IP addresses shown in your Cryptohopper account. You can find these IP addresses in your Base config under the Exchange section.

  4. Add the Trade permission, set your passphrase, and click Submit All. Enter your 2FA details and click Confirm.

  5. Click Show Info and copy the API keys and passphrase into the corresponding fields in Cryptohopper. Select your OKX region: EU (my.okx.com), Worldwide (okx.com), or US (app.okx.com), depending on the URL where you created your API keys. Continue creating your trading bot.

Your OKX exchange is now connected. The bot will start running on your next trading cycle.

Unable to see your OKX exchange balance?

If your trading bot does not show your OKX balance, browser auto-fill may be interfering with the API connection. Try disabling auto-fill, using incognito mode, switching to a different browser, or disabling your password manager. See our troubleshooting article for more details.

You may also see an error during onboarding even when your API keys are correct. Common causes include having no funds in your OKX exchange account, having funds in your funding account instead of your trading account, or not having completed KYC verification. If this happens, click Continue without testing. You can verify your API keys later in your Base config.

Related articles

Did this answer your question?