{"uid":"cap_er9pg4JUGQ7QkY2dA1EB9","slug":"4sec-crypto-spread-api-619736e2","name":"4SEC Crypto Spread API","description":"Real-time multi-DEX aggregated crypto market data. Pay per request with USDC on Base via x402 protocol.","url":"https://api.foursec.xyz/spread/%7Bpair%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"object","example":{"ask":{"type":"number"},"bid":{"type":"number"},"mid":{"type":"number"},"pair":{"type":"string"},"spread_percent":{"type":"number"}}},"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":"down","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_H5Vav5EGYby7CRqF2eguG","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 real-time bid, ask, mid-price, and spread percentage for a given crypto trading pair aggregated across multiple DEXes","exampleAgentPrompt":"What's the current bid, ask, and spread percentage for ETH/USDC across DEXes right now?","exampleUseCases":[{"title":"Arbitrage opportunity scanner","prompt":"Check the spread on ETH/USDC across DEXes — I want to know if the bid/ask gap is wide enough to be worth trading right now."},{"title":"DeFi portfolio pricing","prompt":"What's the current mid-price and spread for WBTC/USDC? I need it to mark my position to market accurately."},{"title":"Liquidity health monitoring","prompt":"Pull the spread percentage for UNI/USDC from the multi-DEX feed — I'm monitoring it to detect when liquidity gets thin."}],"resultDescription":"A JSON object containing the trading pair identifier, current ask price, bid price, mid price, and spread expressed as a percentage — all aggregated in real time across multiple decentralized exchanges.","failureModes":["Unsupported or malformed pair symbol returns an error or empty response","Pair has insufficient liquidity across DEXes, leading to stale or missing data","Payment failure via x402/USDC on Base causes a 402 Payment Required response","Network or DEX data source outage results in timeout or partial data","Incorrect pair format (e.g. wrong delimiter or casing) may return no results"],"whenToPreferThis":"Choose this endpoint when you need real-time, multi-DEX aggregated spread data for a crypto trading pair and want pay-per-request pricing via USDC on Base — especially useful for arbitrage detection, DeFi portfolio valuation, or liquidity monitoring without a subscription commitment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T15:29:06.857Z","isFirstParty":false}