{"uid":"cap_fyQRVPYHyTE60FmmDiqCg","slug":"agentpay-pre-trade-check-c8b3319c","name":"AgentPay Pre-Trade Check","description":"Pre-trade risk check for AI agents trading crypto: live orderbook slippage at YOUR size, side-aware funding carry, open-interest crowding, and optional contract security — composed into a single ok/caution/avoid verdict with per-factor reasons and raw data embedded. Answers 'is this trade sane?' before trading, not after. Replaces four API integrations plus the judgment layer.","url":"https://agentpay.tools/tools/pre_trade_check/call","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"parameters":{"type":"object","required":["symbol"],"properties":{"side":{"enum":["long","short"],"type":"string","description":"Trade direction (funding carry is side-aware; default long)"},"symbol":{"type":"string","description":"Asset to check, e.g. 'ETH', 'BTC', 'SOL'"},"size_usd":{"type":"number","description":"Intended position size in USD (drives the slippage check; default 10000)"},"token_address":{"type":"string","description":"Optional ERC-20 address — adds a GoPlus security scan"}}}}},"responseSchema":{"side":"long","symbol":"ETH","factors":{"carry":{"level":"caution","reason":"longs paying elevated funding","annualized_pct":67.9,"median_funding_pct":0.062},"crowding":{"level":"ok","reason":"positioning unremarkable","long_short_ratio":1.4,"oi_change_24h_pct":3.2},"security":{"level":"skipped","reason":"no token_address provided"},"liquidity":{"level":"ok","reason":"fills within 0.011% of best ask","bucket_usd":50000,"slippage_pct":0.011}},"verdict":"caution","size_usd":50000},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_p7LzNR4QverHVmhkcWQlL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a multi-factor pre-trade risk check on a crypto asset covering funding carry, crowding, liquidity, and optional token security before entering a position","exampleAgentPrompt":"Before I open a $50,000 long ETH position, run a pre-trade check — I want to see the funding carry, crowding levels, and slippage estimate.","exampleUseCases":null,"resultDescription":"Returns a structured verdict (ok, caution, or warning) plus four factor assessments: carry (annualized funding rate, risk level), crowding (long/short ratio, 24h OI change), liquidity (estimated slippage % for the intended size), and an optional GoPlus security scan if a token address was provided.","failureModes":["Unknown or unsupported symbol returns an error or empty factors","Invalid ERC-20 address causes security scan to fail or be skipped","Funding rate data temporarily unavailable causes carry factor to be skipped","Very large position sizes may lack liquidity data for accurate slippage","Payment not received (x402) results in 402 response and no data returned"],"whenToPreferThis":"Use this endpoint when an AI agent needs to autonomously evaluate trade risk before executing a crypto position — specifically when you want a combined funding carry + crowding + liquidity + optional token security assessment in a single call rather than querying multiple data sources manually. Especially valuable for agents managing real capital that need a quick go/no-go signal before entering perpetual or spot positions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:33:06.153Z","isFirstParty":false}