Package Logo
uniswap_v3_pool_data
uniswap_v3_pool_data@v0.1.2
github Repository
your-org/trade
Total Downloads
8
Published
1 months ago
Publisher
User Avatar johnangwin

Readme

Uniswap V3 Pool Liquidity Tracker

This substreams package tracks liquidity changes in Uniswap V3 pools in real-time.

Features

  • Real-time liquidity snapshots
  • Configurable snapshot intervals
  • Multi-network support (Ethereum, Arbitrum, Base, Polygon)
  • USD value calculations

Usage

substreams run pool_liquidity \
  --start-block 18000000 \
  --stop-block 18001000 \
  -p "pool_address=0x88e6A0c2dDD26FeeB64F039a2c41296FcB3f5640&snapshot_interval=3600"

Parameters

  • pool_address: Uniswap V3 pool contract address
  • snapshot_interval: Snapshot interval in seconds (e.g., 3600 for hourly)
  • min_liquidity_usd: Minimum liquidity threshold in USD (optional)

Output

Returns LiquiditySnapshot protobuf messages containing:

  • Block number and timestamp
  • Pool address
  • Total liquidity amounts
  • Token-specific liquidity
  • USD volume equivalent

Documentation

Modules

Maps icon
Maps

map
pool_liquidity

774159d99debbb62a7f72cfa418cfa8c442f0491
map pool_liquidity (
paramsstring
blocksf.ethereum.type.v2.Block
)  -> pool_liquidity.LiquiditySnapshot
substreams gui uniswap-v3-pool-data@v0.1.2 pool_liquidity

map
pool_swaps

4f66938f751e384df4c332e14778048173882e01
map pool_swaps (
paramsstring
)  -> pool_candles.SwapEvent
substreams gui uniswap-v3-pool-data@v0.1.2 pool_swaps
Stores icon
Stores

store
store_liquidity_state

1cdbd4e6fbf1ec124418f624a3cbf3399732a750
store <set,pool_liquidity.LiquidityState> store_liquidity_state (
paramsstring
)
substreams gui uniswap-v3-pool-data@v0.1.2 store_liquidity_state
Protobuf

Protobuf Docs Explorer

pool_liquidity
pool_candles