upDownCandles
Lighter only.
Get the OHLC candles (1s = the exact price observations, or 30s) of an up/down market series (symbol + duration, e.g. btc/5m) in a bounded time range (at most 24h), oldest first. Pass next_cursor as start_timestamp to page forward; live candles are on the up_down_candle/{symbol}/{duration}/{resolution} websocket channel.
These candles describe the underlying price used to resolve an Up/Down market. They are separate from order-book candles. Timestamps are in Unix seconds, and each request covers at most 24 hours. See Underlying price and Live Up/Down candlesticks.
market series: underlying (case-insensitive) ...
... and market duration, e.g. 30s or 5m
1s candles are the observations themselves Allowed values: 1s, 30s.
1sPossible values: Inclusive start of the requested time range, as a Unix timestamp in milliseconds.
End of the requested time range, as a Unix timestamp in milliseconds.
Maximum number of records to return.
1000A successful response.
Fields with zero or empty values may be omitted; handle optional properties when decoding responses.
200start_timestamp of the next page; 0 when the range is exhausted
0Bad request
GET /api/v1/upDownCandles?symbol=text&duration=text&start_timestamp=1&end_timestamp=1 HTTP/1.1
Host: mainnet.zklighter.elliot.ai
Accept: */*
{
"code": 200,
"message": "text",
"candles": [
{
"symbol": "btc",
"duration": "5m",
"resolution": "30s",
"timestamp": 1789551600,
"open": "115342.123456789012345678",
"high": "115350.5",
"low": "115300.25",
"close": "115340.123456789012345678",
"provider": "chainlink",
"feed_id": "0x0002ee6757e8822c00d273bc340fc24c9cafe123a4ff2ea1dbdb31944bc7d95f"
}
],
"next_cursor": 0
}Last updated
Was this helpful?