Skip to main content

ZeqRisk — Risk Modeling

Risk modeling using chaotic systems and statistical mechanics operators. Monte Carlo simulations on the Zeqond grid — every simulation step is timestamped and verifiable.

EndpointPOST /api/finance/risk/model
Authapi-key
Rate limit20/min
Categoryfinance

Parameters

NameTypeRequiredDescription
portfolioarrayYesArray of { asset, weight, volatility }.
horizonDaysnumberNoRisk horizon in days. Default: 252 (1 year).
simulationsnumberNoMonte Carlo runs (100–10000). Default: 1000.
confidenceLevelnumberNoVaR confidence (0.90–0.999). Default: 0.95.

Returns

{ valueAtRisk, conditionalVaR, sharpeRatio, maxDrawdown, correlationMatrix, simulated }

Example

curl -sS -X POST \
-H "Authorization: Bearer zsm_..." \
-H "Content-Type: application/json" \
-d '{
"portfolio": [],
"horizonDays": 252,
"simulations": 1000,
"confidenceLevel": 0.95
}' \
"https://zeqsdk.com/api/finance/risk/model"

This protocol is a named building block — one of the operations you compose inside a state contract. Call it directly with the request above, or invoke it from a contract that fires on your machine's clock. Browse the whole library at GET /api/protocols; fetch this one at GET /api/protocols/zeq-risk.