# derivs-basis

> derivs-basis is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Returns the perpetual futures basis (mark-vs-oracle premium) for a crypto asset in basis points, with an annualized carry proxy, sourced from Hyperliquid mark prices.

## Facts

- Endpoint: GET https://payai.agentstools.dev/derivs/basis
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/derivs-basis-d404de25
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XWmde_edDr-xpqrcj0OVe

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 derivs-basis-d404de25
```

Example prompt: What's the current perpetual basis for BTC right now — how far is it trading from the oracle price in basis points, and what's the implied annualized carry?

## When to prefer this

Choose this endpoint when you need a real-time, pre-computed perpetual basis signal sourced specifically from Hyperliquid's native mark price — particularly useful when you want basis points and an annualized carry proxy in a single call without needing to manually fetch and diff mark vs oracle prices yourself. Prefer this over raw exchange APIs when building sentiment dashboards, funding arbitrage tools, or leverage monitors.

## Known failure modes

- Invalid or unsupported ticker symbol returns an error
- Asset not listed on Hyperliquid returns no data
- Mark price unavailable if Hyperliquid feed is down
- Payment failure (x402) if USDC balance insufficient
- Normalization of ticker suffix (e.g. BTC-PERP) may fail for non-standard formats

## How this service works

Perpetual basis for an asset: the mark-versus-oracle premium on venues that publish a native mark price (Hyperliquid), in basis points, with a naive annualized carry proxy. Shows how far the perpetual trades from the underlying oracle — a froth and leverage-cost signal.

## Output

Returns the perpetual basis for the requested asset expressed in basis points (mark price minus oracle price), along with a naive annualized carry proxy derived from that spread. Useful as a froth indicator and leverage-cost signal showing how aggressively the market is positioned in perpetuals relative to the underlying.

## 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/derivs-basis-d404de25/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
