# DEX Liquidity, Slippage & Orderflow Audit API

> DEX Liquidity, Slippage & Orderflow Audit API is a paid API for AI agents from onchain-risk.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown (last checked 2026-10-21).

Fetches live DEX liquidity pool data, FDV, 24h volume, and 1h buy/sell orderflow pressure for a given token via DexScreener

## Facts

- Endpoint: GET https://onchain-risk.agentdiet.dev/v1/dex?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Provider: onchain-risk.agentdiet.dev
- Website: https://onchain-risk.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/onchain-risk-agentdiet-dev-dex-liquidity-slippage-orderflow-audit-api-2a7d21d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z9p181EpgmjKApO1BZjjv

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 onchain-risk-agentdiet-dev-dex-liquidity-slippage-orderflow-audit-api-2a7d21d1
```

Example prompt: Pull up the live DEX liquidity pools, FDV, 24h volume, and the last hour of buy/sell orderflow pressure for AERO on Base — I want to know if there's enough liquidity to trade without major slippage.

## When to prefer this

Choose this endpoint when you need real-time DEX-specific liquidity, volume, slippage, and orderflow data for a token on Base, Solana, or Ethereum. It is superior to general price APIs when you need pool-level depth, FDV, and buy/sell pressure breakdown for trading risk assessment or DeFi due diligence. Prefer it over CEX data sources when the token is primarily traded on decentralized exchanges.

## Known failure modes

- Token not found on supported chains (Base/Solana/Ethereum) — returns empty or error response
- Invalid or malformed contract address — returns validation error
- Token has no active DEX pools — returns empty pool list
- DexScreener data unavailable or rate-limited — upstream timeout or error
- Payment failure via x402 — 402 Payment Required if USDC payment not settled

## How this service works

Fetches live DexScreener liquidity pools, FDV, 24h volume, and 1h buy/sell orderflow pressure. (Live x402 v2, IETF MPP & MCP endpoint at https://onchain-risk.agentdiet.dev/v1/dex)

## Output

Returns structured data from DexScreener including active liquidity pools, fully diluted valuation (FDV), 24-hour trading volume, and 1-hour buy/sell orderflow pressure for the queried token, enabling assessment of trading risk, slippage exposure, and market momentum.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "token"
 ],
 "properties": {
  "token": {
   "type": "string",
   "minLength": 1,
   "description": "Token contract address or symbol (e.g. USDC, WETH, AERO) on Base/Solana/Ethereum"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchain-risk-agentdiet-dev-dex-liquidity-slippage-orderflow-audit-api-2a7d21d1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchain-risk.agentdiet.dev](https://www.zero.xyz/host/onchain-risk.agentdiet.dev/llms.txt)
