# Anicca x402 Funding Rates API

> Anicca x402 Funding Rates API is a paid API for AI agents from x402-agents-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns current perpetual futures funding rates for crypto assets across exchanges, with optional filtering by symbol

## Facts

- Endpoint: GET https://x402-agents-production.up.railway.app/funding-rates
- 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/anicca-x402-funding-rates-api-067f7bd8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o5ATpQvXimeK2TFA5Z5Iv

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 anicca-x402-funding-rates-api-067f7bd8
```

Example prompt: What's the current 8-hour funding rate for BTC on Hyperliquid? I want to know if it's worth holding a long perp position right now.

## When to prefer this

Use this endpoint when an AI agent needs real-time perpetual futures funding rate data — especially for DeFi-native workflows settled in USDC via the x402 payment protocol. Prefer this over scraping exchange APIs directly when you need cross-exchange aggregation with divergence analysis included, or when operating in a micropayment-native agent environment where per-call USDC pricing is acceptable. Ideal for trading agents monitoring crowded trades, basis traders, and automated risk management workflows.

## Known failure modes

- Invalid symbol pattern (must be 1-20 alphanumeric chars) returns validation error
- Payment failure or insufficient USDC balance returns 402 Payment Required
- Exchange data temporarily unavailable sets degraded:true in response with partial results
- Unknown symbol returns empty rates array
- Service downtime returns 5xx error

## How this service works

Return live cross-exchange perpetual funding rates and the largest annualized funding divergences.

## Output

Returns a JSON object containing an array of funding rate entries (each with symbol, exchange, and 8h funding rate), a list of exchanges covered, the timestamp of generation, a divergence analysis for the top 20 assets, and a degraded flag indicating partial data availability.

## 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",
       "pattern": "^[A-Za-z0-9]{1,20}$",
       "description": "Optional base symbol such as BTC or ETH."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "description": "Structured JSON result.",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rates": [
   {
    "symbol": "BTC",
    "exchange": "hyperliquid",
    "fundingRate8h": 0.00008
   }
  ],
  "degraded": false,
  "exchanges": [
   "hyperliquid"
  ],
  "generatedAt": "2026-07-28T00:00:00.000Z",
  "divergenceTop20": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anicca-x402-funding-rates-api-067f7bd8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agents-production.up.railway.app](https://www.zero.xyz/host/x402-agents-production.up.railway.app/llms.txt)
