Aller au contenu
GET /v1/index

Live value of a Warsaw index

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/gpw-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/gpw-api/v1/index" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gpw-api/v1/index", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gpw-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/gpw-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": 3663.93,
        "high": 3725.98,
        "name": "WIG20 Index",
        "note": "The live value of a Warsaw Stock Exchange index — current level, change, and the day's open/high/low. Pass name (WIG for the broad index, WIG20 for the blue-chip index, or WIG30; default WIG20).",
        "open": 3669.66,
        "index": "WIG20",
        "value": 3713.88,
        "change": 61.86000000000013,
        "source": "Warsaw Stock Exchange / GPW (TradingView)",
        "change_percent": 1.69
    },
    "meta": {
        "timestamp": "2026-06-15T02:10:29.244Z",
        "request_id": "b5667392-831a-49e8-9ac4-a3f883a4ac59"
    },
    "status": "ok",
    "message": "Index retrieved successfully",
    "success": true
}