diff options
Diffstat (limited to 'openbb_platform/core/openbb_core/provider/standard_models/historical_attributes.py')
-rw-r--r-- | openbb_platform/core/openbb_core/provider/standard_models/historical_attributes.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/openbb_platform/core/openbb_core/provider/standard_models/historical_attributes.py b/openbb_platform/core/openbb_core/provider/standard_models/historical_attributes.py index 08fb79958ea..39c3e58b44c 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/historical_attributes.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/historical_attributes.py @@ -47,10 +47,16 @@ class HistoricalAttributesQueryParams(QueryParams): @field_validator("symbol", mode="before", check_fields=False) @classmethod - def upper_symbol(cls, v: str) -> str: - """Convert symbol to uppercase.""" + def to_upper(cls, v: str) -> str: + """Convert field to uppercase.""" return v.upper() + @field_validator("frequency", "sort", mode="before", check_fields=False) + @classmethod + def to_lower(cls, v: Optional[str]) -> Optional[str]: + """Convert field to lowercase.""" + return v.lower() if v else v + class HistoricalAttributesData(Data): """Historical Attributes Data.""" |