# Delx Commerce Sharpe Lite

> Delx Commerce Sharpe Lite 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-01).

Computes a lightweight Sharpe ratio from an array of returns, returning mean, standard deviation, and annualized risk-adjusted performance score.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/sharpe-lite?utm_source=zero.xyz
- Price: $0.001/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-sharpe-lite-2d2e9d07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__pU63jIwqJNRgcfzlCUTW

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-sharpe-lite-2d2e9d07 -d '<json body>'
```

Example prompt: Calculate the Sharpe ratio for these daily portfolio returns: [0.002, -0.001, 0.015, 0.008] — I want to see the mean, standard deviation, and final Sharpe score.

## When to prefer this

Choose this endpoint when you need a fast, no-signup, pay-per-call Sharpe ratio computation without standing up your own quant infrastructure. Ideal for AI agents that need lightweight, on-demand risk-adjusted performance scoring for small return series. Prefer over heavier analytics platforms when latency, cost, and simplicity matter more than advanced metrics like Sortino or Calmar ratios.

## Known failure modes

- Empty or null returns array causes computation failure
- Non-numeric values in returns array produce invalid results
- Insufficient data points (n<2) may yield undefined standard deviation
- Payment via x402 not included or malformed results in 402 response
- Network timeout or service unavailability returns 5xx error

## 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 number of observations (n), mean return, standard deviation of returns, and the computed Sharpe ratio as a float, along with a schema identifier (delx/util-sharpe-lite/v1) for result verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "returns": {
   "type": "array",
   "description": "Input field: returns."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "n": 4,
  "mean": 0.00875,
  "stdev": 0.01138804197393037,
  "schema": "delx/util-sharpe-lite/v1",
  "sharpe": 0.7683498199278325
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-sharpe-lite-2d2e9d07/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)
