{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fiatdock-com/json-schema/fiatdock-com-stablecoin-intel-schema.json",
  "title": "StablecoinIntel",
  "description": "Paid. Supply, peg deviation (pegDeviationPct is a PERCENTAGE, not basis points) and per-chain breakdown.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fiatdock-com-stablecoin-api-openapi.yml#/components/schemas/StablecoinIntel",
  "type": "object",
  "properties": {
    "pegType": {
      "type": "string",
      "description": "What the asset is pegged to (e.g. peggedUSD)"
    },
    "asset": {
      "type": "string",
      "description": "Stablecoin symbol"
    },
    "name": {
      "type": "string",
      "description": "Stablecoin full name"
    },
    "pegMechanism": {
      "type": "string",
      "description": "e.g. fiat-backed, crypto-backed, algorithmic"
    },
    "price": {
      "type": [
        "number",
        "null"
      ],
      "description": "Current price in USD"
    },
    "pegDeviationPct": {
      "type": [
        "number",
        "null"
      ],
      "description": "Absolute deviation from the peg, % (from $1.00 for a USD stablecoin; for another peg, measured against that currency's USD rate; null when unknown)"
    },
    "pegStatus": {
      "type": "string",
      "description": "on-peg | slight-deviation | off-peg | unknown"
    },
    "totalCirculatingUsd": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total circulating supply (USD)"
    },
    "onBase": {
      "type": "object",
      "properties": {
        "circulatingUsd": {
          "type": [
            "number",
            "null"
          ]
        },
        "shareOfTotalPct": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "circulatingUsd",
        "shareOfTotalPct"
      ],
      "description": "Circulating supply on Base + its share of total"
    },
    "topChains": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string"
          },
          "circulatingUsd": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "chain",
          "circulatingUsd"
        ]
      },
      "description": "Top chains by circulating supply"
    },
    "source": {
      "type": "string",
      "description": "Data source (e.g. DefiLlama)"
    },
    "asOf": {
      "type": "string",
      "description": "ISO 8601 time the snapshot was read"
    },
    "note": {
      "type": "string",
      "description": "Human-readable caveat about the snapshot, if any"
    }
  },
  "required": [
    "asset",
    "price",
    "pegDeviationPct",
    "pegStatus",
    "totalCirculatingUsd",
    "onBase",
    "topChains",
    "source",
    "asOf"
  ]
}