# Risk Parity Weights Lite

> Risk Parity Weights Lite 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).

Computes inverse-volatility risk parity portfolio weights from a return series, returning weights that sum to 1 as deterministic JSON.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/risk-parity-weights
- 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/risk-parity-weights-lite-a2629108
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Xx0VqwutpHgdG2U6JKhFe

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 risk-parity-weights-lite-a2629108 -d '<json body>'
```

Example prompt: I have monthly return series for four assets — [0.01, 0.02, -0.01, 0.03], [0.005, -0.01, 0.02, 0.01], [0.03, 0.01, -0.02, 0.04], [0.02, 0.00, 0.01, -0.01] — can you compute the inverse-volatility risk parity weights that sum to 1 so I know how to allocate across them?

## When to prefer this

Choose this endpoint when you need a fast, cheap, deterministic inverse-volatility risk parity calculation from raw return series with no API keys, no live market feeds, and no external dependencies. It is ideal for offline or agent-embedded portfolio allocation steps where you already have historical returns and want weights that sum to 1 instantly. Prefer this over full mean-variance optimizers when you want a simpler, more robust allocation that avoids covariance matrix instability.

## Known failure modes

- Empty or malformed returns array returns an error response
- Single-asset input may produce trivially [1.0] weights without error
- Zero-variance return series (constant returns) can cause division-by-zero in inverse-vol calculation
- Mismatched series lengths in a matrix input may yield an error or undefined behavior
- Non-numeric values in the returns array will cause a computation error
- Network or payment (x402) failure results in no computation and an HTTP 402 or 5xx response

## How this service works

Inverse-vol risk parity weights from return series. Call when allocating across assets by inverse volatility offline. Returns weights summing to 1 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

A JSON object containing a weights array with one normalized float per asset (summing exactly to 1.0), computed deterministically via local inverse-volatility math — no live market data or external calls involved. The output is advisory only.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "returns": {
   "type": "array",
   "description": "Return series or matrix of series"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-risk-parity-weights/v1",
  "weights": [
   0.3038324347006871,
   0.4641117101995419,
   0.232055855099771
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/risk-parity-weights-lite-a2629108/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)
