{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bloomberg-buyside-enterprise-solutions/json-schema/bloomberg-buyside-enterprise-solutions-stress-test-response-schema.json",
  "title": "StressTestResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bloomberg-buyside-enterprise-solutions-stress-testing-api-openapi.yml#/components/schemas/StressTestResponse",
  "type": "object",
  "properties": {
    "portfolioId": {
      "type": "string"
    },
    "baseValue": {
      "type": "number",
      "description": "Current portfolio market value"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "scenarioId": {
            "type": "string"
          },
          "scenarioName": {
            "type": "string"
          },
          "scenarioValue": {
            "type": "number",
            "description": "Portfolio value under stress"
          },
          "pnlImpact": {
            "type": "number",
            "description": "Profit/loss impact"
          },
          "pnlImpactPct": {
            "type": "number",
            "description": "Profit/loss impact percentage"
          },
          "worstContributors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "security": {
                  "type": "string"
                },
                "pnlImpact": {
                  "type": "number"
                },
                "pnlImpactPct": {
                  "type": "number"
                }
              }
            },
            "description": "Securities with largest negative impact"
          }
        }
      }
    }
  }
}