Paths
Computes the dollar returns of a portfolio for the actual time series
This builds upon and uses /weights
for computation. It takes a time-series of unlimited instruments as an input and splits it into two sets of data - a training set and a test set. The training set is the first 252 days long, the remaining days provided are used for the test set.
The training set is fed into the /weights
endpoint to obtain the weights for the portfolio to be constructed on the first day of the test set. The test set prices are then used to track the portfolio performance.
The output is a JSON-formatted time-series of end-of-day portfolio performance in dollar terms.
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/paths
#
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/paths' \--header 'x-api-key: xxxxxxxxxxxxxxxxxxxxx' \--header 'Content-Type: application/json' \--data-raw '{ "tickers": [ "AAPL", "HOG", "KO" ]}'
[ { "PATH": "l1r.l2d.l3ewp", "2020-01-02": "99878.164883", "2020-01-03": "98645.455548", "..........": "..........", "2020-12-28": "128839.78907", "2020-12-29": "127423.787479", "2020-12-30": "127605.397997" }, { "PATH": "l1r.l2d.l3gmvp", "2020-01-02": "99881.984748", "2020-01-03": "99178.383845", "..........": "..........", "2020-12-29": "110470.6706", "2020-12-30": "110876.168241" },
{ "PATH": ".........." }]