Connecting HTX
This guide walks you through connecting your HTX (formerly Huobi) account to TradeStaq for automated trading.
Overview
HTX is a leading global cryptocurrency exchange offering:
- Spot Trading - 500+ trading pairs
- Futures Trading - USDT-M and Coin-M perpetuals
- Global Presence - Operating since 2013
- Deep Liquidity - High volume across major pairs
- Advanced Features - Grid trading, copy trading, and more
Prerequisites
Before connecting HTX:
- HTX Account - Create at htx.com
- Identity Verification - Complete KYC verification
- 2FA Enabled - Google Authenticator or SMS
- TradeStaq Account - Sign up at tradestaq.com
Note on Branding
HTX was previously known as Huobi Global. If you see references to "Huobi" in older documentation, they refer to the same exchange.
Step 1: Access API Management
- Log in to htx.com
- Click your profile icon in the top right
- Navigate to API Management
- Or go to: Account & Security → API Management
Step 2: Create API Key
- Click Create API Key or Create
- Enter a note:
TradeStaq Trading Bot - Set binding IP addresses (optional but recommended)
- Complete 2FA verification
Step 3: Configure Permissions
Required Permissions
| Permission | Status | Purpose |
|---|---|---|
| Read | Required | View balances and orders |
| Trade | Required | Place and manage orders |
| Withdraw | Not Needed | Never enable for bots |
Permission Settings
When creating the API key, enable:
- ✅ Read - Account and market data
- ✅ Trade - Order execution
Keep disabled:
- ❌ Withdraw - Never enable
- ❌ Transfer - Not needed
Step 4: Set Security Options
IP Binding (Recommended)
- Click "Bind IP Address"
- Enter TradeStaq server IPs
- This adds an extra security layer
If you don't know TradeStaq's IPs:
- Leave unbounded for initial setup
- Add IPs later from HTX settings
Expiration
- Set expiration based on your needs
- "No Expiration" available for long-term use
Step 5: Copy Credentials
After creation, HTX displays:
- Access Key - Your public API identifier
- Secret Key - Shown only once
Access Key: xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxx
Secret Key: yyyyyyyy-yyyyyyyy-yyyyyyyy-yyyyy
IMPORTANT: Save the Secret Key immediately. You cannot view it again.
Step 6: Connect to TradeStaq
- Go to TradeStaq Dashboard
- Click Exchanges → Add Exchange
- Select HTX from the list
- Enter your credentials:
| Field | Value |
|---|---|
| Name | Give it a memorable name (e.g., "HTX Main") |
| API Key | Paste your Access Key |
| API Secret | Paste your Secret Key |
| Account Type | Select Spot or Futures |
- Click Connect Exchange
Step 7: Verify Connection
After connecting:
- Check the status shows Active (green indicator)
- Verify your balance is displayed correctly
- Test by viewing available trading pairs
Supported Features
| Feature | Spot | Futures |
|---|---|---|
| Market Orders | ✓ | ✓ |
| Limit Orders | ✓ | ✓ |
| Stop Orders | ✓ | ✓ |
| Take Profit | ✓ | ✓ |
| OCO Orders | ✓ | - |
| Leverage | - | Up to 200x |
| Cross/Isolated | - | Both |
Account Types
Spot Account
- Direct cryptocurrency trading
- 500+ trading pairs
- No leverage
Futures Account
USDT-M Perpetual:
- Settled in USDT
- Linear contracts
- Up to 200x leverage
Coin-M Perpetual:
- Settled in the base cryptocurrency
- Inverse contracts
- For advanced traders
Trading Pairs
Popular Spot Pairs
- BTC/USDT, ETH/USDT, SOL/USDT
- XRP/USDT, DOGE/USDT, TRX/USDT
- HT/USDT (HTX's native token)
Popular Futures Pairs
- BTC-USDT, ETH-USDT, SOL-USDT
- Major altcoin perpetuals available
Security Best Practices
Do's
- ✅ Enable Google Authenticator 2FA
- ✅ Use IP binding for API keys
- ✅ Set reasonable API key expiration
- ✅ Monitor account for unusual activity
- ✅ Use trading password if available
Don'ts
- ❌ Never enable withdrawal permissions
- ❌ Never share API credentials
- ❌ Never store credentials in plain text
- ❌ Never use same keys across platforms
HTX-Specific Notes
Trading Fees
| Type | Maker | Taker |
|---|---|---|
| Spot | 0.2% | 0.2% |
| Futures | 0.02% | 0.04% |
Fee Discounts
- Hold HT token for fee discounts
- VIP levels based on trading volume
- Point card system available
Sub-accounts
If using HTX sub-accounts:
- Create API keys per sub-account
- Each sub-account connects separately
- Useful for strategy isolation
Account Security
HTX offers additional security features:
- Anti-phishing code
- Login device management
- Withdrawal address whitelist
Troubleshooting
API Key Rejected
Solutions:
- Verify Access Key and Secret Key are correct
- Check for extra spaces when copying
- Ensure API key is activated
- Verify IP binding matches your connection
Permission Denied
Solutions:
- Check Trade permission is enabled
- Verify account type matches API permissions
- Ensure API key hasn't expired
Balance Not Showing
Solutions:
- Check funds are in correct account (Spot vs Futures)
- Verify API has Read permission
- Refresh the connection in TradeStaq
Order Rejected
Solutions:
- Check sufficient balance
- Verify trading pair is available
- Check minimum order requirements
- Ensure account isn't restricted
Connection Issues
Solutions:
- Check HTX status page
- Verify internet connection
- Try regenerating API keys
- Check regional restrictions
Regional Restrictions
HTX has restrictions in certain regions:
- US residents cannot use HTX
- Check HTX terms for your region
- Use appropriate VPN if allowed
API Documentation
For advanced users:
- HTX API Docs: huobiapi.github.io/docs
Next Steps
- Paper Trading - Practice risk-free
- Creating a Bot - Set up your first bot
- Risk Management - Protect your capital
- Custom Strategies - Write trading strategies
Strategies available on HTX
Deploy any of these 12 automated strategies on HTX.