diff --git a/openbb_platform/providers/nasdaq/openbb_nasdaq/app.py b/openbb_platform/providers/nasdaq/openbb_nasdaq/app.py index 46d65da681ac..4efa412aef76 100644 --- a/openbb_platform/providers/nasdaq/openbb_nasdaq/app.py +++ b/openbb_platform/providers/nasdaq/openbb_nasdaq/app.py @@ -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"], - }, ], } diff --git a/openbb_platform/providers/nasdaq/openbb_nasdaq/models/company_filings.py b/openbb_platform/providers/nasdaq/openbb_nasdaq/models/company_filings.py index 9d8db4a536d5..baf695a5768c 100644 --- a/openbb_platform/providers/nasdaq/openbb_nasdaq/models/company_filings.py +++ b/openbb_platform/providers/nasdaq/openbb_nasdaq/models/company_filings.py @@ -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( @@ -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", @@ -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", []) @@ -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", []) diff --git a/openbb_platform/providers/nasdaq/tests/record/expected_apps.json b/openbb_platform/providers/nasdaq/tests/record/expected_apps.json index d2ab874a58b9..c1cf4807ad40 100644 --- a/openbb_platform/providers/nasdaq/tests/record/expected_apps.json +++ b/openbb_platform/providers/nasdaq/tests/record/expected_apps.json @@ -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" - ] } ] } \ No newline at end of file diff --git a/openbb_platform/providers/nasdaq/tests/test_nasdaq_fetchers.py b/openbb_platform/providers/nasdaq/tests/test_nasdaq_fetchers.py index 0a2db50686d8..e0ce583dd39c 100644 --- a/openbb_platform/providers/nasdaq/tests/test_nasdaq_fetchers.py +++ b/openbb_platform/providers/nasdaq/tests/test_nasdaq_fetchers.py @@ -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."""