# DeFi Oracle Token Liquidity Lookup

> DeFi Oracle Token Liquidity Lookup is a paid API for AI agents from defi-oracle-two.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns total liquidity, pool count, and pool-level details for a given token symbol on a specified chain using DeFiLlama and on-chain RPC data.

## Facts

- Endpoint: POST https://defi-oracle-two.vercel.app/api/token-liquidity
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-oracle-token-liquidity-lookup-408ce5e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VIRCNCyws0LXALIjoLq8g

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 defi-oracle-token-liquidity-lookup-408ce5e9 -d '<json body>'
```

Example prompt: How much total liquidity does USDC have on Base right now, and how many pools is it spread across?

## When to prefer this

Use this endpoint when you need to assess liquidity depth for a specific token on a given blockchain before executing a swap, sizing a trade, or evaluating DeFi market conditions. Prefer this over generic market data APIs when you specifically need pool-level breakdown and total on-chain liquidity aggregated from DeFiLlama sources, paid conveniently with USDC on Base via x402.

## Known failure modes

- Unknown token symbol returns empty pools array or error
- Unsupported chain name returns error or zero results
- Token exists but has no tracked DeFi pools, returning pool_count of 0
- Rate limiting or upstream DeFiLlama outage causes 5xx error
- Malformed request missing required 'symbol' field returns validation error

## How this service works

DeFi data for AI agents — yield rates, swap routes, IL calculator, liquidation risk, MEV scanner, TVL tracking. Powered by DeFiLlama + on-chain RPC data. Pay with USDC on Base via x402.

## Output

Returns a JSON object with the token symbol, chain, total liquidity in USD, number of pools, and an array of individual pool-level liquidity details sourced from DeFiLlama and on-chain RPC data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "symbol"
 ],
 "properties": {
  "chain": {
   "type": "string"
  },
  "symbol": {
   "type": "string",
   "description": "Token symbol"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string"
  },
  "pools": {
   "type": "array"
  },
  "token": {
   "type": "string"
  },
  "pool_count": {
   "type": "number"
  },
  "total_liquidity_usd": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-oracle-token-liquidity-lookup-408ce5e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-oracle-two.vercel.app](https://www.zero.xyz/host/defi-oracle-two.vercel.app/llms.txt)
