feature/more-yfinance: Adds some more to openbb-yfinance (#5979)

* equity profile for yFinance

* pylint

* equity quote

* unused imports

* price target consensus

* add currency field

* add share_statistics

* don't append empty result to results

* key executives

* missing definition in key_executives

* pylint

* key metrics

* add currency to key metrics

* add etf_info

* rename trailing_annual_dividend -> dividend_rate_ttm

* add institutions count to share_statistics

* add historical dividends

* add logic for start-end dates to historical_dividends

* recapture the test..?

* funny test

* filter on tests?

* record test with clean cache..?

* year_price_change -> price_return_1y in key_metrics

* black

* make descriptions clear for beta and dividend_yield fields

* add description field to standard model

* updated static

* clear description of shares_implied_outstanding field

* updated static for equity

* clean descriptions

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
This commit is contained in:
Danglewood
2024-02-04 10:39:29 -08:00
committed by GitHub
parent a5da32808c
commit 3de1bddc2d
29 changed files with 14592 additions and 51 deletions

View File

@@ -290,6 +290,12 @@ def test_equity_fundamental_historical_splits(params, obb):
"provider": "fmp",
}
),
(
{
"symbol": "AAPL",
"provider": "yfinance",
}
),
],
)
@pytest.mark.integration
@@ -511,6 +517,7 @@ def test_equity_calendar_ipo(params, obb):
}
),
({"provider": "intrinio", "symbol": "AAPL", "period": "annual", "limit": 100}),
({"provider": "yfinance", "symbol": "AAPL"}),
({"provider": "finviz", "symbol": "AAPL,GOOG"}),
],
)
@@ -528,7 +535,8 @@ def test_equity_fundamental_metrics(params, obb):
@parametrize(
"params",
[
({"symbol": "AAPL"}),
({"symbol": "AAPL", "provider": "fmp"}),
({"symbol": "AAPL", "provider": "yfinance"}),
],
)
@pytest.mark.integration
@@ -601,7 +609,10 @@ def test_equity_estimates_price_target(params, obb):
@parametrize(
"params",
[({"symbol": "AAPL"})],
[
({"symbol": "AAPL", "provider": "fmp"}),
({"symbol": "AAPL,AMZN,RELIANCE.NS", "provider": "yfinance"}),
],
)
@pytest.mark.integration
def test_equity_estimates_consensus(params, obb):
@@ -724,9 +735,9 @@ def test_equity_fundamental_filings(params, obb):
@parametrize(
"params",
[
({"symbol": "AAPL"}),
({"symbol": "AAPL", "provider": "fmp"}),
({"symbol": "AAPL", "provider": "intrinio"}),
({"symbol": "AAPL", "provider": "yfinance"}),
],
)
@pytest.mark.integration