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'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "get_ohlcv"
}
}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 | |||