{"uid":"cap_KwtLayCKAgj__b7I55g4F","slug":"token-bid-ask-spread-batch-calculation-7b3070f3","name":"Token Bid-Ask Spread — Batch Calculation","description":"Token bid-ask spread — Batch calculation: Batch 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 batch calculation report.","url":"https://market.datapackvibe.com/x402/assistant-bx-token-quote-spread-batch?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","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},"default":[{"ask":1.02,"bid":0.98},{"ask":1.122,"bid":1.078}],"maxItems":200,"minItems":1}}},"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_uUS7dFcYN2RAqVdRwmzu4","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 bid-ask spread metrics for a batch of up to 200 token price observations, returning deterministic spread results or threshold-based verdicts.","exampleAgentPrompt":"Calculate the bid-ask spread for these token price observations in batch: first token bid 0.98 ask 1.02, second token bid 1.078 ask 1.122 — give me the spread metrics for all of them.","exampleUseCases":[{"title":"Token liquidity screening across portfolio","prompt":"I have a list of 20 token pairs with their current bid and ask prices — can you batch calculate the bid-ask spread for all of them so I can see which ones have the tightest and widest spreads?"},{"title":"Spread threshold check before trade execution","prompt":"Before I execute trades, run a batch spread calculation on these token quotes: bid 0.995 ask 1.005, bid 2.10 ask 2.35, bid 50.20 ask 51.80 — I want to know which ones exceed a wide spread."},{"title":"Market quality comparison across DEX snapshots","prompt":"I captured bid and ask prices from three different DEX snapshots for the same tokens — can you batch calculate the bid-ask spreads so I can compare market quality across the snapshots?"}],"resultDescription":"A bounded batch calculation report containing bid-ask spread values and/or threshold verdict results for each supplied row of bid/ask price observations, covering up to 200 token price pairs per call.","failureModes":["Empty or missing rows array returns validation error","Rows exceeding 200 items rejected with max-items error","Bid or ask values of zero or negative rejected due to exclusiveMinimum constraint","Malformed numeric values cause schema validation failure","Ask price lower than bid price may produce negative spread result but is not blocked by schema"],"whenToPreferThis":"Use this endpoint when you need to compute bid-ask spread metrics for multiple token price observations in a single call rather than making individual requests. It is ideal for batch analytics workflows, portfolio-wide spread screening, or pre-trade liquidity checks where deterministic computation on supplied data is required rather than a live market scan or trading recommendation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:09:30.159Z","isFirstParty":false,"canonicalSlug":"token-bid-ask-spread-batch-calculation-7b3070f3"}