Vai al contenuto
GET /v1/index

Live value of a market index

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/krx-api/v1/index" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/krx-api/v1/index", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/krx-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/krx-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": 8450.24,
        "high": 8603.48,
        "name": "코스피",
        "note": "The live value of a Korean market index — current level, open, day high/low, change and percent change. Pass name (KOSPI, KOSDAQ or KOSPI200; default KOSPI).",
        "open": 8526.12,
        "index": "KOSPI",
        "value": 8529.02,
        "change": 405.4,
        "source": "KRX (Naver Finance)",
        "market_status": "OPEN",
        "change_percent": 4.99,
        "trading_volume": 298304000
    },
    "meta": {
        "timestamp": "2026-06-15T02:10:57.795Z",
        "request_id": "54710aed-38af-465c-a7ca-7178ef7ca192"
    },
    "status": "ok",
    "message": "Index retrieved successfully",
    "success": true
}