alpheast.config.config_loader module¶
- class alpheast.config.config_loader.ConfigLoader[source]¶
Bases:
objectUtility class to load backtest configurations from a JSON file.
- static load_backtest_config_from_json(filepath)[source]¶
Loads backtest configuration from a JSON file.
- Parameters:
filepath (str) – The path to the JSON configuration file.
- Returns:
An instance of BacktestConfig populated from the file.
- Return type:
- Raises:
FileNotFoundError – If the specified file does not exist.
json.JSONDecodeError – If the file content is not valid JSON.
ValueError – If the JSON content is missing required fields or has invalid types.