GET /v1/info/mark-history

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/polymarket/v1/info/mark-historyCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Get perpetual mark-price history.

start_timestamp/end_timestamp are in milliseconds, not seconds.

Parameters

nameintypedescription
instrument_idqueryintrequiredPerpetual instrument id — the numeric `instrument_id` from /v1/info/instruments (e.g. ETH-USD)
example: 7
intervalquerystr
1m | 5m | 15m | 1h | 4h | 1d
optionalCandle interval (1m/5m/15m/1h/4h/1d)
default: 1m
example: 1m
start_timestampqueryintrequiredStart timestamp in **milliseconds** (perps klines/mark-history/funding/trades)
example: 1766000000000
end_timestampqueryintoptionalEnd 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/mark-history?instrument_id=7&interval=1m&start_timestamp=1766000000000"