{"openapi":"3.1.0","info":{"title":"SkewRadar Prediction Market API","version":"1.0.2","summary":"Unified 5-venue prediction-market implied odds, cross-venue pricing spreads, L2 slippage simulation, headline matching, and real-time WebSocket ticks.","description":"Strictly read-only, non-custodial prediction-market analytics covering Polymarket, Kalshi (which also powers Robinhood & Coinbase), Limitless (Base CLOB), PredictIt, and Myriad. Authenticate with a subscription or Unlimited USD API Credits Bearer key (`Authorization: Bearer sr_pro_...`, $0.005/call, 1,200 req/min, unlimited daily calls) or pay per call with Base Mainnet USDC via HTTP x402 (`PAYMENT-SIGNATURE`, $0.01 USDC/call, 300 req/min).","termsOfService":"https://skewradar.com/terms","contact":{"name":"SkewRadar","url":"https://skewradar.com/docs","email":"support@skewradar.com"}},"servers":[{"url":"https://skewradar.com","description":"Primary Cloudflare Edge"},{"url":"https://api.skewradar.com","description":"Dedicated API Host"}],"x-mcp":{"endpoint":"https://skewradar.com/mcp","transport":"streamable-http","discoveryUrl":"https://skewradar.com/.well-known/mcp.json","freeTools":["search_market_odds","get_breaking_movers","audit_pair_settlement_rules"],"paidTools":["scan_cross_venue_skews","match_headline_to_markets","inspect_market_microstructure","simulate_cross_venue_arb"]},"x-realtime":{"websocketUrl":"wss://skewradar.com/api/v1/ws","cadenceMs":2200,"rotationSeconds":30,"auth":"Optional Authorization: Bearer <key> header or ?token=<key> query parameter.","queryFilters":{"venues":"Comma-separated venue IDs (polymarket,kalshi,limitless,predictit,myriad)","pairIds":"Comma-separated cross-venue pairIds to include","minSkewPct":"Minimum grossSkewPct threshold (number)","channels":"Comma-separated frame channels: skews,quotes,moves (default all)"},"clientMessages":[{"type":"subscribe","venues":["polymarket","kalshi"],"pairIds":[],"minSkewPct":2,"channels":["skews","quotes"]},{"type":"unsubscribe"},{"type":"ping"}]},"x-payg-usd-credits":{"tier":"payg","pricePerCallUsd":0.005,"dailyCallsLimit":0,"rpmLimit":1200,"packs":{"credits_20":{"id":"credits_20","amountUsd":20,"amountCents":2000,"amountMicros":20000000,"approxCalls":4000,"label":"$20 USD Credits"},"credits_50":{"id":"credits_50","amountUsd":50,"amountCents":5000,"amountMicros":50000000,"approxCalls":10000,"label":"$50 USD Credits"},"credits_200":{"id":"credits_200","amountUsd":200,"amountCents":20000,"amountMicros":200000000,"approxCalls":40000,"label":"$200 USD Credits"}},"responseHeaders":["X-SkewRadar-Charge-Usd","X-SkewRadar-Credit-Balance-Usd"],"checkoutUrl":"https://skewradar.com/api/v1/checkout/redirect?plan=payg&pack=credits_50","docsUrl":"https://skewradar.com/docs#payg"},"x-x402":{"version":2,"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amountAtomic":"10000","priceUsd":"0.01","payTo":"0x9d000579a7bDEe5Dc62C294d91dc6167776a71Ec","rpmLimit":300,"docsUrl":"https://skewradar.com/docs#x402"},"tags":[{"name":"Markets","description":"Real-time 5-venue probabilities, cross-venue spreads, and 2.5s orderbook ticks"},{"name":"Execution","description":"Live multi-level L2 ask-ladder slippage, fee math, and annualized carry simulation"},{"name":"Matching","description":"English and Chinese headline-to-prediction-market matcher"},{"name":"Analytics","description":"24h/7d opportunity ledger, venue microstructure, and empirical lead-lag stats"},{"name":"MCP","description":"Streamable HTTP Model Context Protocol server for AI agents"},{"name":"System","description":"Health, live status, and pricing metadata"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"sr_pro_<token>","description":"Optional SkewRadar Pro API key from Trader ($19/mo), Desk ($59/mo), Scale ($199/mo), or Unlimited USD API Credits ($0.005/call, 1,200 req/min)."},"x402Payment":{"type":"apiKey","in":"header","name":"PAYMENT-SIGNATURE","description":"Base Mainnet EIP-3009 USDC payment payload ($0.01 USDC/call) returned after an HTTP 402 PAYMENT-REQUIRED challenge."}},"schemas":{"VenueId":{"type":"string","enum":["polymarket","kalshi","limitless","predictit","myriad"]},"NormalizedMarket":{"type":"object","required":["id","venue","venueMarketId","question","yesProb","noProb","volume24hUsd","url"],"properties":{"id":{"type":"string"},"venue":{"$ref":"#/components/schemas/VenueId"},"venueMarketId":{"type":"string"},"question":{"type":"string"},"category":{"type":"string"},"yesProb":{"type":"number","minimum":0,"maximum":1},"noProb":{"type":"number","minimum":0,"maximum":1},"yesBid":{"type":["number","null"]},"yesAsk":{"type":["number","null"]},"spread":{"type":["number","null"]},"volume24hUsd":{"type":"number"},"liquidityUsd":{"type":"number"},"closeTime":{"type":["string","null"]},"url":{"type":"string","format":"uri"},"clobTokenId":{"type":"string"},"limitlessSlug":{"type":"string"}}},"SkewBasisRisk":{"type":"object","required":["level","score","factors"],"properties":{"level":{"type":"string","enum":["LOW","MEDIUM","HIGH"]},"score":{"type":"number","minimum":0,"maximum":100},"factors":{"type":"array","items":{"type":"string"}}}},"SkewAnalytics":{"type":"object","required":["qualityScore","grade","basisRisk","feeAdjustedNetCents","suggestedAction"],"properties":{"qualityScore":{"type":"number","minimum":0,"maximum":100},"grade":{"type":"string","enum":["A","B","C"]},"basisRisk":{"$ref":"#/components/schemas/SkewBasisRisk"},"combinedAskCostCents":{"type":"number"},"estimatedFeeCents":{"type":"number"},"feeAdjustedNetCents":{"type":"number"},"daysToExpiry":{"type":["number","null"]},"annualizedCarryPct":{"type":["number","null"]},"kellyFractionPct":{"type":"number"},"suggestedAction":{"type":"string"},"history":{"type":"object","properties":{"samples":{"type":"integer"},"skew24hHighPct":{"type":"number"},"skew24hLowPct":{"type":"number"},"skew24hAvgPct":{"type":"number"},"skewChange1hPct":{"type":["number","null"]},"zScore":{"type":["number","null"]},"trend":{"type":"string","enum":["WIDENING","CONVERGING","STABLE"]},"leadVenue":{"type":["string","null"],"enum":["polymarket","kalshi","limitless","predictit","myriad",null]}}}}},"CrossVenueSkew":{"type":"object","required":["pairId","canonicalTitle","grossSkewPct","netExecutableEdgePct","legA","legB"],"properties":{"pairId":{"type":"string"},"canonicalTitle":{"type":"string"},"matchConfidence":{"type":"number"},"grossSkewPct":{"type":"number"},"netExecutableEdgePct":{"type":"number"},"direction":{"type":"string"},"closeTimeDiffHours":{"type":["number","null"]},"resolutionCaveats":{"type":"array","items":{"type":"string"}},"legA":{"$ref":"#/components/schemas/NormalizedMarket"},"legB":{"$ref":"#/components/schemas/NormalizedMarket"},"analytics":{"$ref":"#/components/schemas/SkewAnalytics"}}},"LiveTickFrame":{"type":"object","required":["type","seq","serverTime","totalSkews","quotes","skews"],"properties":{"type":{"type":"string","enum":["tick"]},"seq":{"type":"integer"},"serverTime":{"type":"string","format":"date-time"},"snapshotFetchedAt":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["clob+kalshi","snapshot"]},"tickMs":{"type":"number"},"totalSkews":{"type":"integer"},"venueCounts":{"type":"object","additionalProperties":{"type":"integer"}},"quotes":{"type":"object","additionalProperties":{"type":"object","properties":{"id":{"type":"string"},"venue":{"$ref":"#/components/schemas/VenueId"},"question":{"type":"string"},"yesProb":{"type":"number"},"yesBid":{"type":["number","null"]},"yesAsk":{"type":["number","null"]},"spread":{"type":["number","null"]},"deltaPct":{"type":"number"}}}},"skews":{"type":"array","items":{"type":"object","properties":{"pairId":{"type":"string"},"venueA":{"$ref":"#/components/schemas/VenueId"},"venueB":{"$ref":"#/components/schemas/VenueId"},"grossSkewPct":{"type":"number"},"netExecutableEdgePct":{"type":"number"},"polyProb":{"type":"number"},"kalshiProb":{"type":"number"},"polyBid":{"type":["number","null"]},"polyAsk":{"type":["number","null"]},"kalshiBid":{"type":["number","null"]},"kalshiAsk":{"type":["number","null"]},"deltaSkewPct":{"type":"number"},"analytics":{"$ref":"#/components/schemas/SkewAnalytics"}}}}}},"ArbSimulationResponse":{"type":"object","required":["tier","simulation"],"properties":{"tier":{"type":"string"},"simulation":{"type":"object","required":["pairId","canonicalTitle","bookSource","capitalRequestedUsd","capitalDeployedUsd","netProfitUsd","netRoiPct","maxProfitableCapitalUsd"],"properties":{"pairId":{"type":"string"},"canonicalTitle":{"type":"string"},"bookSource":{"type":"string","enum":["live_l2","top_of_book_fallback"]},"capitalRequestedUsd":{"type":"number"},"capitalDeployedUsd":{"type":"number"},"depthCapped":{"type":"boolean"},"strategyLabel":{"type":"string"},"matchedShares":{"type":"number"},"guaranteedPayoutUsd":{"type":"number"},"combinedTopAsk":{"type":"number"},"combinedVwap":{"type":"number"},"totalSlippageCents":{"type":"number"},"grossProfitUsd":{"type":"number"},"totalFeesUsd":{"type":"number"},"netProfitUsd":{"type":"number"},"netRoiPct":{"type":"number"},"daysToExpiry":{"type":["number","null"]},"annualizedApyPct":{"type":["number","null"]},"maxProfitableCapitalUsd":{"type":"number"},"maxAvailableCapitalUsd":{"type":"number"},"legs":{"type":"array","items":{"type":"object"}},"feeNote":{"type":"string"},"caveats":{"type":"array","items":{"type":"string"}},"simulatedAt":{"type":"string","format":"date-time"}}},"disclaimer":{"type":"string"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}},"paths":{"/api/v1/health":{"get":{"tags":["System"],"operationId":"getHealth","summary":"Service health, venue list, pricing tiers, and x402 configuration","responses":{"200":{"description":"Healthy service metadata","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","example":true},"service":{"type":"string","example":"SkewRadar"},"domain":{"type":"string","example":"skewradar.com"},"version":{"type":"string","example":"0.1.0"},"mcpUrl":{"type":"string"},"x402":{"type":"object"},"checkout":{"type":"object"},"accounts":{"type":"object"}}}}}}}}},"/api/v1/skews":{"get":{"tags":["Markets"],"operationId":"getSkews","summary":"Live 5-venue markets and cross-venue divergence pairs","description":"Returns 5-venue market counts, top 24 volume markets, and either the top-3 free live skew previews (unauthenticated) or all verified live cross-venue pairs when called with a valid Pro Bearer key.","security":[{},{"bearerAuth":[]}],"parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"string","enum":["1"]},"description":"Set to 1 (authenticated) to force an upstream snapshot refresh."}],"responses":{"200":{"description":"Live cross-venue skew snapshot","content":{"application/json":{"schema":{"type":"object","properties":{"fetchedAt":{"type":"string","format":"date-time"},"tier":{"type":"string"},"totalSkews":{"type":"integer"},"venueCounts":{"type":"object","additionalProperties":{"type":"integer"}},"skews":{"type":"array","items":{"$ref":"#/components/schemas/CrossVenueSkew"}},"topMarkets":{"type":"array","items":{"$ref":"#/components/schemas/NormalizedMarket"}}}}}}}}}},"/api/v1/pro/skews":{"get":{"tags":["Markets"],"operationId":"getProSkews","summary":"Full live cross-venue skew feed (Bearer key or Base x402)","security":[{"bearerAuth":[]},{"x402Payment":[]}],"parameters":[{"name":"minGrossSkewPct","in":"query","required":false,"schema":{"type":"number","minimum":0},"description":"Filter to pairs with grossSkewPct >= threshold."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200},"description":"Maximum number of pairs to return."}],"responses":{"200":{"description":"Unlocked cross-venue skew list","content":{"application/json":{"schema":{"type":"object","properties":{"fetchedAt":{"type":"string","format":"date-time"},"tier":{"type":"string"},"totalMatched":{"type":"integer"},"skews":{"type":"array","items":{"$ref":"#/components/schemas/CrossVenueSkew"}}}}}}},"402":{"description":"Payment Required — includes base64 PAYMENT-REQUIRED header for Base Mainnet USDC x402 ($0.01 USDC/call).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 payment challenge.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/ticks":{"get":{"tags":["Markets"],"operationId":"getTicks","summary":"Low-latency 2.5-second live orderbook & skew tick frame","security":[{},{"bearerAuth":[]}],"responses":{"200":{"description":"Latest orderbook tick frame","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveTickFrame"}}}}}}},"/api/v1/arb-simulate":{"get":{"tags":["Execution"],"operationId":"simulateArb","summary":"Live multi-level L2 orderbook slippage, fee, and annualized carry simulator","security":[{},{"bearerAuth":[]}],"parameters":[{"name":"pairId","in":"query","required":false,"schema":{"type":"string"},"description":"Cross-venue pairId from /api/v1/skews (defaults to top active pair)."},{"name":"capitalUsd","in":"query","required":false,"schema":{"type":"number","default":1000,"minimum":25,"maximum":250000},"description":"Notional USD capital to walk across both venues' L2 ask ladders."},{"name":"pair","in":"query","required":false,"schema":{"type":"string"},"description":"Optional fuzzy title/keyword lookup when pairId is omitted."},{"name":"polyFeeBps","in":"query","required":false,"schema":{"type":"number","default":0,"minimum":0,"maximum":300},"description":"Optional Polymarket taker fee override in basis points (0..300)."}],"responses":{"200":{"description":"Live L2 slippage & fee simulation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArbSimulationResponse"}}}}}}},"/api/v1/match":{"get":{"tags":["Matching"],"operationId":"matchHeadlineGet","summary":"Match a single English or Chinese news headline to live prediction markets","security":[{},{"bearerAuth":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"description":"News headline, tweet text, or topic keyword (EN/ZH)."},{"name":"context","in":"query","required":false,"schema":{"type":"string","enum":["search","news","social"],"default":"search"},"description":"Matching precision profile: search (manual query), news (financial news), or social (strict anti-noise for X/Reddit)."}],"responses":{"200":{"description":"Matched live prediction markets and cross-venue divergence","content":{"application/json":{"schema":{"type":"object","properties":{"fetchedAt":{"type":"string","format":"date-time"},"context":{"type":"string","enum":["search","news","social"]},"rerankMode":{"type":"string","enum":["workers_ai","workers_ai_cached","lexical_only","lexical_fallback"]},"matches":{"type":"array","items":{"type":"object"}}}}}}}}},"post":{"tags":["Matching"],"operationId":"matchHeadlinesPost","summary":"Batch-match up to 25 English or Chinese headlines to live prediction markets","security":[{},{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"context":{"type":"string","enum":["search","news","social"]},"headlines":{"type":"array","items":{"type":"object","required":["id","text"],"properties":{"id":{"type":"string"},"text":{"type":"string"}}},"maxItems":25}}}}}},"responses":{"200":{"description":"Batch headline match results","content":{"application/json":{"schema":{"type":"object","properties":{"fetchedAt":{"type":"string","format":"date-time"},"context":{"type":"string"},"rerankMode":{"type":"string"},"matches":{"type":"array","items":{"type":"object"}}}}}}}}}},"/api/v1/movers":{"get":{"tags":["Markets"],"operationId":"getBreakingMovers","summary":"Breaking 5m/1h probability movers and stale-venue lag signals across all 5 venues","security":[{},{"bearerAuth":[]}],"parameters":[{"name":"venue","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VenueId"}},{"name":"targetVenue","in":"query","required":false,"description":"Filter to single-venue lead-lag alpha trades executable directly on targetVenue","schema":{"$ref":"#/components/schemas/VenueId"}},{"name":"window","in":"query","required":false,"schema":{"type":"string","enum":["5m","1h","24h"]}},{"name":"minMovePct","in":"query","required":false,"schema":{"type":"number","default":0.8}},{"name":"staleOnly","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"maximum":40}}],"responses":{"200":{"description":"Ranked breaking odds movers and stale-venue lag gaps","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/pairs/{pairId}/rules-audit":{"get":{"tags":["Analytics"],"operationId":"auditPairSettlementRules","summary":"Clause-by-clause Workers AI + deterministic settlement rule diff audit for a cross-venue pair","security":[{},{"bearerAuth":[]}],"parameters":[{"name":"pairId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Structured settlement clause diff verdict, trap score, and verbatim rules","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Pro subscription or USD API credits required for locked pairs beyond Free Top #3","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/pairs/{pairId}/history":{"get":{"tags":["Analytics"],"operationId":"getPairHistory","summary":"24-hour dual-venue probability and spread convergence history series for a matched pair","parameters":[{"name":"pairId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Chronological 24h probability and gross/net skew samples","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/analytics/overview":{"get":{"tags":["Analytics"],"operationId":"getAnalyticsOverview","summary":"24h/7d opportunity ledger, venue microstructure, basis-risk distribution, and lead-venue stats","responses":{"200":{"description":"Aggregated cross-venue analytics overview","content":{"application/json":{"schema":{"type":"object","properties":{"fetchedAt":{"type":"string","format":"date-time"},"totalMarkets":{"type":"integer"},"totalSkews":{"type":"integer"},"gradeCounts":{"type":"object"},"basisRiskCounts":{"type":"object"},"leadVenueTally":{"type":"object"},"venueMicrostructure":{"type":"array","items":{"type":"object"}},"convergenceMovers":{"type":"array","items":{"type":"object"}},"window24h":{"type":"object"},"window7d":{"type":"object"},"capturedWindows":{"type":"array","items":{"type":"object"}},"topSignals":{"type":"array","items":{"type":"object"}}}}}}}}}},"/mcp":{"get":{"tags":["MCP"],"operationId":"getMcpMetadata","summary":"Streamable HTTP MCP server capabilities and pricing metadata","responses":{"200":{"description":"MCP metadata","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["MCP"],"operationId":"invokeMcpJsonRpc","summary":"Invoke read-only SkewRadar MCP tools via Streamable HTTP JSON-RPC 2.0","security":[{},{"bearerAuth":[]},{"x402Payment":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","id","method"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"oneOf":[{"type":"integer"},{"type":"string"}]},"method":{"type":"string","example":"tools/call"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"JSON-RPC 2.0 response","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Base x402 payment challenge for paid tools when no Bearer key is supplied."}}}}}}