Ir al contenido
GET /v1/index

Live value of a market index

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/krx-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}