# Delx Commerce — Drawdown Percentage Calculator

> Delx Commerce — Drawdown Percentage Calculator 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).

Calculates the percentage drawdown between a peak and trough value, returning the drawdown_pct as a decimal-free integer.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/drawdown-pct?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-drawdown-percentage-calculator-2c87643a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0kdZ1SFeeEm925SfmKObo

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-drawdown-percentage-calculator-2c87643a -d '<json body>'
```

Example prompt: What's the drawdown percentage if the peak was 120 and the trough was 90?

## When to prefer this

Use this endpoint when you need a simple, verifiable, pay-per-call computation of drawdown percentage without setting up any account or subscription. Ideal for AI agents that need an auditable, on-chain payment trail (USDC on Base or Solana) for financial metric computations. Prefer over in-agent math when you need schema-versioned, verifiable results for downstream logging or compliance.

## Known failure modes

- Missing peak or trough field returns a validation error
- Non-integer values for peak or trough may cause a type error
- Peak value equal to zero could cause a division-by-zero error
- Trough greater than peak may return a negative or zero drawdown (undefined behavior)
- Payment failure over x402 protocol prevents the call from completing

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the echoed peak and trough integers, the computed drawdown_pct as a percentage integer (e.g. 25 for a 25% drop), and a schema identifier string ('delx/util-drawdown-pct/v1') for verification purposes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "peak": {
   "type": "integer",
   "description": "Input field: peak."
  },
  "trough": {
   "type": "integer",
   "description": "Input field: trough."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "peak": 120,
  "schema": "delx/util-drawdown-pct/v1",
  "trough": 90,
  "drawdown_pct": 25
 }
}
```

## More

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