io.github.phenicea/agentdata-liquidity-exit-cost

AgentData - Executable Liquidity / Exit-Cost

Size-aware exit cost, depeg risk & liquidity fragility for a Base token (x402, testnet).

0.1.0
Version
remote
Transport
1
Tools

Security review

Review passed

Reviewed 1h ago.

  • tools: 1 tools scanned
  • metadata: scanned

No findings.

Tools (1)

  • liquidity_exit_cost

    Size-aware exit cost, depeg risk, and liquidity fragility for a token on Base. Given a token and a sell size, returns the realized cost of exiting (price impact + fee, in bps and units), the best route across venues, an aggregated fragility score, and — for pegged assets — a depeg-risk score. Computed deterministically from on-chain AMM state, so the result is reproducible and auditable. Three tiers by compute depth (default 'risk'): 'quote' = best-route exit cost for one size; 'risk' = exit cost + fragility (+ depeg for pegged tokens); 'deep' = adds a multi-size exit-cost curve, max-size-before-cost thresholds, and an internal cross-check. Pricing per call (USDC): quote = $0, risk = $0, deep = $0. Status: testnet/preview — payment runs over the x402 HTTP surface, not this tool.