{"uid":"cap_znnDMN6WILctKeZurfc8X","slug":"alphapipeline-oracle-gap-d59e7720","name":"AlphaPipeline Oracle Gap","description":"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.","url":"https://alphapipeline-eu.onrender.com/v1/market/oracle-gap?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","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"}],"title":"Oracle Price","default":null},"mid_oracle_gap_bp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mid Oracle Gap Bp","default":null,"description":"(mid_price - oracle_price) / oracle_price * 10000, in basis points."},"alert_threshold_bp":{"type":"number","title":"Alert Threshold Bp"},"mark_oracle_gap_bp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mark Oracle Gap Bp","default":null,"description":"(mark_price - oracle_price) / oracle_price * 10000, in basis points."}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wbzbpXmx1Xl8fOX1V7Md7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"What's the current mid-to-oracle price gap in basis points for the ETH perpetual on Hyperliquid, and is it flagged as elevated?","exampleUseCases":[{"title":"Protocol oracle risk check before pricing","prompt":"Before we price any positions off the Hyperliquid mid, can you pull the mid-oracle gap in basis points for BTC perp and tell me if it's elevated right now?"},{"title":"DeFi integration safety audit","prompt":"I'm building on HyperEVM and want to make sure the SOL perpetual oracle gap isn't dangerously wide — can you check the current mid vs oracle basis point spread and whether it's above the alert threshold?"},{"title":"Real-time market manipulation screen","prompt":"Can you check the mid-to-oracle gap for the ARB perpetual on Hyperliquid and give me the mark price, oracle price, and whether the gap is elevated?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T14:30:13.607Z","isFirstParty":false,"canonicalSlug":"alphapipeline-oracle-gap-d59e7720"}