← All endpoints

Fund Data API

Stress-Test Presets

GET/api/v1/fund/risk/stress/presets

The available historical stress-scenario presets, with their real-world date window and per-asset returns.

Requires an Authorization: Bearer <API key> header (a nyx_dk_… developer key, minted from the developer console at /developers/console). Reflects Nyx's shadow NAV, reconciled against your fund administrator.

No parameters — call it with no query string.

cURL
curl -s -X GET "https://nyxsuite.com/api/v1/fund/risk/stress/presets" \
  -H "Authorization: Bearer nyx_dk_demo000000000000000000000000000000000000000"
JavaScript
const res = await fetch("https://nyxsuite.com/api/v1/fund/risk/stress/presets", {
  method: "GET",
  headers: { Authorization: "Bearer nyx_dk_demo000000000000000000000000000000000000000" },
})
const data = await res.json()
Python
# GET https://nyxsuite.com/api/v1/fund/risk/stress/presets
import requests

res = requests.get(
    "https://nyxsuite.com/api/v1/fund/risk/stress/presets",
    headers={"Authorization": "Bearer nyx_dk_demo000000000000000000000000000000000000000"},
)
data = res.json()
SDK
// TypeScript (@nyxsuite/sdk)
import { NyxClient } from '@nyxsuite/sdk'

const client = new NyxClient({ apiKey: 'nyx_dk_demo000000000000000000000000000000000000000', baseUrl: 'https://nyxsuite.com/api/v1' })
const data = await client.fundRiskStressPresets()

# Python (nyxsuite)
from nyxsuite import NyxClient

client = NyxClient(api_key="nyx_dk_demo000000000000000000000000000000000000000", base_url="https://nyxsuite.com/api/v1")
data = client.fund_risk_stress_presets()
Try It
API Key
nyx_dk_dem••••••••0000
Sample response
Object(2)
"simulated": true
"presets":
Array(2)
Object(6)
"key": "may_2021_crash"
"label": "May 2021 Crash"
"window":
Object(2)
"from": "2021-05-08"
"to": "2021-05-23"
"narrative": "Leverage flush + China mining ban headlines; alts fell harder than BTC."
"assetReturns":
Object(7)
"BTC": -0.47
"ETH": -0.53
"SOL": -0.55
"BNB": -0.6
"ADA": -0.46
"XRP": -0.55
"DOGE": -0.65
"classReturns":
Object(4)
"crypto": -0.5
"stablecoin": 0
"fiat": 0
"equity": -0.03
Object(6)
"key": "ftx_week_2022"
"label": "FTX Week"
"window":
Object(2)
"from": "2022-11-06"
"to": "2022-11-14"
"narrative": "Exchange-solvency contagion; SOL hit hardest via Alameda balance-sheet exposure; counterparty risk repricing."
"assetReturns":
Object(4)
"BTC": -0.25
"ETH": -0.3
"SOL": -0.6
"FTT": -0.9
"classReturns":
Object(4)
"crypto": -0.35
"stablecoin": -0.01
"fiat": 0
"equity": -0.02