# DripMetrics AI DEX Efficiency Metrics

> DripMetrics AI DEX Efficiency Metrics 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 on-chain DEX efficiency metrics (annualized turnover, volume-to-TVL ratio) for a given chain or protocol over a configurable time window using DefiLlama data.

## Facts

- Endpoint: POST https://api.dripmetrics.ai/metrics/onchain/dex-efficiency
- 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-dex-efficiency-metrics-e7055cb3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Mmz4h3Ry1_650uDI-XiD5

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-dex-efficiency-metrics-e7055cb3 -d '<json body>'
```

Example prompt: What's the DEX efficiency for Uniswap over the last 30 days — give me the annualized turnover and the efficiency label?

## When to prefer this

Choose this endpoint when you need quantitative capital efficiency metrics for a specific DeFi protocol or blockchain, particularly volume-to-TVL ratio and annualized turnover derived from DefiLlama on-chain data. It is ideal for DeFi dashboards, trading strategy research, or protocol benchmarking workflows that require structured, computed efficiency scores rather than raw volume or TVL figures.

## Known failure modes

- Missing required 'window' query parameter returns validation error
- Invalid or unrecognized protocol/chain name may return empty or error response
- DefiLlama data unavailable for a given protocol/chain results in computation failure
- Unsupported window value outside enum (7d, 30d, 90d) returns schema validation error
- Network or upstream DefiLlama outage causes delayed or failed response

## 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 ('dex-efficiency'), the target protocol or chain, the time window, annualized turnover value and unit, volume-to-TVL ratio, average TVL in USD, total volume in USD, number of observations, an efficiency label (e.g. 'moderate_efficiency'), data source attribution (DefiLlama), and the computation 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",
     "required": [
      "window"
     ],
     "properties": {
      "chain": {
       "type": "string"
      },
      "window": {
       "enum": [
        "7d",
        "30d",
        "90d"
       ],
       "type": "string"
      },
      "protocol": {
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "metric",
      "window",
      "value",
      "unit",
      "components",
      "computedAt"
     ],
     "properties": {
      "unit": {
       "type": "string"
      },
      "value": {
       "type": "number"
      },
      "metric": {
       "type": "string"
      },
      "target": {
       "type": "string"
      },
      "window": {
       "type": "string"
      },
      "components": {
       "type": "object"
      },
      "computedAt": {
       "type": "string",
       "format": "date-time"
      },
      "targetType": {
       "enum": [
        "chain",
        "protocol"
       ],
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "unit": "annualized_turnover",
  "value": 14.2,
  "metric": "dex-efficiency",
  "target": "uniswap",
  "window": "30d",
  "components": {
   "source": "DefiLlama",
   "avgTvlUsd": 3000000000,
   "volumeUsd": 35013698630,
   "volumeToTvl": 11.671233,
   "observations": 30,
   "efficiencyLabel": "moderate_efficiency",
   "annualizedTurnover": 14.2
  },
  "computedAt": "2026-06-10T16:00:00.000Z",
  "targetType": "protocol"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dripmetrics-ai-dex-efficiency-metrics-e7055cb3/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)
