{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dripmetrics-ai/json-schema/dripmetrics-ai-orderbook-metric-result-schema.json",
  "title": "OrderbookMetricResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dripmetrics-ai-orderbook-api-openapi.yml#/components/schemas/OrderbookMetricResult",
  "type": "object",
  "properties": {
    "metric": {
      "type": "string",
      "enum": [
        "spread",
        "micro-price",
        "imbalance",
        "depth-at-distance",
        "concentration",
        "execution-impact",
        "snapshot"
      ]
    },
    "pair": {
      "type": "string",
      "enum": [
        "BTCUSDT",
        "ETHUSDT",
        "SOLUSDT"
      ]
    },
    "value": {
      "type": [
        "number",
        "null"
      ]
    },
    "components": {
      "type": "object",
      "additionalProperties": true
    },
    "sampleSize": {
      "type": "object",
      "additionalProperties": true
    },
    "source": {
      "type": "object",
      "additionalProperties": true
    },
    "computedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "metric",
    "pair",
    "value",
    "components",
    "sampleSize",
    "source",
    "computedAt"
  ],
  "additionalProperties": true
}