RBudzynski's picture
Upload 8 files
7a6f7ce verified
metadata
license: cc-by-nc-4.0
tags:
  - ethereum
  - evm
  - blockchain
  - cryptocurrency
  - crypto
  - onchain-data
  - tabular
  - timeseries
  - datasets
  - pandas
  - polars
  - duckdb
pretty_name: BlockDB Liquidity Pools Reserves - Sample
size_categories:
  - 10M<n<100M

Sample Notice

This dataset contains a small sample of the full BlockDB Liquidity Pools Reserves dataset.
It is provided for evaluation, research, and interoperability testing only.

If you need full historical coverage, real-time streaming, or end-of-day (EOD) exports please contact us directly:

πŸ“§ support@blockdb.io
🌐 https://www.blockdb.io

Dataset Overview

Time-series of pool reserve/state snapshots across all AMM types. Each row represents a snapshot of pool state at a specific on-chain event, including reserves for constant-product pools and tick/bin data for concentrated liquidity pools (Uniswap v3/v4, Algebra, TraderJoe bins, etc.).

Chains and Coverage

ETH, BSC, Base, Arbitrum, Unichain, Avalanche, Polygon, Celo, Linea, Optimism (others on request). Full history from chain genesis; reorg-aware real-time ingestion and updates.

Schema

List of columns exactly as delivered:

β€’	id BIGINT – Unique snapshot identifier (primary key)
β€’	pool_uid BYTEA – Unique pool identifier (FK to liquidity_pools)
β€’	exchange_id INTEGER – Exchange/DEX identifier
β€’	type_id INTEGER – Pool type identifier (FK to liquidity_pool_types)
β€’	block_number BIGINT – Block when this state was observed
β€’	block_time TIMESTAMPTZ – UTC timestamp when the block was mined
β€’	tx_index INTEGER – Transaction index within the block
β€’	log_index INTEGER – Log index within the block
β€’	reserves NUMERIC(78,0)[] – Array of current reserves per token for even-style pools (raw units)
β€’	current_tick INTEGER – Current tick for concentrated-liquidity pools (e.g., Uniswap v3)
β€’	current_sqrt_price NUMERIC(49,0) – Q64.96 sqrt price as integer; decode via (value / 2^96)^2 for mid-price
β€’	current_bin INTEGER – Current bin id for bin-based AMMs (e.g., TraderJoe v2)
β€’	_tracing_id BYTEA – Tracing ID of this reserves record
β€’	_genesis_tracing_ids BYTEA[] – Tracing IDs of the genesis records leading to this record
β€’	_parent_tracing_ids BYTEA[] – Tracing IDs of the parent records leading to this record
β€’	_created_at TIMESTAMPTZ – Record creation timestamp
β€’	_updated_at TIMESTAMPTZ – Record last update timestamp

Notes

β€’	At least one of reserves, current_tick, or current_bin is always populated.
β€’	Unique constraint: (pool_uid, block_number, tx_index, log_index) guarantees one snapshot per pool per event.
β€’	For Q64.96 sqrt price: mid_price = (current_sqrt_price / 2^96)^2, then adjust for token decimals.
β€’	Indexes on (pool_uid, block_number DESC, tx_index DESC, log_index DESC), (block_number, tx_index, log_index), and block_time support fast lookups.

Lineage

Each reserves record includes deterministic _tracing_id, _genesis_tracing_ids, and _parent_tracing_ids, providing:

β€’	Provenance tracking from raw logs to decoded reserves snapshots
β€’	Reproducible analytics and signal extraction
β€’	Cross-system consistency checks (RPC vs. indexers vs. internal warehouses)

Common Use Cases

β€’	Reconstructing historical pool states for backtesting
β€’	TVL (Total Value Locked) calculations
β€’	Liquidity depth analysis and slippage estimation
β€’	Price impact modeling for concentrated liquidity pools

Quality

β€’	Verifiable lineage: deterministic cryptographic hashes per row
β€’	Reorg-aware ingestion: continuity and consistency across forks
β€’	Complete historical coverage: from chain genesis to present