finance 2 credits · ~$0.030 ~200ms

Slippage / Liquidity Guard

POST /v1/finance/slippage

Estimates price impact from live pool liquidity (constant-product AMM) so a large order does not drain a thin pool. Flags implausible volume-to-liquidity ratios that suggest wash trading.

Capabilities

  • Price-impact estimate from pool depth
  • Configurable max impact and min liquidity
  • Wash-trading flag
  • DexScreener pool data

Use cases

  • Size trades to available liquidity
  • Avoid thin-pool disasters
  • Pre-trade impact preview
example
curl -X POST https://api.agent-toolbox.ai/v1/finance/slippage \
  -H "Content-Type: application/json" \
  -d '{"poolAddress": "...", "tradeSize": 10000}'
response shape
{
  "verdict": "PASS" | "FLAG" | "BLOCK",
  // tool-specific findings…
  "certificate": "sha256:..."
}