# Graph Advocate — Uniswap Pre-Trade Analysis

> Graph Advocate — Uniswap Pre-Trade Analysis is a paid API for AI agents from graphadvocate.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Runs an onchain pre-trade intelligence query against Uniswap subgraph data, returning token price, liquidity, buy/sell flow, honeypot risk, and a tradeable verdict for a given token or pair.

## Facts

- Endpoint: POST https://graphadvocate.com/uniswap/pretrade
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/graph-advocate-uniswap-pre-trade-analysis-fcfa319f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ct6ghBWphGAv16gB473ox

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 graph-advocate-uniswap-pre-trade-analysis-fcfa319f -d '<json body>'
```

Example prompt: Before I swap into WETH, run a Uniswap pre-trade check on it — I need the current price, buy/sell flow, honeypot risk, and the best liquidity pool to use.

## When to prefer this

Use this endpoint when you need a fast, structured pre-trade intelligence report for a Uniswap token without writing GraphQL yourself. It covers honeypot risk, liquidity quality, directional trend, and venue selection in a single paid call ($0.02 USDC). Prefer it over raw subgraph queries when you need a synthesized verdict rather than raw rows, or when you want Claude to handle subgraph routing across 15,500+ indexed datasets automatically.

## Known failure modes

- Token not indexed in any subgraph — returns no matching subgraph error
- Ambiguous token symbol resolves to wrong contract — returns incorrect data
- Chain not supported — returns unsupported chain error
- Payment of $0.02 USDC not completed — query not executed, free-tier response returns subgraph and GraphQL only
- Subgraph data stale — liquidity or price may lag real-time CEX prices
- Low liquidity token — TVL and flow data may be sparse or zero

## How this service works

Uniswap pre-trade due-diligence. POST {token, chain?, version?}. Returns real_liquidity + deepest venue (ranked by volumeUSD, NEVER TVL — Uniswap subgraph TVL is inflated by spam pools), alternate fee-tier venues, a two-way-flow honeypot check over recent swaps, daily volume trend, and a composed verdict {tradeable, risk, reasons}. Covers Uniswap V2/V3/V4 on Ethereum, Arbitrum, Base, Polygon, Optimism, BSC. For agents sizing or vetting a spot position before they touch a token.

## Output

Returns a JSON object with: token symbol and price in USD; buy/sell flow counts and two-way flag; honeypot risk level (low/medium/high); trend direction and percent change versus 3-day average; best venue pair with TVL in USD, fee tier, and real liquidity flag; and an overall risk/tradeable verdict.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string"
  },
  "token": {
   "type": "string"
  },
  "version": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "flow": {
   "buys": 19,
   "sells": 6,
   "two_way": true,
   "honeypot_risk": "low"
  },
  "token": {
   "symbol": "WETH",
   "price_usd": 1859.05
  },
  "trend": {
   "direction": "falling",
   "pct_vs_3day_avg": -28.5
  },
  "verdict": {
   "risk": "medium",
   "tradeable": true
  },
  "best_venue": {
   "pair": "USDC/WETH",
   "tvl_usd": 360200000,
   "fee_tier": 500,
   "real_liquidity": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/graph-advocate-uniswap-pre-trade-analysis-fcfa319f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from graphadvocate.com](https://www.zero.xyz/host/graphadvocate.com/llms.txt)
