-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/bugfix/remove-xlsx-export-from…
…-cli-tables' into bugfix/remove-xlsx-export-from-cli-tables
- Loading branch information
Showing
42 changed files
with
8,453 additions
and
1,063 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
openbb_platform/core/openbb_core/provider/standard_models/compare_company_facts.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
"""Compare Company Facts Model.""" | ||
|
||
from datetime import date as dateType | ||
from typing import Optional | ||
|
||
from pydantic import Field | ||
|
||
from openbb_core.provider.abstract.data import Data | ||
from openbb_core.provider.abstract.query_params import QueryParams | ||
from openbb_core.provider.utils.descriptions import ( | ||
DATA_DESCRIPTIONS, | ||
QUERY_DESCRIPTIONS, | ||
) | ||
|
||
|
||
class CompareCompanyFactsQueryParams(QueryParams): | ||
"""Compare Company Facts Query.""" | ||
|
||
symbol: Optional[str] = Field( | ||
default=None, description=QUERY_DESCRIPTIONS.get("symbol", "") | ||
) | ||
fact: str = Field( | ||
default="", | ||
description="The fact to lookup, typically a GAAP-reporting measure. Choices vary by provider.", | ||
) | ||
|
||
|
||
class CompareCompanyFactsData(Data): | ||
"""Compare Company Facts Data.""" | ||
|
||
symbol: Optional[str] = Field( | ||
default=None, description=DATA_DESCRIPTIONS.get("symbol", "") | ||
) | ||
name: Optional[str] = Field(default=None, description="Name of the entity.") | ||
value: float = Field( | ||
description="The reported value of the fact or concept.", | ||
) | ||
reported_date: Optional[dateType] = Field( | ||
default=None, description="The date when the report was filed." | ||
) | ||
period_beginning: Optional[dateType] = Field( | ||
default=None, | ||
description="The start date of the reporting period.", | ||
) | ||
period_ending: Optional[dateType] = Field( | ||
default=None, | ||
description="The end date of the reporting period.", | ||
) | ||
fiscal_year: Optional[int] = Field( | ||
default=None, | ||
description="The fiscal year.", | ||
) | ||
fiscal_period: Optional[str] = Field( | ||
default=None, | ||
description="The fiscal period of the fiscal year.", | ||
) |
14 changes: 0 additions & 14 deletions
14
openbb_platform/core/openbb_core/provider/standard_models/etf_holdings_performance.py
This file was deleted.
Oops, something went wrong.
75 changes: 75 additions & 0 deletions
75
openbb_platform/core/openbb_core/provider/standard_models/forward_ebitda_estimates.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
"""Forward EBITDA Estimates Standard Model.""" | ||
|
||
from datetime import date as dateType | ||
from typing import Optional, Union | ||
|
||
from pydantic import Field, field_validator | ||
|
||
from openbb_core.provider.abstract.data import Data, ForceInt | ||
from openbb_core.provider.abstract.query_params import QueryParams | ||
from openbb_core.provider.utils.descriptions import ( | ||
DATA_DESCRIPTIONS, | ||
QUERY_DESCRIPTIONS, | ||
) | ||
|
||
|
||
class ForwardEbitdaEstimatesQueryParams(QueryParams): | ||
"""Forward EBITDA Estimates Query Parameters.""" | ||
|
||
symbol: Optional[str] = Field( | ||
default=None, | ||
description=QUERY_DESCRIPTIONS["symbol"], | ||
) | ||
|
||
@field_validator("symbol", mode="before", check_fields=False) | ||
@classmethod | ||
def to_upper(cls, v): | ||
"""Convert field to uppercase.""" | ||
return v.upper() if v else None | ||
|
||
|
||
class ForwardEbitdaEstimatesData(Data): | ||
"""Forward EBITDA Estimates Data.""" | ||
|
||
symbol: str = Field(description=DATA_DESCRIPTIONS.get("symbol", "")) | ||
name: Optional[str] = Field(default=None, description="Name of the entity.") | ||
last_updated: Optional[dateType] = Field( | ||
default=None, | ||
description="The date of the last update.", | ||
) | ||
period_ending: Optional[dateType] = Field( | ||
default=None, | ||
description="The end date of the reporting period.", | ||
) | ||
fiscal_year: Optional[int] = Field( | ||
default=None, description="Fiscal year for the estimate." | ||
) | ||
fiscal_period: Optional[str] = Field( | ||
default=None, description="Fiscal quarter for the estimate." | ||
) | ||
calendar_year: Optional[int] = Field( | ||
default=None, description="Calendar year for the estimate." | ||
) | ||
calendar_period: Optional[Union[int, str]] = Field( | ||
default=None, description="Calendar quarter for the estimate." | ||
) | ||
low_estimate: Optional[ForceInt] = Field( | ||
default=None, description="The EBITDA estimate low for the period." | ||
) | ||
high_estimate: Optional[ForceInt] = Field( | ||
default=None, description="The EBITDA estimate high for the period." | ||
) | ||
mean: Optional[ForceInt] = Field( | ||
default=None, description="The EBITDA estimate mean for the period." | ||
) | ||
median: Optional[ForceInt] = Field( | ||
default=None, description="The EBITDA estimate median for the period." | ||
) | ||
standard_deviation: Optional[ForceInt] = Field( | ||
default=None, | ||
description="The EBITDA estimate standard deviation for the period.", | ||
) | ||
number_of_analysts: Optional[int] = Field( | ||
default=None, | ||
description="Number of analysts providing estimates for the period.", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.