Call it
curl https://api.peume.com/v1/call/kalshi-trades \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"ticker": "your ticker",
"sort_by": "timestamp",
"order": "desc",
"limit": 50,
"offset": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/kalshi-trades", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"ticker": "your ticker",
"sort_by": "timestamp",
"order": "desc",
"limit": 50,
"offset": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/kalshi-trades",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"ticker": "your ticker",
"sort_by": "timestamp",
"order": "desc",
"limit": 50,
"offset": 0
}
},
)
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-trades.
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.
taker_sidestringFilter by taker side: yes or no.
yes · no
min_amountintegerMinimum notional volume in USD (each contract = $1).
fromstringStart of time range. Accepts Unix seconds (1704067200) or date string (2024-01-01).
tostringEnd of time range. Accepts Unix seconds (1706745600) or date string (2024-02-01).
sort_bystringField to sort results by. Example: timestamp. Defaults to "timestamp".
timestamp · notional_volume_usd
Example: timestamp
orderstringSort order. Example: desc. Defaults to "desc".
asc · desc
Example: desc
limitintegerResults per page. Example: 50. Defaults to 50.
Example: 50
offsetintegerPagination offset. Example: 0. Defaults to 0.
Example: 0
