| name | analyzing-liquidity-pools |
| description | Analyze DEX liquidity pools for TVL, volume, fees, impermanent loss, and LP profitability.
Use when analyzing liquidity pools, calculating impermanent loss, or comparing DEX pools.
Trigger with phrases like "analyze liquidity pool", "calculate impermanent loss", "LP returns", "pool TVL", "DEX pool metrics", or "compare pools".
|
| allowed-tools | Read, Write, Bash(crypto:liquidity-*) |
| version | 1.23.0 |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| license | MIT |
| tags | ["crypto","analyzing-liquidity"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
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
-
Analyze a specific pool by address or token pair:
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --pool 0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --pair ETH/USDC --protocol uniswap-v3
-
Calculate impermanent loss for a price change:
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --il-calc --entry-price 2000 --current-price 3000
Project IL for various scenarios:
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --il-scenarios --token-pair ETH/USDC
-
Estimate LP returns with fee APR and position projections:
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --pool [address] --detailed
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --pool [address] --position 10000
-
Compare pools across protocols or fee tiers:
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --compare --pair ETH/USDC --protocols uniswap-v3,curve,balancer
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --compare --pair ETH/USDC --fee-tiers 0.05,0.30,1.00
-
Export results to JSON or CSV:
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --pool [address] --format json --output pool_analysis.json
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --compare --pair ETH/USDC --format csv --output pools.csv