GET /v1/info/klines
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/polymarket/v1/info/klinesCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeGet perpetual candlestick history.
start_timestamp/end_timestamp are in milliseconds, not seconds.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
instrument_id | query | int | required | Perpetual instrument id — the numeric `instrument_id` from /v1/info/instruments (e.g. ETH-USD) example: 7 |
interval | query | str1m | 5m | 15m | 1h | 4h | 1d | optional | Candle interval (1m/5m/15m/1h/4h/1d) default: 1mexample: 1m |
start_timestamp | query | int | required | Start timestamp in **milliseconds** (perps klines/mark-history/funding/trades) example: 1766000000000 |
end_timestamp | query | int | optional | End timestamp in **milliseconds** (perps klines/mark-history/funding/trades) |
Response
type: object
data key: data
pagination: none
sample: {
"data": "array[0]",
"more": "bool"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/polymarket/v1/info/klines?instrument_id=7&interval=1m&start_timestamp=1766000000000"