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 freeHigh-resolution candles for short-duration Up/Down prediction markets.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
symbol | query | str | required | Underlying symbol (e.g. ETH, BTC). example: ETH |
duration | query | str | required | Round duration (e.g. 15m, 1h). example: 15m |
resolution | query | str | optional | Sub-candle resolution (e.g. 1s). |
start_timestamp | query | int | required | Start Unix timestamp in seconds. example: 1795796508 |
end_timestamp | query | int | required | End Unix timestamp in seconds. example: 1795882908 |
limit | query | int | optional | Max 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"