{"partialResults":false,"resources":[{"accepts":[{"amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"One-call pre-trade sanity check: 'I want to long $X of SYMBOL — is now sane?' Combines live orderbook slippage at YOUR size, cross-exchange funding (carry cost), open-interest crowding, and contract security (GoPlus) into a single ok/caution/avoid verdict with a per-factor breakdown. Major ERC-20 addresses (LINK, UNI, ARB, OP, AAVE, PEPE, SHIB) resolve automatically; native assets (BTC, ETH, SOL, ...) report security n/a; an unrecognized token without token_address reads 'unknown' and caps the verdict at caution — an unscreened contract can never read 'ok'. Replaces four API integrations and the judgment layer on top of them. Raw component data embedded so you can apply your own thresholds. Stacks tokens (STX, sBTC, USDCx, stSTX, ZEST, LEO, USDh, aeUSDC, stBTC) add the Bitflow DEX venue: price impact at YOUR size from a live route quote, the pools and bins the swap crosses, and their TVL; STX and sBTC keep their CEX perp legs, DEX-only tokens report funding/OI n/a and contract risk unscreened (no GoPlus coverage on Stacks).","extra":{"assetTransferMethod":"eip3009","name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"mimeType":"application/json","network":"eip155:8453","outputSchema":{"errors":[{"body":{"error":"\u003csummary\u003e","reason":"\u003cmachine-readable reason\u003e"},"retry":"Re-request the challenge and pay again","status":402,"when":"No payment attached (this challenge), or the attached payment failed verification: wrong amount/recipient, memo mismatch, expired, or already used (replay)"},{"body":{"detail":[{"loc":["body"],"msg":"\u003cwhat is wrong\u003e","type":"\u003cerror type\u003e"}]},"retry":"Fix the body and retry with a fresh payment","status":422,"when":"Request body present but malformed (invalid JSON or wrong field types) WITH a payment header attached — checked BEFORE settlement, so the payment is never consumed. An unpaid malformed request gets the 402, not a 422"},{"body":{"detail":"Tool '\u003cname\u003e' not found"},"status":404,"when":"Unknown tool name"},{"body":{"error":"Rate limit exceeded"},"retry":"Back off and retry after a minute","status":429,"when":"Rate limited (per-IP and per-wallet limits)"},{"body":{"error":"Tool execution failed","payment_status":"refund_pending","tool":"\u003cname\u003e"},"status":500,"when":"Payment settled on-chain but tool execution failed — the payment is marked refund_pending automatically; you are not charged for a failed call"},{"body":{"detail":"\u003cwhat is unavailable\u003e"},"retry":"Retry shortly","status":503,"when":"Tool temporarily unavailable, or the gateway cannot persist the challenge (fail-closed)"}],"input":{"properties":{"side":{"default":"long","description":"Trade direction (funding carry is side-aware)","enum":["long","short"],"type":"string"},"size_usd":{"default":10000,"description":"Intended position size in USD (drives the slippage check)","type":"number"},"symbol":{"description":"Asset to check, e.g. 'ETH', 'BTC', 'SOL'","type":"string"},"token_address":{"description":"Optional ERC-20 contract address for the GoPlus security scan. Auto-resolved for major tokens; required for a full verdict on tokens the resolver doesn't know (otherwise security reads 'unknown' and caps the verdict at caution)","type":"string"},"venue":{"default":"auto","description":"Where the trade executes. auto (default): CEX books for majors, Bitflow for Stacks tokens, both for STX/sBTC. bitflow: price the swap on Bitflow only; cex: skip Bitflow","enum":["auto","cex","bitflow"],"type":"string"}},"required":["symbol"],"type":"object"},"output":{"result":{"factors":{"carry":{"annualized_pct":67.9,"level":"caution","median_funding_pct":0.062,"reason":"longs paying elevated funding"},"crowding":{"level":"ok","long_short_ratio":1.4,"oi_change_24h_pct":3.2,"reason":"positioning unremarkable"},"liquidity":{"bucket_usd":50000,"level":"ok","reason":"fills within 0.011% of best ask","slippage_pct":0.011},"security":{"level":"n/a","reason":"ETH is a native chain asset — no token contract to screen"}},"not_checked":["security"],"side":"long","size_usd":50000,"symbol":"ETH","venue":"cex","verdict":"caution"},"tool":"pre_trade_check"}},"payTo":"0xE8B25A72dD6aeF69515452a61AD231C7DF2843b7","resource":"https://agentpay.tools/tools/pre_trade_check/call","scheme":"exact"},{"amount":"17","asset":"SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token","extra":{"amount_usdc":"0.01","btc_usd_rate":"59872","payment_id":"503e299d-1662-4f71-9be7-d87ed327a9c7","sponsoredAccepted":true,"tokenType":"sBTC"},"maxTimeoutSeconds":119,"network":"stacks:1","payTo":"SP23XKWSEQ9D4CVPT0H39N2TYVEE5AJECPKW6CZ3C","scheme":"exact"},{"amount":"38010","asset":"STX","extra":{"amount_usdc":"0.01","payment_id":"503e299d-1662-4f71-9be7-d87ed327a9c7","sponsoredAccepted":true,"stx_usd_rate":"0.263094","tokenType":"STX"},"maxTimeoutSeconds":119,"network":"stacks:1","payTo":"SP23XKWSEQ9D4CVPT0H39N2TYVEE5AJECPKW6CZ3C","scheme":"exact"},{"amount":"100000","asset":"CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75","description":"AgentPay pre_trade_check","extra":{"areFeesSponsored":true},"maxAmountRequired":"100000","maxTimeoutSeconds":300,"mimeType":"application/json","network":"stellar:pubnet","payTo":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","resource":"https://agentpay.tools/tools/pre_trade_check/call","scheme":"exact"}],"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.","extensions":{"bazaar":{"description":"Pre-trade risk check for AI agents trading crypto: 'I want to long $X of SYMBOL — is now sane?' Live slippage at your size + side-aware funding carry + OI crowding + optional security scan → one ok/caution/avoid verdict with per-factor breakdown and raw components embedded.","info":{"errors":[{"body":{"error":"\u003csummary\u003e","reason":"\u003cmachine-readable reason\u003e"},"retry":"Re-request the challenge and pay again","status":402,"when":"No payment attached (this challenge), or the attached payment failed verification: wrong amount/recipient, memo mismatch, expired, or already used (replay)"},{"body":{"detail":[{"loc":["body"],"msg":"\u003cwhat is wrong\u003e","type":"\u003cerror type\u003e"}]},"retry":"Fix the body and retry with a fresh payment","status":422,"when":"Request body present but malformed (invalid JSON or wrong field types) WITH a payment header attached — checked BEFORE settlement, so the payment is never consumed. An unpaid malformed request gets the 402, not a 422"},{"body":{"detail":"Tool '\u003cname\u003e' not found"},"status":404,"when":"Unknown tool name"},{"body":{"error":"Rate limit exceeded"},"retry":"Back off and retry after a minute","status":429,"when":"Rate limited (per-IP and per-wallet limits)"},{"body":{"error":"Tool execution failed","payment_status":"refund_pending","tool":"\u003cname\u003e"},"status":500,"when":"Payment settled on-chain but tool execution failed — the payment is marked refund_pending automatically; you are not charged for a failed call"},{"body":{"detail":"\u003cwhat is unavailable\u003e"},"retry":"Retry shortly","status":503,"when":"Tool temporarily unavailable, or the gateway cannot persist the challenge (fail-closed)"}],"input":{"body":{"parameters":{"side":"long","size_usd":50000,"symbol":"ETH"}},"bodyType":"json","method":"POST","type":"http"},"output":{"example":{"result":{"factors":{"carry":{"level":"ok","median_funding_pct":0.01,"reason":"carry unremarkable"},"crowding":{"level":"ok","long_short_ratio":1.2,"reason":"positioning unremarkable"},"liquidity":{"level":"ok","reason":"fills within 0.001% of best price","slippage_pct":0.001},"security":{"level":"skipped","reason":"no token_address provided"}},"side":"long","size_usd":50000,"symbol":"ETH","verdict":"ok"},"tool":"pre_trade_check"},"type":"json"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"parameters":{"properties":{"side":{"description":"Trade direction (funding carry is side-aware; default long)","enum":["long","short"],"type":"string"},"size_usd":{"description":"Intended position size in USD (drives the slippage check; default 10000)","type":"number"},"symbol":{"description":"Asset to check, e.g. 'ETH', 'BTC', 'SOL'","type":"string"},"token_address":{"description":"Optional ERC-20 address — adds a GoPlus security scan","type":"string"}},"required":["symbol"],"type":"object"}},"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","bodyType","body","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"}}},"lastUpdated":"2026-11-28T03:30:58.2Z","quality":{"l30DaysTotalCalls":13,"l30DaysUniquePayers":4,"lastCalledAt":"2026-11-28T03:30:57.874Z"},"resource":"https://agentpay.tools/tools/pre_trade_check/call","serviceName":"AgentPay Pre-Trade Risk Check","tags":["trading","trade","risk","slippage","pre-trade-check"],"type":"http","x402Version":2}],"searchMethod":"text","x402Version":2,"meta":{"searchToken":"yogbmg66qkpgaaa"}}
