Merge provider and core into core (#5774)

* small changes - moving provider inside the core

* uptade readme

* lint

* remove old provider readme

* leftovers

* refactor website examples

* ruff

* fix nox

* relock

* fix fails_to_deliver headers

* fix for tests that have renamed endpoints

* fix discovery

* removed test for renamed endpoint

* fix broken syntax - test_search_financial_attributes

* fix cash/income/balance

* fix derivatives tests

* fix etf tests

* fix news tests

* fix regulators

* black

* wrong test param

* sort equity gainers/losers by percent

* platform markdown generation import

* Hotfix/fix int tests core merge (#5779)

* removing tests on old endpoint

* removing visualization on old endpoint

* fixing equity tests

* fixing examples

* fix news tests

* fix index test

* example

* add comments

* example

---------

Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
This commit is contained in:
Henrique Joaquim
2023-11-22 13:48:01 +00:00
committed by GitHub
parent 9da18eefe3
commit 4400cd9a8f
674 changed files with 2498 additions and 2527 deletions

View File

@@ -251,20 +251,6 @@ def test_equity_fundamental_dividends(params, obb):
assert len(result.results) > 0
@pytest.mark.parametrize(
"params",
[
({"symbol": "AAPL", "limit": 50}),
],
)
@pytest.mark.integration
def test_equity_fundamental_earnings(params, obb):
result = obb.equity.fundamental.earnings(**params)
assert result
assert isinstance(result, OBBject)
assert len(result.results) > 0
@pytest.mark.parametrize(
"params",
[
@@ -865,29 +851,6 @@ def test_equity_fundamental_financial_attributes(params, obb):
[
({"query": "AAPL", "is_symbol": True, "provider": "cboe"}),
({"query": "Apple", "provider": "sec", "use_cache": False, "is_fund": False}),
(
{
"query": "residential",
"industry": "REIT",
"sector": "Real Estate",
"mktcap_min": None,
"mktcap_max": None,
"price_min": None,
"price_max": None,
"volume_min": None,
"volume_max": None,
"dividend_min": None,
"dividend_max": None,
"is_active": True,
"is_etf": False,
"beta_min": None,
"beta_max": None,
"country": "US",
"exchange": "nyse",
"limit": None,
"provider": "fmp",
}
),
],
)
@pytest.mark.integration
@@ -1189,7 +1152,7 @@ def test_equity_shorts_short_interest(params, obb):
{
"symbol": "CLOV",
"date": "2023-10-26",
"provider": "polygon",
"provider": "polygon", # premium endpoint
"limit": 1000,
"timestamp_lte": None,
"timestamp_gte": None,
@@ -1200,7 +1163,7 @@ def test_equity_shorts_short_interest(params, obb):
(
{
"symbol": "CLOV",
"provider": "polygon",
"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,
@@ -1240,7 +1203,7 @@ def test_equity_darkpool_otc(params, obb):
"params",
[
({"provider": "fmp", "market": "EURONEXT"}),
({"provider": "polygon"}),
({"provider": "polygon"}), # premium endpoint
],
)
@pytest.mark.integration