The stock or index symbol, such as "AAPL" or "^GSPTSE".
The inclusive start of the requested range.
The inclusive end of the requested range. The observation beginning at this date or time is included when available.
The financial variable to retrieve.
The interval between observations: daily, hourly, or every minute.
The available observations, with Unix timestamps in milliseconds. Missing values reported by Yahoo are omitted.
Fetches historical prices or trading volume for a symbol from Yahoo Finance.
Yahoo Finance notice: This function uses an undocumented Yahoo Finance endpoint and is not affiliated with or endorsed by Yahoo. It is provided for educational, research, and journalistic purposes. Before using it, review Yahoo's terms and any applicable data-provider restrictions.