# DripMetrics AI Rolling Correlation

> DripMetrics AI Rolling Correlation 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-14).

Computes the rolling price-volume or inter-asset correlation for a crypto trading pair over a specified lookback window using recent trade data from Binance or Coinbase.

## Facts

- Endpoint: GET https://api.dripmetrics.ai/metrics/rolling-correlation
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dripmetrics-ai-rolling-correlation-f3ad382f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lPNqFfC7cBC-bUEr23bcu

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-rolling-correlation-f3ad382f
```

Example prompt: What's the rolling 1-hour correlation for ETH-USD on Coinbase right now? Pull the DripMetrics rolling-correlation metric and tell me the value and how complete the data coverage was.

## When to prefer this

Use this endpoint when you need a real-time, on-demand rolling correlation metric computed directly from raw trade data on Binance or Coinbase — particularly for market microstructure analysis, quant trading signal generation, or monitoring correlation regime changes. Prefer this over general-purpose analytics if you need sub-hour granularity (30m, 1h) and live trade-level accuracy with explicit data coverage reporting.

## Known failure modes

- Unsupported pair/exchange combination returns an error or partial data flag
- Window sizes 2h/3h only supported for BTCUSDT/BTC-USD — other pairs may fail or return partial coverage
- Insufficient trade data in the window yields partialData:true and a coverageRatio below 1
- Exchange API downtime causes incomplete fetch with completeFetch:false and an errorMessage in coverage
- Payment failure (HTTP 402) if x402 micropayment is not properly attached

## 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 containing the metric name ('rolling-correlation'), the trading pair, exchange, lookback window, the computed correlation value (float between -1 and 1), the timestamp it was computed, total trade count used, first and last trade timestamps, and a coverage object showing requested vs effective window minutes, coverage ratio (0–1), and whether data was complete or partial.

## 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": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pair",
      "exchange",
      "window"
     ],
     "properties": {
      "pair": {
       "type": "string",
       "description": "Exchange-native trading pair symbol such as BTCUSDT, ETH-USD, BTC, or xyz:TSLA."
      },
      "window": {
       "enum": [
        "30m",
        "1h",
        "2h",
        "3h"
       ],
       "type": "string",
       "description": "Lookback window. Hyperliquid supports 30m and 1h; 2h and 3h are currently BTCUSDT/BTC-USD only."
      },
      "exchange": {
       "enum": [
        "binance",
        "coinbase"
       ],
       "type": "string",
       "description": "Exchange adapter to source recent trades from."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "metric",
      "pair",
      "exchange",
      "window",
      "value",
      "computedAt",
      "tradeCount",
      "firstTradeTime",
      "lastTradeTime",
      "coverage"
     ],
     "properties": {
      "pair": {
       "type": "string"
      },
      "value": {
       "type": "number"
      },
      "metric": {
       "type": "string"
      },
      "window": {
       "enum": [
        "30m",
        "1h",
        "2h",
        "3h"
       ],
       "type": "string"
      },
      "coverage": {
       "type": "object",
       "required": [
        "requestedWindowMinutes",
        "effectiveWindowMinutes",
        "coverageRatio",
        "partialData",
        "completeFetch",
        "errorMessage"
       ],
       "properties": {
        "partialData": {
         "type": "boolean"
        },
        "errorMessage": {
         "type": [
          "string",
          "null"
         ]
        },
        "completeFetch": {
         "type": "boolean"
        },
        "coverageRatio": {
         "type": "number",
         "maximum": 1,
         "minimum": 0
        },
      
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pair": "ETH-USD",
  "value": 0.824417,
  "metric": "rolling-correlation",
  "window": "30m",
  "coverage": {
   "partialData": false,
   "errorMessage": null,
   "completeFetch": true,
   "coverageRatio": 1,
   "effectiveWindowMinutes": 30,
   "requestedWindowMinutes": 30
  },
  "exchange": "coinbase",
  "components": {},
  "computedAt": "2026-05-23T14:00:00.000Z",
  "tradeCount": 428,
  "lastTradeTime": "2026-05-23T13:59:58.000Z",
  "firstTradeTime": "2026-05-23T13:00:02.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dripmetrics-ai-rolling-correlation-f3ad382f/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)
