AN

analyzing-liquidity-pools

Evaluate pool performance metrics and calculate impermanent loss for DEX liquidity providers.

Install

mkdir -p .claude/skills/analyzing-liquidity-pools && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4699" && unzip -o skill.zip -d .claude/skills/analyzing-liquidity-pools && rm skill.zip

Installs to .claude/skills/analyzing-liquidity-pools

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Analyze DEX liquidity pools for TVL, volume, fees, impermanent loss,
68 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Calculate TVL and trading volume
  • Estimate impermanent loss for price changes
  • Compare pool profitability across protocols
  • Project LP returns with fee APR
  • Export analysis to JSON or CSV

How it works

It queries subgraph data and uses internal scripts to calculate financial metrics like impermanent loss and fee APR for specific liquidity pools.

Inputs & outputs

You give it
Liquidity pool address or token pair
You get back
Analysis report including TVL, volume, and IL

When to use analyzing-liquidity-pools

  • Calculate impermanent loss for liquidity positions
  • Analyze pool TVL and volume trends
  • Compare liquidity pool profitability
  • Estimate APR for liquidity providers

About this skill

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

When not to use it

  • When analyzing non-DEX liquidity pools
  • When the protocol is not supported by the analyzer

Prerequisites

Python 3.8+Internet access for API queries

Limitations

  • Subgraph timeouts may occur due to API latency
  • Requires specific protocol support

How it compares

It provides automated calculation of complex LP metrics compared to manual spreadsheet tracking of pool performance.

Compared to similar skills

analyzing-liquidity-pools side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
analyzing-liquidity-pools (this skill)127dReviewIntermediate
quant-analyst1032moNo flagsAdvanced
stock-analyzer712moReviewBeginner
creating-financial-models368moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

You might also like

quant-analyst

zenobi-us

Expert quantitative analyst specializing in financial modeling, algorithmic trading, and risk analytics. Masters statistical methods, derivatives pricing, and high-frequency trading with focus on mathematical rigor, performance optimization, and profitable strategy development.

103355

stock-analyzer

FrancyJGLisboa

Provides comprehensive technical analysis for stocks and ETFs using RSI, MACD, Bollinger Bands, and other indicators. Activates when user requests stock analysis, technical indicators, trading signals, or market data for specific ticker symbols.

71214

creating-financial-models

anthropics

This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions

36161

reconciliation

anthropics

Reconcile accounts by comparing GL balances to subledgers, bank statements, or third-party data. Use when performing bank reconciliations, GL-to-subledger recs, intercompany reconciliations, or identifying and categorizing reconciling items.

30139

analyzing-financial-statements

anthropics

This skill calculates key financial ratios and metrics from financial statement data for investment analysis

32134

us-stock-analysis

tradermonty

Comprehensive US stock analysis including fundamental analysis (financial metrics, business quality, valuation), technical analysis (indicators, chart patterns, support/resistance), stock comparisons, and investment report generation. Use when user requests analysis of US stock tickers (e.g., "analyze AAPL", "compare TSLA vs NVDA", "give me a report on Microsoft"), evaluation of financial metrics, technical chart analysis, or investment recommendations for American stocks.

24137

Search skills

Search the agent skills registry