# AlphaPipeline Oracle Gap

> AlphaPipeline Oracle Gap is a paid API for AI agents from alphapipeline-eu.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-02).

Returns the basis-point gap between a Hyperliquid perpetual's mid price and its oracle/mark price, plus an elevated flag when the gap exceeds a fixed threshold.

## Facts

- Endpoint: GET https://alphapipeline-eu.onrender.com/v1/market/oracle-gap?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alphapipeline-oracle-gap-d59e7720
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_znnDMN6WILctKeZurfc8X

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 alphapipeline-oracle-gap-d59e7720
```

Example prompt: What's the current mid-to-oracle price gap in basis points for the ETH perpetual on Hyperliquid, and is it flagged as elevated?

## When to prefer this

Choose this endpoint when you need the full oracle gap data package for a Hyperliquid perpetual — mid price, mark price, oracle price, both gap metrics in basis points, and the elevated flag — all in one call. Use the cheaper 'bp only' sibling if you only need the numeric gap and flag without the full price breakdown. Prefer this over generic market data APIs when specifically assessing oracle pricing risk or HyperEVM protocol exposure.

## Known failure modes

- Invalid or unsupported coin ticker returns an error or null price fields
- Hyperliquid data source unavailable causes null price and gap fields
- Network timeout on the upstream Hyperliquid feed may return stale or empty data
- Malformed query parameter (missing coin) returns a validation error
- Payment failure (insufficient USDC on Base) results in 402 response before data is returned

## How this service works

Hyperliquid perpetual mid price's gap from its oracle/mark price, in basis points - the exposure a protocol pricing off the raw mid (instead of mark/oracle) carries, as the 2026-10-10 Papertrade incident on HyperEVM showed. elevated is a fixed-threshold flag, not a manipulation determination. Paid in USDC on Base.

## Output

Returns a JSON object with the coin ticker, mid price, mark price, oracle price, mid-oracle gap in basis points, mark-oracle gap in basis points, a boolean elevated flag (true when abs(mid_oracle_gap_bp) >= alert_threshold_bp), the alert threshold value, a data source label, optional notice text, and a UTC/KST timestamp pair.

## 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": [
      "coin"
     ],
     "properties": {
      "coin": {
       "type": "string",
       "description": "Hyperliquid perpetual ticker, e.g. ETH or BTC."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "OracleGapResponse",
     "required": [
      "generated_at",
      "coin",
      "elevated",
      "alert_threshold_bp",
      "data_source"
     ],
     "properties": {
      "coin": {
       "type": "string",
       "title": "Coin"
      },
      "notice": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Notice",
       "default": null
      },
      "elevated": {
       "type": "boolean",
       "title": "Elevated",
       "description": "True when abs(mid_oracle_gap_bp) >= alert_threshold_bp. A fixed-threshold boolean, not a manipulation determination - see notice."
      },
      "mid_price": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ],
       "title": "Mid Price",
       "default": null
      },
      "mark_price": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ],
       "title": "Mark Price",
       "default": null
      },
      "data_source": {
       "type": "string",
       "title": "Data Source"
      },
      "generated_at": {
       "type": "object",
       "title": "TimestampPair",
       "required": [
        "utc",
        "kst"
       ],
       "properties": {
        "kst": {
         "type": "string",
         "title": "Kst"
        },
        "utc": {
         "type": "string",
         "title": "Utc"
        }
       }
      },
      "oracle_price": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alphapipeline-oracle-gap-d59e7720/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alphapipeline-eu.onrender.com](https://www.zero.xyz/host/alphapipeline-eu.onrender.com/llms.txt)
