# SperaxOS Perpetuals Funding Rates

> SperaxOS Perpetuals Funding Rates is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-14).

Fetches historical funding rate data for a specified perpetual futures market and exchange over a configurable lookback window.

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/perpetuals/getFundingRates?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-perpetuals-funding-rates-e706887f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vEL5wZWcdPnto8qrZcezs

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 speraxos-perpetuals-funding-rates-e706887f -d '<json body>'
```

Example prompt: Can you pull the last 14 days of funding rates for ETH-USD on Hyperliquid so I can see whether longs or shorts have been paying more recently?

## When to prefer this

Use this endpoint when you need programmatic access to historical perpetual futures funding rates across GMX, Hyperliquid, or dydx — especially for carry cost analysis, funding arbitrage research, or building dashboards. Prefer this over manual exchange UIs when you need structured time-series data or cross-exchange comparison in an automated workflow.

## Known failure modes

- Unsupported market symbol returns an error or empty dataset
- Exchange enum value not matching gmx/hyperliquid/dydx causes validation failure
- lookbackDays set too large may return incomplete data if history is limited
- Payment failure via x402 protocol results in 402 response and no data
- Network or exchange API outage may cause timeout or partial data

## How this service works

SperaxOS is an AI-powered DeFi operating system — track portfolios, execute swaps, analyze on-chain data, and collaborate with intelligent agents that manage your crypto workflow.

## Output

Returns a time-series of funding rate data for the requested market and exchange, including rate values and their associated timestamps over the specified lookback period. Useful for trend analysis, carry cost calculation, and cross-exchange comparison.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "market": {
   "type": "string",
   "description": "Market symbol, e.g. \"ETH-USD\" or \"BTC-USD\""
  },
  "exchange": {
   "enum": [
    "gmx",
    "hyperliquid",
    "dydx"
   ],
   "type": "string",
   "description": "Exchange: gmx, hyperliquid, or dydx"
  },
  "lookbackDays": {
   "type": "number",
   "default": 7,
   "description": "Days of history to return (default 7)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-perpetuals-funding-rates-e706887f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
