# Lite Sharpe Ratio Calculator

> Lite Sharpe Ratio Calculator is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Computes a simplified Sharpe-like ratio (mean/stdev) from an array of returns, with no risk-free rate adjustment, for quick risk-adjusted ranking of strategies.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/sharpe-lite
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lite-sharpe-ratio-calculator-99259213
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1QdjdIHZ_Lz9HAkpFZl8y

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 lite-sharpe-ratio-calculator-99259213 -d '<json body>'
```

Example prompt: Calculate the Sharpe-like ratio for this return series — [0.02, -0.01, 0.03, 0.015, -0.005, 0.04, 0.01] — so I can rank it against my other strategies by risk-adjusted performance.

## When to prefer this

Prefer this endpoint when you need a fast, deterministic, local-math-only Sharpe-like score with no API keys, no live market data, and no risk-free rate adjustment — ideal for quick relative ranking of strategy return arrays in automated pipelines. Use this over full Sharpe implementations when you want a simple mean/stdev ratio, don't need rf-rate adjustment, and want a cheap ($0.001 USDC) deterministic result. Not suitable when regulatory-grade risk metrics or live market feeds are required.

## Known failure modes

- Empty or single-element returns array causes division by zero or undefined stdev
- Non-numeric values in the returns array cause computation failure
- Missing or malformed 'returns' field returns a validation error
- All identical return values produce a stdev of zero, making ratio undefined or infinite
- Payment failure via x402 prevents endpoint access

## How this service works

Lite Sharpe = mean/stdev of a return sample (no rf, sample). Call when quick risk-adjusted rank of strategy return arrays. Returns sharpe-like ratio and n 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.

## Output

Returns a deterministic JSON object containing the Sharpe-like ratio (mean divided by standard deviation of the input returns, no risk-free rate applied, sample stdev) and n (the number of return observations used in the calculation).

## 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/lite-sharpe-ratio-calculator-99259213/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
