Call it
curl https://api.peume.com/v1/call/kalshi-price-history \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"ticker": "your ticker",
"time_range": "30d",
"interval": "1d"
}
}'const res = await fetch("https://api.peume.com/v1/call/kalshi-price-history", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"ticker": "your ticker",
"time_range": "30d",
"interval": "1d"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/kalshi-price-history",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"ticker": "your ticker",
"time_range": "30d",
"interval": "1d"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: kalshi-price-history.
Parameters
tickerRequiredstringMarket ticker identifier. Use GET /v1/prediction-market/kalshi/markets or GET /v1/search/prediction-market?platform=kalshi&q={keyword} to discover valid tickers. Example: KXBTC2026250-27JAN01-250000.
time_rangestringWindow of history to return: 7d, 30d, 90d, 180d, or 1y. Ignored when interval=latest. Distinct from interval (which sets bucket size within the window). Example: 30d. Defaults to "30d".
7d · 30d · 90d · 180d · 1y
Example: 30d
intervalstringBucket size for each point in the series: 1h (hourly OHLC), 1d (daily OHLC), or latest (single most-recent trade price). Distinct from time_range (window size). Example: 1d. Defaults to "1d".
1h · 1d · latest
Example: 1d
