Call it
curl https://api.peume.com/v1/call/liquidation-by-exchange \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"symbol": "BTC",
"time_range": "24h",
"sort_by": "liquidation_usd",
"order": "desc"
}
}'const res = await fetch("https://api.peume.com/v1/call/liquidation-by-exchange", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"symbol": "BTC",
"time_range": "24h",
"sort_by": "liquidation_usd",
"order": "desc"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/liquidation-by-exchange",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"symbol": "BTC",
"time_range": "24h",
"sort_by": "liquidation_usd",
"order": "desc"
}
},
)
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: liquidation-by-exchange.
Parameters
symbolstringToken ticker symbol like BTC or ETH. Example: BTC. Defaults to "BTC".
Example: BTC
time_rangestringWindow to aggregate over for the snapshot: 1h, 4h, 12h, or 24h. Returns a single snapshot (not a time-series). This endpoint uses time_range only — it does NOT accept interval. Example: 24h. Defaults to "24h".
1h · 4h · 12h · 24h
Example: 24h
sort_bystringField to sort results by. Example: liquidation_usd. Defaults to "liquidation_usd".
liquidation_usd · long_liquidation_usd · short_liquidation_usd
Example: liquidation_usd
orderstringSort order. Example: desc. Defaults to "desc".
asc · desc
Example: desc
