{"uid":"cap_DKHt5JhR7BxFebuH6qcVB","slug":"token-bid-ask-spread-adjacent-period-changes-36080caf","name":"Token Bid-Ask Spread — Adjacent Period Changes","description":"Token bid-ask spread — Adjacent period changes: Adjacent period changes 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 adjacent period changes report.","url":"https://market.datapackvibe.com/x402/assistant-bx-token-quote-spread-period-changes?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},{"ask":1.02,"bid":0.98},{"ask":1.122,"bid":1.078}],"maxItems":200,"minItems":2}}},"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_kkz3TsSp6HX95SDumBeJm","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":"Computes period-over-period changes in bid-ask spread for a supplied sequence of token quote observations","exampleAgentPrompt":"Can you calculate the adjacent period changes in bid-ask spread for these token quotes: bid 0.98 ask 1.02, bid 1.078 ask 1.122, bid 0.98 ask 1.02, bid 1.078 ask 1.122?","exampleUseCases":[{"title":"Liquidity shift detection for DeFi token","prompt":"I have a series of bid and ask prices for a DeFi token sampled every hour — can you tell me how the bid-ask spread changed between each consecutive period? Here are the observations: bid 0.98 ask 1.02, bid 1.05 ask 1.09, bid 0.97 ask 1.03, bid 1.10 ask 1.15."},{"title":"Spread widening alert for trading bot","prompt":"My trading bot recorded these token quote snapshots and I need to know how the spread shifted from one period to the next — bid 2.10 ask 2.20, bid 2.05 ask 2.18, bid 2.30 ask 2.50, bid 2.25 ask 2.40. Can you compute the adjacent period spread changes?"},{"title":"Pre-trade spread analysis for market maker","prompt":"Before I update my market-making quotes, I want to see the period-to-period changes in bid-ask spread from these recent observations: bid 100.50 ask 101.00, bid 100.40 ask 101.10, bid 100.60 ask 100.90, bid 100.30 ask 101.20. Can you run the adjacent period changes calculation?"}],"resultDescription":"Returns a structured report of bid-ask spread changes between each pair of adjacent observation periods, computed deterministically from the supplied bid/ask price rows. The output includes spread deltas (difference in spread from one period to the next) for each consecutive pair of observations, up to 200 rows. This is a deterministic calculation — not a live market scan, safety proof, or trade recommendation.","failureModes":["Fewer than 2 rows supplied — minimum of 2 bid/ask pairs required","Ask or bid price is zero or negative — both must be strictly positive (exclusiveMinimum: 0)","Ask or bid price exceeds maximum allowed value (10^16)","Malformed row objects missing required 'ask' or 'bid' fields","More than 200 rows supplied — exceeds maxItems limit","Payment failure or insufficient USDC balance for x402 protocol"],"whenToPreferThis":"Choose this endpoint when you have a time-ordered sequence of token bid and ask price observations and need a deterministic, period-by-period spread change report without running a live market scan. It is ideal for post-hoc analysis, backtesting pipelines, market-making calibration, or spread monitoring workflows where you supply your own quote data. Prefer alternatives if you need live market data feeds, trade recommendations, or safety signals.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T18:46:48.004Z","isFirstParty":false,"canonicalSlug":"token-bid-ask-spread-adjacent-period-changes-36080caf"}