{"uid":"cap_2WrxHOtxh7xCcrNSh0RHt","slug":"cvar-es-lite-1c4ced64","name":"CVaR ES Lite","description":"Historical CVaR/ES at alpha from return samples. Call when tail risk budgeting without a full risk engine. Returns var and cvar as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/cvar-lite","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"type":"json","example":{"n":6,"var":-0.08,"cvar":-0.08,"schema":"delx/util-cvar-lite/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_S9yntUXBU5IlEjqPBPUnZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes historical Conditional Value at Risk (CVaR/Expected Shortfall) at a given alpha from a return series using local math, returning var and cvar as deterministic JSON.","exampleAgentPrompt":"Calculate the CVaR and VaR for this daily return series [-0.02, 0.01, -0.05, 0.03, -0.08, 0.02, -0.01, 0.04, -0.03, 0.07] using a tail probability (alpha) of 0.05.","exampleUseCases":[{"title":"Portfolio tail risk assessment","prompt":"I have a list of 200 daily portfolio returns and want to know the expected shortfall at the 5% tail — can you calculate the CVaR and VaR from these numbers?"},{"title":"Risk budgeting for multi-asset strategy","prompt":"I'm allocating risk across three strategies and need the CVaR at alpha 0.10 for each return series so I can set tail risk budgets — here are the three arrays of monthly returns."},{"title":"Stress testing downside exposure","prompt":"Before I size this trade, can you compute the conditional value at risk at the 1% tail from these historical simulated returns so I understand the worst-case expected loss?"}],"resultDescription":"Returns a deterministic JSON object containing the computed VaR (Value at Risk) and CVaR (Conditional Value at Risk / Expected Shortfall) values at the specified alpha probability level, derived purely from the provided return samples using local arithmetic — no external data sources involved.","failureModes":["Missing or empty returns array — endpoint cannot compute statistics without data","Alpha value out of valid range (must be between 0 and 1 exclusive) — returns error","Malformed input types (non-numeric values in returns array) — parsing or computation error","Insufficient return samples for meaningful tail estimation at very low alpha values","Payment failure or insufficient USDC balance for x402 micropayment"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic CVaR/ES computation from a raw return series without setting up a full risk engine, subscribing to live market data, or managing API keys. Ideal for lightweight risk budgeting workflows, one-off tail risk checks in agent pipelines, or when you want first-party local math with no external dependencies. Prefer alternatives if you need real-time market data, Monte Carlo simulation, parametric VaR models, or risk attribution beyond CVaR/ES.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:16:00.309Z","isFirstParty":false}