{"uid":"cap_vzrRr-D7VP7UeuKG2v16S","slug":"perp-gap-api-prediction-market-mispricing-scanner-9859afff","name":"Perp Gap API – Prediction Market Mispricing Scanner","description":"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.","url":"https://perp-gap-api.perpgap.workers.dev/pm/scan?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":[],"properties":{"kind":{"enum":["crypto","stocks","all"],"type":"string","description":"Optional: crypto, stocks or all."},"asset":{"type":"string","description":"Optional underlying filter."},"limit":{"type":"string","pattern":"^[0-9]{1,3}$","description":"Optional max rows."},"min_edge_pp":{"type":"string","pattern":"^[0-9.]+$","description":"Optional minimum edge in percentage points (default 2)."},"max_spread_pp":{"type":"string","pattern":"^[0-9.]+$","description":"Optional maximum bid/ask spread in pp."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"rows":{"type":"array"},"count":{"type":"number"},"label":{"type":"string"},"method":{"type":"string"},"source":{"type":"string"},"filters":{"type":"object"},"matched":{"type":"number"},"scanned":{"type":"number"},"spot_live":{"type":"boolean"},"disclaimer":{"type":"string"},"generated_at_iso":{"type":"string"},"cache_updated_iso":{"type":"string"},"median_book_age_s":{"type":"number"},"filtered_out_illiquid":{"type":"number"},"filtered_out_empty_books":{"type":"number"}},"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."}}}}},"responseSchema":{"type":"json","example":{"rows":[{"kind":"crypto","perp":"HYPE","asset":"HYPE","strike":93.284,"outcome":20271,"question":"HYPE above 93.284 at 2026-10-29 15:45:00 UTC"}],"count":7,"label":"data, not advice","method":"P(S_T > K) under a lognormal model with zero drift, S = live Hyperliquid perp mid, sigma = 7-day realized vol from Hy...","source":"Hyperliquid info API (outcomeMeta, l2Book, allMids, candleSnapshot)","filters":{"kind":"all","limit":20,"min_edge_pp":2,"max_spread_pp":10,"min_depth_usd":50},"matched":7,"scanned":124,"spot_live":true,"disclaimer":"Data, not financial advice. Not an offer or solicitation; Hyperliquid outcome markets are not available to US or othe...","generated_at_iso":"2026-10-29T15:40:51Z","cache_updated_iso":"2026-10-29T15:35:13Z","median_book_age_s":1235,"filtered_out_illiquid":35,"filtered_out_empty_books":67}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CaOc-2jHfsaY2WChKMGVB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a ranked list of the most mispriced liquid binary prediction markets on Hyperliquid (crypto and tokenized-stock), showing model probability vs bid/ask, edge, spread, and book depth in a single call.","exampleAgentPrompt":"Scan all Hyperliquid prediction markets right now and give me the top 10 most mispriced ones — only show markets with at least 3 percentage points of edge and a spread under 8pp, across both crypto and tokenized stocks.","exampleUseCases":[{"title":"Daily trading opportunity briefing","prompt":"Every morning, pull me the top 20 most mispriced prediction markets on Hyperliquid across crypto and stocks, filtering for at least 2pp edge and minimum $100 depth on both sides, so I can review them at the start of my trading day."},{"title":"Crypto-only mispricings for automated scanner","prompt":"Scan only the crypto prediction markets on Hyperliquid and return up to 15 results with at least 4pp edge and spread under 6pp — I want to feed this into my trading bot."},{"title":"Tokenized stock market edge detection","prompt":"Are there any mispriced stock prediction markets on Hyperliquid right now? Show me the top opportunities with at least 3pp edge, a spread of 10pp or less, and at least $200 depth on each side."}],"resultDescription":"A ranked array of prediction market rows, each containing the outcome label, asset ticker, strike price, expiry, best Yes bid and ask (as probabilities 0–1), mid probability, model-implied edge in percentage points, bid-ask spread, USDC depth within 5pp of touch on both sides, book age, liquidity flag, market kind (crypto or stocks), and the underlying Hyperliquid perp identifier. Also includes total markets scanned, a label, and a disclaimer.","failureModes":["400 Bad Request – invalid query parameters (e.g. limit out of range, unrecognized kind value)","404 Not Found – no liquid books found matching the filter criteria at query time","402 Payment Required – x402 payment not completed or insufficient","502 Bad Gateway – upstream Hyperliquid data unavailable or timeout"],"whenToPreferThis":"Choose this endpoint when you need a real-time ranked scan of mispriced liquid prediction markets across Hyperliquid in one call, with pre-filtered edge, spread, and depth metrics already computed. Prefer it over building your own scanner when you want immediate, actionable mispricings without constructing individual market queries. It covers both crypto binary markets and tokenized-stock binary markets in a single response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T06:33:00.110Z","isFirstParty":false,"canonicalSlug":"perp-gap-api-prediction-market-mispricing-scanner-9859afff"}