/v1/tvl
Compound TVL total and per-chain breakdown
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/compound-api/v1/tvl" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/compound-api/v1/tvl", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/compound-api/v1/tvl");
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/compound-api/v1/tvl",
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": "Total value supplied to Compound (v2 + v3), in USD.",
"chains": [
{
"tvl": 1052630613,
"chain": "Ethereum"
},
{
"tvl": 63284681,
"chain": "Arbitrum"
},
{
"tvl": 20103799,
"chain": "Base"
},
{
"tvl": 10449732,
"chain": "OP Mainnet"
},
{
"tvl": 5732406,
"chain": "Polygon"
},
{
"tvl": 1701718,
"chain": "Mantle"
},
{
"tvl": 1020617,
"chain": "Unichain"
},
{
"tvl": 103655,
"chain": "Ronin"
},
{
"tvl": 97521,
"chain": "Scroll"
}
],
"source": "DeFiLlama",
"protocol": "Compound",
"total_tvl": 1153780222.65,
"chain_count": 9
},
"meta": {
"timestamp": "2026-06-14T08:04:30.560Z",
"request_id": "579f3cd4-1e7a-43fc-8628-f70937e708f7"
},
"status": "ok",
"message": "Compound TVL retrieved successfully",
"success": true
}