81trust / 100

Spot

by x402stock.xyz in Onchain & crypto

x402 APIPassing, checked 3 h ago

Live on-chain spot prices for every token on the Hyperliquid DEX (HYPE, PURR, and hundreds more), quoted in USDC: mid/mark price, previous-day price, 24h USD and base volume, circulating and total supply, and market cap — sorted by 24h volume. Spot, not derivatives: for funding/open interest use /api/v1/perps; for major-coin fiat prices use /api/v1/crypto. From x402stock

GET https://x402stock.xyz/api/v1/spot

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402stock.xyz/api/v1/spot"
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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402stock.xyz%2Fapi%2Fv1%2Fspot
const res = await pay("https://x402stock.xyz/api/v1/spot");
console.log(await res.json());

Example input

{}

Example output

{
  "as_of": "2026-06-04T00:00:00.000Z",
  "count": 1,
  "market": "spot",
  "pairs": [
    {
      "base_token": "HYPE",
      "canonical": false,
      "circulating_supply": 333928438,
      "day_volume_base": 53570,
      "day_volume_usd": 3446893.64,
      "id": "@107",
      "mark_price": 64.436,
      "market_cap_usd": 21515620000,
      "mid_price": 64.45,
      "pair": "HYPE/USDC",
      "prev_day_price": 61.519,
      "quote_token": "USDC",
      "total_supply": 1000000000
    }
  ],
  "source": "x402stock",
  "venue": "hyperliquid"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402239 ms$0.02