"""
=========================================
CV6 AI Trading OS
Indicator Validator
=========================================
"""


class IndicatorValidator:

    @staticmethod
    def validate_prices(prices: list[float], period: int):

        if not prices:
            return {
                "valid": False,
                "message": "Price list is empty."
            }

        if len(prices) <= period:
            return {
                "valid": False,
                "message": f"Minimum {period + 1} price values required."
            }

        return {
            "valid": True
        }