Perp funding rate and history
POST /api/perp-fundingCurrent funding rate for one perpetual (hourly, per 8h and annualized) plus the last N hourly funding prints with premium, and window statistics (average, min, max, share of positive hours). limit = hours of history (default 24, max 500). Hyperliquid public data, no key.
Input
| Field | Type | Description |
|---|---|---|
coin * | string | Perp ticker, e.g. BTC, ETH, SOL (case-insensitive). |
limit | number | Hourly history points to return (default 24, max 500). |
Example output
{
"source": "hyperliquid",
"coin": "BTC",
"markPx": 77267,
"current": {
"hourly": 0.0000125,
"per8h": 0.0001,
"aprPct": 10.95,
"premiumPct": 0.0388
},
"history": [
{
"time": "2026-08-22T11:00:00.000Z",
"fundingRate": 0.0000125,
"premium": 0.00043
}
],
"stats": {
"points": 24,
"avgHourly": 0.0000125,
"avgPer8h": 0.0001,
"avgAprPct": 10.95,
"minHourly": 0.0000125,
"maxHourly": 0.0000125,
"positiveSharePct": 100
},
"fetchedAt": "2026-08-22T12:00:00.000Z"
}
Try it - see the 402 challenge (free)
curl -i -X POST https://agent402.tools/api/perp-funding \
-H "Content-Type: application/json" \
-d '{"coin":"BTC","limit":24}'
The response is HTTP 402 Payment Required with exact payment requirements. Any x402 v2 client pays automatically and retries:
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/perp-funding", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"coin": "BTC",
"limit": 24
}),
});
Related tools
Crypto order book
GET /api/crypto-orderbookL2 order-book snapshot for a spot pair: best bid/ask, mid price, spread (absolute + %), and the top N aggregated price l…
try in playground →Stablecoin peg monitor
GET /api/stablecoin-pegLive $1-peg deviation for the top USD stablecoins (USDT, USDC, USDS, DAI, USDe, PYUSD, USDD, TUSD, FDUSD by default, or …
try in playground →Wallet balance (native + ERC-20)
POST /api/wallet-balanceLook up the native coin balance (ETH/MATIC) plus every ERC-20 holding for a wallet address on Ethereum, Base, Polygon, A…
try in playground →