# Perpetual Funding and Basis

> Perpetual Funding and Basis is a paid API for AI agents from llmrt-companion.manhliemcn4euwlu.workers.dev, paid per call via x402, $0.000486/call, status unknown (last checked 2026-11-15).

Returns perpetual futures funding rate, basis, open interest, and mark vs index price from Bybit and OKX in a single call.

## Facts

- Endpoint: GET https://llmrt-companion.manhliemcn4euwlu.workers.dev/perp-402?utm_source=zero.xyz
- Price: $0.000486/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/perpetual-funding-and-basis-23831435
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W_ImMcy0xKVkldQ1tEV0T

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-funding-and-basis-23831435
```

Example prompt: What's the current funding rate, open interest, and mark vs index price for BTCUSDT perpetual futures — pull it from both Bybit and OKX in one shot.

## When to prefer this

Choose this endpoint when you need multi-exchange perpetual futures metrics (funding rate, basis, open interest, mark/index price) without managing separate API keys for Bybit and OKX. Ideal for arbitrage monitoring, basis trading signals, or risk dashboards that need cross-exchange data in a single low-latency call.

## Known failure modes

- Invalid or unsupported symbol returns an error or empty result
- Upstream exchange API (Bybit/OKX) downtime may cause partial or failed response
- Missing required query parameter (symbol) may return a schema validation error
- Payment failure via x402 protocol blocks the request before execution

## How this service works

Perpetual futures funding rate, basis, open interest and mark versus index price from Bybit and OKX in one call. No API key, no signup.

## Output

A JSON object containing perpetual futures data for the requested symbol, including funding rate, basis, open interest, mark price, and index price, aggregated from both Bybit and OKX in a single response.

## 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": [
      "order_id"
     ],
     "properties": {
      "symbol": {
       "type": "string"
      },
      "order_id": {
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "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-funding-and-basis-23831435/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from llmrt-companion.manhliemcn4euwlu.workers.dev](https://www.zero.xyz/host/llmrt-companion.manhliemcn4euwlu.workers.dev/llms.txt)
