# Compound Returns

> Compound Returns 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-15).

Compounds a list of period returns into a total growth factor and cumulative return via local deterministic math.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/compound-return
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/compound-returns-965c7d9d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eiPM0Ov5AAvmBDlTlLSXC

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 compound-returns-965c7d9d -d '<json body>'
```

Example prompt: Can you compound these monthly returns for me — [0.02, -0.01, 0.03, 0.015, -0.005, 0.04] — and tell me the total growth factor and cumulative return?

## When to prefer this

Choose this endpoint when you already have a series of period returns in hand and need a quick, deterministic, server-side computation of the compounded total — especially in agentic pipelines where you want a cost-effective ($0.001 USDC), stateless, no-API-key math operation without standing up your own calculation logic. Prefer this over general-purpose code execution when you want a guaranteed deterministic JSON response with no side effects.

## Known failure modes

- Empty or missing 'returns' array returns an error or undefined result
- Non-numeric values in the returns array cause computation failure
- Extremely large arrays may hit request size limits
- Returns expressed as percentages vs decimals may yield incorrect results if format is inconsistent
- Network timeout or x402 payment failure prevents the call from completing

## How this service works

Compound a list of period returns into a total growth factor. Call when multi-period performance rollups from return series you already have. Returns compounded factor and total return 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 compounded growth factor (product of all (1 + r) terms) and the total return as a percentage or decimal, computed purely from the input return series with no external data sources.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "n": 3,
  "factor": 1.025049,
  "schema": "delx/util-compound-return/v1",
  "total_return": 0.0250490000000001
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/compound-returns-965c7d9d/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)
