# Slippage Basis Points Calculator

> Slippage Basis Points Calculator 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 trade slippage in basis points versus the mid price from a fill price and mid price, returning a deterministic JSON result.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/slippage-bps
- 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/slippage-basis-points-calculator-cd83cf6a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LZ-_ePLp-HXdQPPADpdBt

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 slippage-basis-points-calculator-cd83cf6a -d '<json body>'
```

Example prompt: Calculate the slippage in basis points versus mid for a fill where the mid price was 10000 and the fill price was 10015.

## When to prefer this

Choose this endpoint when you need a fast, cheap, deterministic computation of slippage in basis points versus mid for a single fill — especially in execution reporting, venue scorecards, or post-trade analytics workflows where you already have the mid and fill prices and just need the bps math done reliably without any external data dependencies.

## Known failure modes

- Missing or null mid price causes computation failure
- Invalid numeric types for mid or fill fields return an error
- Division by zero if mid is 0
- Extremely large or small values may cause precision edge cases

## How this service works

Slippage in basis points versus mid for execution reports. Call when venue quality scorecards in bps units operators expect. Returns slippage bps vs mid 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 deterministic JSON object containing the computed slippage in basis points versus the mid price, derived purely from local arithmetic on the provided mid and fill inputs — no live market data or external feeds involved.

## 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/slippage-basis-points-calculator-cd83cf6a/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)
