{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bloomberg-buyside-enterprise-solutions/json-schema/bloomberg-buyside-enterprise-solutions-portfolio-schema.json",
  "title": "Portfolio",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bloomberg-buyside-enterprise-solutions-portfolios-api-openapi.yml#/components/schemas/Portfolio",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique portfolio identifier"
    },
    "name": {
      "type": "string",
      "description": "Portfolio name"
    },
    "description": {
      "type": "string",
      "description": "Portfolio description"
    },
    "type": {
      "type": "string",
      "enum": [
        "TRADING",
        "MODEL",
        "BENCHMARK",
        "COMPOSITE"
      ],
      "description": "Portfolio type"
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE",
        "CLOSED"
      ],
      "description": "Portfolio status"
    },
    "currency": {
      "type": "string",
      "description": "Base currency (ISO 4217)"
    },
    "benchmarkId": {
      "type": "string",
      "description": "Assigned benchmark identifier"
    },
    "manager": {
      "type": "string",
      "description": "Portfolio manager identifier"
    },
    "inceptionDate": {
      "type": "string",
      "format": "date",
      "description": "Portfolio inception date"
    },
    "totalMarketValue": {
      "type": "number",
      "description": "Total market value in base currency"
    },
    "holdingsCount": {
      "type": "integer",
      "description": "Number of current holdings"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Creation timestamp"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Last update timestamp"
    }
  }
}