# DeFi Shield Price Impact Estimator

> DeFi Shield Price Impact Estimator is a paid API for AI agents from defi-shield-hazel.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-16).

Estimates the price impact percentage of a buy or sell trade based on token pool liquidity on Uniswap

## Facts

- Endpoint: POST https://defi-shield-hazel.vercel.app/api/mev/price-impact
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-shield-hazel-vercel-app-a7272669
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_atai3YTYuqoM7gIrHnHzM

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 defi-shield-hazel-vercel-app-a7272669 -d '<json body>'
```

Example prompt: What's the estimated price impact if I buy $50,000 worth of USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) on Uniswap — will it move the price much?

## When to prefer this

Use this endpoint when you need a fast, pre-trade estimate of price impact for a specific ERC-20 token trade, especially for large trades where slippage matters. Ideal for MEV-aware agents, DeFi trading bots, or portfolio managers that need to check market depth before executing a swap. Prefer this over generic slippage estimators when you need pool-specific data from Uniswap with explicit liquidity figures and effective price calculation.

## Known failure modes

- Token address not found or unsupported — no liquidity pool available
- Invalid token address format — returns validation error
- Pool liquidity data unavailable or stale
- Unsupported trade direction value (must be 'buy' or 'sell')
- Amount USD is zero or negative — computation error
- Rate limit exceeded or payment not processed via x402

## Output

Returns the price impact percentage, the formula used, current token price, effective execution price after impact, pool liquidity in USD, the specific DEX pool and pair used (e.g. Uniswap USDC/USDT), token name and symbol, data age, and cache TTL. For example, a $50k buy of USDC in a $22.6M pool yields roughly 0.11% price impact.

## Example request

```json
{
 "direction": "sell",
 "amount_usd": 25000,
 "token_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "properties": {
      "direction": {
       "type": "string",
       "description": "Trade direction: buy or sell"
      },
      "amount_usd": {
       "type": "number",
       "description": "Trade amount in USD"
      },
      "token_address": {
       "type": "string",
       "description": "Token address"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-shield-hazel-vercel-app-a7272669/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-shield-hazel.vercel.app](https://www.zero.xyz/host/defi-shield-hazel.vercel.app/llms.txt)
