Perp markets snapshot

$0.003 per call · USDC via x402 · POST /api/perp-markets

Snapshot of every listed perpetual on Hyperliquid in one call: mark and oracle price, 24h change, hourly funding (plus 8h and annualized), open interest in coins and USD, 24h notional volume, impact premium and max leverage. Send POST /api/perp-markets with no required fields (3 optional) and pay $0.003 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, count, totalMarkets, sort, markets and 1 more.

Sort by volume, openInterest, funding or change and cap the list with limit (max 500). Keyless public data.

Category: Crypto & onchain data · Tags: crypto derivatives perpetuals funding open-interest hyperliquid

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
limitnumbernoRows to return (default 50, max 500).
sortstringnovolume (default), openInterest, funding, change, or coin.
coinsstringnoOptional comma-separated coin filter (e.g. "BTC,ETH,SOL").

Example request

curl -i -X POST https://agent402.tools/api/perp-markets \
  -H "Content-Type: application/json" \
  -d '{"limit":10}'

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

Example response

{
  "source": "hyperliquid",
  "count": 2,
  "totalMarkets": 230,
  "sort": "volume",
  "markets": [
    {
      "coin": "BTC",
      "markPx": 77267,
      "oraclePx": 77236,
      "change24hPct": 0.39,
      "fundingHourly": 0.0000125,
      "funding8h": 0.0001,
      "fundingAprPct": 10.95,
      "openInterest": 35935.67,
      "openInterestUsd": 2776803000,
      "volume24hUsd": 4679441788.67,
      "premiumPct": 0.0388,
      "maxLeverage": 40
    }
  ],
  "fetchedAt": "2026-08-22T12:00:00.000Z"
}
FieldTypeAlways presentIn the example
sourcestringyeshyperliquid
countnumberyes2
totalMarketsnumberyes230
sortstringyesvolume
marketsarray of objectsyes1 item in the example
fetchedAtstringyes2026-08-22T12:00:00.000Z

From an MCP client

catalog.call {
  "slug": "perp-markets",
  "params": {
    "limit": 10
  }
}

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

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?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/perp-markets", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "limit": 10
  }),
});

Related tools

Perp funding rate and history

$0.002 · POST /api/perp-funding

Current funding rate for one perpetual (hourly, per 8h and annualized) plus the last N hourly funding prints with premiu…

Perp open interest

$0.001 · POST /api/perp-open-interest

Open interest for perpetuals in coins and USD notional. Pass coin for one market (with its share of total open interest)…

Crypto market pulse

$0.004 · POST /api/crypto-market-pulse

One-call market snapshot across every perpetual listed on Hyperliquid: breadth (advancers, decliners, unchanged, mean/me…

Perp premium and predicted funding

$0.002 · POST /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.002 · POST /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 tran…

Perp dex markets snapshot (HIP-3)

$0.003 · POST /api/perp-dex-markets

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