SignalBee
All Guides
HTX10 minutes

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.

  1. Log in to HTX
  2. Click your profile icon → API Management
  3. Click Create API Key

Configure API Settings

SettingValue
NoteSignalBee Trading
Bind IPOptional - leave blank or add SignalBee IPs

Required Permissions

PermissionEnable?
Read✅ Yes
Trade✅ Yes
WithdrawNever
  1. Complete security verification (email + 2FA)
  2. 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.

  1. Log in to SignalBee
  2. Go to Exchanges in the sidebar
  3. Click Add Exchange → Select HTX
  4. Enter your API Key (Access Key)
  5. Enter your Secret Key
  6. Click Save and Test Connection
  7. 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.

  1. In SignalBee, go to Webhooks
  2. Click Create Webhook
  3. Select your HTX exchange connection
  4. Copy your webhook URL

Step 4: Configure Your Trading Settings

Set up safety limits before enabling trading.

  1. Go to Configuration in SignalBee
  2. Whitelist pairs you want to trade (e.g., btcusdt, ethusdt)
  3. Set Max order size to limit trade amounts
  4. Enable Trading when ready

HTX Ticker Format

HTX uses lowercase concatenated ticker format:

TypeFormatExample
Spotbaseusdtbtcusdt, ethusdt

Important: HTX tickers are lowercase. Use btcusdt not BTCUSDT.

Step 5: Set Up Your TradingView Alert

Connect TradingView to SignalBee.

  1. Open TradingView and load your strategy
  2. Click Alert (clock icon)
  3. Configure your alert conditions
  4. In Notifications, enable Webhook URL
  5. Paste your SignalBee webhook URL
  6. In the Message field, enter your signal JSON:
{
  "action": "buy",
  "ticker": "btcusdt",
  "quantity_type": "percentage",
  "quantity": "50"
}

Signal Format Reference

FieldRequiredValues
actionYesbuy, sell, or close
tickerYesHTX pair in lowercase (e.g., btcusdt)
quantity_typeYespercentage or fixed
quantityYesAmount 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.

  1. In TradingView, click Test on your alert
  2. In SignalBee, check Signals page
  3. Verify Orders shows the executed trade
  4. Confirm in HTX trade history

HTX-Specific Notes

Trading Fees

LevelMakerTaker
Normal0.20%0.20%
VIP 1+Reduced rates

Fee discounts available with HT (Huobi Token) holdings.

Minimum Order Sizes

PairMinimum
btcusdt0.0001 BTC
ethusdt0.001 ETH
Most pairs~$5 USD equivalent

Account Structure

HTX uses sub-accounts:

AccountPurpose
SpotStandard spot trading
MarginMargin trading
FuturesDerivatives 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

IssueSolution
Invalid signatureVerify API key and secret are correct
Symbol not foundUse lowercase format (btcusdt not BTCUSDT)
Account frozenCheck HTX account status and verification
Insufficient balanceTransfer funds to Spot account

Summary

You've connected TradingView to HTX in 6 steps:

  1. ✅ Created HTX API key with trading permissions
  2. ✅ Connected HTX to SignalBee
  3. ✅ Created a SignalBee webhook
  4. ✅ Configured settings with HTX lowercase ticker format
  5. ✅ Set up TradingView alert with webhook
  6. ✅ Tested the complete flow

Your TradingView strategy now executes automatically on HTX.


Need help? Contact support@signalbee.trade or visit our Help Center.