{"uid":"cap_Cps3VIwpRZhRYBPU4KO2o","slug":"hermes-agent-data-services-pool-risk-slippage-implied-price-27eb3244","name":"Hermes Agent Data Services – Pool Risk (Slippage & Implied Price)","description":"Pay-per-call on-chain data for agents. USDC on Base over x402 (HTTP 402).","url":"https://x402-agent.majighufron.workers.dev/api/pool-risk?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["pool","base","quote"],"properties":{"base":{"type":"string","description":"Token you would sell."},"pool":{"type":"string","description":"Pool address, or any address holding both tokens."},"chain":{"enum":["base","base-sepolia","robinhood"],"type":"string","description":"Chain to read."},"quote":{"type":"string","description":"Token you would receive."},"notional":{"type":"number","description":"Amount of the base token you would sell."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"pool":"0x...","chain":"base","caveats":["constant-product model","fees ignored"],"reserves":{"base":"12,000","quote":"30,000"},"slippage":{"percent":"0.42","notional":"1000"},"impliedPrice":"2.5"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yACNiLc5x4UCrXQqq3rJo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns on-chain liquidity pool risk metrics including slippage estimate and implied price for a given token swap on Base or Base Sepolia","exampleAgentPrompt":"What's the slippage and implied price if I sell 1000 USDC for ETH on this pool at 0xABC...123 on the Base network?","exampleUseCases":[{"title":"Pre-trade slippage check for DeFi bot","prompt":"Before I execute this swap, check what slippage I'd get selling 5000 USDC on the pool at 0x1234...abcd on Base — I need to know the percent impact and implied price."},{"title":"Liquidity assessment for new token pool","prompt":"Can you look up the reserves and implied price for the WETH/USDC pool at 0xdeadbeef...cafe on Base so I can decide if there's enough liquidity for my strategy?"},{"title":"Automated risk monitoring for agent portfolio","prompt":"Check the current slippage and implied price for selling 2500 of my base token for the quote token on pool 0x999...111 on base-sepolia, so I can decide whether to proceed with the trade."}],"resultDescription":"Returns a JSON object with: pool address, chain, implied price (how many quote tokens per base token), pool reserves for both tokens, estimated slippage as a percentage and notional amount for the given trade size, and caveats noting model assumptions (constant-product AMM, fees not included).","failureModes":["Invalid or non-existent pool address returns an error or empty reserves","Missing required query parameters (pool, base, quote) returns a 400 Bad Request","Unsupported chain value returns a validation error","Payment not fulfilled (HTTP 402) if x402 USDC payment on Base is not completed","Large notional relative to pool size may yield extreme slippage values that are technically valid but practically unusable","Pool not holding both specified tokens may return unexpected results"],"whenToPreferThis":"Use this endpoint when an AI agent needs real-time on-chain slippage and price impact data for a constant-product AMM pool on Base before executing or recommending a token swap. Prefer this over off-chain price feeds when you need pool-specific trade-size-aware slippage estimates rather than spot prices. Ideal for DeFi automation agents that need to gate trades based on acceptable price impact thresholds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:30:27.910Z","isFirstParty":false,"canonicalSlug":"hermes-agent-data-services-pool-risk-slippage-implied-price-27eb3244"}