cob integration wip 2
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
"""
|
||||
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
|
||||
@ -265,12 +267,3 @@ def setup_logging(config: Optional[Config] = None):
|
||||
)
|
||||
|
||||
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 {}
|
||||
|
Reference in New Issue
Block a user