Skip to main content

How to connect to HTX with API Keys?

Create API keys on HTX, enable trading, whitelist Cryptohopper's IP addresses, and paste the keys into your trading bot to connect.

Written by Pete Darby
Updated yesterday

This article explains how to create API keys on HTX 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 HTX exchange website and log in or create an account.

  2. Click your profile in the upper right corner, then select API Management.

  3. Enter a memorable name for your API key, enable the Trade option, 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. Click Create and check the Risk Reminder checkboxes. Complete the 2FA process.

  5. Copy both the API Key and API Secret shown on HTX. Paste them into the corresponding fields in Cryptohopper and continue creating your trading bot.

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

Unable to see your HTX exchange balance?

If your trading bot does not show your HTX 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 HTX 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?