# Delx Commerce Slippage Percentage Calculator

> Delx Commerce Slippage 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).

Computes the slippage percentage between a mid price and a fill price for a trade

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/slippage-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-slippage-percentage-calculator-ca7fce66
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4Vz_alIiWt1RMTASYUT6j

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-slippage-percentage-calculator-ca7fce66 -d '<json body>'
```

Example prompt: What's the slippage percentage if the mid price was 100 and my fill came in at 100.3?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-use, verifiable computation of slippage percentage without setting up a full analytics stack. It is ideal for AI agents that need to quantify trade execution quality on the fly, particularly in crypto or DeFi contexts where on-chain verifiability and micropayment billing via USDC/x402 are desirable. Prefer this over building your own arithmetic when you want auditable, schema-versioned results.

## Known failure modes

- Missing required fields (mid or fill) results in a validation error
- Non-numeric or invalid type for mid (must be integer) or fill (must be number) causes a 400 error
- Payment failure via x402 protocol prevents execution
- Network timeout or service unavailability returns a 5xx error

## 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 mid price, fill price, schema identifier (delx/util-slippage-pct/v1), and the computed slippage percentage as a floating-point number representing the percent deviation of the fill from the mid.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mid": {
   "type": "integer",
   "description": "Input field: mid."
  },
  "fill": {
   "type": "number",
   "description": "Input field: fill."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mid": 100,
  "fill": 100.3,
  "schema": "delx/util-slippage-pct/v1",
  "slippage_pct": 0.2999999999999972
 }
}
```

## More

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