/v1/markets
Per-asset Compound v2/v3 markets with supply APY, TVL and earns_yield
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/markets" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/compound-api/v1/markets", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/compound-api/v1/markets");
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/markets",
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": "Compound v2 + v3 markets. In v3 (Comet), collateral assets do not earn yield (earns_yield=false); only base assets do.",
"sort": "tvl",
"chain": "Ethereum",
"count": 3,
"source": "DeFiLlama",
"markets": [
{
"tvl": 47442549,
"asset": "USDT",
"chain": "Ethereum",
"pool_id": "f4d5b566-e815-4ca2-bb07-7bcd8bc797f1",
"version": "v3",
"reward_apy": 0.1,
"stablecoin": true,
"supply_apy": 2.69,
"apy_30d_avg": 2.77,
"earns_yield": true
},
{
"tvl": 43620148,
"asset": "USDC",
"chain": "Ethereum",
"pool_id": "7da72d09-56ca-4ec5-a45f-59114353e487",
"version": "v3",
"reward_apy": 0.11,
"stablecoin": true,
"supply_apy": 3.12,
"apy_30d_avg": 3.45,
"earns_yield": true
},
{
"tvl": 10688036,
"asset": "ETH",
"chain": "Ethereum",
"pool_id": "85c57261-b75b-4447-a115-d79b1a7de8ed",
"version": "v3",
"reward_apy": 0.07,
"stablecoin": false,
"supply_apy": 1.76,
"apy_30d_avg": 1.6,
"earns_yield": true
}
],
"matched": 3,
"version": "v3",
"protocol": "Compound"
},
"meta": {
"timestamp": "2026-06-14T08:04:30.652Z",
"request_id": "120c6ab2-295c-42c8-8b22-a20f8b2c9b27"
},
"status": "ok",
"message": "Compound markets retrieved successfully",
"success": true
}