# Perpetual Swap Funding Rates Aggregator (Multi-Venue)

> Perpetual Swap Funding Rates Aggregator (Multi-Venue) is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

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

## Facts

- Endpoint: GET https://api.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/perpetual-swap-funding-rates-aggregator-multi-venue-7e46f0b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B_q8qA42TsNVOcMse7lR1

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-swap-funding-rates-aggregator-multi-venue-7e46f0b2
```

Example prompt: What's the current funding rate for BTC perpetuals across Hyperliquid and dYdX — give me the per-venue rates, the open-interest weighted aggregate, the annualized APR, and the spread between the two venues.

## When to prefer this

Use this endpoint when you need a single normalized call to get perpetual swap funding rates across Hyperliquid and dYdX v4 simultaneously, rather than polling each protocol individually and reconciling different funding intervals. Ideal for funding arbitrage detection, position cost estimation, or cross-venue DeFi analytics.

## Known failure modes

- Unknown or unsupported symbol returns a 4xx error
- Upstream venue API unavailability may cause partial or stale data
- Malformed symbol (e.g. invalid format) returns a validation error
- Network timeout if downstream DEX APIs are slow

## 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 current funding rate (Hyperliquid, dYdX v4), an open-interest weighted aggregate funding rate, the annualized APR equivalent, the cross-venue spread, and a dispersion metric — all normalized to a common interval.

## 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/perpetual-swap-funding-rates-aggregator-multi-venue-7e46f0b2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
