---
title: "Run Stresstest"
method: POST
path: "/v1/crypto/stresstest"
tags: ["crypto-v3"]
---

# Run Stresstest

`POST /v1/crypto/stresstest`

## Request

- Base URL: `https://zarq.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://zarq.ai/v1/crypto/stresstest`
- Auth: none declared

Run a portfolio stress test.
Provide either holdings (custom portfolio) or portfolio_id (predefined).
Returns per-token impact, total loss, and risk recommendations.

## Request body

- StresstestRequest: Request body for portfolio stress test.
  - `holdings` object, nullable: Token holdings as {token_id: weight}. Example: {"bitcoin": 0.5, "ethereum": 0.3, "solana": 0.2}
  - `portfolio_id` string, nullable: Predefined portfolio: alpha_fund, dynamic_fund, conservative_fund, btc_only, top10_equal
  - `scenario` string: Scenario: btc_crash_50pct, eth_smart_contract_exploit, stablecoin_crisis, regulatory_crackdown
  - `portfolio_value_usd` number: Total portfolio value in USD

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zarq/apis/zarq-nerq.md) · [All operations](https://skmtc.dev/zarq/apis/zarq-nerq/llms.txt) · [OpenAPI document](https://skmtc.dev/zarq/apis/zarq-nerq/revisions/adc2843b9273?raw)
