Riwayat harga saham
get_historyFetch historical IDX stock prices (OHLC + volume) for a chosen range, including total return with dividends, stock splits, high, low, and max drawdown.
Instructions
Ambil riwayat harga (OHLC + volume) saham IDX untuk rentang waktu tertentu beserta ringkasan: priceReturnPct (harga saja), totalReturnPct (termasuk dividen), dividen & stock split dalam rentang, tertinggi, terendah, max drawdown. Maksimal 300 candle terakhir; gunakan interval 1wk/1mo untuk rentang panjang.
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": {
"ticker": "<ticker>"
},
"name": "get_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | Rentang waktu | 6mo |
| ticker | Yes | Kode saham IDX, mis. BBCA | |
| interval | No | Interval candle | 1d |