{"uid":"cap_eknzB-K_jtghAgP9QOeSz","slug":"token-pool-quote-relative-difference-target-gap-calculation-214a5c60","name":"Token Pool Quote Relative Difference — Target Gap Calculation","description":"Token pool quote relative difference — Target gap calculation: Target gap calculation 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 target gap calculation report.","url":"https://market.datapackvibe.com/x402/assistant-bx-token-pool-price-gap-target-gap?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"target":{"type":"number","default":100,"maximum":1000000000000000000,"minimum":-1000000000000000000},"values":{"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_7j9YsSCYtrvXYHw4iEBjm","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 price difference between a token pool price and a reference price, then evaluates whether that gap meets a caller-specified target threshold.","exampleAgentPrompt":"Can you calculate the relative price gap between a token pool price of 1.35 and a reference price of 1.20, and tell me if it meets a target gap of 10?","exampleUseCases":[{"title":"Arbitrage threshold monitoring for DeFi trader","prompt":"Check if the pool price of 2.05 is far enough from the reference price of 1.95 to meet my target gap of 5 — I want to know if there's an arbitrage opportunity worth acting on."},{"title":"Automated peg deviation check for stablecoin","prompt":"My stablecoin pool is showing a price of 0.985 against a reference of 1.0 — calculate the relative difference and see if it exceeds a target of 2."},{"title":"Pre-trade sanity check for token swap","prompt":"Before I execute this swap, can you verify whether the pool quote of 3.75 deviates from the reference price of 3.60 enough to hit a target threshold of 4?"}],"resultDescription":"A bounded target gap calculation report containing the computed relative price difference between the pool price and reference price, and a verdict on whether that difference meets the specified target threshold. No live scanning, safety proof, or trade recommendation is included — purely a deterministic numerical result.","failureModes":["Missing or zero pool_price or reference_price causes validation error (values must be positive non-zero numbers)","pool_price or reference_price exceeding the maximum bound (1e16) may be rejected","target value outside allowed range (-1e18 to 1e18) may return error","Malformed request body or missing required nested properties returns schema validation error","Payment failure or insufficient USDC balance prevents call execution"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, cost-effective calculation of the relative price gap between a DeFi token pool price and a reference price against a caller-defined target threshold. It is ideal when you do not need live market scanning, on-chain safety proofs, or trade recommendations — just a clean numerical gap report and threshold verdict on provided price observations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:52:20.459Z","isFirstParty":false,"canonicalSlug":"token-pool-quote-relative-difference-target-gap-calculation-214a5c60"}