action portfoliooptimizer_post_assets_returns { label: "Arithmetic Returns" description: "Compute the arithmetic return(s) of one or several asset(s) for one or several time period(s).\n\nReferences\n* [Wikipedia, Rate of Return](https://en.wikipedia.org/wiki/Rate_of_return#Return)\n" provider: portfoliooptimizer method: POST path: "/assets/returns" encoding: json input: { type: "object" required: ["assets"] properties: { assets: { type: "array" items: { type: "object" required: ["assetPrices"] properties: { assetPrices: { type: "array" description: "assetPrices[t] is the price of the asset at the time t" items: { type: "number" } } } } } } } output: { type: "object" required: ["assets"] properties: { assets: { type: "array" items: { type: "object" required: ["assetReturns"] properties: { assetReturns: { type: "array" description: "assetReturns[t] is the arithmetic return of the asset from the time t-1 to the time t, in percentage" items: { type: "number" } } } } } } } }