Call it
curl https://api.peume.com/v1/call/dex-protocol-activity \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"chain": "ethereum",
"time_range": "7d",
"group_by": "total"
}
}'const res = await fetch("https://api.peume.com/v1/call/dex-protocol-activity", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"chain": "ethereum",
"time_range": "7d",
"group_by": "total"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/dex-protocol-activity",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"chain": "ethereum",
"time_range": "7d",
"group_by": "total"
}
},
)
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: dex-protocol-activity.
Parameters
chainRequiredstringChain to query. Example: ethereum.
ethereum · base · bsc · arbitrum · tron
projectstringDEX project name (e.g. uniswap, pancakeswap, aerodrome). Exactly one of project / address is required. Example: uniswap.
addressstringA specific router/contract measured as tx_to. Exactly one of project / address is required. Example: 0x1111111254eeb25477b68fb85ed929f73a960582.
time_rangestringLook-back window (hard 90d cap). Overridden by from/to when set. Defaults to "7d".
1d · 7d · 30d · 90d
Example: 7d
fromstringStart of range — Unix seconds or YYYY-MM-DD. With to, the range may span at most 90 days. Example: 2025-01-01.
tostringEnd of range — Unix seconds or YYYY-MM-DD. Without from, the window is time_range ending at to. Example: 2025-02-01.
group_bystringtotal = single aggregate; day = daily series (newest first). Defaults to "total".
total · day
Example: total
