crypto-v3

Run Stresstest

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

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

Request body

holdingsobject nullable

Token holdings as {token_id: weight}. Example: {"bitcoin": 0.5, "ethereum": 0.3, "solana": 0.2}

portfolio_idstring nullable

Predefined portfolio: alpha_fund, dynamic_fund, conservative_fund, btc_only, top10_equal

scenariostring

Scenario: btc_crash_50pct, eth_smart_contract_exploit, stablecoin_crisis, regulatory_crackdown

portfolio_value_usdnumber

Total portfolio value in USD

Example request

{
  "holdings": {
    "bitcoin": 0.5,
    "ethereum": 0.3,
    "solana": 0.2
  }
}

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.