# Perp Funding & Basis

> Perp Funding & Basis is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.04/call, status unknown (last checked 2026-10-15).

Returns OI-weighted perpetual funding rate, open interest, and basis (contango/backwardation) for a given crypto coin aggregated across venues, with a crowding verdict.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/perp-funding?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/perp-funding-basis-0b0e8fe7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jks3XvuNXkX2vrzdASAZ7

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 perp-funding-basis-0b0e8fe7
```

Example prompt: What's the current perpetual funding rate and basis for BTC — is the market long-crowded or short-crowded, and is the verdict elevated or extreme?

## When to prefer this

Use this endpoint when you need a quick, cross-venue aggregated view of perpetual market structure for a single coin — specifically funding rate, open interest weighting, and basis — without building your own aggregation layer across exchanges. Prefer this over raw exchange APIs when you want an opinionated crowding verdict (neutral/elevated/extreme) in one call. Best suited for agents making spot-vs-perp carry decisions or screening for crowded positioning.

## Known failure modes

- Missing or invalid symbol parameter returns an error
- Unknown or unsupported coin symbols may return no data
- CoinGecko data unavailability causes downstream failure
- Stale or insufficient OI data may reduce accuracy of aggregated metrics
- Payment failure (x402 micropayment not fulfilled) blocks the response

## How this service works

Choosing between spot and a perp? This is the data that choice needs. Aggregate OI-weighted perpetual funding, open interest and basis for a coin across venues (CoinGecko, no key): who pays whom (longs crowded vs shorts crowded), the carry you earn or bleed holding the perp, and contango vs backwardation. Verdict neutral / elevated / extreme. Pass symbol=BTC. Funding annualised as an estimate (8h intervals assumed). A market-structure signal, not a price call. Not financial advice.

## Output

Returns OI-weighted aggregate perpetual funding rate (annualized, assuming 8-hour intervals), open interest, and basis (contango vs backwardation) for the requested coin across exchanges sourced via CoinGecko. Includes a crowding verdict categorized as neutral, elevated, or extreme, indicating whether longs or shorts dominate the market.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "description": "Coin symbol (BTC, ETH, SOL…)"
      }
     }
    }
   },
   "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/perp-funding-basis-0b0e8fe7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
