mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-12-01 13:44:16 +00:00
feat: balancesheet
This commit is contained in:
@@ -9,8 +9,9 @@ from openbb_core.provider.standard_models.balance_sheet import (
|
||||
BalanceSheetQueryParams,
|
||||
)
|
||||
from openbb_core.provider.utils.helpers import get_querystring
|
||||
from openbb_core.provider.utils.validators import check_single
|
||||
from openbb_polygon.utils.helpers import get_data_many
|
||||
from pydantic import Field
|
||||
from pydantic import Field, field_validator
|
||||
|
||||
|
||||
class PolygonBalanceSheetQueryParams(BalanceSheetQueryParams):
|
||||
@@ -70,6 +71,11 @@ class PolygonBalanceSheetQueryParams(BalanceSheetQueryParams):
|
||||
default=None, description="Sort of the financial statement."
|
||||
)
|
||||
|
||||
@field_validator("symbol", mode="before", check_fields=False)
|
||||
@classmethod
|
||||
def validate_symbol(cls, v: str) -> str:
|
||||
return check_single(v)
|
||||
|
||||
|
||||
class PolygonBalanceSheetData(BalanceSheetData):
|
||||
"""Polygon Balance Sheet Statement Data."""
|
||||
|
||||
Reference in New Issue
Block a user