# OKX Perpetual Futures Open Interest

> OKX Perpetual Futures Open Interest is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-13).

Returns real-time total open interest (outstanding contracts) for any crypto perpetual futures symbol from OKX.

## Facts

- Endpoint: GET https://api.x402node.dev/market/open-interest
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/okx-perpetual-futures-open-interest-925920d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s6n9q6FFBBV7JfXDoy6Bb

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-futures-open-interest-925920d1
```

Example prompt: What's the current open interest for BTC-USDT-SWAP perpetual futures on OKX right now? I want to see how the market is positioned.

## When to prefer this

Use this endpoint when you need real-time perpetual futures open interest data sourced directly from OKX, especially for crypto market analysis, trading signal generation, or derivatives positioning research that requires up-to-date data not available in LLM training data.

## Known failure modes

- Invalid or unsupported symbol returns an error or empty result
- Network timeout if OKX exchange feed is temporarily unavailable
- Symbol format mismatch (e.g. using BTC instead of BTC-USDT-SWAP) may return no data
- Payment failure (insufficient USDC balance) blocks the request at the x402 paywall

## How this service works

Live perpetual futures open interest for any crypto symbol from OKX - total outstanding contracts, a real-time positioning signal absent from LLM training data. open interest, futures oi, perpetual open interest, oi data, derivatives positioning

## Output

Returns the total number of outstanding perpetual futures contracts (open interest) for the requested crypto symbol from OKX, providing a real-time snapshot of derivatives market positioning.

## Example request

```json
{
 "symbol": "BTC-USDT-SWAP"
}
```

## 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": {
      "coin": {
       "type": "string",
       "description": "Coin (optional)"
      },
      "symbol": {
       "type": "string",
       "description": "Crypto symbol, e.g. BTC (default), ETH, SOL"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/okx-perpetual-futures-open-interest-925920d1/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)
