diff --git a/openbb_sdk/providers/fmp/openbb_fmp/models/major_indices_eod.py b/openbb_sdk/providers/fmp/openbb_fmp/models/major_indices_eod.py index 9b45d6dd5ac..c8e02ae264e 100644 --- a/openbb_sdk/providers/fmp/openbb_fmp/models/major_indices_eod.py +++ b/openbb_sdk/providers/fmp/openbb_fmp/models/major_indices_eod.py @@ -66,7 +66,9 @@ class FMPMajorIndicesEODData(MajorIndicesEODData): cls, v, values: Dict[str, Any] ) -> datetime: """Return the date as a datetime object.""" - return datetime.strptime(v, "%Y-%m-%d") + if values.get("changeOverTime", None) is not None: + return datetime.strptime(v, "%Y-%m-%d") + return datetime.strptime(v, "%Y-%m-%d %H:%M:%S") class FMPMajorIndicesEODFetcher( diff --git a/openbb_sdk/sdk/provider/openbb_provider/standard_models/company_overview.py b/openbb_sdk/sdk/provider/openbb_provider/standard_models/company_overview.py index 7c379b37ba0..a8cc2dd0611 100644 --- a/openbb_sdk/sdk/provider/openbb_provider/standard_models/company_overview.py +++ b/openbb_sdk/sdk/provider/openbb_provider/standard_models/company_overview.py @@ -37,17 +37,19 @@ class CompanyOverviewData(Data, BaseSymbol): exchange_short_name: str = Field(description="Exchange short name of the company.") industry: str = Field(description="Industry of the company.") website: str = Field(description="Website of the company.") - description: str = Field(description="Description of the company.") + description: Optional[str] = Field(description="Description of the company.") ceo: str = Field(description="CEO of the company.") sector: str = Field(description="Sector of the company.") country: str = Field(description="Country of the company.") - full_time_employees: str = Field(description="Full time employees of the company.") - phone: str = Field(description="Phone of the company.") - address: str = Field(description="Address of the company.") - city: str = Field(description="City of the company.") - state: str = Field(description="State of the company.") - zip: str = Field(description="Zip of the company.") - dcf_diff: float = Field( + full_time_employees: Optional[str] = Field( + description="Full time employees of the company." + ) + phone: Optional[str] = Field(description="Phone of the company.") + address: Optional[str] = Field(description="Address of the company.") + city: Optional[str] = Field(description="City of the company.") + state: Optional[str] = Field(description="State of the company.") + zip: Optional[str] = Field(description="Zip of the company.") + dcf_diff: Optional[float] = Field( description="Discounted cash flow difference of the company." ) dcf: float = Field(description="Discounted cash flow of the company.")