{"uid":"cap_1tCbyN8Wml1w73TbWttDT","slug":"rigoblock-uniswap-quote-with-oracle-price-comparison-9743cd3a","name":"Rigoblock Uniswap Quote with Oracle Price Comparison","description":"Uniswap Trading API quote with on-chain oracle price comparison. Drop-in proxy for Uniswap /quote — same request body, response includes priceFeedExists, deltaBps, and oracleAmount.","url":"https://trader.rigoblock.com/api/quote/uniswap","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"type":{"enum":["EXACT_INPUT","EXACT_OUTPUT"],"type":"string","description":"Quote type"},"amount":{"type":"string","description":"Amount in base units (e.g. '1000000000000000000')"},"swapper":{"type":"string","description":"Swapper address (required by Uniswap Trading API)"},"tokenIn":{"type":"string","description":"Token to sell (address or symbol)"},"tokenOut":{"type":"string","description":"Token to buy (address or symbol)"},"tokenInChainId":{"type":"integer","description":"Chain ID for tokenIn (e.g. 8453)"},"tokenOutChainId":{"type":"integer","description":"Chain ID for tokenOut (e.g. 8453)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0021","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.0021/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0021","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0021","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Xwlyp10o-s4O8T7ASGDCT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0021","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Acts as a drop-in proxy for Uniswap's /quote endpoint, returning the standard Uniswap quote enriched with on-chain oracle price data including priceFeedExists, deltaBps, and oracleAmount fields.","exampleAgentPrompt":"Get me a Uniswap quote to sell exactly 1 ETH (1000000000000000000 base units) for USDC on Base (chain 8453), using swapper address 0xYourAddress, and tell me how far the quoted price is from the on-chain oracle price in basis points.","exampleUseCases":[{"title":"Pre-swap oracle sanity check","prompt":"Before I execute a swap of 500 USDC for WETH on Base (chain 8453) using my wallet 0xABC123, get me a Uniswap EXACT_INPUT quote and tell me whether an oracle price feed exists and how many basis points the quote deviates from it."},{"title":"Arbitrage deviation monitoring","prompt":"I want to check the Uniswap quote for buying 1000000000 USDC worth of ARB on Arbitrum (chain 42161) from my address 0xDEF456 — give me the oracle price, the quoted price, and the delta in basis points so I can see if there's an exploitable spread."},{"title":"Smart vault swap price validation","prompt":"My Rigoblock smart vault at 0xVAULT789 wants to swap 2 WETH for USDC on Base (chain 8453) — get an EXACT_INPUT Uniswap quote and confirm whether there's a live oracle feed and how close the quote is to the oracle price before I proceed."}],"resultDescription":"Returns the full Uniswap Trading API quote response body augmented with three additional fields: priceFeedExists (boolean indicating if an on-chain oracle feed exists for the pair), deltaBps (integer basis points difference between the Uniswap quote price and the oracle price), and oracleAmount (the oracle's reference price in base units for the given token pair).","failureModes":["Invalid or unsupported token address returns an error from the underlying Uniswap API","Chain ID not supported by Uniswap Trading API returns a 400 or 404 error","Missing required swapper address causes Uniswap API rejection","No oracle price feed available results in priceFeedExists=false with null oracleAmount and deltaBps","Network timeout from Uniswap upstream or oracle data source","Payment of 0.0021 USDC not fulfilled via x402 protocol returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a standard Uniswap swap quote but also want to validate the quoted price against an on-chain oracle — ideal for DeFi agents managing Rigoblock smart vaults, arbitrage bots checking for price deviations, or any workflow that needs to verify Uniswap pricing integrity before executing a swap. Prefer it over a raw Uniswap API call when oracle price comparison and the deltaBps signal matter for your decision logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:38:06.638Z","isFirstParty":false}