Get index or bond yield candles
tossinvest_get_market_indicator_candlesFetch OHLCV candles for Korean indices and treasury yields, newest first. Pick symbol and interval (1m for indices, 1d for yields), request up to 200 bars, and page backward with nextBefore.
Instructions
Get OHLCV history for a Korean index or treasury yield, newest bar first. Max 200 bars per call.
Args:
symbol: one of KOSPI, KOSDAQ, KR_BOND_2Y, KR_BOND_3Y, KR_BOND_5Y, KR_BOND_10Y, KR_BOND_20Y, KR_BOND_30Y.
interval ('1m' | '1d'): '1m' is supported for KOSPI and KOSDAQ ONLY. KR_BOND_* support '1d' only and reject '1m' with 400 invalid-request.
count (number): 1-200, default 100.
before (string, optional): ISO 8601 inclusive upper bound. Pass the previous response's nextBefore to page backwards.
response_format ('markdown' | 'json'): default 'markdown'.
Returns { symbol, interval, count, candles: [{ timestamp, openPrice, highPrice, lowPrice, closePrice, volume }], nextBefore }. For KR_BOND_* the OHLC values are yields in percent, not prices.
Errors: 400 unsupported-symbol outside the catalog; 400 invalid-request for '1m' on a bond symbol.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of bars to return (max 200). | |
| before | No | Inclusive upper bound (ISO 8601). Use the previous response's nextBefore to page backwards. | |
| symbol | Yes | Market indicator symbol. Indices: KOSPI, KOSDAQ. Korean treasury yields: KR_BOND_2Y/3Y/5Y/10Y/20Y/30Y. | |
| interval | Yes | '1d' for all symbols; '1m' only for KOSPI and KOSDAQ. | |
| 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 | ||
| interval | Yes | ||
| truncated | No | ||
| nextBefore | No | ||
| truncation_message | No |