Indices API · KRX
Korea Composite Index (KOSPI) Indices API - Real-Time Quotes & Historical Data
Access real-time indices quotes, OHLCV historical data and WebSocket streams for Korea Composite Index (KOSPI) on KRX. Free API key included.
- Real-time quote for KOSPI on KRX
- OHLCV historical K-line data from 1-min to monthly
- WebSocket streaming for real-time price updates
- Free API key to start - simple REST & WebSocket access
import requests
import pandas as pd
# kType = bar interval (1 = 1-minute ... 10 = monthly, see docs)
url = "https://api.itick.org/index/kline"
params = {"region": "KR", "code": "KOSPI", "kType": 8, "limit": 500}
headers = {"accept": "application/json", "token": "YOUR_API_TOKEN"}
bars = requests.get(url, params=params, headers=headers, timeout=10).json()["data"]
df = pd.DataFrame(bars).rename(columns={
"t": "time", "o": "open", "h": "high", "l": "low", "c": "close", "v": "volume"
})
df["time"] = pd.to_datetime(df["time"], unit="ms")
df.to_csv("KOSPI_ohlcv.csv", index=False)
print(df.tail())AboutKorea Composite Index
The Korea Composite Stock Price Index (KOSPI) is the benchmark index of the Korea Exchange, tracking all common stocks listed on the KRX stock market division.
Hot Index Products
Explore real-time quotes and historical data for more financial instruments across global markets.
API Access
Use the REST and WebSocket endpoints below with your API token.
https://api.itick.org/indices/quote?region=KR&code=KOSPIwss://api.itick.org/indexGet Korea Composite Index (KOSPI) data with Python
Query real-time index quotes and historical data for KOSPI via REST API.
- Sign up and get your free API token
- Use the /indices/quote endpoint for real-time values
- Use /indices/kline for historical bars
import requests
import pandas as pd
# kType = bar interval (1 = 1-minute ... 10 = monthly, see docs)
url = "https://api.itick.org/index/kline"
params = {"region": "KR", "code": "KOSPI", "kType": 8, "limit": 500}
headers = {"accept": "application/json", "token": "YOUR_API_TOKEN"}
bars = requests.get(url, params=params, headers=headers, timeout=10).json()["data"]
df = pd.DataFrame(bars).rename(columns={
"t": "time", "o": "open", "h": "high", "l": "low", "c": "close", "v": "volume"
})
df["time"] = pd.to_datetime(df["time"], unit="ms")
df.to_csv("KOSPI_ohlcv.csv", index=False)
print(df.tail())FAQ: Korea Composite Index (KOSPI) Indices Data API
How do I get real-time Korea Composite Index (KOSPI) price data?
Sign up for a free iTick account, get your API token, and call the /indices/quote endpoint with region=KR&code=KOSPI. You can also subscribe via WebSocket for live streaming updates.
What data is available for Korea Composite Index (KOSPI)?
iTick provides real-time quotes (price, bid/ask, volume), OHLCV K-line bars from 1-minute to monthly, and tick-by-tick trade data for Korea Composite Index on KRX.
Is there a free plan for Korea Composite Index (KOSPI) data?
Yes. iTick offers a free plan that includes real-time quotes, historical K-line and tick data for personal use and evaluation. Paid plans add higher rate limits and commercial usage rights.
How do I access Korea Composite Index (KOSPI) historical data?
Use the /index/kline endpoint with region=KR&code=KOSPI and choose your interval via the kType parameter (1=1min, 8=daily, etc.).
What is the latest price of Korea Composite Index (KOSPI)?
As of 2026-11-30 06:32:40 UTC, the latest price of Korea Composite Index (KOSPI) is 5221.17 KRW.
Start building with KOSPI data today
Get a free API key and access real-time quotes, historical data and WebSocket streams in minutes.