API Documentation

⌘K
Get free key
GET/api/1/portfolio-risk/var/{portfolioId}

Value at Risk API

Computes VaR using historical, parametric, and Monte Carlo methods plus Expected Shortfall

Defaults

confidence=0.95horizon=1method=historical

Parameters

Required first. Documented defaults are selected — Test Request matches a bare call.

4
portfolioIdstringrequired
path

Portfolio UUID

confidencenumberdefault 0.95
query

Confidence level (default 0.95)

Default 0.95

horizonnumberdefault 1
query

Horizon in days: 1, 5, or 10

One of: 1, 5, 10 · Default 1

methodstringdefault historical
query

Method: historical, parametric, montecarlo

One of: historical, parametric, montecarlo · Default historical

Responses

Was this helpful?
Request
curl -X GET \
  'https://api.eulerpool.com/api/1/portfolio-risk/var/{portfolioId}?confidence=0.95&horizon=1&method=historical' \
  -H 'Accept: application/json'
200 Response
{
  "confidence": 0,
  "horizon": 0,
  "historical": 0,
  "parametric": 0,
  "monteCarlo": 0,
  "expectedShortfall": 0
}