For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

get
/api/v1/upDownCandles
Query parameters
symbolstringRequired

market series: underlying (case-insensitive) ...

durationstringRequired

... and market duration, e.g. 30s or 5m

resolutionstring · enumOptional

1s candles are the observations themselves Allowed values: 1s, 30s.

Default: 1sPossible values:
start_timestampinteger · int64 · max: 5000000000Required

Inclusive start of the requested time range, as a Unix timestamp in milliseconds.

end_timestampinteger · int64 · max: 5000000000Required

End of the requested time range, as a Unix timestamp in milliseconds.

limitinteger · int64 · min: 1 · max: 3600Optional

Maximum number of records to return.

Default: 1000
Responses
200

A successful response.

application/json

Fields with zero or empty values may be omitted; handle optional properties when decoding responses.

codeinteger · int32RequiredExample: 200
messagestringOptional
next_cursorinteger · int64Optional

start_timestamp of the next page; 0 when the range is exhausted

Example: 0
get/api/v1/upDownCandles
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?