Risk Metrics
Full returns decomposition (L1/L2/L3 + optional Lstar)
One-call daily return decomposition: gross return plus L1/L2/L3 factor, combined-factor, and residual return series from ds_erm3_returns zarr. Set include_lstar=true or dispatch=lstar to append Lstar level and Lstar-dispatched residual return per date (prefers materialized zarr lstar_rr/lstar_level when present; otherwise derives from marginal ERs).
get/returns-decomposition
Request
- Base URL: https://riskmodels.app/api
- URL: https://riskmodels.app/api/returns-decomposition
- Auth: HTTP bearer
Query parameters
tickerstring required
market_factor_etfstring
yearsinteger
include_lstarboolean
Include Lstar level and lstar_residual_return arrays.
dispatch'lstar'
Sugar alias — dispatch=lstar sets include_lstar=true.
thresholdnumber float
Marginal ER threshold when deriving Lstar (ignored when zarr has lstar_level).
Response
Returns decomposition time series
Example response
{
"data_source": "zarr"
}Changes
No recorded changes to this operation across all 1 revision of this API.