# x402-data-api Crypto Perp Funding Rates

> x402-data-api Crypto Perp Funding Rates is a paid API for AI agents from x402-data-api.sigrunner.workers.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Returns cross-venue perpetual futures funding rates, arbitrage spreads, and market data across Hyperliquid, OKX, and dYdX for top coins by 24h notional volume.

## Facts

- Endpoint: GET https://x402-data-api.sigrunner.workers.dev/crypto/funding
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-data-api-crypto-perp-funding-rates-ad481ca4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aAZb1c33mggFJ9lbdfe9w

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 x402-data-api-crypto-perp-funding-rates-ad481ca4
```

Example prompt: Show me the current cross-venue perp funding rates across Hyperliquid, OKX, and dYdX for the top 30 coins — I want to see the arb spread in bps, which venue is cheapest to go long on each, and whether longs or shorts are paying right now.

## When to prefer this

Use this endpoint when you need a single aggregated view of perpetual futures funding rates across Hyperliquid, OKX, and dYdX simultaneously — especially for funding rate arbitrage discovery, venue comparison, or directional signal (LONGS_PAY/SHORTS_PAY). Prefer over venue-specific APIs when cross-venue spread analysis or best-venue routing is required.

## Known failure modes

- Payment not included or insufficient — returns 402 Payment Required
- limit parameter exceeds 100 — may return error or be clamped
- Upstream venue API unavailable — partial or stale data for affected venue
- Invalid query parameter type — may return 400 or unexpected results

## How this service works

Cross-venue Hyperliquid+OKX+dYdX perp funding rates — top coins by 24h notional volume, per-venue funding + arb spread (bps) + cheapest-long/richest-short venue, premium/basis, annualized_hl, annualized_okx, LONGS_PAY/SHORTS_PAY/NEUTRAL signal, next_funding_ts, mark/oracle prices, open interest.

## Output

A list of top coins ranked by 24h notional volume, each with per-venue funding rates, arbitrage spread in basis points, cheapest-long and richest-short venue, premium/basis, annualized funding rates for Hyperliquid and OKX, a LONGS_PAY/SHORTS_PAY/NEUTRAL signal, next funding timestamp, mark and oracle prices, and open interest.

## 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": {
      "limit": {
       "type": "string",
       "description": "Max coins to return (default 20, max 100)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coin": "BTC",
  "markPx": 63730,
  "signal": "LONGS_PAY",
  "funding": {
   "okx": 0.0000492,
   "dydx": -0.00000875,
   "hyperliquid": 0.0000125
  },
  "premium": 0.00012,
  "oraclePx": 63750,
  "dayNtlVlm": 1670654479.062529,
  "openInterest": 37519.8698399999,
  "annualized_hl": 0.1095,
  "annualized_okx": 0.05387,
  "best_long_venue": "hyperliquid",
  "next_funding_ts": 1784304000000,
  "best_short_venue": "okx",
  "funding_spread_bps": 0.37
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-data-api-crypto-perp-funding-rates-ad481ca4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.sigrunner.workers.dev](https://www.zero.xyz/host/x402-data-api.sigrunner.workers.dev/llms.txt)
