GET /api/v1/upDownCandles

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/lighter/api/v1/upDownCandlesCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

High-resolution candles for short-duration Up/Down prediction markets.

Parameters

nameintypedescription
symbolquerystrrequiredUnderlying symbol (e.g. ETH, BTC).
example: ETH
durationquerystrrequiredRound duration (e.g. 15m, 1h).
example: 15m
resolutionquerystroptionalSub-candle resolution (e.g. 1s).
start_timestampqueryintrequiredStart Unix timestamp in seconds.
example: 1795796508
end_timestampqueryintrequiredEnd Unix timestamp in seconds.
example: 1795882908
limitqueryintoptionalMax candles.
example: 5

Response

type: object
data key: candles
cursor key: next_cursor
pagination: cursor
sample: {
  "code": "int",
  "candles": "array[5]",
  "next_cursor": "int"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/lighter/api/v1/upDownCandles?symbol=ETH&duration=15m&start_timestamp=1795796508&end_timestamp=1795882908&limit=5"