Portfolio Optimization / Mean-Variance

Maximum Sharpe Ratio Portfolio

Changed on

Compute the asset weights of the maximum Sharpe ratio portfolio, optionally subject to:

  • Minimum and maximum weights constraints
  • Minimum and maximum group weights constraints
  • Minimum and maximum portfolio exposure constraints

References

  • Harry M. Markowitz, Portfolio Selection, Efficient Diversification of Investments, Second edition, Blackwell Publishers Inc.
post/portfolios/optimization/maximum-sharpe-ratio

Request

  • Base URL
    https://api.portfoliooptimizer.io/v1
  • URL
    https://api.portfoliooptimizer.io/v1/portfolios/optimization/maximum-sharpe-ratio
  • Auth
    API key in header X-API-Key

Request body

assetsinteger required

The number of assets

assetsMeanReturnsnumber[] required

assetsMeanReturns[i] is the arithmetic (expected) return of asset i

riskFreeReturnnumber

The constant risk-free arithmetic return over the considered time period, in percentage

Response

OK

assetsWeightsnumber[] required

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

Changes