# Hyperliquid Funding Rate & Open Interest Data (x402)

> Hyperliquid Funding Rate & Open Interest Data (x402) 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 per-coin perpetual funding rates and open interest from Hyperliquid, paid per-call via x402 USDC micropayment on Base — no API key required.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/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-funding-rate-open-interest-data-x402-d50e9bb0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KX2z3lPcFCGoXuFKn5pdT

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-funding-rate-open-interest-data-x402-d50e9bb0
```

Example prompt: What are the current Hyperliquid funding rates and open interest for BTC right now — give me the hourly rate, annualized APR, and total open interest in USD?

## When to prefer this

Choose this endpoint when your AI agent needs real-time Hyperliquid perpetual funding rates and open interest without managing API keys — ideal for autonomous trading agents that already handle x402 USDC micropayments on Base. Prefer it over direct Hyperliquid API calls when you want a pay-per-call model with no authentication setup, or when combining with other crypto microdata endpoints (gas, prices, kimchi premium) from the same provider in a single agent workflow.

## Known failure modes

- Payment not attached or invalid USDC micropayment returns HTTP 402
- Hyperliquid upstream API unavailable causes stale or missing data
- Unsupported coin symbol returns empty coins object
- Network timeout from Cloudflare Worker if Hyperliquid API is slow
- Malformed request may return 400 bad request

## How this service works

Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.

## Output

A JSON object keyed by coin symbol (e.g. BTC, ETH) containing: mark price, oracle price, open interest (in contracts and USD), hourly funding rate, annualized funding rate as a percentage, the venue name ('hyperliquid'), upstream data source URLs, 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-funding-rate-open-interest-data-x402-d50e9bb0/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)
