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.
| Endpoint | POST /api/finance/risk/model |
| Auth | api-key |
| Rate limit | 20/min |
| Category | finance |
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
portfolio | array | Yes | Array of { asset, weight, volatility }. |
horizonDays | number | No | Risk horizon in days. Default: 252 (1 year). |
simulations | number | No | Monte Carlo runs (100–10000). Default: 1000. |
confidenceLevel | number | No | VaR 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.