Get Klines
Changed onGet klines for an instrument. If no end time is provided, the current time will be used. Maximum of 1000 entries returned per request.
get/v1/info/klines
Request
- Base URL: https://api.perpetuals.polymarket.com
- URL: https://api.perpetuals.polymarket.com/v1/info/klines
- Auth: none required
Query parameters
instrument_idinteger required
Instrument ID
interval'1s' | '1m' | '5m' | '15m' | '30m' | '1h' | '4h' | '6h' | '12h' | '1d' | '1w' required
Kline interval
start_timestampinteger required
Start timestamp in milliseconds
Example:1767225600000
end_timestampinteger
End timestamp in milliseconds
Example:1767229200000
Response
Klines response.
Example response
{
"data": [
[
1767225600000,
"100.00",
"105.00",
"99.00",
"102.00",
"500.00",
42
]
]
}Changes
- breaking
for the
queryrequest parameterinstrument_id, the format changed from no format toint64 - warning
for the
queryrequest parameterinstrument_id, the max was set to4294967295.00 - warning
for the
queryrequest parameterinstrument_id, the min was set to0.00
- breaking