Call it
curl https://api.peume.com/v1/call/market-candles \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"symbol": "your symbol",
"interval": "4h",
"from": "your from",
"to": "your to"
}
}'const res = await fetch("https://api.peume.com/v1/call/market-candles", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"symbol": "your symbol",
"interval": "4h",
"from": "your from",
"to": "your to"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/market-candles",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"symbol": "your symbol",
"interval": "4h",
"from": "your from",
"to": "your to"
}
},
)
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: market-candles.
Parameters
symbolRequiredstringHyperliquid market id (for example BTC, kPEPE, xyz:GOLD, the canonical PURR/USDC spot pair, or an @index spot market). Example: SOL.
intervalstringCandle granularity. Example: 4h. Defaults to "4h".
1m · 3m · 5m · 15m · 30m · 1h · 2h · 4h · 8h · 12h · 1d · 3d …
Example: 4h
fromRequiredstringWindow start (Unix seconds, an ISO datetime, or a bare UTC date). Example: 2026-05-16.
toRequiredstringWindow end (Unix seconds, an ISO datetime, or a bare UTC date; a bare date means the end of that day). Example: 2026-05-19.
