adding date,start_date and end_date to std params

This commit is contained in:
hjoaquim
2024-01-23 09:57:20 +00:00
parent 04df52d06a
commit 4fd94411b4
2 changed files with 9 additions and 9 deletions

View File

@@ -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

View File

@@ -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.",