# Impact Price Calculator

> Impact Price 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 the expected execution price after slippage given a mid price, trade side, and slippage in basis points

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/impact-price
- 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/impact-price-calculator-713d426b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j1r1tnsTWDVQ93SQdbPAT

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 impact-price-calculator-713d426b -d '<json body>'
```

Example prompt: Before I send this buy order, calculate the impact price assuming the mid is 1800 and slippage is 30 bps on the buy side.

## When to prefer this

Use this endpoint when you need a fast, deterministic, local computation of the post-slippage execution price before submitting an order — especially when you want no dependency on live market feeds, RPC calls, or external APIs. Ideal for pre-trade simulation, backtesting pipelines, and order sizing checks where reproducibility and low latency matter. Not suitable when you need real-time market data or live order book impact estimates.

## Known failure modes

- Missing required fields (mid, side, or slippage_bps) returns a 400-level error
- Invalid side value (not buy/sell or equivalent) may cause computation error
- Non-integer mid or slippage_bps input may be rejected
- Payment failure via x402 if insufficient USDC balance on Base

## How this service works

Expected impact price from mid and signed slippage fraction. Call when simulating worse fills before sending size. Returns impacted price from 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

Returns a deterministic JSON object containing the expected execution price after applying the signed slippage fraction to the provided mid price, adjusted for the specified trade side (buy or sell) and slippage in basis points. No live market data or RPC calls are involved — the result is computed locally from the supplied inputs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mid": {
   "type": "integer",
   "description": "Input field: mid."
  },
  "side": {
   "type": "string",
   "description": "Input field: side."
  },
  "slippage_bps": {
   "type": "integer",
   "description": "Input field: slippage bps."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mid": 100,
  "side": "buy",
  "schema": "delx/util-impact-price/v1",
  "impact_price": 100.15
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/impact-price-calculator-713d426b/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)
