Perp dex markets snapshot (HIP-3)

$0.003 per call · USDC via x402 · 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 (plus 8h and annualized), open interest in units and USD, 24h notional volume, impact premium, max leverage, growth mode, isolated-only and margin mode, deployer fee scale, and the dex's collateral token. Send POST /api/perp-dex-markets with the required field dex and pay $0.003 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, dex, collateralToken, count, totalMarkets and 4 more.

Coins carry the dex prefix (xyz:TSLA). Sort by volume, openInterest, funding, change or coin; limit caps the list (max 500). Keyless public data.

Category: Crypto & onchain data · Tags: crypto derivatives perpetuals hip-3 hyperliquid

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
dexstringyesHIP-3 dex name, e.g. xyz (list them with perp-dexs).
limitnumbernoRows to return (default 50, max 500).
sortstringnovolume (default), openInterest, funding, change, or coin.

Example request

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

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

Example response

{
  "source": "hyperliquid",
  "dex": "xyz",
  "collateralToken": 0,
  "count": 1,
  "totalMarkets": 108,
  "delistedMarkets": 15,
  "sort": "volume",
  "markets": [
    {
      "coin": "xyz:TSLA",
      "markPx": 431.2,
      "oraclePx": 431.1,
      "change24hPct": 1.2,
      "fundingHourly": 0.00000625,
      "funding8h": 0.00005,
      "fundingAprPct": 5.475,
      "openInterest": 8837.2,
      "openInterestUsd": 3810601,
      "volume24hUsd": 158407743.45,
      "premiumPct": -0.0051,
      "maxLeverage": 20,
      "szDecimals": 3,
      "dex": "xyz",
      "growthMode": "enabled",
      "onlyIsolated": false,
      "marginMode": null,
      "deployerFeeScale": 1
    }
  ],
  "fetchedAt": "2026-09-18T12:00:00.000Z"
}
FieldTypeAlways presentIn the example
sourcestringyeshyperliquid
dexstringyesxyz
collateralTokennumberyes0
countnumberyes1
totalMarketsnumberyes108
delistedMarketsnumberyes15
sortstringyesvolume
marketsarray of objectsyes1 item in the example
fetchedAtstringyes2026-09-18T12:00:00.000Z

From an MCP client

catalog.call {
  "slug": "perp-dex-markets",
  "params": {
    "dex": "xyz",
    "limit": 5
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for perp-dex-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-dex-markets", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "dex": "xyz",
    "limit": 5
  }),
});

Related tools

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 dexs (HIP-3 builder-deployed)

$0.002 · POST /api/perp-dexs

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

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 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 candles (OHLCV)

$0.001 · POST /api/perp-klines

OHLCV candles for one perpetual at intervals from 1m to 1M (1m 3m 5m 15m 30m 1h 2h 4h 8h 12h 1d 3d 1w 1M), newest last, …

Perp markets snapshot

$0.003 · POST /api/perp-markets

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