This substreams package tracks liquidity changes in Uniswap V3 pools in real-time.
substreams run pool_liquidity \
--start-block 18000000 \
--stop-block 18001000 \
-p "pool_address=0x88e6A0c2dDD26FeeB64F039a2c41296FcB3f5640&snapshot_interval=3600"
pool_address
: Uniswap V3 pool contract addresssnapshot_interval
: Snapshot interval in seconds (e.g., 3600 for hourly)min_liquidity_usd
: Minimum liquidity threshold in USD (optional)Returns LiquiditySnapshot
protobuf messages containing:
substreams gui uniswap-v3-pool-data@v0.1.2 pool_liquidity
substreams gui uniswap-v3-pool-data@v0.1.2 pool_swaps
substreams gui uniswap-v3-pool-data@v0.1.2 store_liquidity_state
message
Modules
message
Binary
message
Module
message
Package
message
NetworkParams
message
PackageMetadata
message
ModuleMetadata
message
Clock
message
BlockRef
message
Request
message
Response
message
BlockUndoSignal
message
BlockScopedData
message
SessionInit
message
InitialSnapshotComplete
message
InitialSnapshotData
message
MapModuleOutput
message
StoreModuleOutput
message
OutputDebugInfo
message
ModulesProgress
message
ProcessedBytes
message
Error
message
Job
message
Stage
message
ModuleStats
message
ExternalCallMetric
message
StoreDelta
message
BlockRange
message
DeployRequest
message
Parameter
message
DeployResponse
message
UpdateRequest
message
UpdateResponse
message
InfoRequest
message
InfoResponse
message
SinkProgress
message
PackageInfo
message
ListRequest
message
ListResponse
message
DeploymentWithStatus
message
RemoveRequest
message
RemoveResponse
message
PauseRequest
message
PauseResponse
message
StopRequest
message
StopResponse
message
ResumeRequest
message
ResumeResponse
enum
DeploymentStatus
message
LiquidityBin
message
LiquiditySnapshot
message
LiquiditySnapshots
message
LiquidityState
message
FileDescriptorSet
message
FileDescriptorProto
message
DescriptorProto
message
ExtensionRangeOptions
message
FieldDescriptorProto
message
OneofDescriptorProto
message
EnumDescriptorProto
message
EnumValueDescriptorProto
message
ServiceDescriptorProto
message
MethodDescriptorProto
message
FileOptions
message
MessageOptions
message
FieldOptions
message
OneofOptions
message
EnumOptions
message
EnumValueOptions
message
ServiceOptions
message
MethodOptions
message
UninterpretedOption
message
SourceCodeInfo
message
GeneratedCodeInfo
message
Any
message
Timestamp