{"uid":"cap_0m_QgYAbzrlv-KC0waeAq","slug":"trader-rigoblock-com-52f50ddf","name":"Rigoblock 0x Quote with Oracle Price Comparison","description":"0x API v2 quote with on-chain oracle price comparison. Drop-in proxy for 0x /swap/allowance-holder/quote — same query parameters, response includes priceFeedExists, deltaBps, and oracleAmount.","url":"https://trader.rigoblock.com/api/quote/0x","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["chainId","sellToken","buyToken"],"properties":{"taker":{"type":"string","description":"Address that will execute the swap"},"chainId":{"type":"string","description":"Chain ID (e.g. '8453')"},"buyToken":{"type":"string","description":"Token to buy (address or symbol)"},"buyAmount":{"type":"string","description":"Amount to buy in base units. Provide either sellAmount (exact-input) or buyAmount (exact-output)."},"sellToken":{"type":"string","description":"Token to sell (address or symbol)"},"sellAmount":{"type":"string","description":"Amount to sell in base units. Provide either sellAmount (exact-input) or buyAmount (exact-output)."},"slippageBps":{"type":"string","description":"Slippage tolerance in basis points (e.g. '100' for 1%)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"deltaBps":{"type":"integer"},"buyAmount":{"type":"string"},"oracleAmount":{"type":"string"},"priceFeedExists":{"type":"boolean"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"taker":"0x1234567890123456789012345678901234567890","chainId":1,"buyToken":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","sellToken":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","sellAmount":"1000000000"}}},"response":{"zid":"0x3887773b53a704e014024c80","fees":{"gasFee":null,"zeroExFee":{"type":"volume","token":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","amount":"1500000"},"integratorFee":null,"integratorFees":null},"mode":"exact-in","route":{"fills":[{"to":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","from":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","source":"Uniswap_V3","proportionBps":"10000"}],"tokens":[{"symbol":"USDC","address":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"},{"symbol":"WETH","address":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}]},"issues":{"balance":{"token":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","actual":"614170","expected":"1000000000"},"allowance":{"actual":"0","spender":"0x0000000000001ff3684f28c67538d4d072c22734"},"invalidSourcesPassed":[],"simulationIncomplete":false},"buyToken":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","deltaBps":-91,"buyAmount":"598288613990039314","sellToken":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","sellAmount":"1000000000","blockNumber":"25298927","transaction":{"to":"0x0000000000001ff3684f28c67538d4d072c22734","gas":"239892","data":"0x2213bc0b0000000000000000000000007f54f05635d15cde17a49502fedb9d1803a3be8a000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000003b9aca000000000000000000000000007f54f05635d15cde17a49502fedb9d1803a3be8a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000005a41fff991f0000000000000000000000001234567890123456789012345678901234567890000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000008384aebdaefa92400000000000000000000000000000000000000000000000000000000000000a03887773b53a704e014024c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000000000000000000000000000000e4c1fb425e0000000000000000000000007f54f05635d15cde17a49502fedb9d1803a3be8a000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000003b9aca000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006a2b88c800000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012438c9c147000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000044a9059cbb000000000000000000000000ad01c20d5886137e056775af56915de824c8fce50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e48d68a1560000000000000000000000007f54f05635d15cde17a49502fedb9d1803a3be8a0000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000006400000000000000000000000000000001000276a4c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008434ee90ca000000000000000000000000f5c4f3dc02c3fb9279495a8fef7b0741da956157000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000084d8dced6bd82ce00000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","value":"0","gasPrice":"174590626"},"minBuyAmount":"592305727850129700","oracleAmount":"592872539675392800","tokenMetadata":{"buyToken":{"buyTaxBps":"0","sellTaxBps":"0","transferTaxBps":"0"},"sellToken":{"buyTaxBps":"0","sellTaxBps":"0","transferTaxBps":"0"}},"allowanceTarget":"0x0000000000001ff3684f28c67538d4d072c22734","priceFeedExists":true,"totalNetworkFee":"41882894452392","liquidityAvailable":true}},"exampleRequest":{"taker":"0x1234567890123456789012345678901234567890","chainId":1,"buyToken":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","sellToken":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","sellAmount":"1000000000"},"tags":["x402"],"displayCostAmount":"0.002200","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.002200/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_60YwBsOnHdJElj5i_zeF7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0022","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Proxies 0x API v2 swap quotes and enriches the response with on-chain oracle price comparison data including price feed existence, delta in basis points, and oracle amount.","exampleAgentPrompt":"Get me a swap quote from the Rigoblock 0x endpoint for trading 1000 USDC to ETH on Base, and tell me how far the DEX price is from the on-chain oracle price in basis points.","exampleUseCases":null,"resultDescription":"Returns a standard 0x API v2 swap quote (same structure as /swap/allowance-holder/quote) plus three additional fields: priceFeedExists (boolean indicating whether an on-chain oracle feed exists for the pair), deltaBps (price divergence between DEX quote and oracle in basis points), and oracleAmount (the oracle-derived expected output amount).","failureModes":["Missing or invalid token addresses return a 400 error","Unsupported chain returns an error or empty quote","No on-chain price feed exists for the pair — priceFeedExists returns false and deltaBps/oracleAmount may be null","0x API upstream failure causes a 502 or timeout","Payment not included or insufficient results in 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a standard 0x swap quote but also want built-in oracle price validation — ideal for DeFi agents that must enforce price divergence limits (like Rigoblock's Swap Shield) before executing a trade. Prefer over raw 0x API when you want to detect MEV manipulation or slippage anomalies by comparing DEX price to a trusted on-chain oracle.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:34:23.376Z","isFirstParty":false}