{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stockdrifts-io/json-schema/stockdrifts-io-sector-exposure-row-schema.json",
  "title": "SectorExposureRow",
  "description": "One fund's portfolio composition by sector for a reporting period.\n\nPercentages are shares of the fund's WHOLE portfolio value even though\nonly its top-50 positions are visible in 13F data. ``unclassified_pct``\nreports how much top-50 value had no sector tag — treat rows with a high\nvalue there with caution.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stockdrifts-io-openapi.json#/components/schemas/SectorExposureRow",
  "properties": {
    "cik": {
      "type": "string",
      "title": "Cik"
    },
    "company": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Company"
    },
    "slug": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Slug"
    },
    "period": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Period"
    },
    "report_period": {
      "type": "string",
      "title": "Report Period"
    },
    "total_value_usd": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Total Value Usd"
    },
    "sector_exposure": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "number"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sector Exposure",
      "description": "Percent of portfolio value by sector, largest first."
    },
    "sector": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sector",
      "description": "The sector this row was screened on (screen endpoint only)."
    },
    "sector_pct": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sector Pct",
      "description": "The screened sector's share of the portfolio, percent."
    },
    "biotech_pct": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Biotech Pct"
    },
    "biotech_value_usd": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Biotech Value Usd"
    },
    "n_biotech": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "N Biotech",
      "description": "Distinct biotech/pharma positions in the top 50. Filter >= 5 to exclude single-stock holders (e.g. corporate endowments holding only their sponsor's stock score 100% on one position)."
    },
    "tier": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tier",
      "description": "specialist (>=60%) | heavy (30-60%) | tilted (10-30%) | minimal (<10%)."
    },
    "top_biotech": {
      "items": {
        "$ref": "#/$defs/SectorPosition"
      },
      "type": "array",
      "title": "Top Biotech"
    },
    "unclassified_pct": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Unclassified Pct"
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "cik",
    "report_period"
  ],
  "$defs": {
    "SectorPosition": {
      "properties": {
        "ticker": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ticker"
        },
        "company": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Company"
        },
        "industry": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Industry"
        },
        "value_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Value Usd"
        },
        "portfolio_pct": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Portfolio Pct"
        }
      },
      "type": "object",
      "title": "SectorPosition",
      "description": "One position inside a sector slice (e.g. a fund's largest biotech holding)."
    }
  }
}