markPriceCandles
Get mark price candles
get/api/v1/markPriceCandles
Query parameters
market_idinteger · int16Required
Public market identifier returned by orderBooks or events.
resolutionstring · enumRequiredPossible values:
Time interval for each returned data point. Allowed values: 1m, 5m, 15m, 30m, 1h, 4h, 12h, 1d.
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_opensbooleanOptionalDefault:
Connect candle opens to the previous close.
falseResponses
200
A successful response.
application/json
codeinteger · int32RequiredExample:
200messagestringOptional
rstringRequiredExample:
resolution
15m400
Bad request
application/json
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?