action portfoliooptimizer_post_portfolio_optimization_market_capitalization_weighted { label: "Market Capitalization Weighted Portfolio" description: "Compute the asset weights of the market capitalization-weighted portfolio.\n\nReferences\n * [Wikipedia, Capitalization-weighted Index](https://en.wikipedia.org/wiki/Capitalization-weighted_index)\n" provider: portfoliooptimizer method: POST path: "/portfolio/optimization/market-capitalization-weighted" encoding: json input: { type: "object" required: ["assets", "assetsMarketCapitalizations"] properties: { assets: { type: "integer" description: "The number of assets" } assetsMarketCapitalizations: { type: "array" description: "assetsMarketCapitalizations[i] is the market capitalization of the asset i" items: { type: "number" } } } } output: { type: "object" required: ["assetsWeights"] properties: { assetsWeights: { type: "array" description: "assetsWeights[i] is the weight of the asset i in the portfolio, in percentage" items: { type: "number" } } } } }