Naver Stock
Fetch real-time stock prices for domestic (KRX) and overseas markets using Naver Finance.
Usage
Run the bundled script with a stock name or code.
node index.cjs "삼성전자"
node index.cjs "AAPL"
Output Format
Returns a JSON object with price details.
{
"name": "삼성전자",
"code": "005930",
"price": 160500,
"change": -200,
"changePercent": -0.12,
"nxtPrice": 160800,
"nxtChange": 100,
"nxtChangePercent": 0.06,
"currency": "KRW"
}
Field Descriptions
name: Stock name.code: Stock symbol/code.price: Current price in regular market.change: Price change in regular market.changePercent: Percentage change in regular market.nxtPrice: Current price in Nextrade (NXT) Alternative Trading System.nxtChange: Price change in Nextrade.nxtChangePercent: Percentage change in Nextrade.currency: Currency code (e.g., KRW, USD).
About Nextrade (NXT)
Nextrade is an Alternative Trading System (ATS) in Korea that offers extended trading hours.
- Pre-market: 08:00 ~ 08:50
- After-market: 15:30 ~ 20:00 (Can be traded until 8 PM)
- Note: Prices in Nextrade (
nxtPrice) may differ from the regular KRX market price, providing off-hours trading opportunities.
Examples
Domestic Stock
node index.cjs 005930
Overseas Stock
node index.cjs "Tesla"
Exchange Rate
node index.cjs "USD"
node index.cjs "엔"