# Cross-Exchange Perp Funding Signal

> Cross-Exchange Perp Funding Signal is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-31).

Returns funding APRs across Hyperliquid, OKX, Gate, dYdX (and others when reachable) for BTC/ETH/SOL perps, with a positioning signal, mean APR, and the best funding-arb pair

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/funding-signal?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cross-exchange-perp-funding-signal-ea32295d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DpgvujzfKT0Hxt1v3hlHJ

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 cross-exchange-perp-funding-signal-ea32295d
```

Example prompt: What's the current BTC perp funding signal across Hyperliquid, OKX, Gate, and dYdX — is it neutral or skewed, and is there a good funding-arb pair I should know about?

## When to prefer this

Choose this endpoint when you need a single aggregated funding-rate signal across multiple major perp venues (Hyperliquid, OKX, Gate, dYdX, and others) rather than querying each exchange API separately. It is ideal for pre-trade checks, squeeze-setup scanning, and cross-exchange funding arbitrage discovery for BTC, ETH, or SOL. It is not suitable for spot price lookups, order book data, historical funding rate series, or coins beyond BTC/ETH/SOL.

## Known failure modes

- Some venues may be unreachable at call time, reducing the number of data points
- Stale data if upstream exchanges are slow to respond (check updated_at)
- Invalid coin enum value returns an error (only BTC, ETH, SOL supported)
- Rate limiting or payment failure via x402 protocol blocks the call
- Spread APR may be near zero if funding rates have converged across venues

## 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 per-coin funding APRs broken down by venue (Hyperliquid, OKX, Gate, dYdX, Bybit, Binance, Bitget when reachable), a mean APR across venues, a positioning signal (EXTREME_LONG | LONG_HEAVY | NEUTRAL | SHORT_HEAVY | EXTREME_SHORT | MIXED), the best funding-arb pair (which venue to long, which to short, and the spread APR in %), human-readable reasons, source URLs, and an updated_at timestamp.

## 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": {
    "arb": {
     "long": "okx",
     "short": "hyperliquid",
     "spread_apr_pct": 7.16
    },
    "signal": "NEUTRAL",
    "venues": {
     "okx": 3.79,
     "dydx": 4.1,
     "gate": 3.07,
     "hyperliquid": 10.95
    },
    "mean_apr_pct": 5.4
   }
  },
  "signal": "NEUTRAL",
  "reasons": [
   "BTC mean funding APR 5.40% across 4 venues"
  ],
  "sources": [
   "https://api.hyperliquid.xyz/info",
   "https://www.okx.com",
   "https://api.bybit.com",
   "https://fapi.binance.com"
  ],
  "updated_at": "2026-10-29T09:30:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cross-exchange-perp-funding-signal-ea32295d/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)
