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:

  1. HTX Account - Create at htx.com
  2. Identity Verification - Complete KYC verification
  3. 2FA Enabled - Google Authenticator or SMS
  4. 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

  1. Log in to htx.com
  2. Click your profile icon in the top right
  3. Navigate to API Management
  4. Or go to: Account & Security → API Management

Step 2: Create API Key

  1. Click Create API Key or Create
  2. Enter a note: TradeStaq Trading Bot
  3. Set binding IP addresses (optional but recommended)
  4. Complete 2FA verification

Step 3: Configure Permissions

Required Permissions

PermissionStatusPurpose
ReadRequiredView balances and orders
TradeRequiredPlace and manage orders
WithdrawNot NeededNever 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)

  1. Click "Bind IP Address"
  2. Enter TradeStaq server IPs
  3. 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:

  1. Access Key - Your public API identifier
  2. 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

  1. Go to TradeStaq Dashboard
  2. Click Exchanges → Add Exchange
  3. Select HTX from the list
  4. Enter your credentials:
FieldValue
NameGive it a memorable name (e.g., "HTX Main")
API KeyPaste your Access Key
API SecretPaste your Secret Key
Account TypeSelect Spot or Futures
  1. Click Connect Exchange

Step 7: Verify Connection

After connecting:

  1. Check the status shows Active (green indicator)
  2. Verify your balance is displayed correctly
  3. Test by viewing available trading pairs

Supported Features

FeatureSpotFutures
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

TypeMakerTaker
Spot0.2%0.2%
Futures0.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:


Next Steps

Strategies available on HTX

Deploy any of these 6 automated strategies on HTX.