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

markPriceCandles

Get mark price candles

get
/api/v1/markPriceCandles
Query parameters
market_idinteger · int16Required

Public market identifier returned by orderBooks or events.

resolutionstring · enumRequired

Time interval for each returned data point. Allowed values: 1m, 5m, 15m, 30m, 1h, 4h, 12h, 1d.

Possible values:
start_timestampinteger · int64 · max: 5000000000000Required

Inclusive start of the requested time range, as a Unix timestamp in milliseconds. These history endpoints also accept Unix seconds.

end_timestampinteger · int64 · max: 5000000000000Required

End of the requested time range, as a Unix timestamp in milliseconds. These history endpoints also accept Unix seconds.

count_backinteger · int64Required

Backward-window sizing hint when start_timestamp is 0. An explicit start/end range takes precedence; this is not a strict limit on response length.

connect_opensbooleanOptional

Connect candle opens to the previous close.

Default: false
Responses
200

A successful response.

application/json
codeinteger · int32RequiredExample: 200
messagestringOptional
rstringRequired

resolution

Example: 15m
get/api/v1/markPriceCandles
GET /api/v1/markPriceCandles?market_id=1&resolution=1m&start_timestamp=1&end_timestamp=1&count_back=1 HTTP/1.1
Host: mainnet.zklighter.elliot.ai
Accept: */*
{
  "code": 200,
  "message": "text",
  "r": "15m",
  "c": [
    {
      "t": 1640995200,
      "o": 3024.66,
      "h": 3034.66,
      "l": 3014.66,
      "c": 3024.66,
      "sc": 42
    }
  ]
}

Last updated

Was this helpful?