HTX API
Returns HTX spot market data: tickers, symbols, order books, recent trades and candles.
View as Markdown| GET | /htx/ticker | Last price, best bid and ask and 24-hour statistics of one symbol. |
| GET | /htx/symbols | The spot symbols HTX lists, sorted by name, optionally of one quote currency. |
| GET | /htx/orderbook | The best bids and asks of one symbol, with the step-0 (finest) price grouping. |
| GET | /htx/trades | The most recent trades of one symbol, newest first. |
| GET | /htx/candles | Klines (candles) of one symbol, newest first. |
| GET | /htx/tickers | Last price, best bid and ask and 24-hour statistics of every HTX spot symbol, optionally of one quote currency. |
| GET | /htx/serverTime | HTX server time in Unix milliseconds and RFC 3339. |
| GET | /htx/currencies | Currencies of HTX with their networks and their deposit and withdrawal status, optionally of one currency. |
| GET | /htx/swapContracts | The USDT-margined swap contracts HTX lists, sorted by contract code, optionally of one base symbol such as BTC. |
| GET | /htx/swapFundingRate | The funding rate of one swap contract: the rate of the current funding period, its estimate for the next and the times. |
| GET | /htx/swapOpenInterest | The open interest of one swap contract: contracts held open, base-symbol amount and value in USDT. |
ticker
/v1/htx/tickerLast price, best bid and ask and 24-hour statistics of one symbol.
Parameters
symbolstring required | Trading pair in lower case, such as btcusdt. e.g. btcusdt |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
15 fields
ask | string |
askSize | string |
bid | string |
bidSize | string |
change | string |
changePercent | string |
high | string |
low | string |
open | string |
price | string |
quoteVolume | string |
symbol | string |
trades | integer (int64) |
updatedAt | string |
volume | string |
curl "https://api.hoshime.com/v1/htx/ticker?symbol=btcusdt" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/htx/ticker?symbol=btcusdt", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/htx/ticker?symbol=btcusdt", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "ask": "75744", "askSize": "0.023614", "bid": "75743.99", "bidSize": "0.426844", "change": "", "changePercent": "", "high": "76571.06", "low": "74900", "open": "75869.72", "price": "75739.97", "quoteVolume": "340718542.67487705", "symbol": "btcusdt", "trades": 356045, "updatedAt": "2026-11-06T18:01:31Z", "volume": "4486.755772789746" }, "meta": { "cached": false, "endpoint": "ticker", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "htx", "requestId": "req_2Xb9kQ…", "units": 1 } }
symbols
/v1/htx/symbolsThe spot symbols HTX lists, sorted by name, optionally of one quote currency.
Parameters
quotestring | Only symbols quoted in this currency, such as usdt. Omit it for all symbols. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
apiTrading | boolean |
baseCurrency | string |
quoteCurrency | string |
state | string |
symbol | string |
curl "https://api.hoshime.com/v1/htx/symbols" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/htx/symbols", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/htx/symbols", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "apiTrading": true, "baseCurrency": "0g", "quoteCurrency": "usdt", "state": "online", "symbol": "0gusdt" }, { "apiTrading": true, "baseCurrency": "18c", "quoteCurrency": "btc", "state": "offline", "symbol": "18cbtc" } ], "meta": { "cached": false, "endpoint": "symbols", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "htx", "requestId": "req_2Xb9kQ…", "units": 1 } }
orderbook
/v1/htx/orderbookThe best bids and asks of one symbol, with the step-0 (finest) price grouping.
Parameters
symbolstring required | Trading pair in lower case, such as btcusdt. e.g. btcusdt |
depthinteger | Levels per side, from 1 to 20. default 10 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
asks | Level[] |
price | string |
size | string |
bids | Level[] |
price | string |
size | string |
symbol | string |
updatedAt | string |
curl "https://api.hoshime.com/v1/htx/orderbook?symbol=btcusdt" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/htx/orderbook?symbol=btcusdt", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/htx/orderbook?symbol=btcusdt", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "asks": [ { "price": "75744", "size": "0.023614" }, { "price": "75745", "size": "0.0005" } ], "bids": [ { "price": "75743.99", "size": "0.426844" }, { "price": "75743.38", "size": "0.000066" } ], "symbol": "btcusdt", "updatedAt": "2026-11-06T18:01:31Z" }, "meta": { "cached": false, "endpoint": "orderbook", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "htx", "requestId": "req_2Xb9kQ…", "units": 1 } }
trades
/v1/htx/tradesThe most recent trades of one symbol, newest first.
Parameters
symbolstring required | Trading pair in lower case, such as btcusdt. e.g. btcusdt |
limitinteger | Items per page, 1 to 2000. default 50 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
id | string |
price | string |
side | string |
size | string |
tradedAt | string |
curl "https://api.hoshime.com/v1/htx/trades?symbol=btcusdt" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/htx/trades?symbol=btcusdt", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/htx/trades?symbol=btcusdt", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "103669089827", "price": "75740", "side": "buy", "size": "0.006376", "tradedAt": "2026-11-06T18:01:29Z" }, { "id": "103669089826", "price": "75740", "side": "buy", "size": "0.00034", "tradedAt": "2026-11-06T18:01:29Z" } ], "meta": { "cached": false, "endpoint": "trades", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "htx", "requestId": "req_2Xb9kQ…", "units": 1 } }
candles
/v1/htx/candlesKlines (candles) of one symbol, newest first.
Parameters
symbolstring required | Trading pair in lower case, such as btcusdt. e.g. btcusdt |
periodstring | Candle length, such as 1min, 60min or 1day.1min5min15min30min60min4hour1day1week1mondefault 60min |
limitinteger | Items per page, 1 to 2000. default 100 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
close | string |
high | string |
low | string |
open | string |
openedAt | string |
quoteVolume | string |
trades | integer (int64) |
volume | string |
curl "https://api.hoshime.com/v1/htx/candles?symbol=btcusdt" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/htx/candles?symbol=btcusdt", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/htx/candles?symbol=btcusdt", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "close": "75739.97", "high": "75781.62", "low": "75724.34", "open": "75781.62", "openedAt": "2026-11-06T18:00:00Z", "quoteVolume": "72325.88117026", "trades": 23, "volume": "0.9549038093976924" }, { "close": "75821.58", "high": "76134.44", "low": "75538.7", "open": "76009", "openedAt": "2026-11-06T17:00:00Z", "quoteVolume": "10276537.038617115", "trades": 6150, "volume": "135.6270796992971" } ], "meta": { "cached": false, "endpoint": "candles", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "htx", "requestId": "req_2Xb9kQ…", "units": 1 } }
tickers
/v1/htx/tickersLast price, best bid and ask and 24-hour statistics of every HTX spot symbol, optionally of one quote currency.
Parameters
quotestring | Only symbols quoted in this currency, such as usdt or btc. Omit it for every symbol. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
ask | string |
bid | string |
change | string |
changePercent | string |
count | integer (int64) |
high | string |
low | string |
open | string |
price | string |
symbol | string |
updatedAt | string |
volume | string |
volumeQuote | string |
curl "https://api.hoshime.com/v1/htx/tickers" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/htx/tickers", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/htx/tickers", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "ask": "0.0437", "bid": "0.0359", "change": "", "changePercent": "", "count": 150, "high": "0.0359", "low": "0.0359", "open": "0.0359", "price": "0.0359", "symbol": "zigusdt", "updatedAt": "", "volume": "115301.2906", "volumeQuote": "4588.1005144943" }, { "ask": "0.0026", "bid": "0.00138", "change": "", "changePercent": "", "count": 3, "high": "0.0027", "low": "0.0027", "open": "0.0027", "price": "0.0027", "symbol": "sophusdt", "updatedAt": "", "volume": "3819.971037037037", "volumeQuote": "10.1138218" } ], "meta": { "cached": false, "endpoint": "tickers", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "htx", "requestId": "req_2Xb9kQ…", "units": 1 } }
serverTime
/v1/htx/serverTimeHTX server time in Unix milliseconds and RFC 3339.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
1 fields
serverAt | string |
curl "https://api.hoshime.com/v1/htx/serverTime" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/htx/serverTime", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/htx/serverTime", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "serverAt": "2026-11-06T18:01:31Z" }, "meta": { "cached": false, "endpoint": "serverTime", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "htx", "requestId": "req_2Xb9kQ…", "units": 1 } }
currencies
/v1/htx/currenciesCurrencies of HTX with their networks and their deposit and withdrawal status, optionally of one currency.
Parameters
currencystring | One currency such as btc. Omit it for every currency. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
chains | CurrencyChain[] |
chain | string |
depositStatus | string |
fullName | string |
minDepositAmount | string |
withdrawStatus | string |
currency | string |
curl "https://api.hoshime.com/v1/htx/currencies" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/htx/currencies", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/htx/currencies", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "chains": [ { "chain": "aptusdt", "depositStatus": "allowed", "fullName": "Aptos", "minDepositAmount": "1", "withdrawStatus": "allowed" }, { "chain": "arc20usdt", "depositStatus": "allowed", "fullName": "Arbitrum One", "minDepositAmount": "1", "withdrawStatus": "prohibited" } ], "currency": "usdt" }, { "chains": [ { "chain": "bep20usdd", "depositStatus": "allowed", "fullName": "", "minDepositAmount": "1", "withdrawStatus": "prohibited" }, { "chain": "bep20usdd2", "depositStatus": "allowed", "fullName": "BNB Smart Chain", "minDepositAmount": "1", "withdrawStatus": "allowed" } ], "currency": "usdd" } ], "meta": { "cached": false, "endpoint": "currencies", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "htx", "requestId": "req_2Xb9kQ…", "units": 1 } }
swapContracts
/v1/htx/swapContractsThe USDT-margined swap contracts HTX lists, sorted by contract code, optionally of one base symbol such as BTC.
Parameters
symbolstring | Base symbol of the contracts, such as BTC. Empty lists every contract. e.g. BTC |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
contract | string |
contractSize | string |
listed | string |
priceTick | string |
symbol | string |
curl "https://api.hoshime.com/v1/htx/swapContracts?symbol=BTC" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/htx/swapContracts?symbol=BTC", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/htx/swapContracts?symbol=BTC", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "contract": "…", "contractSize": "…", "listed": "…", "priceTick": "…", "symbol": "…" } ], "meta": { "cached": false, "endpoint": "swapContracts", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "htx", "requestId": "req_2Xb9kQ…", "units": 1 } }
swapFundingRate
/v1/htx/swapFundingRateThe funding rate of one swap contract: the rate of the current funding period, its estimate for the next and the times.
Parameters
contractstring required | Swap contract code, such as BTC-USDT. e.g. BTC-USDT |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
contract | string |
estimatedRate | string |
fundingAt | string |
fundingRate | string |
nextFundingAt | string |
symbol | string |
curl "https://api.hoshime.com/v1/htx/swapFundingRate?contract=BTC-USDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/htx/swapFundingRate?contract=BTC-USDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/htx/swapFundingRate?contract=BTC-USDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "contract": "…", "estimatedRate": "…", "fundingAt": "2026-11-06T09:41:00Z", "fundingRate": "…", "nextFundingAt": "2026-11-06T09:41:00Z", "symbol": "…" }, "meta": { "cached": false, "endpoint": "swapFundingRate", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "htx", "requestId": "req_2Xb9kQ…", "units": 1 } }
swapOpenInterest
/v1/htx/swapOpenInterestThe open interest of one swap contract: contracts held open, base-symbol amount and value in USDT.
Parameters
contractstring required | Swap contract code, such as BTC-USDT. e.g. BTC-USDT |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
amount | string |
contract | string |
symbol | string |
value | string |
volume | integer (int64) |
curl "https://api.hoshime.com/v1/htx/swapOpenInterest?contract=BTC-USDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/htx/swapOpenInterest?contract=BTC-USDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/htx/swapOpenInterest?contract=BTC-USDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "amount": "…", "contract": "…", "symbol": "…", "value": "…", "volume": 0 }, "meta": { "cached": false, "endpoint": "swapOpenInterest", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "htx", "requestId": "req_2Xb9kQ…", "units": 1 } }