HyperliquidHyperliquid REST APIMarket data

Get Candle Data

Get historical price candles for technical analysis.

Rate Limit: 20 weight

POST
/v1/info/candleSnapshot

Request Body

application/json

type*enum<string>required

Request type identifier

Available options: candleSnapshot
req*objectrequired
coin*stringrequired

Trading pair symbol

Example: BTC
interval*enum<string>required

Candle time interval

Available options: 1m5m15m1h4h1d
startTime*integerrequired

Start time in milliseconds

endTime*integerrequired

End time in milliseconds

Response Body

application/json

application/json

curl -X POST "https://api.hypereth.io/v1/info/candleSnapshot" \  -H "Content-Type: application/json" \  -d '{    "type": "candleSnapshot",    "req": {      "coin": "BTC",      "interval": "1h",      "startTime": 1681920000000,      "endTime": 1681923600000    }  }'
[
  {
    "T": 1681923600000,
    "o": "43200.0",
    "h": "43350.5",
    "l": "43150.0",
    "c": "43250.0",
    "v": "125.75",
    "n": 47
  }
]
{
  "error": "Insufficient margin for order placement",
  "code": 1001,
  "details": {}
}