{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bloomberg-buyside-enterprise-solutions/json-schema/bloomberg-buyside-enterprise-solutions-holding-schema.json",
  "title": "Holding",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bloomberg-buyside-enterprise-solutions-holdings-api-openapi.yml#/components/schemas/Holding",
  "type": "object",
  "properties": {
    "security": {
      "type": "string",
      "description": "Bloomberg security identifier"
    },
    "name": {
      "type": "string",
      "description": "Security name"
    },
    "assetClass": {
      "type": "string",
      "description": "Asset class"
    },
    "quantity": {
      "type": "number",
      "description": "Number of shares or units held"
    },
    "marketValue": {
      "type": "number",
      "description": "Current market value in portfolio base currency"
    },
    "costBasis": {
      "type": "number",
      "description": "Total cost basis"
    },
    "weight": {
      "type": "number",
      "description": "Portfolio weight as a percentage"
    },
    "unrealizedGainLoss": {
      "type": "number",
      "description": "Unrealized gain or loss"
    },
    "unrealizedGainLossPct": {
      "type": "number",
      "description": "Unrealized gain or loss as a percentage"
    },
    "sector": {
      "type": "string",
      "description": "GICS sector classification"
    },
    "country": {
      "type": "string",
      "description": "Country of risk (ISO 3166)"
    },
    "currency": {
      "type": "string",
      "description": "Security currency (ISO 4217)"
    }
  }
}