HTX Exchange Setup
Connect your HTX account to SignalBee in minutes. This guide walks you through creating and configuring API keys with the exact permissions needed for automated trading.
Prerequisites
Before you begin, make sure you have:
- Verified HTX account - Identity verification (KYC) completed
- 2FA enabled on HTX - Required for API key creation
- SignalBee account - Ready to connect an exchange
- Password manager - For storing your API credentials securely
Security Note: HTX requires 2FA (two-factor authentication) to create API keys. If you haven't enabled 2FA yet, go to Security Settings in your HTX account.
About HTX
HTX is one of the oldest and most established cryptocurrency exchanges, founded in 2013. Key highlights:
- Rebranded from Huobi - Formerly known as Huobi Global (see important note below)
- Founded in 2013 - One of the longest-running exchanges
- Global reach - High liquidity across major trading pairs
- Standard API authentication - Uses HMAC-SHA256 signing
- HT token discounts - Holding HT tokens reduces trading fees
Important: HTX Name Change
⚠️ HTX was formerly known as Huobi Global
In September 2023, Huobi Global rebranded to HTX. Important details:
Aspect Status Exchange website Now htx.com API domain Still uses api.huobi.proOld documentation May reference "Huobi" Your account Same account, same credentials Trading history All preserved If you see references to "Huobi" in API responses or older documentation, it's the same platform. The API domain (
api.huobi.pro) continues to work and is the official endpoint.
Creating Your API Key
Follow these steps to create an API key on HTX:
Step 1: Log In to HTX
- Go to www.htx.com
- Log in with your email and password
- Complete 2FA verification if prompted
Step 2: Navigate to API Management
- Click your profile icon in the top-right corner
- Select Account from the dropdown menu
- Click API Management in the left sidebar
- You'll see a list of your existing API keys (if any)
Step 3: Create a New API Key
- Click the Create API Key button
- You'll be presented with the API configuration screen
Step 4: Enter a Note
- Enter a descriptive note:
SignalBee Trading - A clear label helps you identify this key's purpose later
Tip: Use specific labels like "SignalBee-Spot" or "SignalBee-Main" if you plan to create multiple keys for different purposes.
Step 5: Configure Permissions
- Check the permission boxes as described in the Configuring Permissions section below
- Enable Read and Trade permissions
- Never enable the Withdrawal permission
Step 6: Complete Security Verification
- Enter your 2FA code from your authenticator app
- Verify via email if prompted
- Click Confirm to create your key
- Wait for the system to generate your credentials
Step 7: Copy Your Keys IMMEDIATELY
After creation, your credentials will be displayed:
- Access Key (API Key) - Can be viewed later in your API Management page
- Secret Key - ⚠️ Shown only ONCE - Copy it immediately!
| Key | Can View Later? | Action Required |
|---|---|---|
| Access Key | ✅ Yes | Copy and save |
| Secret Key | ❌ NO - Never shown again | Copy immediately! |
Warning: If you navigate away without copying your Secret Key, you'll need to delete this API key and create a new one. There is no way to recover a Secret Key.
Save both keys in your password manager now before proceeding.
Configuring Permissions
HTX has a straightforward permission system. This is critical for security.
Required Permissions
| Permission | Enable? | Why |
|---|---|---|
| Read | ✅ Yes | Allows SignalBee to check your balances and account info |
| Trade | ✅ Yes | Allows SignalBee to place and manage spot orders |
Never Enable These Permissions
| Permission | Enable? | Why |
|---|---|---|
| Withdraw | ❌ NEVER | SignalBee never needs withdrawal access. Enabling this is a serious security risk. |
Security Note: Even if your API key is somehow compromised, funds cannot be withdrawn without withdrawal permission enabled. This is your most important security protection.
IP Binding Configuration
IP binding restricts your API key to only work from specific IP addresses. HTX calls this feature "IP Binding" (sometimes called IP whitelisting on other exchanges).
Why Use IP Binding?
| Scenario | Without IP Binding | With IP Binding |
|---|---|---|
| SignalBee places trade | ✅ Works | ✅ Works |
| Attacker tries stolen key | ⚠️ Could work | ❌ Blocked |
Even if your API key is somehow exposed, it won't work from unauthorized IP addresses.
SignalBee Server IP Addresses
Note: Contact support@signalbee.trade to request SignalBee's current production IP addresses for binding. We maintain static IPs specifically for exchange API calls and will notify you before any infrastructure changes.
How to Configure IP Binding
- In API Management, find your SignalBee API key
- Click Edit next to the key
- Enable Bind IP address
- Enter each SignalBee IP address provided by support
- Click Save
- Complete security verification if prompted
If You Skip IP Binding
If you choose not to use IP binding:
- Leave IP binding disabled
- Understand this is less secure but still safe if withdrawals are disabled
- Your other security measures (no withdrawal permission) still protect your funds
Adding to SignalBee
Now connect your HTX API key to SignalBee:
Step 1: Go to Exchanges Page
- Log in to your SignalBee account
- Navigate to Exchanges in the main menu
Step 2: Add New Exchange
- Click the Add Exchange button
- Select HTX from the exchange list
Step 3: Enter Your Credentials
HTX uses a simple two-value API system:
- API Key - Paste your HTX Access Key
- Secret Key - Paste your HTX Secret Key
- Label (optional) - Enter a name like "HTX Main Account"
Note: HTX requires only 2 credentials (Access Key + Secret Key). This is simpler than exchanges like OKX or KuCoin that require an additional passphrase.
Step 4: Test the Connection
- Click Save and Test Connection
- Wait for SignalBee to verify your credentials
- Look for the ✅ success message
Step 5: Verify Your Setup
After successful connection:
- Your HTX balances should appear in SignalBee
- Check that your expected assets are listed
- Balances confirm the Read permission is working
Tip: If balances don't appear, verify that Read permission is enabled on your API key.
HTX-Specific Considerations
Ticker Format
HTX uses lowercase ticker symbols without separators internally:
| SignalBee Format | HTX Internal Format |
|---|---|
| BTC-USDT | btcusdt |
| ETH-USDT | ethusdt |
| XRP-USDT | xrpusdt |
| SOL-USDT | solusdt |
SignalBee handles this conversion automatically. Use the standard hyphen-separated format (BTC-USDT) in your webhooks - SignalBee converts to HTX's lowercase format behind the scenes.
Supported Order Types
HTX spot trading supports the following order types:
| Order Type | Supported | Notes |
|---|---|---|
| Market Order | ✅ Yes | Executes immediately at best available price |
| Limit Order | ✅ Yes | Executes at specified price or better |
| Stop-Limit Order | ✅ Yes | Triggers limit order when stop price reached |
| Stop-Market Order | ❌ No | Not available on HTX spot |
| Trailing Stop | ❌ No | Not supported |
Important: HTX spot does not support pure stop-market orders. If your strategy requires stop-loss orders, they will be placed as stop-limit orders with a limit price slightly away from the stop trigger price.
Account Types
HTX offers multiple account types:
| Account | Purpose |
|---|---|
| Spot | Spot trading (use this with SignalBee) |
| Cross Margin | Margin trading with shared collateral |
| Isolated Margin | Margin with per-pair collateral |
| Futures | Derivatives trading |
SignalBee connects to your Spot account for trading.
Minimum Order Sizes
HTX enforces minimum order values. Orders below these minimums will be rejected:
| Trading Pair | Minimum Notional Value |
|---|---|
| Most USDT pairs | ~$5 USDT |
| Varies by pair | Check HTX for specifics |
Tip: Check HTX's trading rules for current minimum order sizes for specific pairs.
Trading Fees
| Fee Type | Rate |
|---|---|
| Maker | 0.2% |
| Taker | 0.2% |
Fee Discounts:
| Discount Method | Benefit |
|---|---|
| Hold HT tokens | Up to 25% fee discount |
| VIP tier levels | Reduced fees based on volume |
| Point cards | Can offset trading fees |
Tip: Check HTX's fee schedule for the most current rates and discount tiers.
API Rate Limits
- HTX enforces rate limits per API endpoint
- SignalBee handles rate limiting automatically
- If you see rate limit errors, reduce your signal frequency or check for duplicate webhooks
No Testnet Available
⚠️ Important: HTX does not offer a public testnet for spot trading.
| Testing Approach | Recommendation |
|---|---|
| Production testing | Start with very small order sizes |
| Paper trading | Use SignalBee's simulation mode if available |
| Signal verification | Test webhook delivery before enabling live trading |
Warning: Since there's no testnet, all testing happens on your real account with real funds. Start with minimal amounts (e.g., $5-10) when first testing your SignalBee integration with HTX.
Troubleshooting
Common HTX-specific errors and solutions:
| Error | Code | Likely Cause | Solution |
|---|---|---|---|
| Invalid Signature | invalid-signature | Incorrect Secret Key or encoding issue | Re-copy the Secret Key carefully. Watch for extra whitespace. |
| API Signature Check Failed | api-signature-check-failed | Signature verification failed | Re-copy Secret Key. If issue persists, create new API key. |
| Invalid API Key | invalid-api-key | Wrong key or deleted | Re-copy Access Key. Verify key exists in API Management. |
| API Key Invalid | api-key-invalid | API key is invalid | Verify key exists and hasn't expired. |
| Access Key Not Found | access-key-not-exist | Access Key doesn't exist | Create a new API key. |
| Account Frozen | account-frozen | Account is restricted | Contact HTX support to resolve account issues. |
| Insufficient Balance | insufficient-balance | Not enough funds | Deposit funds or reduce order size. |
| Order Not Found | order-not-found | Invalid order ID | Order may have been filled or cancelled. |
| Min Value Error | order-value-min-error | Order value too small | Increase order size above minimum. |
| Amount Min Error | order-limitorder-amount-min-error | Limit order amount too small | Increase order quantity. |
| Amount Max Error | order-limitorder-amount-max-error | Amount exceeds maximum | Reduce order quantity. |
| Price Error | order-limitorder-price-error | Invalid price | Check price is within acceptable range. |
| Symbol Not Found | base-not-found | Trading pair not found | Verify the pair exists on HTX. |
| Invalid Symbol | invalid-symbol | Wrong symbol format | SignalBee handles conversion; check webhook format. |
| IP Not Allowed | IP restriction | Request from non-bound IP | Add SignalBee IPs to IP binding or disable restriction. |
| Rate Limited | HTTP 429 | Too many API requests | Wait and retry. Reduce request frequency. |
| Service Unavailable | HTTP 502/503/504 | Exchange maintenance or issues | Wait for maintenance to complete. |
Connection Test Fails?
If your connection test fails in SignalBee:
- Double-check both keys - Copy-paste errors are the most common issue
- Verify permissions - Ensure Read and Trade permissions are enabled
- Check IP binding - Disable IP binding temporarily to test
- Wait a few minutes - New API keys may take 1-2 minutes to propagate
- Check HTX status - Verify HTX is not under maintenance
Signature Errors Are Common
HTX uses URL-based HMAC-SHA256 signing, which is sensitive to:
- Extra whitespace in the Secret Key
- Special characters not being copied correctly
- Browser autofill adding unwanted characters
If you see signature errors:
- Delete the credentials in SignalBee
- Go back to HTX API Management
- Create a new API key
- Copy the new Secret Key immediately and carefully
- Paste directly into SignalBee without editing
For persistent issues, see our Error Codes Reference or contact support@signalbee.trade.
Security Best Practices
Follow this checklist to keep your HTX account secure:
HTX Account Security
- Enable 2FA with Google Authenticator - more secure than SMS
- Use a unique, strong password for HTX (not reused from other sites)
- Enable email notifications for account activity
- Review login history regularly for unauthorized access
- Enable anti-phishing code to identify legitimate HTX emails
API Key Security
- Create a dedicated API key just for SignalBee - don't reuse keys across services
- Never enable withdrawal permission - SignalBee never needs it
- Consider IP binding for maximum security
- Never share your Secret Key via email, chat, or screenshots
- Store keys in a password manager (1Password, Bitwarden, etc.)
Ongoing Security
- Review your API keys periodically in HTX - delete any you don't recognize
- Rotate API keys every 90 days as a security habit
- Monitor trade history on HTX for any unauthorized activity
Security Note: Even with all these precautions, the most important protection is never enabling withdrawal permission. Without this permission, your funds cannot be moved off the exchange even if everything else is compromised.
Related Resources
- API Key Best Practices - General API key security guidance
- Security Overview - How SignalBee protects your data
- Error Codes Reference - Common error messages explained
- BingX Exchange Setup - Similar two-value API setup