# Rigoblock Uniswap Quote with Oracle Price Comparison

> Rigoblock Uniswap Quote with Oracle Price Comparison is a paid API for AI agents from trader.rigoblock.com, paid per call via x402, $0.0021/call, status unknown (last checked 2026-09-14).

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.

## Facts

- Endpoint: POST https://trader.rigoblock.com/api/quote/uniswap
- Price: $0.0021/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rigoblock-uniswap-quote-with-oracle-price-comparison-9743cd3a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1tCbyN8Wml1w73TbWttDT

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability rigoblock-uniswap-quote-with-oracle-price-comparison-9743cd3a -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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).

## Request schema (JSON Schema)

```json
{
 "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)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rigoblock-uniswap-quote-with-oracle-price-comparison-9743cd3a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from trader.rigoblock.com](https://www.zero.xyz/host/trader.rigoblock.com/llms.txt)
