get_ohlcv
Retrieve historical OHLCV stock candles by 6-character Korean code, with daily, weekly, monthly, or yearly periods, adjusted prices, and optional date ranges. Returns up to 300 rows per call.
Instructions
Historical candles (open/high/low/close/volume), oldest first. Up to ~300 rows per call; see 'truncated'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 6-character stock code, e.g. '005930' | |
| period | No | D daily, W weekly, M monthly, Y yearly | D |
| adjusted | No | Use split/dividend-adjusted prices | |
| end_date | No | YYYYMMDD or YYYY-MM-DD (default: today, KST) | |
| start_date | No | YYYYMMDD or YYYY-MM-DD (default: ~120 days back for daily) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||