83trust / 100
Perp Funding
by Perp funding rate and history in Onchain & crypto
x402 APIPassing, checked 23 min ago
Current and historical funding rate for one perpetual futures market, from a live derivatives venue: hourly rate, the 8-hour and annualized equivalents, the mark-vs-oracle premium, and a window of past prints with average, minimum, maximum and the share that were positive. Use it when an agent needs to know what holding a leveraged position costs right now, or wants to detect a funding regime flip before sizing a trade.
POST https://agent402.tools/api/perp-funding
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 186 ms typical, 186 ms slowest 5%
- Last check
- 23 min ago
- Next check
- in 7 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/perp-funding" \
-H "content-type: application/json" \
-d '{"coin":"BTC","limit":24}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fperp-funding
const res = await pay("https://agent402.tools/api/perp-funding", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"coin":"BTC","limit":24}),
});
console.log(await res.json());Example input
{
"coin": "BTC",
"limit": 24
}Example output
{
"coin": "BTC",
"current": {
"aprPct": 10.95,
"hourly": 0.0000125,
"per8h": 0.0001,
"premiumPct": 0.0388
},
"fetchedAt": "2026-08-22T12:00:00.000Z",
"history": [
{
"fundingRate": 0.0000125,
"premium": 0.00043,
"time": "2026-08-22T11:00:00.000Z"
}
],
"markPx": 77267,
"source": "hyperliquid",
"stats": {
"avgAprPct": 10.95,
"avgHourly": 0.0000125,
"avgPer8h": 0.0001,
"maxHourly": 0.0000125,
"minHourly": 0.0000125,
"points": 24,
"positiveSharePct": 100
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 23 min ago | Passed | 402 | 225 ms | $0.002 |
| 6 h ago | Passed | 402 | 186 ms | $0.002 |