Skip to main content
GET
Get historical candles
interval and from are required; from and to are Unix timestamps in milliseconds and to defaults to the current interval boundary. A request returns at most 5000 candles: when the range is wider, the most recent 5000 before to are returned. To read a longer history, request windows of at most 5000 intervals and move both from and to. Prices and volume are decimal strings; volume is in base asset units. This is a plain GET; the Perps API has no streaming price feed.

Authorizations

x-api-key
string
header
required

Path Parameters

marketId
string
required

The market identifier

Example:

"hyperliquid-btc-usdc"

Query Parameters

interval
enum<string>
required
Available options:
1m,
5m,
15m,
1h,
4h,
1d
Example:

"1h"

from
number
required

Start time (unix milliseconds)

Example:

1704067200000

to
number

End time (unix milliseconds)

Example:

1704153600000

Response

Candle data

marketId
string
required
Example:

"hyperliquid-btc-usdc"

interval
enum<string>
required
Available options:
1m,
5m,
15m,
1h,
4h,
1d
Example:

"1h"

candles
object[]
required