# DripMetrics Polymarket Leakage Score

> DripMetrics Polymarket Leakage Score is a paid API for AI agents from api.dripmetrics.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-13).

Measures information leakage and pre-news price movement in a Polymarket prediction market around an event anchor

## Facts

- Endpoint: POST https://api.dripmetrics.ai/polymarket/leakage-score
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-dripmetrics-ai-aef66c85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A6HaGzucY-tYvb3volt4P

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-dripmetrics-ai-aef66c85 -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "tokenId": "0x456def",
   "conditionId": "0x123abc",
   "windowMinutes": 60,
   "lookbackMinutes": 120
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "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."
      }
     },
     "ad
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-dripmetrics-ai-aef66c85/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.dripmetrics.ai](https://www.zero.xyz/host/api.dripmetrics.ai/llms.txt)
