# BSC/BNB Chain DEX Slippage & Price Impact Simulator

> BSC/BNB Chain DEX Slippage & Price Impact Simulator is a paid API for AI agents from x402.donnyautomation.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Simulates a token swap against live BSC/BNB Chain pool reserves to return real execution price, price impact in basis points, pool fee, best venue, and amount out for a given trade size.

## Facts

- Endpoint: GET https://x402.donnyautomation.com/slippage
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bsc-bnb-chain-dex-slippage-price-impact-simulator-e7f406aa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OBSa0oouJHIj_ZfegmSgJ

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 bsc-bnb-chain-dex-slippage-price-impact-simulator-e7f406aa
```

Example prompt: Before I execute my trade, can you simulate swapping $500 USDC worth of WBNB into USDT on BSC and tell me the actual amount I'd receive, the price impact in basis points, the pool fee, and which DEX venue gives the best real execution?

## When to prefer this

Choose this endpoint when you need pre-trade execution simulation specifically on BSC/BNB Chain — especially when you need price impact in basis points, pool fee broken out separately, and a cross-venue best-execution comparison before submitting an on-chain transaction. Prefer this over spot-price endpoints when trade size matters and slippage is a concern, or when building trading bots and DEX aggregators that need to validate execution quality before committing.

## Known failure modes

- Invalid or unrecognized token pair symbol returns an error
- Pair with no liquidity on BSC returns no venues or empty result
- Missing required 'pair' query parameter returns 400-level error
- Extremely large trade size relative to pool depth may return max-impact or error
- Network or RPC issues fetching live pool reserves may cause timeout or stale data

## How this service works

What a trade size actually executes at on BSC / BNB Chain, simulated against live reserves. Returns best (venue, amountOut, executionPrice, priceImpactBps, feeBps, totalCostBps), routingGain, venues[]. Requires ?pair=SYM/SYM AND ?amountUsd=25000 (or ?amountIn=). pair alone = 400 missing_amount. Errors: 400 bad_pair|missing_amount|bad_amount, 404 no_pools|no_quote|cannot_size_in_usd, 502 upstream_read_failed. Bare = BSC; also /polygon /arbitrum /avalanche /optimism /base.

## Output

Returns the best execution venue name, the actual token amount out for the given trade size, price impact in basis points, pool fee as a separate figure, and the routing savings compared to selecting only the best-quoted spot price — all computed against live on-chain pool reserves on BSC/BNB Chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pair",
      "amountUsd"
     ],
     "properties": {
      "pair": {
       "type": "string",
       "description": "Token pair as SYM/SYM (e.g. WBNB/USDT)."
      },
      "amountIn": {
       "type": "string",
       "description": "Trade size denominated in the FIRST pair symbol instead of USD, e.g. 12.5 for 12.5 WBNB. An alternative to amountUsd; supplying either one is enough."
      },
      "amountUsd": {
       "type": "string",
       "description": "Trade size in USD, e.g. 10000. Required unless amountIn is given instead."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ts": "2026-07-31T00:00:00.000Z",
  "chainId": 56,
  "network": "bsc"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bsc-bnb-chain-dex-slippage-price-impact-simulator-e7f406aa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.donnyautomation.com](https://www.zero.xyz/host/x402.donnyautomation.com/llms.txt)
