# Avalanche C-Chain DEX Slippage & Price Impact Simulator

> Avalanche C-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 swap against live AMM reserves on Avalanche C-Chain to return actual execution price, price impact in bps, pool fee, and best venue across Trader Joe, Pangolin, and Uniswap v3.

## Facts

- Endpoint: GET https://x402.donnyautomation.com/avalanche/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/avalanche-c-chain-dex-slippage-price-impact-simulator-322e7345
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IOW9CJtPa3lBfjY0EtVBT

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 avalanche-c-chain-dex-slippage-price-impact-simulator-322e7345
```

Example prompt: Before I swap WAVAX for USDC on Avalanche, can you simulate that trade and tell me the actual amount I'd receive, the price impact in basis points, the best execution venue across Trader Joe, Pangolin, and Uniswap v3, and how much correct routing saves me?

## When to prefer this

Choose this endpoint when you need pre-trade execution simulation specifically on Avalanche C-Chain, want multi-venue comparison across Trader Joe, Pangolin, and Uniswap v3, and need price impact in basis points plus pool fee broken out separately — especially for trading bots or DEX aggregators that need to validate routing before committing a transaction. Prefer over generic spot-price endpoints when actual execution quality (not just mid-price) is required.

## Known failure modes

- Invalid or unrecognized token pair symbol returns an error
- Pair not listed on any supported Avalanche DEX returns no venue data
- Network congestion or RPC latency may cause stale reserve reads
- Unsupported token contract address format causes parsing failure
- Payment failure (x402) blocks the response if USDC balance is insufficient

## How this service works

What a trade size actually executes at on Avalanche C-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. Spot price without a size is /price. Chain-pinned; bare /slippage = BSC.

## Output

Returns the best execution venue (Trader Joe, Pangolin, or Uniswap v3), the actual amount out for the trade size, price impact expressed in basis points, the pool fee separately, and the savings from optimal routing versus simply picking the best-quoted price — all computed against live on-chain reserves.

## 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 on Avalanche C-Chain (e.g. WAVAX/USDC)."
      },
      "amountIn": {
       "type": "string",
       "description": "Trade size denominated in the FIRST pair symbol instead of USD. 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": 43114,
  "network": "avalanche"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/avalanche-c-chain-dex-slippage-price-impact-simulator-322e7345/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)
