# DEX Token Price & Liquidity Lookup

> DEX Token Price & Liquidity Lookup is a paid API for AI agents from pyfile-agent.taile3ff35.ts.net, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Returns real-time DEX price and liquidity data for a token by symbol or contract address, across multiple chains

## Facts

- Endpoint: GET https://pyfile-agent.taile3ff35.ts.net/data/onchain/token
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dex-token-price-liquidity-lookup-105211de
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kF900e3U1o9G1N9HWuDYh

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 dex-token-price-liquidity-lookup-105211de
```

Example prompt: What's the current on-chain DEX price and liquidity for WETH right now?

## When to prefer this

Use this endpoint when you need real-time, on-chain DEX price and liquidity data for a token — especially when you have a contract address or symbol and need cross-chain DEX market data rather than centralized exchange prices. Prefer this over CEX price APIs when the token may not be listed on major centralized exchanges or when on-chain liquidity context is critical.

## Known failure modes

- Unknown or unrecognized token symbol returns empty or error result
- Invalid contract address format causes a bad request response
- Token exists on-chain but has no DEX liquidity, returning null or zero values
- Network congestion or RPC issues may cause stale or delayed data
- Missing required 'q' query parameter returns an error

## How this service works

DEX token price and liquidity across chains. ?q=WETH or ?q=<token address>

## Output

Returns DEX market data for the queried token including current price, liquidity depth, trading volume, and relevant cross-chain data from decentralized exchange sources

## 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",
     "properties": {
      "q": {
       "type": "string"
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dex-token-price-liquidity-lookup-105211de/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pyfile-agent.taile3ff35.ts.net](https://www.zero.xyz/host/pyfile-agent.taile3ff35.ts.net/llms.txt)
