# Live Perpetual Funding Rates API

> Live Perpetual Funding Rates API is a paid API for AI agents from klane402.deanhiki.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-31).

Returns live perpetual futures funding rates normalized to hourly rate and APR across up to 5 venues (Hyperliquid, Bybit, Pacifica, Extended, Lighter), with mark price and open interest, cached ≤60s.

## Facts

- Endpoint: GET https://klane402.deanhiki.workers.dev/api/funding/latest?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/live-perpetual-funding-rates-api-d26e7073
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qiQbhHdhZ4sayYqK_6MJ7

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 live-perpetual-funding-rates-api-d26e7073
```

Example prompt: What's the current funding rate for BTC across Hyperliquid, Bybit, and the other supported venues — give me the hourly rate and APR for each?

## When to prefer this

Use this endpoint when you need normalized, cross-venue perpetual funding rate data aggregated in a single call. It is preferable to querying individual exchange APIs separately because it normalizes all rates to hourly and APR formats, covers 5 venues simultaneously, and is already aggregated and cached. Choose this over the arbitrage scanner sibling when you want raw rate data rather than pre-computed spread opportunities.

## Known failure modes

- Unknown coin symbol returns empty rates array or error
- Invalid venue parameter ignored or returns error
- Cache may return data up to 60 seconds stale
- Payment failure (x402) if USDC balance insufficient — returns 402 Payment Required
- Venue API downtime may result in missing entries for that venue in the response

## How this service works

Live perp funding rates across 5 venues (Hyperliquid, Bybit, Pacifica, Extended, Lighter), normalized to hourly rate and APR %, with mark price and open interest. Query: coin (optional, e.g. BTC), venue (optional). Cached <=60s. $0.005 per call.

## Output

A JSON object with an 'asOf' UTC timestamp and a 'rates' array. Each element includes: coin symbol, venue name, hourly funding rate (decimal), APR percentage, and optionally mark price and open interest. Data is cached for up to 60 seconds.

## 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": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asOf": "2026-10-30T06:00:00Z",
  "rates": [
   {
    "apr": 10.95,
    "coin": "BTC",
    "venue": "hyperliquid",
    "hourly": 0.0000125
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/live-perpetual-funding-rates-api-d26e7073/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from klane402.deanhiki.workers.dev](https://www.zero.xyz/host/klane402.deanhiki.workers.dev/llms.txt)
