historical
Historical prices for a futures contract.
Examples
from openbb import obb
# Futures price history.
obb.tmx.derivatives.futures.historical(symbol='CGB', provider='tmx')
Parameters
- standard
- tmx
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.
expiration: str | None
Future expiry date with format YYYY-MM
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.
expiration: str | None
Future expiry date with format YYYY-MM
interval: str | None
Default: day
The interval of the bars.
Returns
results: TmxFuturesHistorical
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
- standard
- tmx
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
The close price.
volume: float | None
The trading volume.
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
The close price.
volume: float | None
The trading volume.