chain_twap
Uniswap v3 TWAP oracle price — Manipulation-resistant time-weighted average price from any Uniswap v3-style pool (Uniswap, Sushi, Pancake v3) on Ethereum, Base, Arbitrum, Optimism or Polygon via observe(): TWAP tick and price both ways with token symbols/decimals, spot price, spot-vs-TWAP gap and a CONSISTENT/SPOT_DRIFTING/SPOT_FAR_FROM_TWAP signal, fee tier and oracle cardinality. Params: pool, chain; optional seconds (10-604800, default 1800). 422 when the pool oracle history is shorter than the window. Price: $0.003 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pool": "<pool>",
"chain": "<chain>"
},
"name": "chain_twap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | Yes | 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640 | |
| chain | Yes | ethereum |