Api Endpoint

Perp Gap API

Use when an agent wants the most mispriced liquid Hyperliquid prediction markets right now in one call. Ranks crypto and tokenized-stock binary price markets by edge: model probability from the live perp and 7d realized vol vs bid/ask, edge in pp, spread, depth and book age; empty and illiquid books are filtered. 400/404 are free, never charged. Errors: 400, 402, 404, 502. Data, not advice.

Open interactive test console

Offering

Provider
perp-gap-api.perpgap.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://perp-gap-api.perpgap.workers.dev/pm/scan
MIME type
application/json
First seen
2026-10-19T02:33:22.426Z
Last seen
Tags
Trading, Data, Prediction Markets, hyperliquid, arbitrage

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.05 USDC
Atomic price: 50000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.05 USDC
Atomic price: 50000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "50000",
    "payTo": "0x2d82dcB9cC3a168d9Ab25b62C1E33E278A51254F"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "50000",
    "payTo": "5MoL8HNnvZUogGrqiF4T1StmAUpdU7ERA2GUJ7gLrEja"
  }
]

Observed health

Status
Healthy
Latest latency
815 ms
Average latency
773 ms
HTTP status
402
Last checked
Reachability
100% over 12 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "min_edge_pp": {
          "type": "string",
          "description": "Optional minimum edge in percentage points (default 2).",
          "pattern": "^[0-9.]+$"
        },
        "max_spread_pp": {
          "type": "string",
          "description": "Optional maximum bid/ask spread in pp.",
          "pattern": "^[0-9.]+$"
        },
        "kind": {
          "type": "string",
          "description": "Optional: crypto, stocks or all.",
          "enum": [
            "crypto",
            "stocks",
            "all"
          ]
        },
        "asset": {
          "type": "string",
          "description": "Optional underlying filter."
        },
        "limit": {
          "type": "string",
          "description": "Optional max rows.",
          "pattern": "^[0-9]{1,3}$"
        }
      },
      "required": [],
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "additionalProperties": false,
          "properties": {
            "asset": {
              "description": "Optional underlying filter.",
              "type": "string"
            },
            "kind": {
              "description": "Optional: crypto, stocks or all.",
              "enum": [
                "crypto",
                "stocks",
                "all"
              ],
              "type": "string"
            },
            "limit": {
              "description": "Optional max rows.",
              "pattern": "^[0-9]{1,3}$",
              "type": "string"
            },
            "max_spread_pp": {
              "description": "Optional maximum bid/ask spread in pp.",
              "pattern": "^[0-9.]+$",
              "type": "string"
            },
            "min_edge_pp": {
              "description": "Optional minimum edge in percentage points (default 2).",
              "pattern": "^[0-9.]+$",
              "type": "string"
            }
          },
          "required": [],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "description": "Error responses are JSON {error: string, hint?: string}. 400 bad params (never charged); 402 payment required; 404 ticker/market not listed (checked before settlement, never charged); 502 upstream error. Full field docs: /openapi.json.",
          "properties": {
            "cache_updated_iso": {
              "type": "string"
            },
            "count": {
              "type": "number"
            },
            "disclaimer": {
              "type": "string"
            },
            "filtered_out_empty_books": {
              "type": "number"
            },
            "filtered_out_illiquid": {
              "type": "number"
            },
            "filters": {
              "type": "object"
            },
            "generated_at_iso": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "matched": {
              "type": "number"
            },
            "median_book_age_s": {
              "type": "number"
            },
            "method": {
              "type": "string"
            },
            "rows": {
              "type": "array"
            },
            "scanned": {
              "type": "number"
            },
            "source": {
              "type": "string"
            },
            "spot_live": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}