81trust / 100

Perp Dex Markets

by Perp dex markets snapshot in Onchain & crypto

x402 APIPassing, checked 5 h ago

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. Coins carry the dex prefix (xyz:TSLA). Sort by volume, openInterest, funding, change or coin; limit caps the list (max 500). Keyless public data.

POST https://agent402.tools/api/perp-dex-markets

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
201 ms typical, 201 ms slowest 5%
Last check
5 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/perp-dex-markets" \
  -H "content-type: application/json" \
  -d '{"dex":"xyz","limit":5}'
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-dex-markets
const res = await pay("https://agent402.tools/api/perp-dex-markets", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"dex":"xyz","limit":5}),
});
console.log(await res.json());

Example input

{
  "dex": "xyz",
  "limit": 5
}

Example output

{
  "collateralToken": 0,
  "count": 1,
  "delistedMarkets": 15,
  "dex": "xyz",
  "fetchedAt": "2026-09-18T12:00:00.000Z",
  "markets": [
    {
      "change24hPct": 1.2,
      "coin": "xyz:TSLA",
      "deployerFeeScale": 1,
      "dex": "xyz",
      "funding8h": 0.00005,
      "fundingAprPct": 5.475,
      "fundingHourly": 0.00000625,
      "growthMode": "enabled",
      "marginMode": null,
      "markPx": 431.2,
      "maxLeverage": 20,
      "onlyIsolated": false,
      "openInterest": 8837.2,
      "openInterestUsd": 3810601,
      "oraclePx": 431.1,
      "premiumPct": -0.0051,
      "szDecimals": 3,
      "volume24hUsd": 158407743.45
    }
  ],
  "sort": "volume",
  "source": "hyperliquid",
  "totalMarkets": 108
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402201 ms$0.003