{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tradestarinsider-com/json-schema/tradestarinsider-com-change-envelope-schema.json",
  "title": "ChangeEnvelope",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tradestarinsider-com-openapi.json#/components/schemas/ChangeEnvelope",
  "type": "object",
  "required": [
    "api_version",
    "endpoint",
    "fund_guarantee",
    "count",
    "changes"
  ],
  "properties": {
    "api_version": {
      "type": "string"
    },
    "endpoint": {
      "type": "string"
    },
    "fund_guarantee": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "total_matched": {
      "type": "integer",
      "description": "Total rows matching the filter before limit/offset (Issue 2.6). count == len(this page)."
    },
    "params": {
      "type": "object",
      "additionalProperties": true
    },
    "changes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Change"
      }
    }
  },
  "$defs": {
    "Change": {
      "type": "object",
      "description": "One 13F quarter-over-quarter position change (the delta is the product; ticker is always null). `filing_url` is the Rule-2 source link.",
      "required": [
        "filing_url"
      ],
      "properties": {
        "filing_url": {
          "type": "string",
          "format": "uri",
          "description": "RULE 2 source link — sec.gov 13F-HR filing"
        }
      },
      "additionalProperties": true
    }
  }
}