# Rigoblock 0x Quote with Oracle Price Comparison

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

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.

## Facts

- Endpoint: GET https://trader.rigoblock.com/api/quote/0x
- Price: $0.002200/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trader-rigoblock-com-52f50ddf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0m_QgYAbzrlv-KC0waeAq

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 trader-rigoblock-com-52f50ddf
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "taker": "0x1234567890123456789012345678901234567890",
   "chainId": 1,
   "buyToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
   "sellToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
   "sellAmount": "1000000000"
  }
 }
}
```

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trader-rigoblock-com-52f50ddf/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)
