Naar de inhoud
GET /v1/vaults

Active vaults on a chain with TVL, net APR, category, token

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/yearn-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/yearn-api/v1/vaults" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/yearn-api/v1/vaults", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/yearn-api/v1/vaults");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/yearn-api/v1/vaults",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "chain": "Ethereum",
        "count": 50,
        "source": "Yearn (yDaemon)",
        "vaults": [
            {
                "name": "USDC-1 yVault",
                "symbol": "yvUSDC-1",
                "address": "0xBe53A109B494E5c9f97b9Cd39Fe969BE68BF6204",
                "net_apr": 0.032118,
                "tvl_usd": 26685636.05,
                "version": "3.0.2",
                "category": "Stablecoin",
                "chain_id": 1,
                "endorsed": true,
                "net_apr_pct": 3.2118,
                "price_per_share": "1108437",
                "underlying_token": {
                    "name": "USD Coin",
                    "symbol": "USDC",
                    "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
                }
            },
            {
                "name": "WETH-1 yVault",
                "symbol": "yvWETH-1",
                "address": "0xc56413869c6CDf96496f2b1eF801fEDBdFA7dDB0",
                "net_apr": 0.012942,
                "tvl_usd": 15548245.27,
                "version": "3.0.2",
                "category": "Volatile",
                "chain_id": 1,
                "endorsed": true,
                "net_apr_pct": 1.2942,
                "price_per_share": "1048702116259469346",
                "underlying_token": {
                    "name": "Wrapped Ether",
                    "symbol": "WETH",
                    "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
                }
            },
            {
                "name": "USD yVault",
                "symbol": "yvUSD",
                "address": "0x696d02Db93291651ED510704c9b286841d506987",
                "net_apr": 0.044224,
                "tvl_usd": 11637030.3,
                "version": "3.0.4",
                "category": "Stablecoin",
                "chain_id": 1,
                "endorsed": true,
                "net_apr_pct": 4.4224,
                "price_per_share": "1014649",
                "underlying_token": {
                    "name": "USD Coin",
                    "symbol": "USDC",
                    "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
                }
            },
            {
                "name": "USDS-1 yVault",
                "symbol": "yvUSDS-1",
                "address": "0x182863131F9a4630fF9E27830d945B1413e347E8",
                "net_apr": 0.033127,
                "tvl_usd": 8265100.21,
                "version": "3.0.3",
                "category": "Stablecoin",
                "chain_id": 1,
                "endorsed": true,
                "net_apr_pct": 3.3127,
                "price_per_share": "1100480196623466681",
                "underlying_token": {
                    "name": "USDS Stablecoin",
                    "symbol": "USDS",
                    "address": "0xdC035D45d973E3EC169d2276DDab16f1e407384F"
                }
            },
            {
                "name": "WETH yVault",
              
…