{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dripmetrics-ai/json-schema/dripmetrics-ai-metric-result-schema.json",
  "title": "MetricResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dripmetrics-ai-exchange-metrics-api-openapi.yml#/components/schemas/MetricResult",
  "type": "object",
  "properties": {
    "metric": {
      "type": "string",
      "enum": [
        "vpin",
        "kyle-lambda",
        "beta",
        "order-flow-hhi",
        "historical-volatility",
        "cvd",
        "buy-sell-volume-imbalance",
        "signed-dollar-volume",
        "trade-intensity",
        "average-trade-size",
        "large-trade-share",
        "realized-vol",
        "amihud-illiquidity",
        "vwap",
        "vwap-deviation",
        "momentum",
        "reversal",
        "drawdown",
        "downside-semivolatility",
        "rolling-correlation",
        "vol-of-vol",
        "roll-spread"
      ]
    },
    "pair": {
      "type": "string"
    },
    "exchange": {
      "type": "string"
    },
    "window": {
      "type": "string",
      "enum": [
        "30m",
        "1h",
        "2h",
        "3h"
      ]
    },
    "value": {
      "type": "number"
    },
    "components": {
      "type": "object",
      "additionalProperties": true
    },
    "computedAt": {
      "type": "string",
      "format": "date-time"
    },
    "tradeCount": {
      "type": "integer"
    },
    "firstTradeTime": {
      "type": "string",
      "format": "date-time"
    },
    "lastTradeTime": {
      "type": "string",
      "format": "date-time"
    },
    "coverage": {
      "type": "object",
      "additionalProperties": true
    },
    "benchmarkCoverage": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "metric",
    "pair",
    "exchange",
    "window",
    "value",
    "computedAt",
    "tradeCount"
  ],
  "additionalProperties": true
}