Sims
Computes the dollar returns of a portfolio for multiple simulated time series
This builds upon and uses /weights
and /paths
for computation. It takes a time-series of unlimited instruments as an input and splits it into two sets of data - a training and a simulated test set.
The training set is the first 252 days long, the remaining days are used for the test set. The training set’s mean and standard deviation is then used to generate simulated test sets, in the current case 5 test sets. The test set’s simulated 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 for each of the 5 test sets, also addressed as “5 runs”.
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/sims
#
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 |
---|---|
Run X | Sequence of a Monte Carlo simulation |
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/sims' \--header 'x-api-key: xxxxxxxxxxxxxxxxxxxxx' \--header 'Content-Type: application/json' \--data-raw '{ "tickers": [ "AAPL", "HOG", "KO" ]}'
{ "run_1": [ { "PATH": "l1r.l2d.l3ewp", "2020-01-02": "99831.989", "2020-01-03": "99160.6261", "2020-01-06": "99218.9412", "2020-01-07": "98754.9525", "2020-01-08": "97381.0714", "..........": "..........", "2020-09-10": "108515.7951", "2020-12-28": "135292.8285", "2020-12-29": "132663.3561", "2020-12-30": "130067.6862" }, { "PATH": "l1r.l2d.l3gmvp", "2020-01-02": "99814.7452", "2020-01-03": "99681.6017", "2020-01-06": "100379.1184", "..........": "..........", "2020-12-23": "111828.7557", "2020-12-29": "112025.5782", "2020-12-30": "110413.6764" }, { "PATH": "l1r.l2d.l3hrp", "2020-01-02": "99830.0568", "2020-01-03": "99698.153", "2020-01-06": "100404.784", "..........": "..........", "2020-12-29": "112145.379", "2020-12-30": "110503.476" } ],
"run_2": [ { "PATH": "l1r.l2d.l3ewp", "2020-01-02": "98051.0549", "2020-01-03": "99897.8517", "2020-01-06": "100432.5497", "2020-01-07": "100553.07", "..........": "..........", "2020-12-28": "122078.4729", "2020-12-29": "121500.0248", "2020-12-30": "124062.5375" }, { "PATH": "l1r.l2d.l3gmvp", "2020-01-02": "99756.9175", "2020-01-03": "99964.0737", "2020-01-06": "99633.5767", "..........": ".........." } ]}