diff --git a/core/config.py b/core/config.py index f86b26f..a95d8f0 100644 --- a/core/config.py +++ b/core/config.py @@ -1,9 +1,7 @@ -""" Central Configuration Management This module handles all configuration for the trading system. It loads settings from config.yaml and provides easy access to all components. -""" import os import yaml @@ -236,6 +234,15 @@ def get_config(config_path: str = "config.yaml") -> Config: _config_instance = Config(config_path) return _config_instance +def load_config(config_path: str = "config.yaml") -> Dict[str, Any]: + """Load configuration from YAML file""" + try: + config = get_config(config_path) + return config._config + except Exception as e: + logger.error(f"Error loading configuration: {e}") + return {} + def setup_logging(config: Optional[Config] = None): """Setup logging based on configuration""" if config is None: @@ -257,4 +264,13 @@ def setup_logging(config: Optional[Config] = None): ] ) - logger.info("Logging configured successfully") \ No newline at end of file + logger.info("Logging configured successfully") + +def load_config(config_path: str = "config.yaml") -> Dict[str, Any]: + """Load configuration from YAML file""" + try: + config = get_config(config_path) + return config._config + except Exception as e: + logger.error(f"Error loading configuration: {e}") + return {} diff --git a/web/enhanced_cob_dashboard.html b/web/enhanced_cob_dashboard.html index 04f29eb..712bffb 100644 Binary files a/web/enhanced_cob_dashboard.html and b/web/enhanced_cob_dashboard.html differ