Get stock price history and technical indicators
get_stock_price_historyRead bounded stored stock OHLCV history, ascending by trade date, as daily, weekly or monthly bars, with close-based price returns/drawdown and optional deterministic SMA, EMA, Wilder RSI and MACD. Useful for price trends, volatility context and technical analysis; use get_stock_metrics for a latest company snapshot. Up to 2600 recent daily source rows; dates filter that bounded window. Provider split/dividend adjustment is unknown: returns are not verified total returns. Missing OHLCV/indicator warm-up remains null; no synthetic sessions, intraday data or live quote claims. Read-only.
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_stock_price_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum most-recent DAILY source bars to load before date filtering and aggregation (hard cap 2600). Increase for indicator warm-up or longer history. | |
| ticker | Yes | Bullrun stock ticker, e.g. AAPL, SAP, ABBN, 6324.T or 7203. Use the listing ticker returned by search_stocks. US/European examples: AAPL, BMW, NESN. Most Asian listings keep their exchange suffix (6324.T, 0700.HK); some use bare codes (005930). Native or suffixed forms resolve only when one listing matches; search by company name or ISIN if unsure. | |
| endDate | No | Inclusive last trade date; the API still loads the most recent source bars before this filter. | |
| interval | No | Aggregate stored daily bars. Weekly buckets start Monday; monthly buckets use the calendar month. No intraday or live quotes. | daily |
| rsiPeriod | No | Number of close-to-close changes for Wilder RSI. MACD uses fixed EMA periods 12/26 and signal 9. | |
| startDate | No | Inclusive trade-date cutoff, applied after loading the latest source bars. Cannot page into history older than the source limit. | |
| indicators | No | Optional indicators computed on the selected interval's closes after date filtering. Insufficient warm-up yields null, never a fabricated value. | |
| movingAveragePeriod | No | Observation count for SMA and EMA, in the selected interval. |