80trust / 100

Defi Perps

by Tanod chainpeek in Onchain & crypto

x402 APIPassing, checked 2 h ago

chainpeek (Tanod) Hyperliquid perpetual market list: mark, oracle, open interest, volume, max leverage, funding. Use when an agent needs the Hyperliquid perp market list: mark and oracle price, open interest, volume, max leverage.

POST https://tanod.dev/v1/defi/perps

Last 30 days

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

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://tanod.dev/v1/defi/perps' \
  -H 'content-type: application/json' \
  --data-raw '{"sort":"open_interest","symbols":["BTC","ETH"]}'
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%2Ftanod.dev%2Fv1%2Fdefi%2Fperps
const res = await pay("https://tanod.dev/v1/defi/perps", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"sort\":\"open_interest\",\"symbols\":[\"BTC\",\"ETH\"]}",
});
console.log(await res.json());

Example input

{
  "sort": "open_interest",
  "symbols": [
    "BTC",
    "ETH"
  ]
}

Example output

{
  "cache": "cache",
  "count": 2,
  "markets": [
    {
      "change_24h_pct": 0.871,
      "funding_annualized_pct": -0.321,
      "funding_hourly": -3.667e-7,
      "mark_price": 82596,
      "max_leverage": 40,
      "open_interest": 38270.7144,
      "open_interest_usd": 3161007923.28,
      "oracle_price": 82631.1,
      "premium": -0.00037637,
      "symbol": "BTC",
      "volume_24h_usd": 1895011324.57
    },
    {
      "change_24h_pct": 0.606,
      "funding_annualized_pct": 0.767,
      "funding_hourly": 0.0000087562,
      "mark_price": 2489.6,
      "max_leverage": 25,
      "open_interest": 1127204.7898,
      "open_interest_usd": 2806289044.69,
      "oracle_price": 2490.4,
      "premium": -0.00028108,
      "symbol": "ETH",
      "volume_24h_usd": 713597181.13
    }
  ],
  "note": "Data from the Hyperliquid public API; informational only, not investment or trading advice.",
  "source": {
    "docs": "https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint",
    "name": "Hyperliquid public API",
    "url": "https://api.hyperliquid.xyz/info"
  },
  "total_markets": 178
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402416 ms$0.002
6 h agoPassed402260 ms$0.002
10 h agoPassed402266 ms$0.002
14 h agoPassed402662 ms$0.002
18 h agoPassed402279 ms$0.002
21 h agoPassed402293 ms$0.002
25 h agoPassed402278 ms$0.002
28 h agoPassed402274 ms$0.002
32 h agoPassed402262 ms$0.002
36 h agoPassed402261 ms$0.002
39 h agoPassed402270 ms$0.002
43 h agoPassed402359 ms$0.002
47 h agoPassed402354 ms$0.002
2 days agoPassed402842 ms$0.002
2 days agoPassed402265 ms$0.002