Get candle chart data
tossinvest_get_candlesRetrieve OHLCV price candles for any stock to analyze trends, ranges, and moving averages. Choose daily or 1-minute intervals, paginate backward using nextBefore, and get up to 200 bars per request.
Instructions
Get OHLCV candles for one stock, newest bar first. Max 200 bars per call.
This is the tool for historical price analysis: trends, ranges, moving averages, "how did X do last month".
Args:
symbol (string): One symbol.
interval ('1m' | '1d'): 1-minute or daily bars.
count (number): 1-200, default 100.
before (string, optional): ISO 8601 upper bound, inclusive — only bars at or before this instant. Pass the previous response's nextBefore to page backwards in time. Omit for the newest bars.
adjusted (boolean): default true. Adjust for splits/dividends. Set false for raw prices.
response_format ('markdown' | 'json'): default 'markdown'.
Returns { symbol, interval, count, candles: [{ timestamp, openPrice, highPrice, lowPrice, closePrice, volume, currency }], nextBefore }. timestamp is the bar's OPEN time. nextBefore is null when no older data exists.
Examples:
"Samsung's last 30 trading days" -> symbol='005930', interval='1d', count=30
"Apple intraday today" -> symbol='AAPL', interval='1m', count=200
For indices use tossinvest_get_market_indicator_candles instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of bars to return (max 200). | |
| before | No | Inclusive upper bound (ISO 8601). Only bars at or before this instant. Use the previous response's nextBefore to page backwards. | |
| symbol | Yes | Stock symbol. KRX: 6 digits (e.g. '005930' for Samsung Electronics). US: ticker (e.g. 'AAPL'). | |
| adjusted | No | Apply split/dividend adjustment. Default true. | |
| interval | Yes | Candle interval: '1m' = 1-minute bars, '1d' = daily bars. | |
| response_format | No | Output format: 'markdown' for a compact human-readable summary, 'json' for the complete raw payload. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| symbol | Yes | ||
| candles | Yes | Newest bar first | |
| interval | Yes | ||
| truncated | No | ||
| nextBefore | No | Pass as `before` to fetch the next (older) page; null when no more data | |
| truncation_message | No |