{"uid":"cap_RVRzC9V063MpQEvm4Pqxp","slug":"token-bid-ask-spread-single-calculation-1818a9d8","name":"Token Bid-Ask Spread Single Calculation","description":"Token bid-ask spread — Single calculation: Single calculation for Token bid-ask spread. Supplied token observations only. Deterministic calculation or caller-threshold verdict, not a live scan, safety proof or trade recommendation. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded single calculation report.","url":"https://market.datapackvibe.com/x402/assistant-bx-token-quote-spread-calculate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"object","default":{"ask":1.02,"bid":0.98},"required":["ask","bid"],"properties":{"ask":{"type":"number","default":1.02,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0},"bid":{"type":"number","default":0.98,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_z_bY_4740vu8DrkrY0_XJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 for a token given a single pair of bid and ask price observations.","exampleAgentPrompt":"Calculate the bid-ask spread for a token where the ask price is 1.05 and the bid price is 0.97.","exampleUseCases":[{"title":"Quick spread check before trading","prompt":"I'm looking at a token with a bid of 0.98 and an ask of 1.04 — can you calculate the bid-ask spread for me so I know how wide it is?"},{"title":"Comparing spread across token snapshots","prompt":"I recorded a token quote where the bid was 250.50 and the ask was 251.75. Can you run the bid-ask spread calculation on those numbers?"},{"title":"Threshold verdict for liquidity screening","prompt":"Given a token bid of 0.995 and ask of 1.005, compute the spread so I can check whether it's within acceptable bounds for my liquidity filter."}],"resultDescription":"Returns a bounded single-calculation report of the token's bid-ask spread, derived deterministically from the supplied ask and bid prices. The report reflects the spread value and may include a threshold-based verdict if configured, but is not a live market scan or trade recommendation.","failureModes":["Ask or bid value missing — request rejected due to required field validation","Ask or bid value is zero or negative — rejected by exclusiveMinimum constraint","Ask value is below bid value — may return degenerate or inverted spread result","Values exceed maximum bound (1e16) — rejected by schema validation","Malformed JSON body — HTTP 400 or parsing error returned"],"whenToPreferThis":"Choose this endpoint when you have a single pair of bid and ask prices for a token and need a fast, deterministic spread calculation without live market access. Ideal for post-hoc analysis of recorded quotes, liquidity screening pipelines, or validation workflows where you supply observations rather than requesting a live scan. Not suitable when you need real-time market data, batch processing of many pairs, or a full safety or trade recommendation report.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:57.531Z","isFirstParty":false,"canonicalSlug":"token-bid-ask-spread-single-calculation-1818a9d8"}