Naar de inhoud
GET /v1/top

Highest-yielding vaults by net APR with a TVL floor

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/top" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/yearn-api/v1/top", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/yearn-api/v1/top");
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/top",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

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

{
    "data": {
        "chain": "Ethereum",
        "count": 10,
        "source": "Yearn (yDaemon)",
        "vaults": [
            {
                "name": "yYB yVault",
                "symbol": "yvyYB",
                "address": "0x1F6f16945e395593d8050d6Cc33e4328a515B648",
                "net_apr": 0.139018,
                "tvl_usd": 190735.27,
                "version": "3.0.4",
                "category": "Volatile",
                "chain_id": 1,
                "endorsed": true,
                "net_apr_pct": 13.9018,
                "price_per_share": "1313081644508863125",
                "underlying_token": {
                    "name": "Yearn YB Token",
                    "symbol": "yYB",
                    "address": "0x22222222aEA0076fCA927a3f44dc0B4FdF9479D6"
                }
            },
            {
                "name": "Curve msETH Factory yVault",
                "symbol": "yvCurve-msETH-f",
                "address": "0xAD2f9A55518Dba12E8AB069502820923351667C5",
                "net_apr": 0.130687,
                "tvl_usd": 377106.35,
                "version": "0.4.6",
                "category": "Curve",
                "chain_id": 1,
                "endorsed": true,
                "net_apr_pct": 13.0687,
                "price_per_share": "1426271919890604554",
                "underlying_token": {
                    "name": "Curve.finance Factory Plain Pool: msETH/WETH",
                    "symbol": "msETHWETH-f",
                    "address": "0xa4c567c662349BeC3D0fB94C4e7f85bA95E208e4"
                }
            },
            {
                "name": "Curve MUSD-2pool Factory yVault",
                "symbol": "yvCurve-MUSD-2pool-f",
                "address": "0xC8B38D661794d8847961baF40Db92B76f2EBf30d",
                "net_apr": 0.119722,
                "tvl_usd": 119365.87,
                "version": "0.4.6",
                "category": "Curve",
                "chain_id": 1,
                "endorsed": true,
                "net_apr_pct": 11.9722,
                "price_per_share": "1051611015970622366",
                "underlying_token": {
                    "name": "MUSD/USDC/USDT",
                    "symbol": "MUSD/2pool",
                    "address": "0xB5571E76693ba60110B5811DD650FFefce1C955f"
                }
            },
            {
                "name": "Curve MIM Factory yVault",
                "symbol": "yvCurve-MIM-f",
                "address": "0xa540744DEDBDA9eF64cf753F0E851EfE4a419EA9",
                "net_apr": 0.098102,
                "tvl_usd": 457231.44,
                "version": "0.4.5",
                "category": "Stablecoin",
                "chain_id": 1,
                "endorsed": true,
                "net_apr_pct": 9.8102,
                "price_per_share": "1731360230261044981",
                "underlying_token": {
                    "name": "Curve.finance Factory USD Metapool: Magic Internet Money 3Pool",
                    "symbol": "MIM-
…