get_stock_prices
Price history (open, high, low, close, volume) plus dividends of a stock, ETF or index. interval '1d' = daily bars (full history available), '5m' = 5-minute bars of about the last month. points = how many of the newest bars to return (default 250, about one trading year of daily bars; up to about 500 fit in one answer). ETFs and indexes work like stocks, e.g. SPY, VOO, QQQ, DIA, IWM, VTI, bond funds TLT, IEF, SHY, AGG, BND, HYG, LQD, sector funds XLK to XLRE, GLD, IAU, SLV; indexes start with a caret: ^GSPC (S&P 500; ^SPX also works), ^DJI, ^IXIC, ^NDX, ^RUT, ^VIX, ^TNX. search_symbols finds the ticker of a fund or index by name.
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_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | No | How many of the newest bars to return (default 250, about one trading year of daily bars). | |
| ticker | Yes | Ticker symbol, e.g. AAPL, SPY or BTC-USD (crypto uses the -USD suffix). | |
| filters | No | Optional extra filters as a JSON object of API parameter names and values, e.g. {"fiscal_year": 2025}. Call list_filters with this tool's name to see every accepted filter. | |
| interval | No | '1d' for daily bars (full history) or '5m' for 5-minute bars (about the last month). | 1d |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The records: a list of objects (or one object) with the requested data. | |
| note | No | Present when the answer was shortened, with how to get the rest. | |
| rows | No | Number of records the API returned (before any shortening). | |
| error | No | Present when the call failed, with the reason. | |
| detail | No | Extra error detail from the API, e.g. which filter is required. | |
| paging | No | For paged answers: offset, rows_shown, total and next_offset (call again with offset=next_offset for more rows). | |
| endpoint | No | DataPorium API endpoint that answered, e.g. /company-info. | |
| filters_sent | No | Filters sent to the API for this answer. | |
| allowed_filters | No | On an unknown-filter error: the filters this endpoint accepts. |