{
  "x402Version": 2,
  "id": 29244,
  "slug": "29244",
  "resource": "https://api.agentstools.dev/lending/rates",
  "description": "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.",
  "type": "http",
  "serviceName": "lending-rates",
  "resourceType": "Security",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "asset": "USDC",
            "chain": "Base",
            "side": "both"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "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"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "asset": {
                    "description": "Token symbol to fuse rates for, e.g. USDC / ETH / WETH; omit for all assets",
                    "type": "string"
                  },
                  "chain": {
                    "description": "Chain (default Base)",
                    "enum": [
                      "Base"
                    ],
                    "type": "string"
                  },
                  "side": {
                    "description": "Which ranking to compute (default both)",
                    "enum": [
                      "supply",
                      "borrow",
                      "both"
                    ],
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "defi",
    "lending",
    "money-market",
    "rates",
    "apy",
    "bazaar"
  ],
  "sourceHost": "api.agentstools.dev",
  "lastUpdated": "2026-10-08T06:08:53.079Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T06:08:52.845Z"
  },
  "metadata": {
    "serviceName": "lending-rates",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "asset": "USDC",
              "chain": "Base",
              "side": "both"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "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"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "asset": {
                      "description": "Token symbol to fuse rates for, e.g. USDC / ETH / WETH; omit for all assets",
                      "type": "string"
                    },
                    "chain": {
                      "description": "Chain (default Base)",
                      "enum": [
                        "Base"
                      ],
                      "type": "string"
                    },
                    "side": {
                      "description": "Which ranking to compute (default both)",
                      "enum": [
                        "supply",
                        "borrow",
                        "both"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.agentstools.dev",
    "manifest_name": "api.agentstools.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}