Call it
curl https://api.peume.com/v1/call/token-price-history \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"symbol": "your symbol",
"time_range": "30d",
"currency": "usd"
}
}'const res = await fetch("https://api.peume.com/v1/call/token-price-history", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"symbol": "your symbol",
"time_range": "30d",
"currency": "usd"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/token-price-history",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"symbol": "your symbol",
"time_range": "30d",
"currency": "usd"
}
},
)
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: token-price-history.
Parameters
symbolRequiredstringSingle token ticker symbol like BTC, ETH, or SOL (multi-symbol not supported). Example: BTC.
time_rangestringWindow of historical data to return: 1d, 7d, 14d, 30d, 90d, 180d, 365d, or max. Ignored when from/to are set. This endpoint uses time_range only — it does NOT accept interval; bucket granularity is chosen server-side based on the window size. Example: 30d. Defaults to "30d".
1d · 7d · 14d · 30d · 90d · 180d · 365d · max
Example: 30d
fromstringStart of custom date range (Unix timestamp or YYYY-MM-DD). Must be used together with to. Overrides time_range when set. Example: 2025-01-01.
tostringEnd of custom date range (Unix timestamp or YYYY-MM-DD). Must be used together with from. Overrides time_range when set. Example: 2025-03-01.
currencystringQuote currency like usd, eur, or btc. Example: usd. Defaults to "usd".
Example: usd
