mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-26 19:22:23 +00:00
[BugFix] Remove Polygon - No Longer Exists and Can't Support (#7337)
* remove polygon - no longer exists and can't support * update metadata asset * dev_install.py
This commit is contained in:
@@ -31,27 +31,6 @@ def obb(pytestconfig):
|
||||
"limit": 2,
|
||||
}
|
||||
),
|
||||
(
|
||||
{
|
||||
"provider": "polygon",
|
||||
"include_sources": True,
|
||||
"order": "asc",
|
||||
"sort": "filing_date",
|
||||
"symbol": "AAPL",
|
||||
"period": "annual",
|
||||
"limit": 12,
|
||||
"filing_date": "2022-10-27",
|
||||
"filing_date_lt": "2022-11-01",
|
||||
"filing_date_lte": "2022-11-01",
|
||||
"filing_date_gt": "2022-10-10",
|
||||
"filing_date_gte": "2022-10-10",
|
||||
"period_of_report_date": "2022-09-24",
|
||||
"period_of_report_date_lt": "2022-11-01",
|
||||
"period_of_report_date_lte": "2022-11-01",
|
||||
"period_of_report_date_gt": "2022-10-10",
|
||||
"period_of_report_date_gte": "2022-10-10",
|
||||
}
|
||||
),
|
||||
(
|
||||
{
|
||||
"symbol": "AAPL",
|
||||
@@ -162,27 +141,6 @@ def test_equity_calendar_earnings(params, obb):
|
||||
"limit": 2,
|
||||
}
|
||||
),
|
||||
(
|
||||
{
|
||||
"provider": "polygon",
|
||||
"include_sources": True,
|
||||
"order": "asc",
|
||||
"sort": "filing_date",
|
||||
"symbol": "AAPL",
|
||||
"period": "annual",
|
||||
"limit": 12,
|
||||
"filing_date": "2022-10-27",
|
||||
"filing_date_lt": "2022-11-01",
|
||||
"filing_date_lte": "2022-11-01",
|
||||
"filing_date_gt": "2022-10-10",
|
||||
"filing_date_gte": "2022-10-10",
|
||||
"period_of_report_date": "2022-09-24",
|
||||
"period_of_report_date_lt": "2022-11-01",
|
||||
"period_of_report_date_lte": "2022-11-01",
|
||||
"period_of_report_date_gt": "2022-10-10",
|
||||
"period_of_report_date_gte": "2022-10-10",
|
||||
}
|
||||
),
|
||||
(
|
||||
{
|
||||
"symbol": "AAPL",
|
||||
@@ -387,27 +345,6 @@ def test_equity_estimates_historical(params, obb):
|
||||
"limit": 4,
|
||||
}
|
||||
),
|
||||
(
|
||||
{
|
||||
"provider": "polygon",
|
||||
"include_sources": True,
|
||||
"order": "asc",
|
||||
"sort": "filing_date",
|
||||
"symbol": "AAPL",
|
||||
"period": "annual",
|
||||
"limit": 12,
|
||||
"filing_date": "2022-10-27",
|
||||
"filing_date_lt": "2022-11-01",
|
||||
"filing_date_lte": "2022-11-01",
|
||||
"filing_date_gt": "2022-10-10",
|
||||
"filing_date_gte": "2022-10-10",
|
||||
"period_of_report_date": "2022-09-24",
|
||||
"period_of_report_date_lt": "2022-11-01",
|
||||
"period_of_report_date_lte": "2022-11-01",
|
||||
"period_of_report_date_gt": "2022-10-10",
|
||||
"period_of_report_date_gte": "2022-10-10",
|
||||
}
|
||||
),
|
||||
(
|
||||
{
|
||||
"provider": "fmp",
|
||||
@@ -1110,32 +1047,6 @@ def test_equity_compare_groups(params, obb):
|
||||
"interval": "1d",
|
||||
}
|
||||
),
|
||||
(
|
||||
{
|
||||
"sort": "desc",
|
||||
"limit": "49999",
|
||||
"adjustment": "unadjusted",
|
||||
"provider": "polygon",
|
||||
"symbol": "AAPL",
|
||||
"start_date": "2023-01-01",
|
||||
"end_date": "2023-01-03",
|
||||
"interval": "1m",
|
||||
"extended_hours": False,
|
||||
}
|
||||
),
|
||||
(
|
||||
{
|
||||
"sort": "desc",
|
||||
"limit": "49999",
|
||||
"adjustment": "splits_only",
|
||||
"provider": "polygon",
|
||||
"symbol": "AAPL",
|
||||
"start_date": "2023-01-01",
|
||||
"end_date": "2023-06-06",
|
||||
"interval": "1d",
|
||||
"extended_hours": False,
|
||||
}
|
||||
),
|
||||
(
|
||||
{
|
||||
"extended_hours": False,
|
||||
@@ -1767,32 +1678,6 @@ def test_equity_shorts_short_interest(params, obb):
|
||||
assert len(result.results) > 0
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"params",
|
||||
[
|
||||
(
|
||||
{
|
||||
"symbol": "CLOV",
|
||||
"provider": "polygon", # premium endpoint
|
||||
"timestamp_gt": "2023-10-26T15:20:00.000000000-04:00",
|
||||
"timestamp_lt": "2023-10-26T15:30:00.000000000-04:00",
|
||||
"limit": 5000,
|
||||
"timestamp_gte": None,
|
||||
"timestamp_lte": None,
|
||||
"date": None,
|
||||
}
|
||||
),
|
||||
],
|
||||
)
|
||||
@pytest.mark.integration
|
||||
def test_equity_price_nbbo(params, obb):
|
||||
"""Test the equity price nbbo endpoint."""
|
||||
result = obb.equity.price.nbbo(**params)
|
||||
assert result
|
||||
assert isinstance(result, OBBject)
|
||||
assert len(result.results) > 0
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"params",
|
||||
[
|
||||
@@ -1815,7 +1700,6 @@ def test_equity_darkpool_otc(params, obb):
|
||||
"params",
|
||||
[
|
||||
({"provider": "fmp", "market": "euronext"}),
|
||||
({"provider": "polygon"}),
|
||||
({"provider": "intrinio", "date": "2022-06-30"}),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user