Aller au contenu
GET /v1/meta

Service metadata & live sample

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/daotreasury-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "treasury and history take a required protocol slug (a DeFiLlama protocol/DAO slug, e.g. uniswap, aave, lido, gnosis, balancer, maker, frax). history also takes optional limit (1-365 days). All money values are USD.",
        "sample": {
            "protocol": "Uniswap",
            "total_usd": 1373656662.02,
            "reserves_pct": 0
        },
        "source": "DeFiLlama open treasury API (api.llama.fi/treasury), live",
        "service": "daotreasury-api",
        "examples": [
            "uniswap",
            "aave",
            "lido",
            "balancer",
            "frax",
            "gnosis"
        ],
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/history": "Treasury value over time for a protocol (protocol=uniswap, limit).",
            "GET /v1/treasury": "Treasury composition for a protocol — own token vs real reserves, per chain (protocol=uniswap)."
        },
        "description": "Live treasury composition for DeFi protocols / DAOs, keyless. For any protocol: the value its DAO holds, split into the protocol's OWN governance token versus real diversified reserves (stablecoins, ETH, BTC) — the most-watched measure of treasury health / runway — broken down per chain, plus the treasury value over time. Live, nothing stored beyond a short protective cache. The DAO-treasury layer for DeFi research, governance, risk and dashboard apps. This is treasury composition (own-token vs real reserves), not protocol TVL.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-14T08:04:22.162Z",
        "request_id": "0563f22d-a8f2-476b-bc7d-4ff76e688fa4"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}