/v1/index
Live value of the NGX All-Share Index
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/ngx-api/v1/index" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ngx-api/v1/index", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ngx-api/v1/index");
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/ngx-api/v1/index",
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": {
"low": 244456.2,
"high": 244944.45,
"name": "NGX All Share Index",
"note": "The live value of the NGX All-Share Index (the Nigerian Exchange benchmark) — current level, change, and the day's open/high/low. Pass name (ASI; default ASI).",
"open": 244877.64,
"index": "ASI",
"value": 244738.73,
"change": -113.47000000000116,
"source": "The Nigerian Exchange / NGX (TradingView)",
"change_percent": -0.05
},
"meta": {
"timestamp": "2026-06-15T02:10:37.505Z",
"request_id": "314d7eb7-1e11-440a-aac9-cb4118746c33"
},
"status": "ok",
"message": "Index retrieved successfully",
"success": true
}