# DeFiLlama Stablecoins Data

> DeFiLlama Stablecoins Data is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Retrieves current stablecoin market data including price, market cap, peg status, depeg risk, and net flow changes for major stablecoins via DeFiLlama

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/defillama-stablecoins?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defillama-stablecoins-data-c848909c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S2r9K5l4lU6SeEuucUPCU

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 defillama-stablecoins-data-c848909c
```

Example prompt: Can you pull the latest DeFiLlama stablecoin data for USDT, USDC, and DAI — I want to see their current prices, depeg risk, and 7-day net flow changes?

## When to prefer this

Choose this endpoint when you need real-time stablecoin health metrics — price, depeg status, and fund flows — sourced directly from DeFiLlama without requiring an API key or account. Ideal for monitoring peg stability, comparing stablecoin market caps, or detecting unusual capital flows. Prefer over generic crypto price APIs when you specifically need depeg risk signals and multi-timeframe net flow data for stablecoins.

## Known failure modes

- Invalid or unrecognized stablecoin ticker symbols may return empty results or omit those symbols
- More than 10 comma-separated symbols may be rejected or truncated
- DeFiLlama upstream unavailability may cause errors or stale data
- Payment failure results in no charge and no data returned

## How this service works

Stablecoin market cap (circulating USD), 1/7/30-day circulating change (mint/burn proxy), peg price and depeg % from DefiLlama. Pass symbols (e.g. USDT,USDC) or leave empty for the 10 largest. Net change is a change in circulating supply, not separate mint and burn events.

## Output

Returns a JSON object with a count of stablecoins queried, the DeFiLlama source URL, a timestamp, and an array of stablecoin objects each containing: id, name, symbol, current price, peg type (e.g. peggedUSD), depeg percentage, depeg risk level (e.g. low/medium/high), market cap in USD, peg mechanism (e.g. fiat-backed), and net USD flow changes over 1d, 7d, and 30d windows.

## 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": [],
     "properties": {
      "symbols": {
       "type": "string",
       "description": "Comma-separated stablecoin tickers, up to 10 (default: 10 largest)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "source": "https://stablecoins.llama.fi/stablecoins?includePrices=false",
  "checkedAt": "2026-10-23T09:35:53.592Z",
  "stablecoins": [
   {
    "id": "1",
    "name": "Tether",
    "price": 0.9989236647280817,
    "symbol": "USDT",
    "pegType": "peggedUSD",
    "depegPct": -0.11,
    "depegRisk": "low",
    "marketCapUsd": 182498824514.4392,
    "pegMechanism": "fiat-backed",
    "netChange1dUsd": -104984833.7563477,
    "netChange7dUsd": -936819110.5704651,
    "netChange30dUsd": -743183211.9227295
   },
   {
    "id": "2",
    "name": "USD Coin",
    "price": 0.9995445523375535,
    "symbol": "USDC",
    "pegType": "peggedUSD",
    "depegPct": -0.05,
    "depegRisk": "low",
    "marketCapUsd": 72116950103.67883,
    "pegMechanism": "fiat-backed",
    "netChange1dUsd": -509592255.4518127,
    "netChange7dUsd": -694167933.38768,
    "netChange30dUsd": -3719760628.373428
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defillama-stablecoins-data-c848909c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
