This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Uniswap TWAP Calculator

Analytics · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryAnalytics
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

This tool provides a read-only interface to Uniswap V3 pools to calculate the Time-Weighted Average Price (TWAP) over a specified time window. Given a Uniswap V3 pool address and a window duration, it retrieves the current pool state (slot0) and fetches observation history from the pool's oracle to compute the TWAP. It displays the current tick, current price, TWAP tick, TWAP price, and the number of observations used. All data is pulled directly from the Uniswap V3 pool contracts—no off-chain databases or third-party APIs are used. This is useful for developers, traders, and analysts who need to verify on-chain price data or implement TWAP-based strategies.

HOW TO USE

Connect your wallet (MetaMask or any Web3 wallet) to the desired EVM network. Enter the Uniswap V3 pool address you wish to inspect (the USDC/ETH 0.05% pool is pre-filled), enter the TWAP window in seconds (e.g., 3600 for a 1-hour TWAP), and click "calculate TWAP". The tool will query the pool contract and display the current tick, current price, TWAP tick, TWAP price, and the number of observations used. The interface is intentionally minimal—it shows what the contract knows, nothing more and nothing less.

TECHNICAL MECHANISM

The tool uses the Uniswap V3 pool ABI to call slot0 (to get the current tick and sqrtPriceX96) and observations to fetch historical tick cumulative data from the pool's oracle. It calculates the TWAP by finding observations within the specified time window, computing the difference in tick cumulative values, and dividing by the time difference. If the pool does not have sufficient observation history, the tool falls back to the current tick. All reads are performed via the connected provider; no state is written.

WHAT IT CANNOT SEE

This tool cannot fetch off-chain price data not stored on-chain. It cannot predict future TWAP values. It cannot detect pending or unconfirmed transactions. It may not support all Uniswap V3 pool versions or chain deployments. It cannot calculate TWAP for pools without sufficient observation history. The data shown is exactly what is stored on-chain—nothing more.

PLEASE NOTE

This tool works on any EVM-compatible network where Uniswap V3 is deployed, including Ethereum mainnet, Optimism, Arbitrum, Base, Polygon, and others. It is intended for informational and monitoring purposes only. Always cross-reference with official sources and multiple explorers before making any decisions based on this data.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.