Call it
curl https://api.peume.com/v1/call/polymarket-open-interest-history \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"condition_id": "your condition id",
"time_range": "30d"
}
}'const res = await fetch("https://api.peume.com/v1/call/polymarket-open-interest-history", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"condition_id": "your condition id",
"time_range": "30d"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/polymarket-open-interest-history",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"condition_id": "your condition id",
"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: polymarket-open-interest-history.
Parameters
condition_idRequiredstringMarket condition identifier. Example: 0x6fefc0438c7598b23531457c8c60541990d0786bd4bd9dfc3eabc8d95c291092.
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
