Get Stock Price History
get_stock_historyDaily OHLCV price history for a stock.
days: number of trading days to return (default 90). Guest/free: max 365. Pro: full history, up to 20,000 trading days (most established names go back decades; a full pull can be ~10,000+ bars, so request only what you need).
Returns: { symbol, days_requested, days_returned, count, history[], history_available: { bars, earliest_date } } - days_returned/count can be less than days_requested if less history exists. When a guest/free caller asks for more than 365 days the response is capped at 365 and carries a
pro_unlocksnote saying what Pro adds.Per bar: date, open, high, low, close, volume
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of trading days of daily OHLCV history to return (default 90). Max 365 for guest and free; Pro can request the full history (up to 20,000 trading days). A full-history call can be ~10,000+ bars - prefer a narrower window unless you need it all. days_returned/count in the response can be less than this if less history exists. | |
| symbol | Yes | Stock ticker symbol. Also accepts a company name as a fallback when it uniquely resolves to one symbol. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||