GET /official/historical/markets
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/kalshi/official/historical/marketsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeSettled markets list.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
limit | query | int | optional | Page size (1-1000) default: 10example: 5 |
cursor | query | str | optional | Opaque pagination cursor from a previous response example: |
Response
type: object
data key: markets
cursor key: cursor
pagination: cursor
sample: {
"cursor": "str",
"markets": "array[5]"
}
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?limit=5&cursor="