Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions openbb_platform/providers/nasdaq/openbb_nasdaq/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,13 +966,6 @@ async def get_apps() -> dict:
"nasdaq_historical_dividends",
],
},
{
"name": "Group 3",
"type": "endpointParam",
"paramName": "document_url",
"defaultValue": "AAPL",
"widgetIds": ["nasdaq_ipo_calendar", "nasdaq_company_filings"],
},
],
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ class NasdaqCompanyFilingsQueryParams(CompanyFilingsQueryParams):
"""Nasdaq Company Filings Query Parameters."""

__json_schema_extra__ = {
"form_group": {
"multiple_items_allowed": False,
"choices": list(form_groups),
},
"year": {
"x-widget_config": {
"options": sorted(
Expand All @@ -71,10 +67,10 @@ class NasdaqCompanyFilingsQueryParams(CompanyFilingsQueryParams):
year: Optional[int] = Field(
description=(
"Calendar year of the data, default is current year."
" The earliest year available is 1994, for all companies and form types."
+ " The earliest year available is 1994, for all companies and form types."
),
default=None,
gte=1994,
ge=1994,
)
form_group: FormGroups = Field(
default="8k",
Expand Down Expand Up @@ -186,7 +182,7 @@ def extract_data(

if response.status_code != 200:
raise OpenBBError(
f"Error fetching data from Nasdaq: {response.status} - {response.reason}"
f"Error fetching data from Nasdaq: {response.status_code} - {response.reason}"
)
data = response.json().get("data", {})
rows = data.get("rows", [])
Expand All @@ -204,7 +200,7 @@ def extract_data(
response = session.get(url=next_url, headers=headers, timeout=10)
if response.status_code != 200:
raise OpenBBError(
f"Error fetching data from Nasdaq: {response.status} - {response.reason}"
f"Error fetching data from Nasdaq: {response.status_code} - {response.reason}"
)
next_data = response.json().get("data", {})
new_rows = next_data.get("rows", [])
Expand Down
10 changes: 0 additions & 10 deletions openbb_platform/providers/nasdaq/tests/record/expected_apps.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,6 @@
"nasdaq_dividends_calendar",
"nasdaq_historical_dividends"
]
},
{
"name": "Group 3",
"type": "endpointParam",
"paramName": "document_url",
"defaultValue": "AAPL",
"widgetIds": [
"nasdaq_ipo_calendar",
"nasdaq_company_filings"
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def test_nasdaq_equity_search_fetcher(credentials=test_credentials):
assert result is None


@pytest.mark.skip("This function is currently not working at the source.")
@pytest.mark.record_http
def test_nasdaq_economic_calendar_fetcher(credentials=test_credentials):
"""Test the Nasdaq Economic Calendar fetcher."""
Expand Down