# Delx Commerce — Percent Return Calculator

> Delx Commerce — Percent Return Calculator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Calculates the percentage return (gain or loss) between a starting and ending value

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/return-pct?utm_source=zero.xyz
- Price: $0.003/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-percent-return-calculator-8e9dd6ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LPECYzs04lkIAhUbwwmXK

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-percent-return-calculator-8e9dd6ed -d '<json body>'
```

Example prompt: What's the percentage return if something started at 80 and ended at 110?

## When to prefer this

Use this endpoint when you need a quick, verifiable, pay-per-call percent return calculation without writing your own math logic — ideal for agents that handle financial data, portfolio tracking, or price comparison and need an auditable, on-chain-paid utility function.

## Known failure modes

- Missing start or end value results in a validation error
- Non-numeric inputs may cause a 400 bad request
- Division by zero if start value is 0
- Payment failure via x402 if USDC balance is insufficient

## 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 containing the original start value, end value, and the computed return_percent as a number (e.g. 10 for a 10% gain), along with a schema identifier string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "end": {
   "type": "number",
   "description": "Ending value for percent return."
  },
  "start": {
   "type": "number",
   "description": "Starting value for percent return."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "end": 110,
  "start": 100,
  "schema": "delx/util-return-pct/v1",
  "return_percent": 10
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-percent-return-calculator-8e9dd6ed/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)
