73trust / 100

Hyperliquid Perp

by Hyperliquid Funding & OI Data in Onchain & crypto

x402 APIPassing, checked 3 h ago

Hyperliquid vs Binance vs Bybit predicted funding comparison for one perpetual futures market, plus current funding rate, open interest and basis. Use when an agent monitors a perp position or funding carry. Input: coin (e.g. BTC, ETH, kPEPE). Output: JSON as_of, cache_age_s, 1h + annualized funding, OI coin/USD, mark/oracle/mid, basis %, premium, 24h volume and change, per-venue predicted funding, annualized spread. Unknown coin: 400, not charged. Example: ?coin=BTC

GET
https://1gateway.dev/v1/crypto/hyperliquid/perp
Price
$0.002
per call in USDC
Uptime
100%
last 30 days
Response time
1.2 s
1.4 s slowest 5%
Last check
Passed
3 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://1gateway.dev/v1/crypto/hyperliquid/perp

Each call costs $0.002 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://1gateway.dev/v1/crypto/hyperliquid/perp?coin=BTC

Parameters

ParameterTypeRequiredDescription
coinstringYesHyperliquid perp symbol, case-insensitive (BTC, ETH, SOL, HYPE, kPEPE). Not listed or delisted → 400 before payment (not charged)

Example response

The provider's example. We can't check it without paying.

Example response, 52 lines
{
  "as_of": "2026-10-17T06:49:10.000Z",
  "cache_age_s": 0,
  "coin": "BTC",
  "disclaimer": "Informational market data derived from Hyperliquid's info API; not financial advice. Funding is a rate per interval paid by longs to shorts when positive; annu…",
  "funding": {
    "annualizedPct": 10.95,
    "intervalHours": 1,
    "rate1h": 0.0000125,
    "ratePct1h": 0.00125
  },
  "market": {
    "maxLeverage": 40,
    "szDecimals": 5
  },
  "openInterest": {
    "coin": 41100.68436,
    "usd": 3353306195
  },
  "predictedFunding": {
    "arbitrage": {
      "annualizedSpreadPct": 5.42,
      "longVenue": "binance",
      "note": "Gross predicted carry: short the higher-funding venue, long the lower; before fees, slippage and basis moves",
      "shortVenue": "hyperliquid"
    },
    "venues": [
      {
        "annualizedPct": 5.53,
        "intervalHours": 8,
        "nextFundingTime": "2026-10-17T08:00:00.000Z",
        "rate": 0.00005049,
        "ratePer1h": 0.00000631125,
        "venue": "binance"
      }
    ]
  },
  "prices": {
    "basisPct": -0.0402,
    "change24hPct": -0.66,
    "mark": 81587.6,
    "mid": 81590.5,
    "oracle": 81620.4,
    "premium": -0.0003602041,
    "prevDay": 82128
  },
  "source": "Hyperliquid info API (metaAndAssetCtxs, predictedFundings)",
  "volume24h": {
    "base": 33239.11434,
    "usd": 2714721890
  }
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.002.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://1gateway.dev/v1/crypto/hyperliquid/perp?coin=BTC'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://1gateway.dev/v1/crypto/hyperliquid/perp?coin=BTC' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.002 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.002" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.002 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2F1gateway.dev%2Fv1%2Fcrypto%2Fhyperliquid%2Fperp
const res = await pay("https://1gateway.dev/v1/crypto/hyperliquid/perp?coin=BTC");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.002 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.002"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://1gateway.dev/v1/crypto/hyperliquid/perp?coin=BTC")
    print(res.status_code, res.text)

Security scan

No findings

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed4021.3 s$0.002
8 h agoPassed4021.2 s$0.002
13 h agoPassed4021.4 s$0.002
19 h agoPassed402659 ms$0.002