# Delx CVaR Lite — Conditional Value at Risk Calculator

> Delx CVaR Lite — Conditional Value at Risk Calculator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Computes CVaR (Conditional Value at Risk) and VaR for a given return series at a specified tail probability

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/cvar-lite?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-cvar-lite-conditional-value-at-risk-calculator-69ea09bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g6CHfW415mr79QVSwsP6u

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-cvar-lite-conditional-value-at-risk-calculator-69ea09bc -d '<json body>'
```

Example prompt: Calculate the CVaR and VaR for these monthly returns [-0.02, 0.05, -0.08, 0.03, -0.01, -0.09] using a 5% tail probability (alpha = 0.05).

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.001 USDC), no-signup CVaR/VaR computation for a single return series or small matrix. It is ideal for AI agents that need on-demand quantitative risk metrics without integrating a full financial analytics library. Prefer this over heavier risk platforms when you just need tail-risk summary statistics rather than full portfolio attribution or factor modeling.

## Known failure modes

- Invalid or missing alpha — must be a decimal between 0 and 1 (e.g. 0.05)
- Empty or malformed returns array
- Returns series too short for meaningful tail estimation
- Payment failure via x402 protocol
- Non-numeric values in the returns array

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing: n (number of observations), var (Value at Risk at the given alpha), cvar (Conditional Value at Risk / Expected Shortfall at the given alpha), and a schema identifier string. Values are expressed as decimals (e.g. -0.08 meaning -8%).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "alpha": {
   "type": "number",
   "description": "Tail probability for CVaR (e.g. 0.05)"
  },
  "returns": {
   "type": "array",
   "description": "Return series or matrix of series"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "n": 6,
  "var": -0.08,
  "cvar": -0.08,
  "schema": "delx/util-cvar-lite/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-cvar-lite-conditional-value-at-risk-calculator-69ea09bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
