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 receives data from the exchange and feeds it to Provider (port 8081). From there — to Detector, Advisor, and Studio.
Technologies
Transport
WebSocketREST
Authentication
API Key + SecretData Format
JSONBest 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
# Verify connection curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \ https://localhost:8081/api/exchanges/runtime-proof # Candles (last 7 days) curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \ "https://localhost:8081/api/candles/htx/spot/BTCUSDT/h1?days=7"
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.
Connect in Studio(soon)
Exchange Website