L

lending-rates · Lending Rates

by lending-rates

GETBase

$0.01

per call · USD Coin on Base

Cross-protocol DeFi money-market supply/borrow rates for an asset on Base: per-market supply APY, borrow APY, reward APY, utilization, LTV and available liquidity across Aave/Compound/Morpho/Euler/Fluid/Moonwell, plus a risk-aware best-safe-yield ranking (safety-flagged, not naked max APY), fused by us from DefiLlama pools+lendBorrow.

Endpoint

GET https://api.agentstools.dev/lending/rates

3

Calls / 30d

2

Unique payers / 30d

Aug 31

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.agentstools.dev/lending/rates", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api.agentstools.dev/lending/rates?asset=USDC&chain=Base&side=both" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "best_safe_yield": {
    "supply": [
      {
        "asset": "USDC",
        "net_supply_apy": 3.12,
        "protocol": "aave-v3",
        "safety_flags": {
          "safe": true
        }
      }
    ]
  },
  "market_count": 6,
  "markets": [
    {
      "asset": "USDC",
      "available_liquidity_usd": 30000000,
      "borrow_apy": 4.16,
      "ltv": 0.75,
      "net_borrow_apy": 4.16,
      "net_supply_apy": 3.12,
      "protocol": "aave-v3",
      "supply_apy": 3.12,
      "total_supply_usd": 180000000,
      "utilization": 0.83
    }
  ],
  "query": {
    "asset": "USDC",
    "chains": [
      "Base"
    ],
    "side": "both"
  },
  "source": "Source: DefiLlama free public API + Base on-chain"
}

Payment details

Pay to0xf22e558a00d91ee12a1f50c52186fecb8ddff493
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of DeFi and the homepage with a featured placement.

Get featured →

More from lending-rates & similar services