TX Sheet Control

STOCKHISTORY Function

Function

Return historical price data of a stock or other financial instrument as an array. stock is the ticker symbol, and start_date and end_date limit the period; the further arguments choose the interval, the headers and the properties to return. STOCKHISTORY requires host-provided data: it calculates only when the application supplies the prices through a formula provider, and without one it returns #N/A.

Syntax

STOCKHISTORY(stock, start_date, end_date, interval, headers, property0, property1)

Category: Financial. Minimum arguments: 2. Maximum arguments: 11.

Important

Application Data or Provider Required. Configure the documented provider rather than expecting automatic network or Excel-service access.

Examples

=STOCKHISTORY("MSFT",DATE(2026,1,1),DATE(2026,1,2))

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also