Call it
curl https://api.peume.com/v1/call/kalshi-open-interest-history \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"ticker": "your ticker",
"time_range": "30d"
}
}'const res = await fetch("https://api.peume.com/v1/call/kalshi-open-interest-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"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/kalshi-open-interest-history",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"ticker": "your ticker",
"time_range": "30d"
}
},
)
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-open-interest-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. This endpoint uses time_range only — it does NOT accept interval. Example: 30d. Defaults to "30d".
7d · 30d · 90d · 180d · 1y
Example: 30d
