REST API

Exchange Identifiers

When you use the REST API, you must put an exchange identifier in each file path. Use these exact strings for the exchange part of the file path.

Available Exchange Identifiers

Spot Exchanges

  • binance_spot
  • bybit_spot
  • kraken_spot
  • okx_spot
  • bitget_spot
  • hyperliquid_spot

Futures/Derivatives Exchanges

  • binance_futures
  • bybit
  • kraken_futures
  • okx_futures
  • bitget_futures
  • hyperliquid_futures
  • lighter
  • aster_futures
  • bitmex

Example

Terminal
# Download from different exchanges
curl "https://api.cryptohftdata.com/v1/download?file=binance_spot/2025-08-01/20/BTCUSDT_trades.parquet&api_key=your-api-key" \
  -o binance_btc_trades.parquet

curl "https://api.cryptohftdata.com/v1/download?file=bybit/2025-08-01/20/ETHUSDT_liquidations.parquet&api_key=your-api-key" \
  -o bybit_eth_liquidations.parquet

Important Notes

  • Use these exact exchange identifiers. They are case-sensitive.
  • Some data types are not available on all exchanges.
  • Mark price, open interest, and liquidations are available only on futures/derivatives exchanges.
  • Before you send requests, make sure that data is available for your trading pairs.
  • bitmex contains historical data only. BitMEX closed in September 2026, and its files end on 2026-09-22.

If you cannot find the information that you need, tell us. We also help with integrations.

Contact support