HTX (Huobi) Exchange Setup
HTX (formerly Huobi) is a major cryptocurrency exchange supporting perpetual futures trading. This guide covers API setup and configuration.Prerequisites
1
Create HTX Account
If you don’t have an account, register at htx.com
2
Complete KYC
Identity verification is required for derivatives trading
3
Enable Futures Trading
Navigate to Derivatives → USDT-M Futures and enable trading
4
Fund Your Account
Transfer USDT to your USDT-M Futures wallet
Creating API Keys
Step 1: Access API Management
- Log in to HTX
- Click your profile icon (top right)
- Select API Management
- Click Create API Key
Step 2: Configure Permissions
Select these permissions:- Read Info
- Trade
- Withdraw ← Leave unchecked!
Step 3: Set IP Restrictions (Recommended)
For maximum security, restrict API access to specific IPs:- Select Bind IP addresses
- Add your server’s IP address
- This prevents unauthorized access even if keys are leaked
Step 4: Save Your Credentials
You will receive:
- API Key (Access Key)
- Secret Key
Adding HTX to Quant Dash
Via Dashboard
- Navigate to Settings → Exchanges
- Click Add Exchange
- Select HTX from the dropdown
- Enter your credentials:
- API Key: Your Access Key
- API Secret: Your Secret Key
- Click Test Connection
- If successful, click Save
Configuration Example
HTX-Specific Settings
Supported Features
| Feature | Supported | Notes |
|---|---|---|
| USDT-M Perpetuals | Yes | Primary market |
| Hedge Mode | Yes | Long + Short simultaneously |
| Cross Margin | Yes | Default mode |
| Isolated Margin | Yes | Per-position margin |
| Maximum Leverage | 125x | Varies by symbol |
Symbol Format
HTX uses standard symbol format:- Dashboard:
BTCUSDT - API:
BTC-USDT
Rate Limits
Transferring Funds
To Futures Wallet
- Go to Assets → Transfer
- From: Spot Account
- To: USDT-M Futures
- Enter amount and confirm
Funds must be in the USDT-M Futures wallet before the bot can trade.
Checking Balance
Your futures balance shows:- Available Balance: Can be used for new positions
- Used Margin: Locked for open positions
- Unrealized PnL: Current position profit/loss
Troubleshooting
”Invalid API Key”
- Verify you copied the full key (no spaces)
- Check if key is expired or deleted
- Ensure you’re using the correct account (main vs sub-account)
“Insufficient Balance”
- Check funds are in USDT-M Futures wallet (not Spot)
- Verify available margin after existing positions
- Reduce position size or close existing trades
”Order Rejected”
- Check symbol is correct and tradeable
- Verify leverage settings match exchange limits
- Ensure order size meets minimum requirements
”Rate Limit Exceeded”
- Reduce number of simultaneous bots
- Increase quote refresh interval
- Reduce geometric sizing levels
Security Best Practices
No Withdraw Permission
Never enable withdraw - keeps funds secure even if keys leak
IP Restriction
Bind API to specific IPs for maximum security
Regular Rotation
Rotate API keys every 90 days
Monitor Activity
Check API logs regularly for unusual activity