{"uid":"cap_RB8lANIZIW3tc6AWJtN3u","slug":"absolute-spread-3d9b19f6","name":"Absolute Spread","description":"Absolute bid–ask spread for liquidity snapshots. Call when venue quality filters that use raw spread width. Returns absolute spread as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/spread-abs","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ask":{"type":"number","description":"Input field: ask."},"bid":{"type":"number","description":"Input field: bid."}}},"responseSchema":{"type":"json","example":{"ask":100.5,"bid":99.5,"schema":"delx/util-spread-abs/v1","spread":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cqGKJq4yFswlFWFQO-7Dj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the absolute bid–ask spread (ask minus bid) from caller-supplied bid and ask prices using local deterministic math.","exampleAgentPrompt":"Calculate the absolute bid-ask spread for me — the bid is 100.45 and the ask is 100.52.","exampleUseCases":[{"title":"Venue quality filter for DEX routing","prompt":"I'm comparing liquidity across several trading venues. For each one I have a bid and ask — can you compute the absolute spread so I can filter out venues with spreads wider than 0.05?"},{"title":"Slippage pre-check before order entry","prompt":"Before I submit this limit order, I want to know the absolute bid-ask spread — the current best bid is 1842.30 and best ask is 1842.75. Is the spread acceptable?"},{"title":"Liquidity snapshot in market monitoring","prompt":"I'm building a liquidity dashboard. The bid on this asset is 0.9987 and the ask is 1.0003 — give me the absolute spread so I can log it for the snapshot."}],"resultDescription":"Returns a deterministic JSON object containing the absolute spread value computed as ask minus bid, suitable for downstream venue quality filters or liquidity metrics.","failureModes":["Missing bid or ask field returns a validation error","Non-numeric values for bid or ask cause a parse or type error","Ask less than bid (inverted market) may return a negative spread — caller must handle this case","Payment failure via x402 prevents call execution"],"whenToPreferThis":"Use this endpoint when you need the raw absolute spread width in price units (not basis points or percent) for venue quality filtering, liquidity snapshots, or slippage checks, and want a stateless, deterministic computation with no external market feed dependency or API key.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:45:50.088Z","isFirstParty":false}