Call it
curl https://api.peume.com/v1/call/polymarket-volume-history \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"time_range": "30d",
"interval": "1d"
}
}'const res = await fetch("https://api.peume.com/v1/call/polymarket-volume-history", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"time_range": "30d",
"interval": "1d"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/polymarket-volume-history",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"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: polymarket-volume-history.
Parameters
condition_idstringMarket condition identifier (required if token_id not provided). Example: 0x6fefc0438c7598b23531457c8c60541990d0786bd4bd9dfc3eabc8d95c291092.
token_idstringToken ID (alternative identifier, resolved to condition_id internally).
time_rangestringWindow of history to return (how much data, from now backward): 7d, 30d, 90d, 180d, or 1y. 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 returned series: 1h (hourly) or 1d (daily). Distinct from time_range (which sets the window size). Example: 1d. Defaults to "1d".
1h · 1d
Example: 1d
granularitystringAggregation granularity (alternative to interval). When provided, queries daily table with buy/sell volume breakdown.
day · week · month · year · all
start_timeintegerStart time as Unix seconds (alternative to time_range).
end_timeintegerEnd time as Unix seconds (alternative to time_range).
