# AlphaPipeline DEX Slippage

> AlphaPipeline DEX Slippage is a paid API for AI agents from alphapipeline-eu.onrender.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Estimates trade slippage and retrieves pool liquidity data for a given DEX pool on a specified network using GeckoTerminal data, based on a constant-product approximation model.

## Facts

- Endpoint: GET https://alphapipeline-eu.onrender.com/v1/dex/liquidity-slippage
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alphapipeline-dex-slippage-525302bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ooMvZSVcb_jB1L6h-8299

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 alphapipeline-dex-slippage-525302bd
```

Example prompt: Before I swap, can you check what the estimated slippage would be on a $5,000 trade for the token at 0x4200000000000000000000000000000000000006 on the Base network?

## When to prefer this

Use this endpoint when you need a quick pre-trade slippage estimate for a DEX swap on Base or Ethereum without executing any transaction. It is ideal for agents doing trade routing, size optimization, or pool comparison before committing to a swap. Prefer this over on-chain simulation when you need a fast, low-cost approximation and can accept the constant-product model caveat. Not suited for real-time execution or for pools with complex AMM curves (e.g. Curve or concentrated liquidity).

## Known failure modes

- Invalid or unsupported network ID returns an error
- Pool address not found on specified network
- Neither pool_address nor token_address provided returns a validation error
- Token with no liquid pools on the specified network returns null liquidity fields
- GeckoTerminal data unavailable or rate-limited causes upstream failure
- trade_size_usd missing triggers required field validation error

## How this service works

GeckoTerminal-backed DEX pool liquidity and estimated trade slippage - size a trade or compare pools before swapping, with a clearly-flagged constant-product approximation model.

## Output

Returns the estimated slippage percentage and pool liquidity details including pool name, pool address, liquidity in USD, 24-hour trading volume, trade size used for estimation, the price impact model used (constant-product approximation, clearly flagged), data source attribution, and generation timestamps in UTC and KST.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "trade_size_usd"
     ],
     "properties": {
      "network": {
       "type": "string",
       "description": "GeckoTerminal network id, e.g. base, eth. Defaults to base."
      },
      "pool_address": {
       "type": "string",
       "description": "Specific DEX pool contract address (optional if token_address is given)."
      },
      "token_address": {
       "type": "string",
       "description": "Token contract address - the most liquid pool is auto-selected (optional if pool_address is given)."
      },
      "trade_size_usd": {
       "type": "number",
       "description": "Hypothetical trade size in USD to estimate slippage for."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "DexSlippageResponse",
     "required": [
      "generated_at",
      "network",
      "trade_size_usd",
      "price_impact_model",
      "data_source"
     ],
     "properties": {
      "notice": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Notice",
       "default": null
      },
      "network": {
       "type": "string",
       "title": "Network"
      },
      "pool_name": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Pool Name",
       "default": null
      },
      "data_source": {
       "type": "string",
       "title": "Data Source"
      },
      "generated_at": {
       "type": "object",
       "title": "TimestampPair",
       "required": [
        "utc",
        "kst"
       ],
       "properties": {
        "kst": {
         "type": "string",
         "title": "Kst"
        },
        "utc": {
         "type": "string",
         "title": "Utc"
        }
       }
      },
      "pool_address": {
       "anyOf": [
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alphapipeline-dex-slippage-525302bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alphapipeline-eu.onrender.com](https://www.zero.xyz/host/alphapipeline-eu.onrender.com/llms.txt)
