{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bloomberg-buyside-enterprise-solutions/json-schema/bloomberg-buyside-enterprise-solutions-attribution-response-schema.json",
  "title": "AttributionResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bloomberg-buyside-enterprise-solutions-performance-api-openapi.yml#/components/schemas/AttributionResponse",
  "type": "object",
  "properties": {
    "portfolioId": {
      "type": "string"
    },
    "startDate": {
      "type": "string",
      "format": "date"
    },
    "endDate": {
      "type": "string",
      "format": "date"
    },
    "totalAllocationEffect": {
      "type": "number",
      "description": "Total allocation effect"
    },
    "totalSelectionEffect": {
      "type": "number",
      "description": "Total selection effect"
    },
    "totalInteractionEffect": {
      "type": "number",
      "description": "Total interaction effect"
    },
    "groups": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Group name (e.g., sector name)"
          },
          "portfolioWeight": {
            "type": "number"
          },
          "benchmarkWeight": {
            "type": "number"
          },
          "portfolioReturn": {
            "type": "number"
          },
          "benchmarkReturn": {
            "type": "number"
          },
          "allocationEffect": {
            "type": "number"
          },
          "selectionEffect": {
            "type": "number"
          },
          "interactionEffect": {
            "type": "number"
          },
          "totalEffect": {
            "type": "number"
          }
        }
      }
    }
  }
}