agentsvc.io

services / defi-yields

financeoperational · 896 ms

DeFi Yields

Find DeFi yield pools across 400+ protocols and 100+ chains (DefiLlama data): APY split into base and reward, 30-day mean APY, 7-day APY change, TVL, stablecoin flag, impermanent-loss risk. Filter by chain (e.g. 'Base', 'Ethereum'), project (e.g. 'aave'), token symbol (e.g. 'USDC'), stablecoin_only, min_tvl_usd (default 1,000,000); sort by 'apy' (default) or 'tvl'. Outliers (flagged by DefiLlama or above 500% APY) are excluded unless include_outliers is true.

Run free trial ↗3 free calls per day with the example input. Paid: $0.003 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/defi-yields", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"chain":"Base","symbol":"USDC","stablecoin_only":true,"limit":5}),
});
const { data, payment } = await res.json();  // payment.transaction = on-chain receipt

Input

FieldTypeDescription
chainstringChain name as on DefiLlama, e.g. Base, Ethereum, Arbitrum, Solana
projectstringProtocol slug or part of it, e.g. aave, morpho, aerodrome
symbolstringToken symbol contained in the pool, e.g. USDC, ETH
stablecoin_onlyboolean = false
min_tvl_usdnumber = 1000000
sortapy | tvl = "apy"
limitinteger = 10
include_outliersboolean = false

Output

FieldTypeDescription
sourcestring
filtersobject
matchedintegerPools matching the filters before the limit
poolsarray
fetched_atstring

Example response (data)

{
  "source": "DefiLlama yields",
  "filters": {
    "chain": "base",
    "project": null,
    "symbol": "USDC",
    "stablecoin_only": true,
    "min_tvl_usd": 1000000,
    "sort": "apy",
    "include_outliers": false
  },
  "matched": 21,
  "pools": [
    {
      "project": "aerodrome-slipstream",
      "chain": "Base",
      "symbol": "EURC-USDC",
      "pool_meta": "CL50 - 0.007%",
      "apy_pct": 40.797,
      "apy_base_pct": 35.825,
      "apy_reward_pct": 4.972,
      "apy_mean_30d_pct": 27.341,
      "apy_change_7d_pct": 6.399,
      "tvl_usd": 1259471,
      "stablecoin": true,
      "il_risk": "yes",
      "exposure": "multi",
      "outlook": "Down",
      "pool_id": "847c874f-d4e7-47ed-8870-97d2f24a8767",
      "url": "https://defillama.com/yields/pool/847c874f-d4e7-47ed-8870-97d2f24a8767"
    }
  ],
  "fetched_at": "2026-10-06T12:00:00.000Z"
}