From 4fd94411b4ffb013d4c29333ec14127586c2f4db Mon Sep 17 00:00:00 2001 From: hjoaquim Date: Tue, 23 Jan 2024 09:57:20 +0000 Subject: [PATCH] adding date,start_date and end_date to std params --- .../openbb_core/provider/standard_models/company_news.py | 9 +++++++++ .../benzinga/openbb_benzinga/models/company_news.py | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/openbb_platform/core/openbb_core/provider/standard_models/company_news.py b/openbb_platform/core/openbb_core/provider/standard_models/company_news.py index 90047c81127..da59fe31790 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/company_news.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/company_news.py @@ -25,6 +25,15 @@ class CompanyNewsQueryParams(QueryParams): limit: Optional[NonNegativeInt] = Field( default=20, description=QUERY_DESCRIPTIONS.get("limit", "") ) + date: Optional[str] = Field( + default=None, description="Date of the news to retrieve." + ) + start_date: Optional[str] = Field( + default=None, description="Start date of the news to retrieve." + ) + end_date: Optional[str] = Field( + default=None, description="End date of the news to retrieve." + ) @field_validator("symbols", mode="before") @classmethod diff --git a/openbb_platform/providers/benzinga/openbb_benzinga/models/company_news.py b/openbb_platform/providers/benzinga/openbb_benzinga/models/company_news.py index 964e077af08..1d23430162f 100644 --- a/openbb_platform/providers/benzinga/openbb_benzinga/models/company_news.py +++ b/openbb_platform/providers/benzinga/openbb_benzinga/models/company_news.py @@ -34,15 +34,6 @@ class BenzingaCompanyNewsQueryParams(CompanyNewsQueryParams): default="full", description="Specify headline only (headline), headline + teaser (abstract), or headline + full body (full).", ) - date: Optional[str] = Field( - default=None, description="Date of the news to retrieve." - ) - start_date: Optional[str] = Field( - default=None, description="Start date of the news to retrieve." - ) - end_date: Optional[str] = Field( - default=None, description="End date of the news to retrieve." - ) updated_since: Optional[int] = Field( default=None, description="Number of seconds since the news was updated.",