get_price_history
Retrieve historical adjusted closing prices for one or more tickers, with split and dividend adjustments, date ranges, intervals, and optional base-currency conversion.
Instructions
Get historical adjusted closing prices for one or more tickers.
Prices are adjusted for splits and dividends. Series longer than 400
points are thinned evenly (first and last kept, `thinned: true`); use a
coarser interval for full data. For statistics, prefer
get_performance_stats / analyze_portfolio_risk over computing from this.
Args:
tickers: Yahoo symbols, e.g. ["AAPL", "ASML.AS", "VWCE.DE"].
start_date: YYYY-MM-DD. Defaults to 2020-01-01.
end_date: YYYY-MM-DD (exclusive). Defaults to the latest value.
interval: "1d", "1wk" or "1mo".
base_currency: Optional ISO code (e.g. "EUR") to convert all prices
into with daily FX; default is each listing's own currency.
Returns:
Per ticker: first/last date, last price, points, `thinned` and
`prices` by date; or an error dict.
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": {
"tickers": "<tickers>"
},
"name": "get_price_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tickers | Yes | ||
| end_date | No | ||
| interval | No | 1d | |
| start_date | No | 2020-01-01 | |
| base_currency | No |