latestOpenAPI 3.1.02026-08-22181751733.6 KB

67f9f562c2c6

tradingPortfolioAnalyst

Portfolio Allocation

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.

post/pa/allocation

Request body

acctIdsstring[] required
type'FINANCIAL_INSTRUMENT' | 'ASSET_CLASS' | 'SECTOR' | 'REGION' | 'COUNTRY' | 'ALL' required

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.

currencystring

Three character currency code. The base currency to use for the NAV calculation in the response.

datestring

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.

modelstring

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.

allocationsobject

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

excludedstring[]

Requested accounts that were not included in the result due to an error.

warningstring

Warning message, if any.