- Suppressed SQLAlchemy logging in `app.py` and `main.py` to reduce console verbosity. - Introduced a new modular chart system in `components/charts/` with a `ChartBuilder` class for flexible chart creation. - Added utility functions for data processing and validation in `components/charts/utils.py`. - Implemented indicator definitions and configurations in `components/charts/config/indicator_defs.py`. - Created a comprehensive documentation structure for the new chart system, ensuring clarity and maintainability. - Added unit tests for the `ChartBuilder` class to verify functionality and robustness. - Updated existing components to integrate with the new chart system, enhancing overall architecture and user experience.
38 lines
1.0 KiB
Python
38 lines
1.0 KiB
Python
"""
|
|
Chart Configuration Package
|
|
|
|
This package contains configuration management for the modular chart system,
|
|
including indicator definitions, strategy-specific configurations, and defaults.
|
|
"""
|
|
|
|
from .indicator_defs import (
|
|
INDICATOR_DEFINITIONS,
|
|
ChartIndicatorConfig,
|
|
calculate_indicators,
|
|
convert_database_candles_to_ohlcv,
|
|
get_indicator_display_config,
|
|
get_available_indicators,
|
|
get_overlay_indicators,
|
|
get_subplot_indicators,
|
|
get_default_indicator_params
|
|
)
|
|
|
|
# Package metadata
|
|
__version__ = "0.1.0"
|
|
__package_name__ = "config"
|
|
|
|
# Public exports
|
|
__all__ = [
|
|
"INDICATOR_DEFINITIONS",
|
|
"ChartIndicatorConfig",
|
|
"calculate_indicators",
|
|
"convert_database_candles_to_ohlcv",
|
|
"get_indicator_display_config",
|
|
"get_available_indicators",
|
|
"get_overlay_indicators",
|
|
"get_subplot_indicators",
|
|
"get_default_indicator_params"
|
|
]
|
|
|
|
# Legacy function names for backward compatibility
|
|
validate_indicator_config = get_default_indicator_params # Will be properly implemented in future tasks |