# BaseDue Token Liquidity Comparison

> BaseDue Token Liquidity Comparison is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-19).

Compares liquidity depth and spread across DEX venues for one or more Base-chain tokens, ranking venues by execution quality

## Facts

- Endpoint: GET https://api.firstmention.uk/s/basedue/compare?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basedue-token-liquidity-comparison-049e2676
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_87S9uWsH_fq3-51e3SHqb

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-token-liquidity-comparison-049e2676
```

Example prompt: Can you compare DEX venues for USDC (0x833589fcd6edb6e08f4c7c32d4f71b54bda02913) on Base and tell me which one has the tightest spread and best liquidity depth?

## When to prefer this

Use this endpoint when you need to compare DEX execution quality across multiple venues on Base chain before routing a swap, or when auditing liquidity health for a specific token. Prefer this over generic price APIs when spread percentage and venue ranking matter — particularly for large trades where slippage is a concern or for DeFi agents optimizing trade routing on Base.

## Known failure modes

- Invalid or unrecognized token address returns an error or empty result
- Token with no liquidity pools on Base returns no venues
- Payment not included or insufficient USDC via x402 returns 402 Payment Required
- Malformed query params returns 400 Bad Request
- Network or RPC issues may cause timeouts or stale data

## 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 ok status, the token address and symbol, the best and worst DEX venues by spread, the spread percentage, number of pools considered, reference price in USD, and ranked list of venues with their liquidity depth in USD.

## 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",
     "properties": {
      "tokens": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "ranked": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "token": {
          "type": "string"
         },
         "depthUsd": {
          "type": "number"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "symbol": "USDC",
  "bestVenue": "aerodrome",
  "spreadPct": 0.12,
  "worstVenue": "uniswap-v3",
  "poolsConsidered": 4,
  "referencePriceUsd": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basedue-token-liquidity-comparison-049e2676/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)
