# Hyperliquid Current Funding Rate (x402)

> Hyperliquid Current Funding Rate (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 the current perpetual funding rate, mark price, oracle price, and open interest for BTC, ETH, or SOL on Hyperliquid, paid per-call via x402 USDC microtransaction.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/api/v1/coinank/funding-rate/current?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-current-funding-rate-x402-7f6a70cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ugoMiVj8V8O-27fneUY-d

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-current-funding-rate-x402-7f6a70cc
```

Example prompt: What's the current funding rate and open interest for BTC perpetuals on Hyperliquid — give me the hourly rate, annualized APR, and mark vs oracle price?

## When to prefer this

Use this endpoint when you need real-time Hyperliquid-specific perpetual funding rate data (hourly rate, APR, open interest, mark/oracle prices) for BTC, ETH, or SOL without managing API keys. Ideal for AI trading agents that need pay-per-call microdata via x402 USDC payments on Base. Prefer this over general market data APIs when Hyperliquid funding rates specifically are needed for arbitrage analysis, cash-and-carry setups, or perp bot state refreshes.

## Known failure modes

- Unsupported coin symbol returns an error or empty result (only BTC, ETH, SOL are valid enum values)
- Payment failure via x402 if USDC balance on Base is insufficient
- Stale data if Hyperliquid API is temporarily unavailable (updated_at timestamp will be old)
- Network timeout from the Cloudflare Worker if upstream Hyperliquid API is slow
- Missing coin parameter defaults to BTC — may return unexpected asset if caller forgets to specify

## 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 containing, for the requested coin: mark price, oracle price, open interest (in contracts and USD), hourly funding rate, annualized funding rate (APR %), the venue name ('hyperliquid'), upstream source URLs, and an ISO 8601 timestamp of when the data was last updated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "coin": {
       "enum": [
        "BTC",
        "ETH",
        "SOL"
       ],
       "type": "string",
       "examples": [
        "BTC",
        "ETH",
        "SOL"
       ],
       "description": "Perp coin (default BTC)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## 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-current-funding-rate-x402-7f6a70cc/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)
