Skip to content

Perp funding rate and history

$0.002 per callUSDC via x402POST /api/perp-funding

Current 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). Send POST /api/perp-funding with the required field coin and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, coin, markPx, current, history and 2 more.

Hyperliquid public data, no key.

Category: Crypto & onchain dataTags: crypto derivatives perpetuals funding funding-history hyperliquid

Try in playground →

Parameters

NameTypeRequiredDescription
coinstringyesPerp ticker, e.g. BTC, ETH, SOL (case-insensitive). Also accepted as symbol, id, ticker, asset, currency.
limitnumbernoHourly history points to return (default 24, max 500).

Example request

curl -i -X POST https://agent402.tools/api/perp-funding \
  -H "Content-Type: application/json" \
  -d '{"coin":"BTC","limit":24}'

Without payment this returns HTTP 402 Payment Required with the exact price for perp-funding; any x402 v2 or MPP client pays it and retries.

Watch a call get paid

RequestPOST /api/perp-funding
402$0.002 USDC
SignPAYMENT-SIGNATURE
Settleon 14 chains
Answer200 OK
ReceiptAgent402-ReceiptEd25519

Example response

{
  "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"
}
FieldTypeAlways presentIn the example
sourcestringyeshyperliquid
coinstringyesBTC
markPxnumberyes77267
currentobjectyes4 fields: hourly, per8h, aprPct, premiumPct
historyarray of objectsyes1 item in the example
statsobjectyes7 fields: points, avgHourly, avgPer8h, avgAprPct, minHourly and 2 more
fetchedAtstringyes2026-08-22T12:00:00.000Z

From an MCP client

catalog.call {
  "slug": "perp-funding",
  "params": {
    "coin": "BTC",
    "limit": 24
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for perp-funding; the stdio package pays it from a wallet or from an AGENT402_CREDITS_KEY issued earlier. Local install: npx -y agent402-mcp@0.14.0.

Errors and behavior

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();
client.setSpendControls?.({ maxAmountPerPayment: "$0.002" }); // refuse any quote above this tool's price
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

Perp markets snapshot

$0.003POST /api/perp-markets

Snapshot of every listed perpetual on Hyperliquid in one call: mark and oracle price, 24h change, hourly funding (plus.

Funding rate screener across venues

$0.005GET /api/funding-screener

Perpetual funding for one coin across every listed derivatives venue, computed in one call: open-interest-weighted.

Perp premium and predicted funding

$0.002POST /api/perp-basis

Basis view for one perpetual: mark, oracle and mid price, mark-vs-oracle premium in percent and bps, the impact premium.

Perp dex limits and status (HIP-3)

$0.002POST /api/perp-dex-limits

Risk limits and status of ONE builder-deployed perp dex (HIP-3): total open-interest cap, per-perp OI size cap, max.

Perp dex markets snapshot (HIP-3)

$0.003POST /api/perp-dex-markets

Snapshot of every market on ONE builder-deployed perp dex (HIP-3): mark and oracle price, 24h change, hourly funding.

Perp dexs (HIP-3 builder-deployed)

$0.002POST /api/perp-dexs

Every builder-deployed perpetuals dex on Hyperliquid (HIP-3): dex name, full name, deployer, oracle updater and fee.