{"uid":"cap_JxZiHHxZJ82mWKM5wfo4k","slug":"perp-gap-api-stock-perpetual-arbitrage-verdict-e32fd137","name":"Perp Gap API – Stock Perpetual Arbitrage Verdict","description":"Use when an agent needs a quick directional sanity check on one stock perp before trading. Long/short/watch/avoid with score, confidence and reasons, combining perp-vs-stock gap, basis, funding, SEC EDGAR insider/8-K/13D/dilution filings (14d), news and retail attention. Bad or unlisted tickers return 400/404 before any charge. Errors: 400, 402, 404, 502. Data, not advice.","url":"https://perp-gap-api.perpgap.workers.dev/verdict?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":["ticker"],"properties":{"ticker":{"type":"string","pattern":"^[A-Za-z0-9.]{1,12}$","examples":["NVDA"],"description":"Stock ticker, case-insensitive (free list: GET /catalog)."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"score":{"type":"number"},"inputs":{"type":"object"},"method":{"type":"string"},"ticker":{"type":"string"},"reasons":{"type":"array"},"verdict":{"type":"string"},"confidence":{"type":"number"},"disclaimer":{"type":"string"},"generated_at":{"type":"number"},"generated_at_iso":{"type":"string"}},"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":{"score":0,"inputs":{"edgar":{"as_of":"2026-10-29T15:40:08.247Z","source":"SEC EDGAR data.sec.gov submissions + Form 4 XML","company":"NVIDIA CORP","available":true,"n_filings":0,"window_hours":336},"gap_row":{"coin":"xyz:NVDA","ticker":"NVDA","perp_mid":214.03,"ref_kind":"equity","perp_mark":214.04,"perp_oracle":213.97},"attention":{"as_of":1793288408,"source":"ApeWisdom (Reddit mentions, 24h)","available":true,"reddit_rank":13,"reddit_mentions_24h":47,"reddit_mentions_prev_24h":42}},"method":"rule-based scoring; no LLM","ticker":"NVDA","reasons":["perp vs reference gap +0.05%: in line, no edge"],"verdict":"watch","confidence":0.3,"disclaimer":"Data, not financial advice.","generated_at":1793288410,"generated_at_iso":"2026-10-29T15:40:10.125Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lqaAVGhZWktlzwa10I1Dj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a rule-based long/short/watch/avoid verdict for a stock ticker based on perp-vs-spot price gaps, funding rates, basis, open interest, and insider data across DeFi perp venues.","exampleAgentPrompt":"Give me a verdict on GME right now — check the perp-vs-spot gaps across trade.xyz, Aster and Lighter, funding rates, and insider activity, and tell me whether to long, short, watch, or avoid.","exampleUseCases":[{"title":"Pre-trade perp arbitrage check","prompt":"Before I open a TSLA position, can you check the perp gap signal — look at funding, basis, open interest and insider flows and tell me whether the verdict is long, short, watch or avoid, with a confidence score?"},{"title":"DeFi perp funding rate alert","prompt":"Is NVDA perp funding rate on DeFi venues showing a crowded trade right now? Give me the verdict and the reasons behind it."},{"title":"Retail meme stock perp analysis","prompt":"GME is moving a lot today — what does the perp market say? I want to see the gap between the perp price and real stock price, the funding APR, and whether the verdict is to go long or short."}],"resultDescription":"A JSON object containing: the ticker, a rule-based verdict enum (long/short/watch/avoid), a numeric score (0–1), a confidence value (0–1), an array of human-readable reasons explaining the signal inputs (perp gap %, funding APR, insider activity etc.), a list of any missing signals, and a disclaimer string.","failureModes":["Missing or invalid ticker returns an error — ticker must be a recognized symbol like TSLA or GME","Venue data unavailable: if trade.xyz, Aster or Lighter data is missing, affected signals appear in missing_signals array","Low confidence verdicts returned when insufficient signals are available (confidence near 0)","Payment failure via x402 protocol results in 402 response before data is returned","Rate or liquidity data may be stale for thinly traded perp markets"],"whenToPreferThis":"Choose this endpoint when you need a fast, structured trading signal that synthesizes DeFi perpetual futures data (price gaps, funding, basis, OI) with traditional equity signals (insider transactions, reference price) for a single stock ticker. It is especially useful for agents operating in the onchain perp arbitrage space across trade.xyz, Aster, and Lighter. It is not suited for pure spot equity analysis, options, or bulk batch screening.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-30T00:30:50.497Z","isFirstParty":false,"canonicalSlug":"perp-gap-api-stock-perpetual-arbitrage-verdict-e32fd137"}