Portfolio Allocation

View as MarkdownOpen in Claude
Returns consolidated portfolio allocation by Financial Instrument, Asset Class, Sector, Region, or Country for a given set of accounts. Result is aggregated for the included accounts. Current day data is supported only if all included accounts have the same base currency as specified in the currency parameter.

Request

This endpoint expects an object.
acctIdslist of stringsRequired
typeenumRequired

The allocation category type. One of FINANCIAL_INSTRUMENT, ASSET_CLASS, SECTOR, REGION, COUNTRY, or ALL. Case insensitive. When ALL is specified, the response includes allocations for every category type.

currencystringOptionalDefaults to USD
Three character currency code. The base currency to use for the NAV calculation in the response.
datestringOptional
Optional. Formatted as yyyymmdd. If specified, should be prior to the current day. If not specified, request will be for the current day. If the request is for current day and current day data is not available, then the response will be for the previous business day.
modelstringOptional
Optional. Model portfolio name to use for the allocation calculation.

Response

Returns the allocation breakdown for the specified accounts.
idstring
Response identifier.
currencystring
Three character currency code. Currency of NAV values, as specified in the request.
realtimeboolean
true indicates the response is for current day data.
datestring

The as-of date for the NAV and allocations. Formatted as yyyymmdd.

allocationsmap from strings to objects

Object keyed by allocation type (FINANCIAL_INSTRUMENT, ASSET_CLASS, SECTOR, REGION, or COUNTRY). When type=ALL is requested, multiple keys may be present.

excludedlist of strings
Requested accounts that were not included in the result due to an error.
warningstring
Warning message, if any.

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error
503
Service Unavailable Error