{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bloomberg-buyside-enterprise-solutions/json-schema/bloomberg-buyside-enterprise-solutions-scenario-response-schema.json",
  "title": "ScenarioResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bloomberg-buyside-enterprise-solutions-scenario-analysis-api-openapi.yml#/components/schemas/ScenarioResponse",
  "type": "object",
  "properties": {
    "portfolioId": {
      "type": "string"
    },
    "baseValue": {
      "type": "number",
      "description": "Current portfolio market value"
    },
    "scenarioValue": {
      "type": "number",
      "description": "Portfolio value under scenario"
    },
    "pnlImpact": {
      "type": "number",
      "description": "Profit/loss impact"
    },
    "pnlImpactPct": {
      "type": "number",
      "description": "Profit/loss impact as a percentage"
    },
    "securityImpacts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "security": {
            "type": "string"
          },
          "baseValue": {
            "type": "number"
          },
          "scenarioValue": {
            "type": "number"
          },
          "pnlImpact": {
            "type": "number"
          },
          "pnlImpactPct": {
            "type": "number"
          }
        }
      }
    }
  }
}