GET /official/historical/markets/{ticker}/candlesticks

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/kalshi/official/historical/markets/{ticker}/candlesticksCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

OHLC candlesticks for a market archived from the live dataset.

Parameters

nameintypedescription
tickerpathstrrequiredMarket ticker (e.g. KXBTC15M-26AUG232115-15)
example: KXBTC15M-26AUG232115-15
start_tsqueryintrequiredUNIX seconds range start
example: 1787400000
end_tsqueryintrequiredUNIX seconds range end (<= market close)
example: 1787500000
period_intervalqueryint
1 | 60 | 1440
requiredCandlestick length in minutes (1, 60, 1440); at most 5000 periods per request
example: 1

Response

type: object
data key: candlesticks
pagination: none
sample: {
  "candlesticks": "array[15]",
  "ticker": "str"
}

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/kalshi/official/historical/markets/KXBTC15M-26AUG232115-15/candlesticks?start_ts=1787400000&end_ts=1787500000&period_interval=1"