{"uid":"cap_HpTpGhUufIU5uym1T8mZW","slug":"delx-spread-bps-894af32e","name":"Delx Spread Bps","description":"Compute mid price and bid-ask spread in basis points — call when computing mid and bid-ask spread in basis points. Use on caller-supplied ticks/returns when agents need signal prep without a licensed live market feed (ottoai-class demand, first-party transform). Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or med…","url":"https://api.delx.ai/api/v1/x402/spread-bps","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ask":{"type":"number","description":"Ask price for spread calculation."},"bid":{"type":"number","description":"Bid price for spread calculation."}}},"responseSchema":{"type":"json","example":{"ask":100.5,"bid":100,"mid":100.25,"schema":"delx/util-spread-bps/v1","spread":0.5,"spread_bps":49.8753}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8Ct1y-XnJzeFayWhfEpGX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the mid price and bid-ask spread in basis points from caller-supplied bid and ask prices","exampleAgentPrompt":"Calculate the mid price and bid-ask spread in basis points for a bid of 100.25 and an ask of 100.75.","exampleUseCases":[{"title":"Spread monitoring for algo trading signals","prompt":"I have a bid of 1.0820 and an ask of 1.0835 — what is the mid price and how wide is the spread in basis points?"},{"title":"Pre-trade signal prep from tick data","prompt":"I'm preparing tick data for a model. Bid is 49850.00 and ask is 49862.50 — can you compute the mid price and spread in bps?"},{"title":"Portfolio liquidity cost estimation","prompt":"For my portfolio rebalancing analysis, I need the bid-ask spread in basis points — the bid is 203.10 and the ask is 203.45."}],"resultDescription":"A deterministic JSON object containing the computed mid price (average of bid and ask) and the bid-ask spread expressed in basis points, calculated from the provided bid and ask prices.","failureModes":["Missing bid or ask field returns a validation error","Non-numeric bid or ask values cause a parse or type error","Ask price lower than bid price may produce a negative or nonsensical spread","Payment failure via x402 prevents execution and returns a 402 response"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, stateless, deterministic computation of mid price and bid-ask spread in basis points from your own tick or quote data, without requiring a licensed live market feed. Ideal for signal preprocessing pipelines, backtesting, or any scenario where you supply the bid/ask values yourself and want a cheap, fast, reproducible result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:59:04.446Z","isFirstParty":false}