Hyperliquid Exchange Data

Hyperliquid endpoints serve trade data (raw ticks and OHLCV candles) and derivatives metrics (fills, positions, funding) from the Hyperliquid decentralized perpetuals exchange.

All Hyperliquid endpoints use time ranges (since/until) and return CSV or Parquet.

Common Parameters:

ParameterTypeRequiredDescription
tokenstringYesToken symbol (e.g. BTC, ETH, SOL)
sincestringYesStart timestamp (ISO 8601 or Unix seconds)
untilstringYesEnd timestamp (ISO 8601 or Unix seconds)
formatstringNocsv (default), parquet, or json (OHLCV only)
linkbooleanNoReturn a download URL instead of data directly

Raw Trades

Endpoint: GET /v1/exchange/hyperliquid/raw_trades

Tick-level trade records from Hyperliquid.

curl -H "X-API-Key: $API_KEY" 
  "https://api.defistream.dev/v1/exchange/hyperliquid/raw_trades?token=BTC&since=2025-12-01&until=2025-12-02" 
  -o hl_trades.csv

Sample Results:

timepriceamountbuy
2025-12-01T00:00:01.123Z97500.00.025true
2025-12-01T00:00:01.456Z97498.50.100false
2025-12-01T00:00:02.012Z97501.00.050true

OHLCV Candles

Endpoint: GET /v1/exchange/hyperliquid/ohlcv

OHLCV candles aggregated to the requested window. Supports JSON, CSV, and Parquet.

Additional Parameters:

ParameterTypeRequiredDescription
windowstringNoCandle window: 1m, 5m, 15m, 30m, 1h (default), 4h, 1d
curl -H "X-API-Key: $API_KEY" 
  "https://api.defistream.dev/v1/exchange/hyperliquid/ohlcv?token=ETH&window=1h&since=2025-12-01&until=2025-12-08"

Sample Results:

timeopenhighlowclosevolumetrade_count
2025-12-01T00:00:00Z3850.23880.53830.13870.84521.312450
2025-12-01T01:00:00Z3870.83900.03860.33895.53892.710870

Fills

Endpoint: GET /v1/exchange/hyperliquid/fills

Individual trade fills with execution details.

curl -H "X-API-Key: $API_KEY" 
  "https://api.defistream.dev/v1/exchange/hyperliquid/fills?token=BTC&since=2025-12-01&until=2025-12-02" 
  -o hl_fills.csv

Positions

Endpoint: GET /v1/exchange/hyperliquid/positions

Position snapshots across Hyperliquid perpetual markets.

curl -H "X-API-Key: $API_KEY" 
  "https://api.defistream.dev/v1/exchange/hyperliquid/positions?token=ETH&since=2025-12-01&until=2025-12-02" 
  -o hl_positions.csv

Funding

Endpoint: GET /v1/exchange/hyperliquid/funding

Funding rate data for Hyperliquid perpetual contracts.

curl -H "X-API-Key: $API_KEY" 
  "https://api.defistream.dev/v1/exchange/hyperliquid/funding?token=BTC&since=2025-12-01&until=2025-12-31" 
  -o hl_funding.csv

Sample Results:

timetokenrate
2025-12-01T00:00:00ZBTC0.0001
2025-12-01T01:00:00ZBTC0.00009
2025-12-01T02:00:00ZBTC0.00011

Quota & Limits

Hyperliquid endpoints use a day-based quota model. Cost is calculated as max(100, days_queried × daily_cost).

Time range limit: Maximum 31 days per request.

EndpointCost per dayExample (7 days)
fills, trades1,0007,000
ohlcv, positions100700
funding, transfers, vaults, sends, spot_transfers10100 (min)

Check response headers X-RateLimit-Remaining and X-Request-Cost to monitor usage.