contango.market.data_providers.historical_data_provider
contango.market.data_providers.historical_data_provider
HistoricalDataProvider
Bases: ABC, Generic[TConfig]
A single broker (or data provider) for historical market data.
get_bars
abstractmethod
get_bars(config: TConfig) -> list[MarketDataEvent]
Returns a list of market data events for any configuration parameters.
Source code in src\contango\market\data_providers\historical_data_provider.py
18 19 20 21 22 23 | |
get_expected_timestamps
abstractmethod
get_expected_timestamps(config: TConfig) -> Iterable[datetime]
Returns an Iterable of the expected timestamps for the start & finishing timestamps of a configuration.
Source code in src\contango\market\data_providers\historical_data_provider.py
25 26 27 28 29 30 31 32 33 | |