Skip to main content
Version: v5

historical

Daily open, high, low, close, and volume for an index.

Examples​

from openbb import obb
# Daily levels of an index.
obb.tmx.index.historical(symbol='^TSX', provider='tmx')

Parameters​

symbol: str
Symbol to get data for.

start_date: date | None | str
Start date of the data, in YYYY-MM-DD format.

end_date: date | None | str
End date of the data, in YYYY-MM-DD format.


Returns​

results: TmxIndexHistorical

Serializable results.

provider: str | None

Provider name.

warnings: Optional[list[Warning_]]

List of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data​

symbol: str | None
Symbol representing the entity requested in the data.

date: date | datetime | str
The date of the data.

open: float | None
The open price.

high: float | None
The high price.

low: float | None
The low price.

close: float | None
The close price.

volume: float | int | None
The trading volume.