Get market index history
get_index_historyRetrieve daily OHLC history for TAIEX or TPEX indices over a chosen window, with moving averages and technical indicators for trend analysis.
Instructions
Daily OHLC history of a Taiwan headline index: TAIEX (發行量加權股價指數, TWSE) or TPEX (櫃買指數, TPEx), with the same summary, moving averages and technical indicators (RSI, MACD, KD, Bollinger Bands) as get_history. Choose a window with range (1m, 3m, 6m, 1y back from today) or start/end dates (max 366 days; one request per month, so split longer periods into several calls). Bars default to daily for windows up to about 3 months and weekly beyond that; pass interval for week, month or year bars aggregated from daily data. Values are index points. The index pages publish no volume or turnover; use get_market_overview for a day's market turnover. Data is end-of-day and updates after the close (about 14:30 Taipei); use get_market_index for live values and FRMSA.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_index_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Last date, YYYY-MM-DD. Default today. | |
| index | No | Default "TAIEX". | |
| range | No | Window ending today. Default "1m". Do not combine with start. | |
| start | No | First date, YYYY-MM-DD. | |
| interval | No | Bar size. Default: "day" up to ~3 months, else "week". Week, month and year bars aggregate daily data. | |
| indicators | No | Technical indicators of daily data, with standard parameters: "rsi" (RSI 14, Wilder), "macd" (MACD 12, 26, 9), "kd" (Taiwan stochastic KD 9, 3, 3), "bollinger" (Bollinger Bands 20, 2σ). Earlier data is loaded so values start at the first bar. | |
| moving_averages | No | Simple moving averages of daily closes, e.g. [5, 20, 60]. Earlier data is loaded so values start at the first bar. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| bars | Yes | ||
| name | Yes | ||
| index | Yes | ||
| notes | Yes | ||
| start | Yes | ||
| market | Yes | Exchange that publishes the index | |
| summary | Yes | Null when there were no trading days in the window. change and change_percent (index points and percent) are measured from reference_close (the last close before the window, dated reference_date), not from first_close. | |
| interval | Yes |