/v1/defi
The DeFi sub-market overview
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/globalmarket-api/v1/defi" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/globalmarket-api/v1/defi", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/globalmarket-api/v1/defi");
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/globalmarket-api/v1/defi",
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": "The decentralized-finance sub-market. defi_dominance is DeFi's share of total crypto market cap.",
"source": "CoinGecko",
"top_coin_name": "Lido Staked Ether",
"defi_to_eth_ratio": 42.2,
"defi_dominance_pct": 3.75,
"eth_market_cap_usd": 198135604965,
"defi_market_cap_usd": 83613259686,
"trading_volume_24h_usd": 3798159287,
"top_coin_defi_dominance_pct": 17.509
},
"meta": {
"timestamp": "2026-06-11T16:46:50.885Z",
"request_id": "4a1b02d6-dfaf-4a25-b4f7-263a715603b9"
},
"status": "ok",
"message": "DeFi market retrieved successfully",
"success": true
}