{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dripmetrics-ai/json-schema/dripmetrics-ai-onchain-metric-result-schema.json",
  "title": "OnchainMetricResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dripmetrics-ai-on-chain-api-openapi.yml#/components/schemas/OnchainMetricResult",
  "type": "object",
  "properties": {
    "metric": {
      "type": "string",
      "enum": [
        "stablecoin-flow",
        "tvl-momentum",
        "protocol-fee-yield",
        "dex-efficiency"
      ]
    },
    "chain": {
      "type": "string"
    },
    "protocol": {
      "type": "string"
    },
    "targetType": {
      "type": "string",
      "enum": [
        "chain",
        "protocol"
      ]
    },
    "target": {
      "type": "string"
    },
    "window": {
      "type": "string",
      "enum": [
        "1d",
        "7d",
        "30d",
        "90d"
      ]
    },
    "value": {
      "type": "number"
    },
    "unit": {
      "type": "string"
    },
    "components": {
      "type": "object",
      "additionalProperties": true
    },
    "computedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "metric",
    "window",
    "value",
    "unit",
    "components",
    "computedAt"
  ],
  "additionalProperties": true
}