# Delx Commerce — Volatility Sample Calculator

> Delx Commerce — Volatility Sample Calculator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Computes sample volatility (standard deviation and annualized volatility) from a caller-supplied array of period returns

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/volatility-sample?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-volatility-sample-calculator-4511b8ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EcHi10Uw4N1oPVDg8LD4H

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-commerce-volatility-sample-calculator-4511b8ea -d '<json body>'
```

Example prompt: Calculate the sample volatility and annualized vol for these daily returns: [0.012, -0.005, 0.008, 0.021] — use 365 as the annualization factor.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use volatility computation without any signup or subscription overhead, and when you need verifiable on-chain payment via USDC. Ideal for AI agents performing one-off financial analytics tasks, risk calculations, or volatility inputs for derivative pricing, especially when the agent controls a crypto wallet. Prefer over heavyweight financial data platforms when you already have the return series and just need the statistical computation.

## Known failure modes

- Empty or missing returns array causes computation failure
- Non-numeric values in the returns array cause parsing errors
- Fewer than 2 data points may produce unreliable or undefined standard deviation
- Missing periods_per_year defaults may produce un-annualized results
- Payment failure via x402 (insufficient USDC balance) blocks the request

## 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: the mean return, count of observations, annualized volatility, standard deviation, the schema identifier (delx/util-volatility-sample/v1), and an advisory note clarifying this is descriptive sample volatility only.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "returns": {
   "type": "array",
   "description": "Caller-supplied period returns for sample volatility."
  },
  "periods_per_year": {
   "type": "number",
   "description": "Annualization factor (e.g. 365 for daily)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mean": 0.00125,
  "count": 4,
  "schema": "delx/util-volatility-sample/v1",
  "advisory": "Descriptive sample volatility only.",
  "annualized_vol": 0.25609752,
  "standard_deviation": 0.01340476
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-volatility-sample-calculator-4511b8ea/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)
