Barfinex
Loading
All exchanges
HTX (Huobi)

HTX (Huobi)

Coming SoonCrypto — Major Exchanges
connectorType: "htx"

Major Asian crypto exchange (formerly Huobi)

Connection Architecture

HTX (Huobi)
WebSocket / REST
Connector
libs/exchange-htx
Provider
:8081/api
Detector
Advisor
Studio

The connector feeds exchange data to Provider. Detector receives market data, Studio receives read views, and Advisor sees only signed candidate evidence.

Technologies

Transport
WebSocketREST
Authentication
API Key + Secret
Data Format
JSON

Best for

  • HTX is particularly valuable for strategies that operate during Asian market hours, where it maintains some of the deepest liquidity among regional exchanges.
  • It is a strong choice for cross-venue arbitrage between Asian and Western exchanges, Asian altcoin momentum strategies, and round-the-clock market-making bots that need high activity during UTC+8 windows.
  • Barfinex users targeting CNY-correlated crypto price patterns will find HTX data especially relevant.

Connect via code

1Environment variables (.env)

HTX_API_KEY=your_key_here
HTX_API_SECRET=your_secret_here

2Connector configuration

// config/config.provider.json
{
  "provider": {
    "connectors": [
      {
        "connectorType": "htx",
        "enabled": true,
        "key": "${HTX_API_KEY}",
        "secret": "${HTX_API_SECRET}",
        "markets": [
          { "marketType": "spot", "symbols": [{ "name": "BTCUSDT" }] }
        ],
        "subscriptions": [
          { "type": "PROVIDER_MARKETDATA_CANDLE", "symbols": ["BTCUSDT"], "intervals": ["min1", "h1"], "active": true },
          { "type": "PROVIDER_MARKETDATA_TRADE", "symbols": ["BTCUSDT"], "active": true },
          { "type": "PROVIDER_MARKETDATA_ORDERBOOK", "symbols": ["BTCUSDT"], "active": true }
        ]
      }
    ]
  }
}

3Verify and query data

Public verification
1. Configure credentials in the private Provider environment.
2. Verify connector status in the internal Studio/Provider console.
3. Use Barfinex public pages to inspect market data.

Operator Provider commands and tokens remain in internal runbooks only.

Available via Barfinex API

/api/candles/htx/...
/api/trades/htx/...
/api/orderbook/htx/...
/api/account/htx/...
/api/symbols/htx/...
/api/assets/htx/...

Studio graphical setup — in development, coming in the next release.

Important

Permissions required: Read + Trade.
HTX uses HMAC-SHA256 request signing.
Note that the exchange was rebranded from Huobi to HTX in 2023 — some API documentation and community resources still reference Huobi; the API hostname changed to api.huobi.pro / api.htx.com depending on region.
HTX applies account-level rate limits; accounts with higher trading volumes receive elevated limits.
Futures on HTX (Huobi DM) use a separate endpoint and independent API configuration.
Supported Markets
SpotFutures
Founded2013
HeadquartersSeychelles
Connect in Studio(soon)
Exchange Website

Let’s Get in Touch

Have questions or want to explore Barfinex? Send us a message.