v2

latestOpenAPI 3.0.1Apache 2.02026-07-2623201.3 MB
Portfolio Optimization
post/portfolios/optimization/hierarchical-risk-parity/clustering-based

Request body

assetsinteger required

The number of assets

clusteringMethod'singleLinkage' | 'averageLinkage' | 'completeLinkage' | 'wardLinkage'

The hierarchical clustering method to use

clusteringOrdering'r-hclust' | 'optimal'

The order to impose on the hierarchical clustering tree leaves

clustersinteger

The number of clusters to use in the hierarchical clustering tree; if not provided, the number of clusters to use is computed using the gap statistic method, as described in the first reference

acrossClusterAllocationMethod'equalWeighting' | 'inverseVolatility' | 'inverseVariance'

The allocation method to use across clusters

withinClusterAllocationMethod'equalWeighting' | 'inverseVolatility' | 'inverseVariance'

The allocation method to use within clusters

Response

OK

assetsWeightsnumber[] required

assetsWeights[i] is the weight of the asset i in the portfolio, in percentage