Skip to main content
POST
/
api
/
kalshi
/
markets
/
history
/kalshi/markets/history
curl --request POST \
  --url https://api.anysite.io/api/kalshi/markets/history \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "series_ticker": "<string>",
  "ticker": "<string>",
  "start_ts": 1,
  "end_ts": 1,
  "timeout": 300
}
'
[
  {
    "end_period_at": 123,
    "@type": "@kalshi_candlestick",
    "open": 123,
    "high": 123,
    "low": 123,
    "close": 123,
    "mean": 123,
    "previous": 123,
    "volume": 123,
    "open_interest": 123,
    "yes_bid": {
      "@type": "@kalshi_candlestick_ohlc",
      "open": 123,
      "high": 123,
      "low": 123,
      "close": 123
    },
    "yes_ask": {
      "@type": "@kalshi_candlestick_ohlc",
      "open": 123,
      "high": 123,
      "low": 123,
      "close": 123
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
series_ticker
string
required

Series ticker the market belongs to

Minimum string length: 1
Examples:

"KXBTCD"

"KXHIGHNY"

ticker
string
required

Market ticker of the tradeable Yes/No contract

Minimum string length: 1
Example:

"KXBTCD-26JUN1604-T74799.99"

start_ts
integer
required

Window start as a Unix timestamp in seconds

Required range: x >= 0
end_ts
integer
required

Window end as a Unix timestamp in seconds

Required range: x >= 0
period_interval
enum<integer>
required

Candle interval in minutes: 1 (1m), 60 (1h), or 1440 (1d)

Available options:
1,
60,
1440
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

end_period_at
integer
required
@type
string
default:@kalshi_candlestick
open
number | null
high
number | null
low
number | null
close
number | null
mean
number | null
previous
number | null
volume
integer | null
open_interest
integer | null
yes_bid
KalshiCandlestickOHLC · object
yes_ask
KalshiCandlestickOHLC · object