Stock price
get_stock_priceA share price from Mappit's daily price history: every S&P 500 company back to its first trading day (Apple from 1980-12-12), plus the S&P 500, the Dow, the Nasdaq Composite, bitcoin and ether. With no date: the latest close, the day's change, the 52-week range and the dividend yield. With date: the close on that day, as it traded, and the same price in today's shares when the company has split since. With from/to (or a year or month in date): the change over the span, the return with dividends, the high and low, splits, dividends and a sampled series. End-of-day prices, not live quotes. State and county averages are the indicators stock_day_change_pct, stock_year_return_pct, stock_dividend_yield_pct and stock_dollar_volume in get_statistic and rank_regions.
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": {
"company": "<company>"
},
"name": "get_stock_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of a span: "2024-12-31", "2024-12" or "2024". Default: the latest close. | |
| date | No | One day, "2020-03-23"; or a whole year ("2008") or month ("2020-03") for how it did over that period. Default: the latest close. | |
| from | No | Start of a span: "2020-01-01", "2020-01" or "2020". | |
| company | Yes | The company, index or coin: a name ("Apple", "Berkshire Hathaway", "the S&P 500", "bitcoin") or a ticker symbol ("AAPL", "BRK.B"). |