Price candles (OHLC and swap volume) for any Uniswap v3 pool on Base, computed from on-chain Swap logs: open, high, low,
pool_candlesRead-onlyIdempotent
Price candles (OHLC and swap volume) for any Uniswap v3 pool on Base, computed from on-chain Swap logs: open, high, low, close per 1-60 minute bucket over the last 100-5000 blocks, with token addresses and decimals (pool=0x..., interval=5, blocks=2000; default WETH/USDC). For trading and market-making agents that need a chart without a data-vendor key. Pay per call $0.05 USDC on Base via x402.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pool_candles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | No | Uniswap v3 pool address on Base, 0x..., default WETH/USDC | |
| blocks | No | how many recent blocks, 100-5000, default 2000 (about 2 s each) | |
| interval | No | candle size in minutes, 1-60, default 5 | |
| x_payment | No | signed x402 payment (X-PAYMENT header value); omit on the first call to receive the price and payment requirements |