Skip to main content

historical

Get historical price data for a given stock. This includes open, high, low, close, and volume.

Parameters

symbol: Union[str, list[str]]

Symbol to get data for. Multiple items allowed for provider(s): alpha_vantage, cboe, fmp, polygon, tiingo, tmx, tradier, yfinance.

Optional: False


start_date: Union[date, str]

Start date of the data, in YYYY-MM-DD format.

Optional: True


end_date: Union[date, str]

End date of the data, in YYYY-MM-DD format.

Optional: True


Returns

results: list[EquityHistorical]

Serializable results.


provider: Optional[Literal['alpha_vantage', 'cboe', 'fmp', 'intrinio', 'polygon', 'tiingo', 'tmx', 'tradier', 'yfinance']]

Provider name.


warnings: Optional[list[Warning_]]

list of warnings.


chart: Optional[Chart]

Chart object.


extra: dict[str, Any]

Extra info.


Data

date: Union[Union[date, datetime], str]

The date of the data.

open: float

The open price.

high: float

The high price.

low: float

The low price.

close: float

The close price.

volume: Union[float, int]

The trading volume.

vwap: float

Volume Weighted Average Price over the period.