Portfolio Analytics · Stress Test
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
POST https://www.brainiac.software/api/v1/portfolio-analytics/stress-test
0.03 USDC on Base · payTo 0x6428665E83F503904571104311bB78CBb29b975c
Status: verified · payable
Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.
Settlement: direct to the seller's payTo — 0% HIVE402 take
Payment routes
{
"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
}
]
}{
"limitations": [
"Outputs are calculations on caller-supplied inputs for human review. No market data is fetched, and this is not investment or tax advice.",
"Asset-class shocks take priority over factor betas. Bonds with duration apply ΔP/P = −D·Δy + ½C·Δy². Options are not repriced."
],
"scenarios": [
{
"byHolding": [
{
"id": "VTI",
"pnl": -10000
},
{
"id": "BND",
"pnl": -1339.2
}
],
"name": "equity -20%, rates +100bp",
"pnl": -11339.2,
"pnlPct": -0.1583687150837989,
"unmapped": []
}
],
"sources": [
{
"retrievedAt": "2026-11-14",
"source": "Caller-supplied holdings, returns, valuations and transactions processed locally",
"status": "ok",
"url": "https://www.brainiac.software/api/v1/portfolio-analytics"
}
]
}Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Sellers · Contact
SML network: ScriptMasterLabs — the main site · SML Dual Market — the human store: human checkout, card & crypto · VA Ratings — VA disability ratings, free for veterans
Agent intel 
| Trust score | pending / 100 · breakdown |
|---|---|
| Probe uptime (30d) | — over 0 probes · daily |
| Avg 402 latency | — ms |
| Paid calls (30d, on-chain) | 0 calls · 0 buyers |
How to call
POST https://www.brainiac.software/api/v1/portfolio-analytics/stress-test · input in body · spec from live-challenge
Input schema
{
"type": "object",
"properties": {
"holdings": {
"type": "array",
"items": {
"type": "object"
},
"description": "holdings supplied by the caller for this operation.",
"example": [
{
"id": "VTI",
"value": 50000,
"mapping": {
"assetClass": "us_equity"
},
"betas": {
"equity": 1
}
},
{
"id": "BND",
"value": 21600,
"mapping": {
"assetClass": "bonds"
},
"duration": 6.2
}
]
},
"scenarios": {
"type": "array",
"items": {
"type": "object"
},
"description": "scenarios supplied by the caller for this operation.",
"example": [
{
"name": "equity -20%, rates +100bp",
"assetClassShocks": {
"us_equity": -0.2
},
"factorShocks": {},
"rateShockBp": 100
}
]
}
},
"required": [
"holdings",
"scenarios"
],
"additionalProperties": false
}Output schema
{
"type": "object",
"additionalProperties": true,
"properties": {
"scenarios": {
"type": "array",
"description": "scenarios returned by this operation.",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"name": {
"type": "string",
"description": "name returned by this operation."
},
"pnl": {
"type": "number",
"description": "pnl returned by this operation."
},
"pnlPct": {
"type": "number",
"description": "pnl Pct returned by this operation."
},
"byHolding": {
"type": "array",
"description": "by Holding returned by this operation."
},
"unmapped": {
"type": "array",
"description": "unmapped returned by this operation."
}
}
}
},
"sources": {
"type": "array",
"description": "Provenance only — upstream name, url, and retrievedAt when available.",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"source": {
"type": "string",
"description": "Named upstream source for this delayed reference series."
},
"url": {
"type": "string",
"description": "Requested public URL."
},
"retrievedAt": {
"type": "string",
"description": "ISO-8601 timestamp when upstream data was retrieved."
},
"status": {
"type": "string",
"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."
}
}
}
},
"limitations": {
"type": "array",
"description": "Product caveats. Absence of a signal is not a safety approval."
}
}
}curl -i -X POST 'https://www.brainiac.software/api/v1/portfolio-analytics/stress-test' \
-H 'content-type: application/json' -d '{"holdings":[{"id":"VTI","value":50000,"mapping":{"assetClass":"us_equity"},"betas":{"equity":1}},{"id":"BND","value":21600,"mapping":{"assetClass":"bonds"},"duration":6.2}],"scenarios":[{"name":"equity -20%, rates +100bp","assetClassShocks":{"us_equity":-0.2},"factorShocks":{},"rateShockBp":100}]}'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs