{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/citi/main/json-schema/citi-get-investor-account-holdings-response-schema.json",
  "title": "GetInvestorAccountHoldingsResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-holdings-api-openapi.yml#/components/schemas/Get-Investor-Account-Holdings-Response",
  "type": "object",
  "properties": {
    "fundManagerId": {
      "title": "Fund Manager ID",
      "type": "string",
      "description": "Provides the unique identifier for Fund Manager",
      "maxLength": 32
    },
    "accountsHoldings": {
      "title": "Accounts Holdings",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Accounts-Holdings"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Accounts-Holdings": {
      "title": "AccountsHoldings",
      "type": "object",
      "properties": {
        "accountId": {
          "title": "Account ID",
          "type": "string",
          "description": "Provide the unique ID for a trading Account linked to an Investor.",
          "maxLength": 35
        },
        "holdings": {
          "title": "Holdings",
          "type": "array",
          "items": {
            "$ref": "#/$defs/Holdings-Response"
          }
        }
      },
      "additionalProperties": false
    },
    "Holdings-Response": {
      "title": "HoldingsResponse",
      "type": "object",
      "properties": {
        "fundCode": {
          "title": "Fund Code",
          "type": "string",
          "description": "Fund Code identifier.",
          "maxLength": 35
        },
        "shareClassCode": {
          "title": "Share Class Code",
          "type": "string",
          "description": "Share Class Code identifier.",
          "maxLength": 35
        },
        "shareClassCurrency": {
          "title": "Share Class Currency",
          "type": "string",
          "description": "The Share Class currency, in ISO4217.",
          "maxLength": 32
        },
        "isin": {
          "title": "ISIN",
          "type": "string",
          "description": "The Share Class ISIN - primary Share Class identifier.",
          "maxLength": 32
        },
        "cusip": {
          "title": "CUSIP",
          "type": "string",
          "description": "The Share Class CUSIP.",
          "maxLength": 32
        },
        "sedol": {
          "title": "SEDOL",
          "type": "string",
          "description": "The Share Class SEDOL.",
          "maxLength": 32
        },
        "shareBalanceAmount": {
          "title": "Share Balance Amount",
          "type": "number",
          "format": "double",
          "description": "The current shareholder share balance."
        },
        "shareBalanceValue": {
          "title": "Share Balance Value",
          "type": "number",
          "format": "double",
          "description": "The current shareholder share value."
        },
        "valuationPrice": {
          "title": "Valuation Price",
          "type": "number",
          "format": "double",
          "description": "The current Valuation Price."
        },
        "tradeDate": {
          "title": "Trade Date",
          "type": "string",
          "format": "date",
          "description": "The trade date the transaction actually received on the system. If a trade missed cut-off this date is the next available business date after the Booking Date."
        },
        "settledBalanceAmount": {
          "title": "Settled Balance Amount",
          "type": "number",
          "format": "double",
          "description": "The settled balance of the holding."
        },
        "estimatedBalanceAmount": {
          "title": "Estimated Balance Amount",
          "type": "number",
          "format": "double",
          "description": "The estimated balance of the holding e.g. the unsettled holding amount."
        },
        "group1Units": {
          "title": "Group 1 Units",
          "type": "number",
          "format": "double",
          "description": "The number of units that a shareholder holds that fall under the Group 1 category."
        },
        "group2Units": {
          "title": "Group 2 Units",
          "type": "number",
          "format": "double",
          "description": "The number of units that a shareholder holds that fall under the Group 2 category."
        }
      },
      "additionalProperties": false
    }
  }
}