Sample Request https://www.hiddenlevers.com/l/api/v1/stresstest?apikey=demo_api_key_8675309_hl&apiuser=yourdemologin@example.org&allocationType=pct&input={"portfolio":{"jsonPositions":[{"ticker":"GOOG","quantity":40.0},{"ticker":"NFLX","quantity":40.0},{"ticker":"HD","quantity":20.0}]}}
Sample Return { "status" : "success", "result" : { [ { "positions": [ { "ticker": "GOOG", "quantity": 40, "impactPct": -0.4925382679569934 }, { "ticker": "NFLX", "quantity": 40, "impactPct": -0.5236581647493046 }, { "ticker": "HD", "quantity": 20, "impactPct": -0.48962416318897595 } ], "name": "Boomers Retire: Mass Equity Sales", "description": "What if aging baby boomers start moving savings out of the stock market in order to support their retirement?", "totalImpact": -0.5044034057203144 }, { "positions": [ { "ticker": "GOOG", "quantity": 40, "impactPct": 0.11890299728624254 }, { "ticker": "NFLX", "quantity": 40, "impactPct": 0.13489823193075634 }, { "ticker": "HD", "quantity": 20, "impactPct": 0.14819475373557656 } ], "name": "Baseline: S&P 500 Up 10%", "description": "What if the S&P 500 rises 10%, in line with its long term average since 1950?", "totalImpact": 0.13115944243391486 } ] } }