# Hyperliquid Perp Funding & Market Data

> Hyperliquid Perp Funding & Market Data is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-31).

Returns Hyperliquid perpetual funding rates (hourly + APR), open interest, mark/oracle/mid prices, and 24h volume for BTC, ETH, or SOL

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/hl-funding?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hyperliquid-perp-funding-market-data-b294115e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Fw-XLNdDmX4KIeFk4HPZH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability hyperliquid-perp-funding-market-data-b294115e
```

Example prompt: What's the current hourly funding rate and annualized APR for ETH perpetuals on Hyperliquid, along with the mark price and total open interest in USD?

## When to prefer this

Choose this endpoint when you need real-time Hyperliquid-specific perpetual funding rates and open interest for BTC, ETH, or SOL — particularly for onchain AI agents that can pay micro-fees via x402/USDC on Base. Prefer this over generic market data APIs when you specifically need Hyperliquid venue data including funding APR, mark vs oracle price spread, and USD-denominated open interest in a single lightweight call.

## Known failure modes

- Invalid coin parameter (not BTC/ETH/SOL) returns 400 error
- Hyperliquid upstream API unavailable causes 502/503
- Payment not included or insufficient USDC on Base triggers 402 Payment Required
- Rate limiting if too many calls in rapid succession
- Stale data if Hyperliquid feed is delayed

## How this service works

Hyperliquid perp funding (hourly + APR), open interest (coins + USD), mark/oracle/mid px, 24h volume for BTC, ETH, SOL. Optional coin=BTC.

## Output

A JSON object keyed by coin (BTC, ETH, or SOL) containing: mark price, oracle price, open interest in coins, open interest in USD, hourly funding rate, annualized funding APR percentage, plus venue name ('hyperliquid'), data sources array, and an updated_at timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coins": {
   "BTC": {
    "mark_px": 80860,
    "oracle_px": 80870,
    "open_interest": 30000,
    "funding_hourly": 0.0000125,
    "funding_apr_pct": 10.95,
    "open_interest_usd": 2426000000
   }
  },
  "venue": "hyperliquid",
  "sources": [
   "https://api.hyperliquid.xyz/info"
  ],
  "updated_at": "2026-10-28T11:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hyperliquid-perp-funding-market-data-b294115e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kr-x402-mvp.kgy5612.workers.dev](https://www.zero.xyz/host/kr-x402-mvp.kgy5612.workers.dev/llms.txt)
