mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-07 09:52:13 +00:00
adding date,start_date and end_date to std params
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user