# OKX Perpetual Basis & Premium Monitor

> OKX Perpetual Basis & Premium Monitor is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the perpetual/spot basis for a given symbol on OKX, including absolute basis, premium percent, and a positioning interpretation (contango/backwardation)

## Facts

- Endpoint: GET https://api.x402node.dev/market/basis
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/okx-perpetual-basis-premium-monitor-6affc30a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Emuzv52Fx0Qjwd69k-3WJ

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 okx-perpetual-basis-premium-monitor-6affc30a
```

Example prompt: What's the current perp basis for BTC on OKX right now — give me the absolute basis, premium percent, and whether it's in contango or backwardation?

## When to prefer this

Use this endpoint when you need live, per-symbol spot-perp divergence data from OKX specifically, especially for basis trading signals, premium monitoring, or interpreting whether the derivatives market is in contango or backwardation. Prefer this over generic funding rate APIs when you want the mark-vs-index framing with an interpreted positioning label.

## Known failure modes

- Invalid or unsupported symbol returns an error or empty result
- OKX data feed downtime causes stale or unavailable prices
- Missing symbol parameter results in a 400 bad request
- Rate limiting or payment failure returns a 402 or 429 error

## How this service works

Perpetual premium and basis for a symbol: OKX perp mark price versus the spot index, returning the absolute basis, premium percent and an interpretation of perp positioning. Live data for basis trades, premium monitoring and spot-perp divergence. perp premium, spot perp basis, mark vs index, contango

## Output

Returns the OKX perpetual mark price versus the spot index for a given symbol, with the absolute basis (mark minus index), premium as a percentage, and a human-readable interpretation of positioning (e.g. contango, backwardation, or neutral).

## 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",
       "description": "coin symbol, e.g. BTC, ETH (default BTC)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/okx-perpetual-basis-premium-monitor-6affc30a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
