Vai al contenuto
GET /v1/index

Live value of an Athens index

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/athex-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/athex-api/v1/index" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/athex-api/v1/index", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/athex-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/athex-api/v1/index",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "low": 2415.74,
        "high": 2444.61,
        "name": "ATHEX Composite Index",
        "note": "The live value of an Athens Stock Exchange index — current level, change, and the day's open/high/low. Pass name (GD for the ATHEX Composite, or FTSE for the FTSE/ATHEX Large Cap; default GD).",
        "open": 2421.65,
        "index": "GD",
        "value": 2421.69,
        "change": 25.320000000000164,
        "source": "Athens Stock Exchange / ATHEX (TradingView)",
        "change_percent": 1.06
    },
    "meta": {
        "timestamp": "2026-06-15T02:10:27.513Z",
        "request_id": "b99f9c9b-8747-4ff1-b4bc-8e960583d9da"
    },
    "status": "ok",
    "message": "Index retrieved successfully",
    "success": true
}