{"uid":"cap_0xqU_hil2gFp3GQkpe2Sp","slug":"delx-commerce-bid-ask-spread-calculator-bps-aadf40cc","name":"Delx Commerce — Bid-Ask Spread Calculator (BPS)","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/spread-bps?utm_source=zero.xyz","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_KB7vHdNzrb2XvKPfsVdDC","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":"Calculates the bid-ask spread in basis points (BPS) given a bid and ask price, returning mid price and spread metrics.","exampleAgentPrompt":"What's the bid-ask spread in basis points if the bid is 100 and the ask is 100.50?","exampleUseCases":[{"title":"Market tightness check for algo trader","prompt":"My algo is looking at a stock with a bid of 99.75 and an ask of 100.25 — what's the spread in basis points and what's the mid price?"},{"title":"Options desk spread monitoring","prompt":"Can you calculate the spread in bps between a bid of 50.10 and an ask of 50.40 so I can see how liquid this options contract is?"},{"title":"Crypto pair spread comparison","prompt":"I'm comparing liquidity across pairs — the bid is 0.0821 and the ask is 0.0835, what's the spread in basis points?"}],"resultDescription":"Returns a JSON object containing the original bid and ask prices, the calculated mid price, the raw spread (ask minus bid), and the spread expressed in basis points (bps), along with a schema identifier string.","failureModes":["Missing bid or ask field returns validation error","Non-numeric values for bid or ask cause a bad request response","Ask price lower than bid price may return unexpected or negative spread values","Payment failure via x402 protocol returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a fast, verifiable, pay-per-call computation of bid-ask spread in basis points without signing up for a service or maintaining API keys. Ideal for agents operating in trading, DeFi, or financial analytics contexts that need on-demand spread calculations with micropayment settlement in USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:49.522Z","isFirstParty":false,"canonicalSlug":"delx-commerce-bid-ask-spread-calculator-bps-aadf40cc"}