Agent skill · data analytics · jeremylongshore

analyzing-liquidity-pools

Analyze DEX liquidity pools for TVL, volume, fees, impermanent loss,

Why this skill is useful

Adds executable scripts for analyzing liquidity pools, calculating impermanent loss, and comparing DEX pools that are not commonly available in public documentation.

What it needs

Requires python installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Analyzing Liquidity Pools Overview Analyze DEX liquidity pools across Uniswap, Curve, and Balancer to evaluate TVL, trading volume, fee income, and impermanent loss risk. Compare pools across protocols and chains to identify optimal LP opportunities. Prerequisites Python 3.8+ installed Internet access for subgraph/API queries Understanding of liquidity providing concepts (IL, fee tiers, TVL) Instructions 1. Analyze a specific pool by address or token pair: 2. Calculate impermanent loss for a price change: Project IL for various scenarios: 3. Estimate LP returns with fee APR and position projections: 4. Compare pools across protocols or fee tiers: 5. Export results to JSON or CSV: Output Pool analysis reports include chain, TVL, 24h volume, fee tier, fee APR, volume/TVL ratio, and token composition with current price. Impermanent loss reports show IL percentage, dollar impact, HODL vs LP value comparison, and breakeven analysis with days-to-recover based on fee income. See ${CLAUDESKILLDIR}/references/implementation.md for detailed output format examples. Error Handling Error Cause Fix ------- ------- ----- Pool not found Wrong address or chain Verify address and target chain Subgraph timeout API latency or downtime Uses cached data with warning Invalid pair Unsupported protocol Check supported protocols list Examples Analyze top ETH/USDC pool - Full TVL, volume, and fee breakdown on Uniswap V3: Calculate IL for 2x price increase - See dollar impact vs holding: Compare Uniswap fee tiers - Find optimal fee tier for ETH/USDC: Export all ETH pairs - Dump pool data for further analysis: Resources The Graph: https://thegraph.com/ - Subgraph queries Uniswap Info: https://info.uniswap.org/ - Pool explorer DeFiLlama: https://defillama.com/ - TVL data ${CLAUDESKILLDIR}/references/implementation.md - Detailed output formats, configuration, cross-protocol comparison guide

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/analyzing-liquidity-pools--2856c1

View the source on GitHub

Browse the @skills marketplace