# DripMetrics AI – Polymarket Two-Sidedness

> DripMetrics AI – Polymarket Two-Sidedness 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-16).

Computes a two-sidedness score for a Polymarket prediction market, measuring how balanced YES vs NO trading volume is over a given time window.

## Facts

- Endpoint: POST https://api.dripmetrics.ai/polymarket/two-sidedness
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dripmetrics-ai-polymarket-two-sidedness-42fb4b29
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t3jwiPYg_0z0MlW5GGqbI

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 dripmetrics-ai-polymarket-two-sidedness-42fb4b29 -d '<json body>'
```

Example prompt: What's the two-sidedness score for the Polymarket market with slug 'fed-decision-in-october' over the last 60 minutes? I want to know how balanced the YES and NO trading volumes are.

## When to prefer this

Choose this endpoint when you need a single scalar metric summarizing the balance of YES vs NO trading volume on a specific Polymarket market — especially useful for pre-trade liquidity checks, market health dashboards, or detecting one-sided manipulation. Prefer it over raw trade feeds when you want a pre-computed, normalized two-sidedness score rather than raw orderbook data.

## Known failure modes

- Missing both conditionId and slug returns a 400 validation error
- Unknown or invalid conditionId/slug returns a 404 or empty result
- Insufficient trade data in the window yields a low sample size and possibly unreliable score
- windowMinutes too small may return zero trades
- Limit exceeding 5000 is rejected by schema validation
- Payment failure (x402) returns a 402 if USDC balance is insufficient

## 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

Returns a JSON object with a two-sidedness score (float 0–1, where 1 = perfectly balanced), the YES and NO volumes, the dominant outcome, the number of trades sampled, the effective time window, the conditionId, a source URLs object pointing to Polymarket data, and a computedAt ISO timestamp.

## 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"
       ]
      },
      {
       "required": [
        "slug"
       ]
      }
     ],
     "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":
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "slug": "fed-decision-in-october",
  "value": 0.7816,
  "metric": "two-sidedness",
  "source": {
   "market": "https://gamma-api.polymarket.com/markets/slug/fed-decision-in-october",
   "trades": "https://data-api.polymarket.com/trades"
  },
  "window": {
   "windowMinutes": 60
  },
  "components": {
   "noVolume": 7978.6,
   "yesVolume": 12450.2,
   "dominantOutcome": "YES"
  },
  "computedAt": "2026-05-25T14:00:00.000Z",
  "sampleSize": {
   "trades": 186
  },
  "conditionId": "0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dripmetrics-ai-polymarket-two-sidedness-42fb4b29/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)
