{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "title": "Glass Hull attested strategy record (kind-15 payload)",
 "type": "object",
 "additionalProperties": false,
 "required": [
  "class",
  "label",
  "address_set_sha256",
  "address_count",
  "strategy_sha256",
  "window",
  "realized_pnl",
  "quote",
  "drawdown_pct",
  "counterparties",
  "source",
  "verdict",
  "captured_at",
  "packet_sha256",
  "packet_ref"
 ],
 "properties": {
  "class": {
   "const": "strategy-record"
  },
  "label": {
   "type": "string",
   "maxLength": 60
  },
  "address_set_sha256": {
   "type": "string",
   "pattern": "^[0-9a-f]{64}$"
  },
  "address_count": {
   "type": "integer",
   "minimum": 0
  },
  "strategy_sha256": {
   "type": "string",
   "pattern": "^[0-9a-f]{64}$"
  },
  "window": {
   "type": "array",
   "items": {
    "type": "integer"
   },
   "minItems": 2,
   "maxItems": 2
  },
  "realized_pnl": {
   "type": [
    "number",
    "null"
   ]
  },
  "quote": {
   "type": "string"
  },
  "drawdown_pct": {
   "type": [
    "number",
    "null"
   ]
  },
  "counterparties": {
   "type": "object",
   "required": [
    "count",
    "sha256"
   ],
   "properties": {
    "count": {
     "type": "integer"
    },
    "sha256": {
     "type": [
      "string",
      "null"
     ]
    }
   }
  },
  "source": {
   "type": "string",
   "maxLength": 120
  },
  "verdict": {
   "enum": [
    "VERIFIED",
    "UNRECONCILED",
    "NOT FOUND"
   ]
  },
  "captured_at": {
   "type": "string"
  },
  "packet_sha256": {
   "type": "string"
  },
  "packet_ref": {
   "type": "string"
  }
 }
}