{"slug":"www-brainiac-software-api-v1-portfolio-analytics-stress-test-302fc6","title":"Apply caller-defined asset-class, factor and rate shocks to holdings and report ","host":"www.brainiac.software","method":"POST","resource":"https://www.brainiac.software/api/v1/portfolio-analytics/stress-test","category":"other","description":"Apply caller-defined asset-class, factor and rate shocks to holdings and report P/L by holding and in total. Docs: https://www.brainiac.software/api/portfolio-analytics/stress-test","price_listed":0.03,"price_asked":0.03,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":318,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"holdings":[{"betas":{"equity":1},"id":"VTI","mapping":{"assetClass":"us_equity"},"value":50000},{"duration":6.2,"id":"BND","mapping":{"assetClass":"bonds"},"value":21600}],"scenarios":[{"assetClassShocks":{"us_equity":-0.2},"factorShocks":{},"name":"equity -20%, rates +100bp","rateShockBp":100}]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"holdings":{"description":"holdings supplied by the caller for this operation.","example":[{"betas":{"equity":1},"id":"VTI","mapping":{"assetClass":"us_equity"},"value":50000},{"duration":6.2,"id":"BND","mapping":{"assetClass":"bonds"},"value":21600}],"items":{"type":"object"},"type":"array"},"scenarios":{"description":"scenarios supplied by the caller for this operation.","example":[{"assetClassShocks":{"us_equity":-0.2},"factorShocks":{},"name":"equity -20%, rates +100bp","rateShockBp":100}],"items":{"type":"object"},"type":"array"}},"required":["holdings","scenarios"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":true,"properties":{"limitations":{"description":"Product caveats. Absence of a signal is not a safety approval.","type":"array"},"scenarios":{"description":"scenarios returned by this operation.","items":{"additionalProperties":true,"properties":{"byHolding":{"description":"by Holding returned by this operation.","type":"array"},"name":{"description":"name returned by this operation.","type":"string"},"pnl":{"description":"pnl returned by this operation.","type":"number"},"pnlPct":{"description":"pnl Pct returned by this operation.","type":"number"},"unmapped":{"description":"unmapped returned by this operation.","type":"array"}},"type":"object"},"type":"array"},"sources":{"description":"Provenance only — upstream name, url, and retrievedAt when available.","items":{"additionalProperties":true,"properties":{"retrievedAt":{"description":"ISO-8601 timestamp when upstream data was retrieved.","type":"string"},"source":{"description":"Named upstream source for this delayed reference series.","type":"string"},"status":{"description":"Coverage status: complete or partial with real data is charged on HTTP 2xx; failed or empty payloads return non-2xx and are not charged.","type":"string"},"url":{"description":"Requested public URL.","type":"string"}},"type":"object"},"type":"array"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":278,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":313,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":324,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":403,"error":null}],"description_full":"Apply caller-defined asset-class, factor and rate shocks to holdings and report P/L by holding and in total. Docs: https://www.brainiac.software/api/portfolio-analytics/stress-test","last_updated":"2026-11-24T15:06:32.052Z","schemes":["exact"]}