# Delx Commerce — Slippage BPS Calculator

> Delx Commerce — Slippage BPS 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 slippage in basis points (bps) given a mid price and a fill price for a trade.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/slippage-bps?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-bps-calculator-f842ab3f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j7IQim6Xcodmf-Iz2__NV

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-bps-calculator-f842ab3f -d '<json body>'
```

Example prompt: What's the slippage in basis points 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 fast, pay-per-call, no-signup computation of slippage in basis points between a mid price and a fill price — especially in agent workflows that handle trade execution analysis, DeFi post-trade reporting, or execution quality monitoring where a lightweight on-demand API call is preferred over in-house arithmetic or heavier analytics platforms.

## Known failure modes

- Missing required fields (mid or fill) returns a validation error
- Non-numeric or malformed input values may cause a 400 bad request
- Payment not included or insufficient USDC payment via x402 protocol results in a 402 Payment Required response
- Service unavailability or upstream errors may return 5xx responses

## 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 echoed mid price, the echoed fill price, a schema identifier string ('delx/util-slippage-bps/v1'), and the computed slippage_bps as a floating-point number representing how many basis points the fill deviated from the mid price.

## 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-bps/v1",
  "slippage_bps": 29.99999999999972
 }
}
```

## More

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