Skip to content

Commit

Permalink
[BugFix] Fix bad key in __json_schema_extra__ of IntrinioEquityHist…
Browse files Browse the repository at this point in the history
…orical (#6669)

* Update equity_historical.py

Fix bad key in `__json_schema_extra__`

* TE calendar choices

* extra bracket

* black
  • Loading branch information
deeleeramone authored Sep 17, 2024
1 parent 7146373 commit 95ffa1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class IntrinioEquityHistoricalQueryParams(EquityHistoricalQueryParams):
"""

__json_schema_extra__ = {
"symbol": {
"interval": {
"choices": [
"1m",
"5m",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,15 @@ class TEEconomicCalendarQueryParams(EconomicCalendarQueryParams):
},
"calendar_id": {
"multiple_items_allowed": True,
},
"importance": {
"multiple_items_allowed": False,
"choices": IMPORTANCE_CHOICES,
},
"group": {
"multiple_items_allowed": False,
"choices": GROUPS_CHOICES,
},
}
country: Optional[str] = Field(
default=None,
Expand All @@ -84,9 +91,8 @@ class TEEconomicCalendarQueryParams(EconomicCalendarQueryParams):
group: Optional[GROUPS] = Field(
default=None,
description="Grouping of events.",
json_schema_extra={"choices": GROUPS_CHOICES}, # type: ignore[dict-item]
)
calendar_id: Optional[Union[int, str]] = Field(
calendar_id: Union[None, int, str] = Field(
default=None, description="Get events by TradingEconomics Calendar ID."
)
_number_of_countries: int = 0
Expand Down

0 comments on commit 95ffa1b

Please sign in to comment.