# CanaryGuard Token History & Spread

> CanaryGuard Token History & Spread is a paid API for AI agents from canaryguard-402.onrender.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-17).

Returns multi-timeframe OHLCV price history and Chainlink vs. Uniswap V3/Aerodrome bid-ask spread in basis points plus realized volatility skew for Base tokens

## Facts

- Endpoint: GET https://canaryguard-402.onrender.com/v1/tokens/history-and-spread?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/canaryguard-token-history-spread-22f9e80c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TjwY_xwC6j0Cc64MjFU4L

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 canaryguard-token-history-spread-22f9e80c
```

Example prompt: Pull the 7-day OHLCV price history for ETH quoted in USDC on Base and show me the Chainlink vs Uniswap V3 bid-ask spread in basis points along with the realized volatility skew.

## When to prefer this

Choose this endpoint when you need cross-source price intelligence on Base — specifically when you want both historical OHLCV context and a real-time oracle vs. DEX spread comparison in a single call. It is ideal for DeFi agents performing pre-trade risk checks, volatility analysis, or arbitrage detection on Base tokens without needing to query Chainlink, Uniswap V3, and Aerodrome separately.

## Known failure modes

- Unknown token symbol or invalid Base contract address returns an error or empty data
- Unsupported window parameter may default to 24h or return a validation error
- Token with insufficient liquidity may return null or zero spread values
- Network or RPC latency on Base may cause timeout or stale data
- Payment failure via x402 protocol results in 402 response and no data returned

## How this service works

Returns multi-timeframe Base token price history (1h, 24h, 7d, 30d OHLCV summary), Chainlink vs. Uniswap V3/Aerodrome bid-ask spread in bps, and realized volatility skew.

## Output

Returns a structured JSON response containing OHLCV candle summaries across 1h, 24h, 7d, and 30d windows, the bid-ask spread in basis points between Chainlink oracle and Uniswap V3/Aerodrome DEX prices, and a realized volatility skew metric for the requested Base token/quote pair.

## 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",
     "properties": {
      "quote": {
       "type": "string",
       "default": "USDC"
      },
      "token": {
       "type": "string",
       "default": "ETH",
       "description": "Token symbol or Base contract address"
      },
      "window": {
       "type": "string",
       "default": "24h"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/canaryguard-token-history-spread-22f9e80c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from canaryguard-402.onrender.com](https://www.zero.xyz/host/canaryguard-402.onrender.com/llms.txt)
