Skip to main content
Glama

Tanod Chain

chainpeek: ETH and BTC OHLCV price candles from on-chain DEX swaps

get_dex_price_candles
Read-onlyIdempotent

chainpeek: OHLCV candles for ETH (WETH/USDC) or BTC (cbBTC/USDC) in USDC, computed from public Uniswap v3 swaps on Base: per candle t (UTC start, unix seconds), open, high, low, close, volume_base, volume_quote and swaps, at 5m, 15m, 1h, 4h or 1d, with the pool address, fee tier, the block the data is current to and a source note. Input: pair (WETH/USDC or cbBTC/USDC), optional interval (5m, 15m, 1h, 4h or 1d; default 1h) and limit (1-200 candles, default 48; lookback caps: 5m and 15m 200, 1h 168, 4h 42, 1d 30). Computed by Tanod from the public Swap events of one allow-listed Uniswap v3 pool on Base (WETH/USDC 0.3%, cbBTC/USDC 0.05%; source: "Uniswap v3 swaps on Base (on-chain)"), not an exchange feed: DEX prices can differ from centralized exchanges (fees, arbitrage lag, MEV trades, stablecoin depegs). Bucketed by block timestamp in UTC; a candle without swaps carries the previous close with zero volume, and the last candle is still forming. Informational only, not investment advice. Data is current to within about a minute (as_of). An unknown pair or interval, or a limit over the interval's lookback cap, is a 422 before any payment (not charged). A pool whose swap history is still being indexed (after a restart) is a 503 warming_up, failing chain reads a 503 rpc_unavailable (not charged; retry later). Typically under 0.1 s (served from an index kept current in the background). Price: USD 0.003. Free: 10 chain reads per IP per UTC day (every chainpeek read, the sanctions screen and the single URL check share one pool).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairYesWETH/USDC (ETH in USDC, Uniswap v3 0.3% pool on Base) or cbBTC/USDC (BTC in USDC, Uniswap v3 0.05% pool on Base).
limitNoNumber of candles, newest last. Default 48 (1d: 30). Lookback caps: 5m and 15m 200, 1h 168, 4h 42, 1d 30.
intervalNoCandle length, UTC-aligned.1h

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources