How to Connect TradingView to HTX for Automated Trading
Automate your TradingView strategy on HTX (formerly Huobi) in under 10 minutes. HTX is one of the oldest and largest crypto exchanges, offering deep liquidity and a wide range of trading pairs.
What You'll Need
Before starting, ensure you have:
- TradingView Pro or higher - Webhooks require a paid TradingView subscription
- Verified HTX account - Identity verification completed
- SignalBee account - Free to sign up at signalbee.trade
- 5-10 minutes - Quick setup process
Step 1: Create Your HTX API Key
Create an API key on HTX with trading permissions.
- Log in to HTX
- Click your profile icon → API Management
- Click Create API Key
Configure API Settings
| Setting | Value |
|---|---|
| Note | SignalBee Trading |
| Bind IP | Optional - leave blank or add SignalBee IPs |
Required Permissions
| Permission | Enable? |
|---|---|
| Read | ✅ Yes |
| Trade | ✅ Yes |
| Withdraw | ❌ Never |
- Complete security verification (email + 2FA)
- Save your API Key (Access Key) and Secret Key immediately
Important: HTX calls the API Key an "Access Key". Both terms refer to the same thing.
Step 2: Connect HTX to SignalBee
Link your HTX credentials to SignalBee.
- Log in to SignalBee
- Go to Exchanges in the sidebar
- Click Add Exchange → Select HTX
- Enter your API Key (Access Key)
- Enter your Secret Key
- Click Save and Test Connection
- Verify you see ✅ "Connection successful"
Your HTX balances should now appear in SignalBee.
Step 3: Create Your SignalBee Webhook
SignalBee provides a unique webhook URL for your alerts.
- In SignalBee, go to Webhooks
- Click Create Webhook
- Select your HTX exchange connection
- Copy your webhook URL
Step 4: Configure Your Trading Settings
Set up safety limits before enabling trading.
- Go to Configuration in SignalBee
- Whitelist pairs you want to trade (e.g., btcusdt, ethusdt)
- Set Max order size to limit trade amounts
- Enable Trading when ready
HTX Ticker Format
HTX uses lowercase concatenated ticker format:
| Type | Format | Example |
|---|---|---|
| Spot | baseusdt | btcusdt, ethusdt |
Important: HTX tickers are lowercase. Use
btcusdtnotBTCUSDT.
Step 5: Set Up Your TradingView Alert
Connect TradingView to SignalBee.
- Open TradingView and load your strategy
- Click Alert (clock icon)
- Configure your alert conditions
- In Notifications, enable Webhook URL
- Paste your SignalBee webhook URL
- In the Message field, enter your signal JSON:
{
"action": "buy",
"ticker": "btcusdt",
"quantity_type": "percentage",
"quantity": "50"
}
Signal Format Reference
| Field | Required | Values |
|---|---|---|
action | Yes | buy, sell, or close |
ticker | Yes | HTX pair in lowercase (e.g., btcusdt) |
quantity_type | Yes | percentage or fixed |
quantity | Yes | Amount to trade |
Example signals:
Buy 50% of USDT balance:
{"action": "buy", "ticker": "btcusdt", "quantity_type": "percentage", "quantity": "50"}
Sell 2 ETH:
{"action": "sell", "ticker": "ethusdt", "quantity_type": "fixed", "quantity": "2"}
Step 6: Test Your Setup
Verify everything works.
- In TradingView, click Test on your alert
- In SignalBee, check Signals page
- Verify Orders shows the executed trade
- Confirm in HTX trade history
HTX-Specific Notes
Trading Fees
| Level | Maker | Taker |
|---|---|---|
| Normal | 0.20% | 0.20% |
| VIP 1+ | Reduced rates |
Fee discounts available with HT (Huobi Token) holdings.
Minimum Order Sizes
| Pair | Minimum |
|---|---|
| btcusdt | 0.0001 BTC |
| ethusdt | 0.001 ETH |
| Most pairs | ~$5 USD equivalent |
Account Structure
HTX uses sub-accounts:
| Account | Purpose |
|---|---|
| Spot | Standard spot trading |
| Margin | Margin trading |
| Futures | Derivatives trading |
Ensure funds are in your Spot account for spot trading.
Regional Considerations
HTX availability varies by region:
- Not available in the US
- Check local regulations before trading
- Some features may be restricted based on location
Troubleshooting
| Issue | Solution |
|---|---|
| Invalid signature | Verify API key and secret are correct |
| Symbol not found | Use lowercase format (btcusdt not BTCUSDT) |
| Account frozen | Check HTX account status and verification |
| Insufficient balance | Transfer funds to Spot account |
Summary
You've connected TradingView to HTX in 6 steps:
- ✅ Created HTX API key with trading permissions
- ✅ Connected HTX to SignalBee
- ✅ Created a SignalBee webhook
- ✅ Configured settings with HTX lowercase ticker format
- ✅ Set up TradingView alert with webhook
- ✅ Tested the complete flow
Your TradingView strategy now executes automatically on HTX.
Need help? Contact support@signalbee.trade or visit our Help Center.