{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/algoum-de/json-schema/algoum-de-holding-schema.json",
  "title": "Holding",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algoum-de-api-openapi.json#/components/schemas/Holding",
  "type": "object",
  "required": [
    "fund_name",
    "fund_cik",
    "ticker",
    "cusip",
    "shares",
    "value",
    "quarter",
    "filed_at",
    "filing_id"
  ],
  "properties": {
    "fund_name": {
      "type": "string"
    },
    "fund_cik": {
      "type": "string",
      "description": "Central Index Key of the reporting fund, always ten digits."
    },
    "ticker": {
      "type": "string"
    },
    "cusip": {
      "type": "string"
    },
    "issuer_name": {
      "type": "string",
      "description": "Issuer name from the filing (nameOfIssuer)."
    },
    "shares": {
      "type": "number"
    },
    "value": {
      "$ref": "#/$defs/Money"
    },
    "put_call": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "put",
        "call",
        null
      ],
      "description": "Option type; `null` for a stock position."
    },
    "quarter": {
      "type": "string"
    },
    "filed_at": {
      "type": "string",
      "format": "date-time"
    },
    "filing_id": {
      "type": "string"
    }
  },
  "$defs": {
    "Money": {
      "type": "object",
      "description": "Monetary amount with currency.",
      "required": [
        "amount",
        "currency"
      ],
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string",
          "description": "ISO 4217 code, except `GBX` for prices in British pence."
        }
      }
    }
  }
}