Weights
Computes the weights to be allocated for a portfolio
This is the simplest and most fundamental block. It takes a time-series of unlimited instruments as an input and outputs weights for each path. The weights under no constraints, should sum up to 1 in order to reflect a fully invested portfolio.
note
This endpoint is experimental so please take note that the processing performance hasn't been fine tuned yet, i.e. do expect up to 30 seconds to get a response from the engine. The computation are however production ready.
#
MethodPOST /v1/optimiser/weights
#
Parametersticker(s) symbol(s)
REQUIRED - one or many symbols. For example the
following symbols are valid: AAPL
,HOG
,KO
info
The list of tickers supported by the PathLit engine are advertised at /v1/timeseries/info
#
Response attributesinfo
Want to learn more about the attributes? a deep dive is available at this location, under the quant section
- specifically, how are the attribute modelled with an example
- if you want to know the math behind the model
Attribute | High level explanation |
---|---|
l1r.l2d.l3ewp | Assets aggregated by daily log-returns, allocated using an equally-weighted strategy |
l1r.l2d.l3gmvp | Assets aggregated by daily log-returns allocated using a global minimum-variance strategy |
l1r.l2d.l3hrp | Assets aggregated by daily log-returns allocated using a hierarchical risk-parity strategy |
l1r.l2d.l3ivp | Assets aggregated by daily log-returns allocated using an inverse-volatility strategy |
l1r.l2d.l3mdcp | Assets aggregated by daily log-returns allocated using an maximum-decorrelation strategy |
l1r.l2d.l3mdp | Assets aggregated by daily log-returns allocated using an maximum-diversified strategy |
l1r.l2d.l3rpp | Assets aggregated by daily log-returns allocated using an risk-parity strategy |
l1r.l2m.l3ewp | Assets aggregated by monthly log-returns, allocated using an equally-weighted strategy |
l1r.l2m.l3gmvp | Assets aggregated by monthly log-returns allocated using a global minimum-variance strategy |
l1r.l2m.l3hrp | Assets aggregated by monthly log-returns allocated using a hierarchical risk-parity strategy |
l1r.l2m.l3ivp | Assets aggregated by monthly log-returns allocated using an inverse-volatility strategy |
l1r.l2m.l3mdcp | Assets aggregated by monthly log-returns allocated using an maximum-decorrelation strategy |
l1r.l2m.l3mdp | Assets aggregated by monthly log-returns allocated using an maximum-diversified strategy |
l1r.l2m.l3rpp | Assets aggregated by monthly log-returns allocated using an risk-parity strategy |
l1r.l2w.l3ewp | Assets aggregated by monthly log-returns, allocated using an equally-weighted strategy |
l1r.l2w.l3gmvp | Assets aggregated by weekly log-returns allocated using a global minimum-variance strategy |
l1r.l2w.l3hrp | Assets aggregated by weekly log-returns allocated using a hierarchical risk-parity strategy |
l1r.l2w.l3ivp | Assets aggregated by weekly log-returns allocated using an inverse-volatility strategy |
l1r.l2w.l3mdcp | Assets aggregated by weekly log-returns allocated using an maximum-decorrelation strategy |
l1r.l2w.l3mdp | Assets aggregated by weekly log-returns allocated using an maximum-diversified strategy |
l1r.l2w.l3rpp | Assets aggregated by weekly log-returns allocated using an risk-parity strategy |
#
Noten/a
#
Example- Request
- Response
curl--request POST 'https://engine.pathlit.io/v1/optimiser/weights' \--header 'x-api-key: xxxxxxxxxxxxxxxxxxxxx' \--header 'Content-Type: application/json' \--data-raw '{ "tickers": [ "AAPL", "HOG", "KO" ]}'
{ "l1r.l2d.l3ewp": [0.3333, 0.3333, 0.3333], "l1r.l2d.l3gmvp": [0.113, 0.0677, 0.8194], "l1r.l2d.l3hrp": [0.1958, 0.1738, 0.6304], "l1r.l2d.l3ivp": [0.2443, 0.2602, 0.4955], "l1r.l2d.l3mdcp": [0.3559, 0.2946, 0.3495], "l1r.l2d.l3mdp": [0.2581, 0.2277, 0.5142], "l1r.l2d.l3rpp": [0.2485, 0.251, 0.5005], "l1r.l2m.l3ewp": [0.3333, 0.3333, 0.3333], "l1r.l2m.l3gmvp": [0.1463, 0.0407, 0.813], "l1r.l2m.l3hrp": [0.2039, 0.1717, 0.6244], "l1r.l2m.l3ivp": [0.248, 0.2587, 0.4933], "l1r.l2m.l3mdcp": [0.3715, 0.2623, 0.3662], "l1r.l2m.l3mdp": [0.2704, 0.1992, 0.5304], "l1r.l2m.l3rpp": [0.2545, 0.2426, 0.5029], "l1r.l2w.l3ewp": [0.3333, 0.3333, 0.3333], "l1r.l2w.l3gmvp": [0.1205, 0.0607, 0.8188], "l1r.l2w.l3hrp": [0.099, 0.1334, 0.7676], "l1r.l2w.l3ivp": [0.2175, 0.2524, 0.5301], "l1r.l2w.l3mdcp": [0.3656, 0.249, 0.3853], "l1r.l2w.l3mdp": [0.2294, 0.1813, 0.5893], "l1r.l2w.l3rpp": [0.2195, 0.229, 0.5516]}