Skip to content

Ai-chan-0411/defi-yield-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

defi-yield-finder

Find the best DeFi yields across chains using real-time data from DeFiLlama.

Zero dependencies. Single file. Works with Node.js 18+.

Features

  • Real-time yield data from 16,000+ DeFi pools
  • Filter by chain, TVL, APY, stablecoins, single-asset
  • 8 chains supported: Ethereum, Solana, Arbitrum, Optimism, Polygon, BSC, Base, Avalanche
  • JSON output for piping to other tools
  • 7-day APY trend tracking

Install

npx defi-yield-finder
# or
git clone https://github.com/aoi-dev-0411/defi-yield-finder.git
cd defi-yield-finder
node index.js

Usage

# Top 20 yields across all chains
node index.js

# Solana yields above 5% APY
node index.js --chain Solana --min-apy 5

# Stablecoin pools with $10M+ TVL
node index.js --stables --min-tvl 10000000

# Single-asset pools (no impermanent loss)
node index.js --single --top 10

# JSON output
node index.js --json --top 5

Options

Flag Description Default
--chain <name> Filter by chain all
--min-tvl <usd> Minimum TVL 1,000,000
--min-apy <pct> Minimum APY % 1
--top <n> Number of results 20
--stables Stablecoin pools only off
--single Single-asset pools only off
--json JSON output off

Example Output

══════════════════════════════════════════════════════════════════════════════════════════
  Top 10 DeFi Yields Across Chains
══════════════════════════════════════════════════════════════════════════════════════════
  Protocol          Pool                  Chain              APY           TVL   Trend(7d)
──────────────────────────────────────────────────────────────────────────────────────────
  lido              STETH                 Ethereum         2.38%       $21.08B      -0.03%
  aave-v3           WETH                  Ethereum         1.85%        $5.23B      +0.12%
  ...

Data Source

All data is fetched from DeFiLlama Yields API — free, no API key required.

License

MIT

Support This Project

If you find this tool useful:

  • ETH: 0xa977ED7922703Bf4F9A14cFd27c56d3Cc571908C
  • SOL: 3TcijsNw7kL97QmaLHNE8gDeKt177w4PsJd8XMWDQjUn

About

Find the best DeFi yields across chains using DeFiLlama data. Zero dependencies.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors