# BaseDue Exit Liquidity Analyzer

> BaseDue Exit Liquidity Analyzer is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Estimates how much USD can be extracted by selling a specific ERC-20 token on Base DEXes, checking pool depth and price impact before exiting a position.

## Facts

- Endpoint: GET https://api.firstmention.uk/s/basedue/exit?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basedue-exit-liquidity-analyzer-aaf60446
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Sn326PW3akei3OVVcOXrX

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 basedue-exit-liquidity-analyzer-aaf60446
```

Example prompt: Before I sell my cbBTC position, can you check how much I can realistically exit with on Base — I want to sell about $5000 worth with no more than 1% price impact, the token address is 0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf.

## When to prefer this

Use this endpoint when you need a quick, on-chain-grounded estimate of DEX exit capacity for a specific ERC-20 token on Base before executing a sell. Ideal for agents managing DeFi portfolios, liquidation bots, or risk systems that need to know whether a position can be exited within acceptable slippage bounds without actually submitting a transaction. Prefer this over general token price APIs when you need pool-level depth, venue comparison, and impact simulation rather than just a spot price.

## Known failure modes

- Invalid or non-existent token address returns error
- Token has no liquidity pools on Base — ok:false with empty venues
- Payment not received — 402 response requiring x402 USDC payment on Base
- Price impact exceeds limit — size.ok:false with actual impactPct reported
- Network or RPC issues returning 5xx
- Missing required token query parameter returns validation error

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, basewatch, chainread, check-sanctions, chgwatch, company-facts, composite, edgar, feednews, pageaudit, solcheck, token-dd, txpreflight, walletcheck, webmd, webread, websearch, x402index. Each operation describes its service.

## Output

Returns a JSON object with: overall ok status, chain identifier, ETH/USD price, and per-token results including best pool address and venue (e.g. Aerodrome), maximum USD that can be extracted, spot price, quote asset depth, token reserves, and a size simulation showing expected USD out, impact percentage, slippage percent and USD amount for the requested position size. Includes a note that Uniswap V3 pools are excluded and the model is a constant-product lower-bound estimate.

## 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"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "size": {
       "type": "number",
       "description": "/exit only: USD position size"
      },
      "token": {
       "type": "string",
       "description": "ERC-20 token address on Base (0x + 40 hex)"
      },
      "impact": {
       "type": "number",
       "description": "/exit only: max acceptable price impact percent (default 1)"
      },
      "tokens": {
       "type": "string",
       "description": "up to 3 comma-separated token addresses"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "chain": {
       "type": "string"
      },
      "summary": {
       "type": "object",
       "properties": {
        "poolCount": {
         "type": "number"
        },
        "bestDepthUsd": {
         "type": "number"
        },
        "bestDepthGrade": {
         "type": "string"
        }
       }
      },
      "verdict": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "note": "Capacity is a LOWER BOUND: Uniswap V3 pools are excluded from the size model. Constant-product model; comparable in order of magnitude, not exact.",
  "chain": "base",
  "ethUsd": 2343.51,
  "results": [
   {
    "ok": true,
    "best": {
     "pool": "0x2578365b3dfa7ffe60108e181efb79feddec2319",
     "venue": "aerodrome",
     "maxUsdOut": 3230.39,
     "quoteAsset": "WETH",
     "maxTokenSell": 0.040595
    },
    "size": {
     "ok": false,
     "pool": "0x2578365b3dfa7ffe60108e181efb79feddec2319",
     "venue": "aerodrome",
     "usdOut": 4923.79,
     "impactPct": 1.5242,
     "slippagePct": 1.524,
     "slippageUsd": 76.21,
     "requestedUsd": 5000
    },
    "token": "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
    "symbol": "cbBTC",
    "venues": [
     {
      "pool": "0x2578365b3dfa7ffe60108e181efb79feddec2319",
      "venue": "aerodrome",
      "maxUsdOut": 3230.39,
      "quoteAsset": "WETH",
      "maxTokenSell": 0.040595,
      "spotPriceUsd": 80380.2,
      "quoteDepthUsd": 324023.6,
      "tokenReserveUi": 4.029
     }
    ],
    "impactLimitPct": 1
   }
  ],
  "endpoint": "exit"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basedue-exit-liquidity-analyzer-aaf60446/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
