# Perp Funding Rate Comparator (Binance, Bybit, Hyperliquid)

> Perp Funding Rate Comparator (Binance, Bybit, Hyperliquid) is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-02).

Returns and compares perpetual futures funding rates, APRs, mark prices, and max arbitrage spreads across Binance, Bybit, and Hyperliquid for a given symbol.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/perp-funding?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/perp-funding-rate-comparator-binance-bybit-hyperliquid-af5ff792
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SlmmLz31XVN3841zbymnA

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 perp-funding-rate-comparator-binance-bybit-hyperliquid-af5ff792
```

Example prompt: What are the current BTC perpetual funding rates across Binance, Bybit, and Hyperliquid, and which pair offers the best funding rate arb spread right now?

## When to prefer this

Use this endpoint when you need a real-time, multi-exchange comparison of perpetual futures funding rates and want to identify funding arbitrage opportunities between Binance, Bybit, and Hyperliquid in a single call. Prefer this over querying each exchange API individually when you need the max_arb_spread calculation pre-computed with venue recommendations.

## Known failure modes

- Unknown or delisted symbol returns empty or error per venue
- Hyperliquid next_funding_ms is always null (known limitation)
- Network timeout to upstream exchange APIs returns partial venue data
- Invalid venue name in venues parameter silently skips that venue
- Rate limit or payment failure returns 402 or 429 error

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

A JSON object containing per-venue funding data (8h rate, APR %, mark price, next funding timestamp in ms) for the requested symbol across Binance, Bybit, and Hyperliquid, plus a max_arb_spread object identifying the best long and short venue pair with net 8h spread in bps and annualized spread percentage. Also includes an as_of_ms timestamp and any errors per venue.

## 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": {
      "symbol": {
       "type": "string",
       "default": "BTC",
       "description": "Perpetual base asset or USDT symbol, e.g. BTC or BTCUSDT"
      },
      "venues": {
       "type": "string",
       "default": "binance,bybit,hyperliquid",
       "description": "Comma-separated funding sources: binance, bybit, hyperliquid; OKX is not supported"
      },
      "symbols": {
       "type": "string",
       "description": "Legacy comma-separated symbols"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "errors": {},
  "symbol": "BTC",
  "venues": {
   "bybit": {
    "apr_pct": 21.9,
    "mark_price": 77540,
    "funding_8h_rate": 0.0002,
    "next_funding_ms": 1793520000000
   },
   "binance": {
    "apr_pct": 10.95,
    "mark_price": 77538,
    "funding_8h_rate": 0.0001,
    "next_funding_ms": 1793520000000
   },
   "hyperliquid": {
    "apr_pct": 8.76,
    "mark_price": 77539,
    "funding_8h_rate": 0.00008,
    "next_funding_ms": null
   }
  },
  "product": "scanpay.perp_funding",
  "results": [
   {
    "symbol": "BTCUSDT",
    "mark_price": 77538,
    "last_funding_rate": 0.0001,
    "next_funding_time": 1793520000000
   }
  ],
  "as_of_ms": 1793491200000,
  "price_usd": 0.001,
  "max_arb_spread": {
   "long_venue": "hyperliquid",
   "short_venue": "bybit",
   "net_8h_spread_bps": 1.2,
   "annualized_spread_pct": 13.14
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/perp-funding-rate-comparator-binance-bybit-hyperliquid-af5ff792/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
