# StableJack DeFi Category Metrics

> StableJack DeFi Category Metrics is a paid API for AI agents from ai.stable-jack.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Retrieves aggregated DeFi category-level metrics such as TVL, volume, fees, and growth trends across protocol categories via StableJack's agent-ready research API.

## Facts

- Endpoint: POST https://ai.stable-jack.com/x402/tools/defi_category_metrics
- 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/stablejack-defi-category-metrics-626a67ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RQbl6mhYeb7X5lbjUbJfY

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 stablejack-defi-category-metrics-626a67ee -d '<json body>'
```

Example prompt: Pull the latest DeFi category metrics from StableJack — I want to see TVL, volume, and fees broken down by protocol category so I can spot which DeFi sectors are leading right now.

## When to prefer this

Use this endpoint when you need aggregated DeFi sector-level data rather than individual protocol or token data. It is ideal for macro DeFi research, capital allocation decisions, sector comparison, and market trend analysis. Prefer this over token-specific endpoints when the goal is to understand category-level dynamics such as which DeFi verticals are growing, leading in TVL, or generating the most fees.

## Known failure modes

- Invalid or missing body parameters return an error response with ok: false
- Unsupported category filter causes empty or error data
- Payment failure (x402) prevents access to the endpoint
- Network timeout if upstream data provider is slow
- Rate limiting if called too frequently without valid payment

## How this service works

Retrieve defi category metrics through StableJack's agent-ready research API.

## Output

Returns a structured JSON object containing aggregated metrics for DeFi protocol categories, likely including TVL, trading volume, fees generated, number of protocols, and growth rates — organized by category type (e.g. DEX, lending, liquid staking, yield, etc.).

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {},
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "tool",
      "data"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "data": {
       "type": "object",
       "properties": {},
       "additionalProperties": true
      },
      "tool": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablejack-defi-category-metrics-626a67ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai.stable-jack.com](https://www.zero.xyz/host/ai.stable-jack.com/llms.txt)
