Call it
curl https://api.peume.com/v1/call/exchange-funding-rate-history \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"pair": "your pair",
"limit": 100,
"exchange": "binance"
}
}'const res = await fetch("https://api.peume.com/v1/call/exchange-funding-rate-history", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"pair": "your pair",
"limit": 100,
"exchange": "binance"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/exchange-funding-rate-history",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"pair": "your pair",
"limit": 100,
"exchange": "binance"
}
},
)
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: exchange-funding-rate-history.
Parameters
pairRequiredstringTrading pair (e.g. BTC/USDT). Example: BTC/USDT.
fromstringStart of time range. Accepts Unix seconds or date string (YYYY-MM-DD, ISO8601). Not all exchanges support historical queries; some only return recent data regardless of this value. Example: 2026-03-01.
limitintegerMax number of records. For longer history, paginate using the last returned timestamp as the next from value. Example: 100. Defaults to 100.
Example: 100
exchangestringExchange identifier. Note: hyperliquid uses USDC-settled perps (e.g. BTC/USDC:USDC); pass USDC-quoted pairs when querying hyperliquid. Example: binance. Defaults to "binance".
binance · okx · bybit · bitget · gate · htx · mexc · bitfinex · bitmex · hyperliquid
Example: binance
