summaryrefslogtreecommitdiffstats
path: root/openbb_platform/core/openbb_core/provider/standard_models/cash_flow.py
diff options
context:
space:
mode:
authorIgor Radovanovic <74266147+IgorWounds@users.noreply.github.com>2024-03-08 16:55:56 +0100
committerGitHub <noreply@github.com>2024-03-08 16:55:56 +0100
commit5fce0606745d5d2d061c4591a12457373c61d958 (patch)
tree51b53b3a26c5241f874205343995d0e33ca54520 /openbb_platform/core/openbb_core/provider/standard_models/cash_flow.py
parent8861d7336ccf9907d235e1e19dd01374844fe994 (diff)
parent8f3d3323e3d1635314e8f5ba02db57f6f55fdabc (diff)
Merge branch 'develop' into bugfix/fix-duplicatesbugfix/fix-duplicates
Diffstat (limited to 'openbb_platform/core/openbb_core/provider/standard_models/cash_flow.py')
-rw-r--r--openbb_platform/core/openbb_core/provider/standard_models/cash_flow.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/openbb_platform/core/openbb_core/provider/standard_models/cash_flow.py b/openbb_platform/core/openbb_core/provider/standard_models/cash_flow.py
index a2495a26da1..c3c12e777bb 100644
--- a/openbb_platform/core/openbb_core/provider/standard_models/cash_flow.py
+++ b/openbb_platform/core/openbb_core/provider/standard_models/cash_flow.py
@@ -24,10 +24,16 @@ class CashFlowStatementQueryParams(QueryParams):
@field_validator("symbol", mode="before", check_fields=False)
@classmethod
- def upper_symbol(cls, v: str):
- """Convert symbol to uppercase."""
+ def to_upper(cls, v: str):
+ """Convert field to uppercase."""
return v.upper()
+ @field_validator("period", 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 CashFlowStatementData(Data):
"""Cash Flow Statement Data."""