{"uid":"cap_A6HaGzucY-tYvb3volt4P","slug":"api-dripmetrics-ai-aef66c85","name":"DripMetrics Polymarket Leakage Score","description":"DripMetricsAI (https://dripmetrics.ai/) provides on-demand crypto market microstructure metrics, Hyperliquid candle metrics, Polymarket diagnostics, and on-chain DefiLlama metrics for agents, dashboards, and trading workflows.","url":"https://api.dripmetrics.ai/polymarket/leakage-score","method":"POST","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":["POST"],"type":"string"},"queryParams":{"type":"object","anyOf":[{"required":["conditionId","tokenId"]},{"required":["conditionId","assetId"]},{"required":["slug","outcome"]}],"required":[],"properties":{"slug":{"type":"string","description":"Polymarket market or event slug for human-readable market selection. Multi-market event slugs may require conditionId to disambiguate."},"endTs":{"type":"integer","description":"Optional unix timestamp upper bound."},"limit":{"type":"integer","maximum":5000,"minimum":1,"description":"Maximum number of trades to evaluate."},"newsTs":{"type":"integer","description":"Optional explicit event timestamp for leakage scoring. If omitted, the metric uses the midpoint of the effective analysis window."},"assetId":{"type":"string","description":"Alias for tokenId on price-history-based endpoints."},"outcome":{"enum":["YES","NO"],"type":"string","description":"Required for token-side Polymarket diagnostics when the selected YES or NO side must be interpreted."},"startTs":{"type":"integer","description":"Optional unix timestamp lower bound."},"tokenId":{"type":"string","description":"Polymarket token / asset ID for orderbook and price-history endpoints."},"conditionId":{"type":"string","description":"Polymarket condition ID for trade-based metrics."},"windowMinutes":{"type":"integer","minimum":1,"description":"Lookback window in minutes."},"lookbackMinutes":{"type":"integer","minimum":1,"description":"Historical lookback used for probability shock normalization."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["metric","window","value","components","sampleSize","source","computedAt"],"properties":{"slug":{"type":"string"},"value":{"type":["number","null"]},"metric":{"type":"string"},"source":{"type":"object"},"window":{"type":"object"},"assetId":{"type":"string"},"outcome":{"type":"string"},"tokenId":{"type":"string"},"components":{"type":"object"},"computedAt":{"type":"string","format":"date-time"},"sampleSize":{"type":"object"},"conditionId":{"type":"string"}},"additionalProperties":false}}}}},"responseSchema":{"type":"json","example":{"slug":"fed-decision-in-october","value":0.3125,"metric":"leakage-score","source":{"market":"https://gamma-api.polymarket.com/markets/slug/fed-decision-in-october","trades":"https://data-api.polymarket.com/trades","priceHistory":"https://clob.polymarket.com/prices-history"},"window":{"newsTs":1748192400,"windowMinutes":60},"assetId":"52114319501245791867035421127632480533667839244426816785285192633646117989903","outcome":"YES","tokenId":"52114319501245791867035421127632480533667839244426816785285192633646117989903","components":{"note":"Information leakage / pre-news movement score. This is not an insider-trading accusation.","preMove":0.025,"totalMove":0.08,"preWindowVolume":8011.3,"postWindowVolume":11530.9,"preNewsVolumeShare":0.41},"computedAt":"2026-05-25T14:00:00.000Z","sampleSize":{"trades":220,"pricePoints":180},"conditionId":"0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917"}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"tokenId":"0x456def","conditionId":"0x123abc","windowMinutes":60,"lookbackMinutes":120}}},"response":{"value":null,"metric":"leakage-score","source":{"trades":"https://data-api.polymarket.com/trades","priceHistory":"https://clob.polymarket.com/prices-history"},"window":{"endTs":1780979539724,"newsTs":1780977739724,"startTs":1780975939724,"windowMinutes":60,"lookbackMinutes":120},"assetId":"0x456def","tokenId":"0x456def","components":{"note":"Insufficient price history around the news timestamp. No newsTs was supplied; the score uses the midpoint of the effective analysis window as the event anchor.","preMove":null,"totalMove":null,"coverageNote":"Trade scan did not reach the full requested lookback; results use the newest API-visible trades within the scan limit.","leakageScore":null,"preWindowVolume":0,"postWindowVolume":28781.408652,"preNewsVolumeShare":0},"computedAt":"2026-06-09T04:32:20.088Z","sampleSize":{"trades":1000,"pricePoints":0,"scannedTrades":1000},"conditionId":"0x123abc"}},"exampleRequest":{"tokenId":"0x456def","conditionId":"0x123abc","windowMinutes":60,"lookbackMinutes":120},"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_mUD5Y3Qu7RxplQZHUjIO1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Measures information leakage and pre-news price movement in a Polymarket prediction market around an event anchor","exampleAgentPrompt":"Can you pull the leakage score for the Polymarket market with slug 'will-fed-cut-rates-july-2025', YES outcome, looking back 120 minutes with a 60-minute window, and tell me if there was unusual pre-event flow?","exampleUseCases":null,"resultDescription":"A structured JSON object containing a leakage score value, component breakdown (probability shock, flow imbalance, etc.), the analysis window used, sample size of trades evaluated, the inferred or provided event anchor timestamp, and data source metadata.","failureModes":["Missing required identifiers (conditionId+tokenId, conditionId+assetId, or slug+outcome) returns a 400 validation error","Invalid or unknown conditionId/tokenId/slug returns a 404 or empty result","Insufficient trade data in the window returns a low-confidence or null leakage score","Payment not provided or insufficient USDC via x402 returns a 402 Payment Required","windowMinutes or lookbackMinutes set too small may produce unreliable normalization","Ambiguous multi-market event slug without conditionId may return wrong market data"],"whenToPreferThis":"Use this endpoint when you need to quantify whether a Polymarket prediction market exhibited statistically unusual price or flow movement before a known or inferred event — i.e., to detect information leakage, front-running, or insider trading signals. Prefer this over generic price history queries when you specifically need a normalized leakage diagnostic score with component breakdown rather than raw price data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:53:23.000Z","isFirstParty":false}