Skip to content
analyzing-liquidity-pools logo

Analyzing Liquidity Pools

analyzing-liquidity-pools

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

SKILL.md

Full skill instructions

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:

    python ${CLAUDE_SKILL_DIR}/​scripts/​pool_analyzer.py --pool 0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640
    python ${CLAUDE_SKILL_DIR}/​scripts/​pool_analyzer.py --pair ETH/​USDC --protocol uniswap-v3
    
  2. Calculate impermanent loss for a price change:

    python ${CLAUDE_SKILL_DIR}/​scripts/​pool_analyzer.py --il-calc --entry-price 2000 --current-price 3000  # 2000/​3000 = ETH price at entry/​now in USD
    

    Project IL for various scenarios:

    python ${CLAUDE_SKILL_DIR}/​scripts/​pool_analyzer.py --il-scenarios --token-pair ETH/​USDC
    
  3. 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  # 10000 = LP position size in USD
    
  4. 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
    
  5. 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
    

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 ${CLAUDE_SKILL_DIR}/​references/​implementation.md for detailed output format examples.

Error Handling

ErrorCauseFix
Pool not foundWrong address or chainVerify address and target chain
Subgraph timeoutAPI latency or downtimeUses cached data with warning
Invalid pairUnsupported protocolCheck supported protocols list

Examples

Analyze top ETH/​USDC pool - Full TVL, volume, and fee breakdown on Uniswap V3:

python pool_analyzer.py --pair ETH/​USDC --protocol uniswap-v3 --chain ethereum

Calculate IL for 2x price increase - See dollar impact vs holding:

python pool_analyzer.py --il-calc --entry-price 100 --current-price 200  # 100/​200 = token price at entry/​now in USD

Compare Uniswap fee tiers - Find optimal fee tier for ETH/​USDC:

python pool_analyzer.py --compare --pair ETH/​USDC --fee-tiers 0.05,0.30,1.00

Export all ETH pairs - Dump pool data for further analysis:

python pool_analyzer.py --token ETH --format json --output eth_pools.json

Resources

More skills from jeremylongshore

openrouter-compliance-review logo
jeremylongshore/claude-code-plugins-plus-skills

openrouter-compliance-review

Review OpenRouter integration for regulatory compliance (SOC2, GDPR,

2.8K 0
View
maintainx-data-handling logo
jeremylongshore/claude-code-plugins-plus-skills

maintainx-data-handling

Data synchronization, ETL patterns, and data management for MaintainX.

2.8K 0
View
groq-core-workflow-a logo
jeremylongshore/claude-code-plugins-plus-skills

groq-core-workflow-a

Execute Groq primary workflow: chat completions with tool use and JSON

2.8K 0
View
validating-csrf-protection logo
jeremylongshore/claude-code-plugins-plus-skills

validating-csrf-protection

Validate CSRF protection implementations for security gaps. Use when

2.8K 0
View
api-contract logo
jeremylongshore/claude-code-plugins-plus-skills

api-contract

Configure this skill should be used when the user asks about "API contract",

2.8K 0
View
ideogram-incident-runbook logo
jeremylongshore/claude-code-plugins-plus-skills

ideogram-incident-runbook

Execute Ideogram incident response with triage, mitigation, and postmortem.

2.8K 0
View
gamma-sdk-patterns logo
jeremylongshore/claude-code-plugins-plus-skills

gamma-sdk-patterns

Reusable patterns for the Gamma REST API (no SDK exists).

2.8K 0
View
deepgram-sdk-patterns logo
jeremylongshore/claude-code-plugins-plus-skills

deepgram-sdk-patterns

Apply production-ready Deepgram SDK patterns for TypeScript and Python.

2.8K 0
View
openrouter-upgrade-migration logo
jeremylongshore/claude-code-plugins-plus-skills

openrouter-upgrade-migration

Migrate to OpenRouter from direct provider APIs or upgrade between SDK/model

2.8K 0
View
openrouter-common-errors logo
jeremylongshore/claude-code-plugins-plus-skills

openrouter-common-errors

Diagnose and fix common OpenRouter API errors. Use when encountering

2.8K 0
View
linear-cost-tuning logo
jeremylongshore/claude-code-plugins-plus-skills

linear-cost-tuning

Optimize Linear API usage, reduce unnecessary calls, and maximize

2.8K 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View