# Delx Commerce Sortino-Lite API

> Delx Commerce Sortino-Lite API 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 the Sortino ratio and downside standard deviation for a given array of periodic returns

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/sortino-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-sortino-lite-api-bfd8c03d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qh5yjZRkdqJjoCjvxMfQE

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-sortino-lite-api-bfd8c03d -d '<json body>'
```

Example prompt: Calculate the Sortino ratio for this return series: [0.02, -0.01, 0.015, -0.005, 0.03, -0.008, 0.012, -0.02]

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call Sortino ratio calculation without any sign-up or API key overhead — ideal for agent workflows that occasionally need downside-risk-adjusted performance metrics on the fly. Prefer it over full portfolio analytics suites when you only need the Sortino ratio and downside deviation, not a comprehensive report.

## Known failure modes

- Empty or missing returns array — API may return error or zero values
- Non-numeric values in the returns array causing computation failure
- Insufficient data points for meaningful statistical computation
- All returns positive (no downside deviation) — Sortino ratio may be undefined or zero

## 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 with: the count of observations (n), the mean return, the Sortino ratio (penalizing only downside volatility), and the downside standard deviation — all following the delx/util-sortino-lite/v1 schema.

## 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,
  "schema": "delx/util-sortino-lite/v1",
  "sortino": 0,
  "downside_stdev": 0
 }
}
```

## More

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