# Pyfile Toolkit: DEX Token Price & Liquidity

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

Fetches real-time DEX token price and liquidity data across multiple chains by token symbol or contract address

## Facts

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

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 pyfile-toolkit-dex-token-price-liquidity-019fb558
```

Example prompt: What's the current DEX price and liquidity for WETH across chains?

## When to prefer this

Use this endpoint when you need real-time DEX-sourced token prices and liquidity data across multiple chains, particularly for DeFi workflows, arbitrage detection, portfolio valuation, or on-chain analytics. Prefer this over centralized exchange APIs when you need decentralized, on-chain pricing data.

## Known failure modes

- Unknown or unrecognized token symbol returns empty or error response
- Invalid contract address format causes a bad request error
- Token with no DEX liquidity returns zero or null liquidity data
- Network or upstream DEX data provider outage causes timeout or 503
- Misspelled token symbol returns no results

## How this service works

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

## Output

Returns real-time DEX price and liquidity information for the queried token, including current price, liquidity pool depth, and relevant chain data, sourced from decentralized exchanges across multiple chains.

## 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/pyfile-toolkit-dex-token-price-liquidity-019fb558/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pyfile-agent.taile3ff35.ts.net:10000](https://www.zero.xyz/host/pyfile-agent.taile3ff35.ts.net%3A10000/llms.txt)
