# derivs-funding

> derivs-funding is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns perpetual-swap funding rates for a crypto asset aggregated across Hyperliquid and dYdX v4, including per-venue rates, open-interest-weighted aggregate, annualized APR, cross-venue spread, and dispersion.

## Facts

- Endpoint: GET https://payai.agentstools.dev/derivs/funding
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/derivs-funding-936450bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q49ltYL50MAT4H7rUZNUQ

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 derivs-funding-936450bd
```

Example prompt: What's the current perpetual funding rate for ETH across Hyperliquid and dYdX right now — including the open-interest-weighted aggregate and the annualized APR?

## When to prefer this

Use this endpoint when you need a single, normalized view of perpetual funding rates across multiple decentralized venues (Hyperliquid, dYdX v4) without writing your own polling, interval-reconciliation, or aggregation logic. Prefer it over querying each protocol directly when you want cross-venue spread, dispersion, or an OI-weighted aggregate in one call.

## Known failure modes

- Unsupported symbol returns an error or empty result (e.g. obscure altcoins not listed on both venues)
- Venue API downtime may cause partial results or stale data for that venue
- Malformed symbol not normalized correctly may return 400 or empty response
- Network timeouts to upstream protocols may cause latency spikes or failures

## How this service works

Perpetual-swap funding rates for an asset fused across decentralized venues (Hyperliquid, dYdX v4): each venue's current funding plus an open-interest weighted aggregate funding rate, annualized APR, the cross-venue spread and dispersion. One normalized call instead of polling each protocol and reconciling funding intervals yourself.

## Output

A JSON object containing: each venue's (Hyperliquid, dYdX v4) current funding rate, the open-interest-weighted aggregate funding rate, the annualized APR of that aggregate, the cross-venue spread (difference between highest and lowest venue rate), and dispersion metric — all normalized to a common interval for direct comparison.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "description": "Base asset ticker (BTC, ETH, SOL). A quote suffix such as BTC-USD or BTC-PERP is accepted and normalized server-side."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/derivs-funding-936450bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
