uniswap_v3.liquidity

Documentation for eth_defi.uniswap_v3.liquidity module.

Uniswap v3 liquidity events and depth estimation.

Functions

create_tick_csv(tick_delta_csv[, output_folder])

Create tick csv based on tick delta

create_tick_delta_csv(mints_csv, burns_csv)

Create intermediate tick delta csv based on mint and burn events

estimate_liquidity_depth_at_block(...[, ...])

Calculate the liquidity at multiple depths of a pool at a given block

get_pool_state_at_block(pool_address, ...)

Get a pool state (current liquidity, tick, ticks) at a given block using Uniswap V3 subgraph data

handle_burn_event(event)

Construct tick deltas from burn event

handle_mint_event(event)

Construct tick deltas from mint event

Classes

TickDelta

A dictionary of a tick delta, where liquidity of a tick changes