openclaw / naver-stock

Fetch text-based real-time stock prices (KRX, Overseas) using Naver Finance.

0 views
0 installs

Skill Content

---
name: naver-stock
description: Fetch text-based real-time stock prices (KRX, Overseas) using Naver Finance.
metadata: {"clawdbot":{"emoji":"📈","os":["mac","linux","windows"],"requires":{"bins":["node"]}}}
---

# 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.

```bash
node index.cjs "삼성전자"
node index.cjs "AAPL"
```

## Output Format

Returns a JSON object with price details.

```json
{
  "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
```bash
node index.cjs 005930
```

### Overseas Stock
```bash
node index.cjs "Tesla"
```

### Exchange Rate
```bash
node index.cjs "USD"
node index.cjs "엔"
```