{"uid":"cap_R-iMIh9-ZeL5uUPUK5Ty9","slug":"token-pool-quote-relative-difference-before-and-after-comparison-206b6b90","name":"Token Pool Quote Relative Difference — Before and After Comparison","description":"Token pool quote relative difference — Before and after comparison: Before and after comparison for Token pool quote relative difference. 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 before and after comparison report.","url":"https://market.datapackvibe.com/x402/assistant-bx-token-pool-price-gap-compare?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":"object","default":{"pool_price":1.2100000000000002,"reference_price":1.1},"required":["pool_price","reference_price"],"properties":{"pool_price":{"type":"number","default":1.1,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0},"reference_price":{"type":"number","default":1,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0}},"additionalProperties":false},"before":{"type":"object","default":{"pool_price":1.1,"reference_price":1},"required":["pool_price","reference_price"],"properties":{"pool_price":{"type":"number","default":1.1,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0},"reference_price":{"type":"number","default":1,"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_EFmHzZEDgg_nZz3zkrgJQ","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 the relative difference (gap) between a token pool price and a reference price, comparing a 'before' snapshot and an 'after' snapshot to show how the price gap changed.","exampleAgentPrompt":"Can you run a before-and-after price gap comparison for a token pool? Before the trade the pool price was 1.10 and the reference price was 1.00; after the trade the pool price is 1.21 and the reference price is 1.10. I want to see how the relative price difference changed between those two states.","exampleUseCases":[{"title":"Post-swap slippage audit","prompt":"I just executed a swap and want to check how the pool price gap shifted. Before the swap, pool price was 2.50 and reference was 2.45; after the swap, pool price is 2.65 and reference is 2.45. Can you compare the relative price difference before and after?"},{"title":"Arbitrage opportunity sizing","prompt":"Before the arbitrageur acted, the pool price was 100.00 and the reference was 98.00. After they closed the gap, pool price dropped to 98.50 and reference stayed at 98.00. Show me the before-and-after relative price difference so I can see how much of the gap was captured."},{"title":"Liquidity provision impact check","prompt":"I added liquidity to a pool and want to quantify the price impact. Before I added, pool price was 0.55 and reference was 0.50; after adding, pool price is 0.52 and reference is 0.50. Calculate the relative price gap comparison for those two states."}],"resultDescription":"A bounded report containing the computed relative price difference (pool price vs reference price) for both the 'before' and 'after' input observations, along with a comparison showing how the gap changed between the two states. The result is deterministic and based solely on the supplied numeric inputs — it is not a live market scan or a trade recommendation.","failureModes":["Missing required fields (pool_price or reference_price in either before or after object) returns a validation error","Zero or negative values for pool_price or reference_price are rejected (exclusiveMinimum: 0)","Values exceeding the maximum bound (1e16) are rejected","Malformed JSON body returns a 400-level error","Payment failure or insufficient USDC balance prevents the call from completing"],"whenToPreferThis":"Use this endpoint when you need a deterministic, cheap ($0.01 USDC) before-and-after calculation of the relative price gap between a token pool quote and a reference price. It is ideal for post-trade analysis, slippage audits, or tracking how liquidity events affect pool pricing — without needing a live market feed or a full trading system. Prefer it over a single-snapshot endpoint when you specifically need to compare two distinct states (before and after).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:44:51.807Z","isFirstParty":false,"canonicalSlug":"token-pool-quote-relative-difference-before-and-after-comparison-206b6b90"}