# Stablecoin Prices & Peg Health via DeFiLlama (x402)

> Stablecoin Prices & Peg Health via DeFiLlama (x402) is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-31).

Returns real-time stablecoin prices, peg deviation, supply trends, Kraken reference price, and market dominance for top stablecoins, paid per-call via x402 USDC.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/defillama/stablecoin-prices?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablecoin-prices-peg-health-via-defillama-x402-82d27744
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Fmodz6dBcbGzYv0k3VbEk

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 stablecoin-prices-peg-health-via-defillama-x402-82d27744
```

Example prompt: Check the current peg health and supply trends for USDC and USDT — I want to know if either is deviating from $1 and how their 7-day flows look.

## When to prefer this

Use this endpoint when an AI trading or onchain agent needs real-time stablecoin peg health and supply data without managing API keys — paying only $0.001 USDC per call via x402. Prefer this over general price APIs when peg deviation (basis points), supply trends, and a human-readable depeg verdict are specifically needed. It is especially useful in pre-trade safety checks, risk monitoring loops, and onchain agents that need lightweight, pay-as-you-go access.

## Known failure modes

- Payment not received via x402 → 402 Payment Required response
- Invalid symbol string (e.g. misspelled ticker) → empty coins array or missing entries
- top parameter out of range (must be 1–30) → validation error
- DeFiLlama or Kraken upstream unavailable → stale or partial data
- No symbols and no top param → defaults to top 10 by supply

## How this service works

Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.

## Output

Returns a JSON object with a list of stablecoins each containing: symbol, USD price, Kraken reference price, peg deviation in basis points, market dominance %, 1-day and 7-day supply changes, Base chain supply, and an overall verdict (e.g. ALL_PEGGED). Also includes 7-day aggregate flow in USD and %, total stablecoin market supply, liquidity trend, any active alerts, data sources, and an updated_at 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": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "top": {
       "type": "integer",
       "maximum": 30,
       "minimum": 1,
       "description": "Top N by supply when no symbols (default 10)"
      },
      "symbols": {
       "type": "string",
       "examples": [
        "USDC,USDT",
        "USDC"
       ],
       "description": "Comma-separated filter, e.g. USDC,USDT"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coins": [
   {
    "status": "OK",
    "symbol": "USDC",
    "price_usd": 0.99948,
    "kraken_usd": 0.9999,
    "supply_usd": 71356496475,
    "peg_dev_bps": -5.2,
    "dominance_pct": 24.6,
    "supply_1d_pct": 0.089,
    "supply_7d_pct": -1.74,
    "base_supply_usd": 4100000000
   }
  ],
  "alerts": [],
  "flow_7d": {
   "pct": -0.72,
   "usd": -2100000000
  },
  "sources": [
   "https://stablecoins.llama.fi",
   "https://api.kraken.com"
  ],
  "verdict": "ALL_PEGGED",
  "updated_at": "2026-10-29T12:30:00Z",
  "liquidity_trend": "flat",
  "total_usd_stablecoin_supply": 290000000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablecoin-prices-peg-health-via-defillama-x402-82d27744/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kr-x402-mvp.kgy5612.workers.dev](https://www.zero.xyz/host/kr-x402-mvp.kgy5612.workers.dev/llms.txt)
