yield-analysis

Decompose DeFi nominal APY into fee APR, token emissions, and costs.

266|54|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/agiprolabs/claude-trading-skills --skill yield-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yield-analysis
Source: https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/yield-analysis
Command: npx skills add https://github.com/agiprolabs/claude-trading-skills --skill yield-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, httpx, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users accurately evaluate Decentralized Finance (DeFi) yield opportunities by decomposing headline APYs into their real components and accounting for all associated costs and risks.

Core Features & Use Cases

  • Yield Decomposition: Breaks down APY into fee income, token emissions, and other sources.
  • Cost Accounting: Incorporates impermanent loss, gas fees, and rebalancing costs.
  • Sustainability Analysis: Assesses the long-term viability of yields, especially those driven by token emissions.
  • Use Case: Compare the real yield of a SOL-USDC liquidity pool against native SOL staking, factoring in impermanent loss and emission token depreciation, to make an informed investment decision.

Quick Start

Analyze the real yield of the SOL-USDC pool on Raydium, considering a 25% fee APR, 15% RAY emission APR with 40% depreciation, and 12% estimated impermanent loss.

Frequently Asked Questions about yield-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate real DeFi yield by accounting for impermanent loss and emission token depreciation?

Real DeFi yield calculation requires decomposing nominal APY into trading fee APR and token emission APR, then subtracting impermanent loss, gas costs, and emission token depreciation to reveal the true return.

What is the difference between nominal APY and sustainable yield in liquidity provision?

Nominal APY aggregates all income sources, while sustainable yield isolates durable revenue like trading fees from inflationary token emissions that depreciate, assessing long-term viability of liquidity provision strategies.

How do I compare liquidity pool returns against native staking using Python?

Comparing liquidity pool returns against native staking involves running Python scripts to input pool parameters like fee APR, emission depreciation, and estimated impermanent loss to calculate and contrast adjusted metrics.

Can I evaluate DeFi lending and staking strategies offline without live market data?

Evaluating DeFi lending and staking strategies offline is possible by utilizing Python calculation scripts that process pool parameters and market conditions to compare yield metrics without requiring live data.

When should I avoid high APY liquidity pools that rely heavily on token emissions?

Avoid high APY liquidity pools with heavy token emission reliance when emission depreciation and impermanent loss risks outweigh the trading fee APR, indicating the headline yield is unsustainable and ultimately unprofitable.