Skip to content

HTX API

11 endpointsFinance & CryptoGlobalsocial:read8 real examples

Returns HTX spot market data: tickers, symbols, order books, recent trades and candles.

View as Markdown
GET/htx/tickerLast price, best bid and ask and 24-hour statistics of one symbol.
GET/htx/symbolsThe spot symbols HTX lists, sorted by name, optionally of one quote currency.
GET/htx/orderbookThe best bids and asks of one symbol, with the step-0 (finest) price grouping.
GET/htx/tradesThe most recent trades of one symbol, newest first.
GET/htx/candlesKlines (candles) of one symbol, newest first.
GET/htx/tickersLast price, best bid and ask and 24-hour statistics of every HTX spot symbol, optionally of one quote currency.
GET/htx/serverTimeHTX server time in Unix milliseconds and RFC 3339.
GET/htx/currenciesCurrencies of HTX with their networks and their deposit and withdrawal status, optionally of one currency.
GET/htx/swapContractsThe USDT-margined swap contracts HTX lists, sorted by contract code, optionally of one base symbol such as BTC.
GET/htx/swapFundingRateThe funding rate of one swap contract: the rate of the current funding period, its estimate for the next and the times.
GET/htx/swapOpenInterestThe open interest of one swap contract: contracts held open, base-symbol amount and value in USDT.

ticker

GET/v1/htx/ticker

Last price, best bid and ask and 24-hour statistics of one symbol.

scope social:read1 unitcached 1 min

Parameters

symbol
string
required
Trading pair in lower case, such as btcusdt.
e.g. btcusdt
tunnel
string
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.
proxy
string
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.
profileId
string
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
askstring
askSizestring
bidstring
bidSizestring
changestring
changePercentstring
highstring
lowstring
openstring
pricestring
quoteVolumestring
symbolstring
tradesinteger (int64)
updatedAtstring
volumestring
curl "https://api.hoshime.com/v1/htx/ticker?symbol=btcusdt" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/htx/symbols

The spot symbols HTX lists, sorted by name, optionally of one quote currency.

scope social:read1 unitcached 1 hpaginated

Parameters

quote
string
Only symbols quoted in this currency, such as usdt. Omit it for all symbols.
tunnel
string
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.
proxy
string
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.
profileId
string
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
apiTradingboolean
baseCurrencystring
quoteCurrencystring
statestring
symbolstring
curl "https://api.hoshime.com/v1/htx/symbols" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/htx/orderbook

The best bids and asks of one symbol, with the step-0 (finest) price grouping.

scope social:read1 unit

Parameters

symbol
string
required
Trading pair in lower case, such as btcusdt.
e.g. btcusdt
depth
integer
Levels per side, from 1 to 20.
default 10
tunnel
string
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.
proxy
string
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.
profileId
string
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
asksLevel[]
pricestring
sizestring
bidsLevel[]
pricestring
sizestring
symbolstring
updatedAtstring
curl "https://api.hoshime.com/v1/htx/orderbook?symbol=btcusdt" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/htx/trades

The most recent trades of one symbol, newest first.

scope social:read1 unitcached 1 minpaginated

Parameters

symbol
string
required
Trading pair in lower case, such as btcusdt.
e.g. btcusdt
limit
integer
Items per page, 1 to 2000.
default 50
tunnel
string
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.
proxy
string
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.
profileId
string
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
idstring
pricestring
sidestring
sizestring
tradedAtstring
curl "https://api.hoshime.com/v1/htx/trades?symbol=btcusdt" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/htx/candles

Klines (candles) of one symbol, newest first.

scope social:read1 unitcached 5 minpaginated

Parameters

symbol
string
required
Trading pair in lower case, such as btcusdt.
e.g. btcusdt
period
string
Candle length, such as 1min, 60min or 1day.
1min5min15min30min60min4hour1day1week1mon
default 60min
limit
integer
Items per page, 1 to 2000.
default 100
tunnel
string
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.
proxy
string
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.
profileId
string
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
closestring
highstring
lowstring
openstring
openedAtstring
quoteVolumestring
tradesinteger (int64)
volumestring
curl "https://api.hoshime.com/v1/htx/candles?symbol=btcusdt" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/htx/tickers

Last price, best bid and ask and 24-hour statistics of every HTX spot symbol, optionally of one quote currency.

scope social:read1 unitpaginated

Parameters

quote
string
Only symbols quoted in this currency, such as usdt or btc. Omit it for every symbol.
tunnel
string
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.
proxy
string
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.
profileId
string
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
askstring
bidstring
changestring
changePercentstring
countinteger (int64)
highstring
lowstring
openstring
pricestring
symbolstring
updatedAtstring
volumestring
volumeQuotestring
curl "https://api.hoshime.com/v1/htx/tickers" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/htx/serverTime

HTX server time in Unix milliseconds and RFC 3339.

scope social:read1 unit

Parameters

tunnel
string
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.
proxy
string
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.
profileId
string
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
serverAtstring
curl "https://api.hoshime.com/v1/htx/serverTime" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/htx/currencies

Currencies of HTX with their networks and their deposit and withdrawal status, optionally of one currency.

scope social:read1 unitcached 1 hpaginated

Parameters

currency
string
One currency such as btc. Omit it for every currency.
tunnel
string
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.
proxy
string
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.
profileId
string
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
chainsCurrencyChain[]
chainstring
depositStatusstring
fullNamestring
minDepositAmountstring
withdrawStatusstring
currencystring
curl "https://api.hoshime.com/v1/htx/currencies" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/htx/swapContracts

The USDT-margined swap contracts HTX lists, sorted by contract code, optionally of one base symbol such as BTC.

scope social:read1 unitcached 1 hpaginated

Parameters

symbol
string
Base symbol of the contracts, such as BTC. Empty lists every contract.
e.g. BTC
tunnel
string
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.
proxy
string
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.
profileId
string
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
contractstring
contractSizestring
listedstring
priceTickstring
symbolstring
curl "https://api.hoshime.com/v1/htx/swapContracts?symbol=BTC" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/htx/swapFundingRate

The funding rate of one swap contract: the rate of the current funding period, its estimate for the next and the times.

scope social:read1 unitcached 1 min

Parameters

contract
string
required
Swap contract code, such as BTC-USDT.
e.g. BTC-USDT
tunnel
string
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.
proxy
string
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.
profileId
string
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
contractstring
estimatedRatestring
fundingAtstring
fundingRatestring
nextFundingAtstring
symbolstring
curl "https://api.hoshime.com/v1/htx/swapFundingRate?contract=BTC-USDT" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/htx/swapOpenInterest

The open interest of one swap contract: contracts held open, base-symbol amount and value in USDT.

scope social:read1 unitcached 1 min

Parameters

contract
string
required
Swap contract code, such as BTC-USDT.
e.g. BTC-USDT
tunnel
string
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.
proxy
string
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.
profileId
string
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
amountstring
contractstring
symbolstring
valuestring
volumeinteger (int64)
curl "https://api.hoshime.com/v1/htx/swapOpenInterest?contract=BTC-USDT" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open