Stock Price (Daily)
get_stock_priceUse this when the user asks for a share price on a date or a return between two dates: end-of-day closes for US-listed stocks (close as traded, plus split-adjusted adj_close; OHLC and volume may be absent), from a market-data feed, not SEC filings; get_company_overview shows only the latest price; get_metric_history has period-end multiples.
Rows exist ONLY for days with a close: no weekends/holidays, and a thinly traded name can skip open days:
Price ON OR AFTER a date (a single date, or an announcement landing on a weekend): pass start_date= alone; the FIRST row of the short forward window is that date or the next day with a close.
Price ON OR BEFORE a date: pass end_date=; the LAST row is that date or the prior day with a close.
Use Cases:
"AAPL close on 2025-07-28" -> get_stock_price("AAPL", start_date="2025-07-28")
"DKNG return 2025-01-02 → 2026-02-27" -> get_stock_price("DKNG", start_date="2025-01-02") + get_stock_price("DKNG", end_date="2026-02-27"), first/last close (cheaper than one 14-month window)
"SUI +1/+14/+30 days after an 8-K" -> start_date=, end_date=<announce + ~32d>; pick rows on/after each
No dates -> the latest price
When the window spans ≥2 trading days, the response also reports the first/last close and the period return on adj_close (split-adjusted; not a total return), or none when any row lacks adj_close.
Each response also includes the latest REPORTED period-end shares outstanding on/before your end date (period-end balance-sheet count; dei cover where absent) plus the implied market cap at the latest close — use these for market-cap / EV / P/B math instead of deriving share counts from NI/EPS (that yields weighted-average shares, a different basis).
Coverage: US exchange-listed common-equity tickers, end-of-day only (no intraday/real-time, no options/FX). History before 2017 may be sparse or absent. For a CUSTOM multiple (e.g. lease-adjusted EV), get_metric_history's metric_id lists the primitives to price with this tool.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows (newest first if the window exceeds it). Default 30. With start_date alone, the short forward window is returned whole. For a point-to-point return over a long span, make TWO narrow-window calls (one per date) rather than one wide window — cheaper, and avoids the cap dropping your start date. Replies are capped at ~20K chars: when the rows do not fit, raw_data carries the NEWEST rows that do, and a `Next:` call (an earlier end_date) returns the rest. | |
| ticker | Yes | Company ticker symbol (e.g., 'AAPL'). US exchange-listed (NYSE/Nasdaq/AMEX), 1–5 letters. | |
| end_date | No | Window end (YYYY-MM-DD). The LAST returned row on/before this date is the price ON OR BEFORE it. Omit start_date to fetch just the price on/before this date. | |
| start_date | No | Window start (YYYY-MM-DD). Rows exist only for days with a close (no weekends/holidays; a thinly traded name can skip open days) — the FIRST returned row is the price ON OR AFTER this date. Omit end_date to fetch just the price on/after this date. |