# Perp Basis / Oracle Premium Signal

> Perp Basis / Oracle Premium Signal is a paid API for AI agents from derivatives.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Returns the perpetual contract's premium (or discount) relative to the oracle price for a given coin on Hyperliquid, expressed as a percentage, with a stretched/normal verdict.

## Facts

- Endpoint: GET https://derivatives.x402tookit.com/perp-basis?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/perp-basis-oracle-premium-signal-60a4b82c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ztYTlquc9f6q_TVqykcF8

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-basis-oracle-premium-signal-60a4b82c
```

Example prompt: What's the current perp basis for ETH on Hyperliquid — is the mark price stretched above or below the oracle price right now?

## When to prefer this

Use this endpoint when you need a real-time snapshot of how far a specific coin's perpetual contract mark price deviates from its oracle reference price on Hyperliquid, and want a ready-made verdict on whether that spread is unusual. Prefer this over generic price feeds when the goal is basis monitoring, arbitrage screening, or risk management around oracle-mark price divergence specifically on Hyperliquid.

## Known failure modes

- Invalid or unsupported coin ticker returns an error or null fields
- Coin not listed as an active Hyperliquid perp results in empty or degraded response
- Hyperliquid oracle data temporarily unavailable causes degraded flag to be set true
- Network timeout from upstream Hyperliquid API causes request failure
- Passing a non-GET method or missing required coin query param returns a validation error

## How this service works

Perp premium to oracle price for a coin on Hyperliquid, in percent, with a stretched/normal verdict.

## Output

Returns a JSON object containing the coin ticker, mark price, mid price, oracle price, venue premium, mark-vs-oracle percentage, a stretched/normal verdict string, supporting reasons array, a human-readable summary, applicable thresholds (e.g. stretchedPct), data timestamp (asOf), source URL, and optional degraded/disclaimer flags.

## 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",
     "required": [
      "coin"
     ],
     "properties": {
      "coin": {
       "type": "string",
       "description": "Hyperliquid ticker, e.g. BTC, ETH"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "coin": {
       "type": [
        "null",
        "string"
       ]
      },
      "midPx": {
       "type": [
        "null",
        "number"
       ]
      },
      "markPx": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "oraclePx": {
       "type": [
        "null",
        "number"
       ]
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "thresholds": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "stretchedPct": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "venuePremium": {
       "type": [
        "null",
        "number"
       ]
      },
      "markVsOraclePct": {
       "type": [
        "null",
        "number"
       ]
      }
     }
    }
   }

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/perp-basis-oracle-premium-signal-60a4b82c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from derivatives.x402tookit.com](https://www.zero.xyz/host/derivatives.x402tookit.com/llms.txt)
