# 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-11-21).

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

## Facts

- Endpoint: POST https://onchain-risk.agentdiet.dev/v1/dex-liquidity-depth-oracle?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-11-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-783c1328
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_knKTc37daPhfsqDSG-QlS

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-783c1328 -d '<json body>'
```

Example prompt: Can you pull the live DEX liquidity depth, FDV, 24h volume, and buy/sell orderflow pressure for AERO on Base so I can decide if it's safe to make a large swap?

## When to prefer this

Use this endpoint when you need real-time on-chain DEX liquidity intelligence — specifically pool depth, slippage risk, volume, FDV, and orderflow imbalance — for tokens on Base, Solana, or Ethereum. Prefer this over generic price APIs when the goal is trade safety assessment, large-order impact analysis, or detecting buy/sell pressure anomalies. It is especially useful for DeFi agents making autonomous swap decisions or risk-gating large transactions.

## Known failure modes

- Token not found on supported chains (Base/Solana/Ethereum) — empty or error response
- Invalid or malformed contract address — validation error
- Token exists but has no active liquidity pools — empty pool list
- DexScreener data temporarily unavailable — upstream timeout or 503
- Payment failure via x402 — 402 response requiring USDC payment on Base

## 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-liquidity-depth-oracle)

## Output

Returns a structured object containing live DEX liquidity pool details sourced from DexScreener, including pool depth metrics, fully diluted valuation (FDV), 24-hour trading volume, and 1-hour buy/sell orderflow pressure ratios — enabling agents to assess trade risk, slippage, and market sentiment for a given token.

## 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-783c1328/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)
