# Perpetual Futures Funding Rate & Arbitrage API

> Perpetual Futures Funding Rate & Arbitrage API is a paid API for AI agents from api.agent-data.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-14).

Fetches normalized 8h perpetual futures funding rates, open interest, next funding time, and cross-exchange arbitrage direction for a coin across Binance, Bybit, OKX, and Hyperliquid in a single call.

## Facts

- Endpoint: GET https://api.agent-data.workers.dev/api/v1/funding?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/perpetual-futures-funding-rate-arbitrage-api-87f269a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zh1AH7V7RG1CSfekvLVNp

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 perpetual-futures-funding-rate-arbitrage-api-87f269a3
```

Example prompt: What are the current perpetual futures funding rates for BTC across Binance, Bybit, OKX, and Hyperliquid, and which exchange pair gives the best funding arbitrage opportunity right now?

## When to prefer this

Use this endpoint when you need a single normalized view of perpetual futures funding rates across Binance, Bybit, OKX, and Hyperliquid simultaneously, especially when evaluating funding arbitrage opportunities or comparing the cost of holding leveraged positions. It saves the overhead of querying four separate exchange APIs and normalizing intervals (e.g., Hyperliquid's 1h rate is converted to 8h equivalent).

## Known failure modes

- Invalid or unsupported coin ticker returns an error or empty exchange data
- Exchange API downtime may result in missing data for one or more exchanges
- Very new or illiquid coins may not have perpetual futures listed on all exchanges
- Rate limiting or payment failure (402) if USDC payment is not properly attached

## How this service works

Perpetual futures funding rates, next funding time and open interest for a coin on Binance, Bybit, OKX and Hyperliquid in one call, normalised to 8h, with the spread and the funding-arbitrage direction.

## Output

Returns a JSON object with the coin symbol, per-exchange funding rate data (normalized to 8h percentage), open interest in USD where available, the maximum spread between exchanges, and the recommended arbitrage direction (which exchange to go long on and which to go short on).

## 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",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "description": "Coin ticker, e.g. BTC"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "symbol": "BTC",
  "arbitrage": {
   "long_on": "bybit",
   "short_on": "binance"
  },
  "exchanges": {
   "bybit": {
    "funding_rate_pct": 0.0072
   },
   "binance": {
    "funding_rate_pct": 0.01,
    "open_interest_usd": 8100000000
   },
   "hyperliquid": {
    "rate_8h_pct": 0.01,
    "interval_hours": 1,
    "funding_rate_pct": 0.00125
   }
  },
  "max_spread_pct": 0.0028
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/perpetual-futures-funding-rate-arbitrage-api-87f269a3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agent-data.workers.dev](https://www.zero.xyz/host/api.agent-data.workers.dev/llms.txt)
