# FundingFeed — Cross-Exchange Perpetual Funding Rate & Best Execution

> FundingFeed — Cross-Exchange Perpetual Funding Rate & Best Execution is a paid API for AI agents from funding-feed.kaminariouji.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Aggregates live perpetual funding rates, open interest, and top-of-book best bid/ask across 10+ crypto exchanges (OKX, Bybit, Gate.io, HTX, Hyperliquid, BingX, Bitget, Kraken, Coinbase, MEXC) for BTC, ETH, or SOL into a single call.

## Facts

- Endpoint: POST https://funding-feed.kaminariouji.workers.dev/best-execution?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fundingfeed-cross-exchange-perpetual-funding-rate-best-execution-4701209b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q1umHC3yhgjKbdvPL3s3M

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 fundingfeed-cross-exchange-perpetual-funding-rate-best-execution-4701209b -d '<json body>'
```

Example prompt: Pull the current cross-exchange funding rates and open interest for BTC right now — I want to see which venue has the highest and lowest annualized funding rate, the arb spread between them, and where the best bid and ask are sitting across all venues.

## When to prefer this

Use this endpoint when you need a single aggregated view of perpetual funding rates, open interest, and best execution across 10+ major crypto exchanges simultaneously, avoiding the need to call each venue's API individually. Prefer it over exchange-specific APIs when identifying cross-venue funding arbitrage opportunities, sizing carry trades, or routing orders for best price. It is especially valuable for delta-neutral strategies where funding rate differentials across venues are the primary alpha source.

## Known failure modes

- Individual exchange APIs may be down — exchangesOk count will be less than exchangesQueried, reducing arb spread reliability
- Unsupported symbol returns empty or error response
- Rate limiting or payment failure (x402) returns 402 Payment Required
- Stale data if a downstream exchange API is slow to respond — check generatedAt timestamp
- Network timeout on the Cloudflare worker if multiple upstream APIs are slow simultaneously

## How this service works

Cross-exchange perpetual funding rate arbitrage, open interest, and best-execution for BTC/ETH/SOL. Aggregates live perpetual venues (OKX, Bybit, Gate.io, HTX, Hyperliquid, BingX, Bitget, Kraken, Coinbase, MEXC) into one call: current funding rate per venue, min/max/mean annualized funding, the cross-venue funding arbitrage spread, next funding time per venue, total open interest in USD with a per-venue breakdown, and real top-of-book best bid/ask. Use it to find the best funding rate arbitrage opportunity across exchanges, compare funding rates between Bybit and OKX for a specific coin, check annualized carry cost for a long/short funding arb, identify which exchange has the most negative funding rate right now, scan for cross-venue funding divergences in crypto perpetuals, monitor funding spreads to time a cash-and-carry strategy, detect crowded positioning from open interest, and route orders to the venue with the best price. Paid per call: 0.005 USDC on Base, Polygon, Solana or Tempo (MPP, no gas). FIRST CALL FREE per wallet — send header "X-WALLET: 0x<your Base address>" and get the full feed with no payment. Try it before you pay.

## Output

Returns a JSON object with: the queried symbol, funding data (count of venues, per-exchange annualized funding rate and next funding time, min/max/mean annualized funding, cross-venue arb spread %), open interest data (total USD, mean USD, per-exchange OI in USD), best execution data (per-exchange bid/ask/last prices, overall best bid and best ask with exchange name, spread %), number of exchanges successfully queried, and a timestamp of data generation.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Aggregated from public REST APIs. Not financial advice. Verify independently.",
  "symbol": "BTCUSDT",
  "funding": {
   "count": 5,
   "byExchange": [
    {
     "exchange": "okx",
     "annualizedPct": 10.6,
     "nextFundingAt": "2026-09-21T08:00:00.000Z"
    }
   ],
   "arbSpreadPct": 7.23,
   "maxAnnualizedPct": 10.95,
   "minAnnualizedPct": 3.72,
   "meanAnnualizedPct": 6.83
  },
  "exchangesOk": 7,
  "generatedAt": "2026-09-21T00:00:00.000Z",
  "openInterest": {
   "count": 5,
   "meanUsd": 2660000000,
   "totalUsd": 13300000000,
   "byExchange": [
    {
     "oiUsd": 5000000000,
     "exchange": "okx"
    }
   ]
  },
  "bestExecution": {
   "prices": [
    {
     "ask": 116010,
     "bid": 116000,
     "last": 116005,
     "exchange": "okx"
    }
   ],
   "bestAsk": {
    "price": 116010,
    "exchange": "okx"
   },
   "bestBid": {
    "price": 116000,
    "exchange": "gate"
   },
   "spreadPct": 0.0086
  },
  "exchangesQueried": 11
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fundingfeed-cross-exchange-perpetual-funding-rate-best-execution-4701209b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from funding-feed.kaminariouji.workers.dev](https://www.zero.xyz/host/funding-feed.kaminariouji.workers.dev/llms.txt)
