List DeFi liquidity and lending yields
curl --request GET \
--url https://api.darvas.app/v1/defi/yields \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/defi/yields"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/defi/yields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"pools": [
{
"pool_id": "aa70268e-4d52-4298-a97a-8782d16522e1",
"chain": "Ethereum",
"project": "lido",
"symbol": "STETH",
"tvl_usd": 15973473405,
"apy": 2.95,
"apy_base": 2.95,
"apy_reward": 0,
"stablecoin": false,
"il_risk": "no"
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}DeFi
DeFi Yield Pools, Base APY & Reward APY API
Compare DeFi lending, staking and liquidity pool TVL, base APY and reward token APY across chains and protocols to evaluate sustainable yields.
List DeFi liquidity and lending yields
curl --request GET \
--url https://api.darvas.app/v1/defi/yields \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/defi/yields"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/defi/yields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"pools": [
{
"pool_id": "aa70268e-4d52-4298-a97a-8782d16522e1",
"chain": "Ethereum",
"project": "lido",
"symbol": "STETH",
"tvl_usd": 15973473405,
"apy": 2.95,
"apy_base": 2.95,
"apy_reward": 0,
"stablecoin": false,
"il_risk": "no"
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
This endpoint returns active on-chain lending markets, liquid staking pools, and AMM liquidity pools sorted descending bytvl_usd. Each pool breaks total apy into organic apy_base and incentive apy_reward, alongside stablecoin and impermanent loss (il_risk) classifications.
| Coverage | Details |
|---|---|
| Pool universe | Up to 3,000 active pools with at least $100,000 TVL across major EVM and non-EVM chains |
| Filters | chain (exact match), project and symbol (case-insensitive substrings), stablecoin_only (true or false), min_tvl (default 1000000), and min_apy (default 0) |
| Ordering and limit | Sorted descending by tvl_usd; limit from 1 to 200 pools (default 50) |
| Freshness | Snapshot refreshed every 5 minutes |
| MCP tool | list_defi_yields on the data API MCP server |
Yield composition and filtering rules
Use the base-yield split and TVL floor together to filter out illiquid pools and temporary token emissions.- Organic and incentive APY.
apyis total annualized percentage yield.apy_basemeasures organic borrow interest, staking rewards, or swap fees, andapy_rewardmeasures token incentive emissions. Either component can benullwhen unreported. - TVL floor. The indexed pool snapshot retains pools with at least $100,000 TVL, and `min_tvl` defaults to `1000000` ($1 million USD) so low-liquidity outliers stay excluded by default. Pass
min_tvl=100000to include smaller pools, or raise it for institutional sizing. - Risk tags.
stablecoinistruefor pools holding stablecoins only.il_riskclassifies impermanent loss exposure ("yes","no", ornull). - Related endpoints. Compare DeFi stablecoin carry against US Treasury yields on
/macro/yield-curveand central bank policy rates on/macro/interest-rates. Inspect protocol-level TVL at/defi/protocolsand stablecoin supply at/defi/stablecoins.
Examples
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
resp = requests.get(
"https://api.darvas.app/v1/defi/yields",
headers=headers,
params={
"chain": "Ethereum",
"stablecoin_only": "true",
"min_tvl": 10_000_000,
"min_apy": 4,
"limit": 15,
},
).json()
for pool in resp["pools"]:
print(pool["project"], pool["symbol"], "TVL:", pool["tvl_usd"], "APY:", pool["apy"], "base:", pool["apy_base"], "reward:", pool["apy_reward"])
# Arbitrum USDC pools on Aave with at least $5M TVL
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/defi/yields?chain=Arbitrum&project=aave&symbol=USDC&min_tvl=5000000&limit=10"
Authorizations
apiKeybearerKey