mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-13 04:41:24 +00:00
Friday night bugs (#2557)
* bug 2548 to fix stocks/gov/topbuys * lets not print the df * stocks/gov/lasttrades help #2547 * #2531 earnings issue * Add a check in contracts that the amounts are more than 0 * Fxiix tests * #2516 * #2516 * #2511 * Break up the estimates into 3 different options * #2532 * mypy fix * pylint fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
BTC ETH USDT USDC
|
||||
ledn 5.25% N/A N/A 8.0%
|
||||
ledn 5.25% - - 8.0%
|
||||
youhodler 4.91% 5.65% 13.07% 12.73%
|
||||
blockfi 3.2% 4.5% N/A 8.6%
|
||||
blockfi 3.2% 4.5% - 8.6%
|
||||
swissborg 0.6% 5.0% 8.0% 8.0%
|
||||
|
||||
@@ -61,4 +61,6 @@ def test_price_target_from_analysts_plt(capsys, interval, mocker, start):
|
||||
@pytest.mark.vcr
|
||||
@pytest.mark.record_stdout
|
||||
def test_estimates():
|
||||
business_insider_view.estimates(symbol="TSLA", export=None)
|
||||
business_insider_view.estimates(
|
||||
symbol="TSLA", estimate="annualearnings", export=None
|
||||
)
|
||||
|
||||
@@ -263,6 +263,7 @@ def test_call_func_expect_queue(expected_queue, queue, func):
|
||||
[],
|
||||
{
|
||||
"symbol": "TSLA",
|
||||
"estimate": "annualearnings",
|
||||
"export": "",
|
||||
},
|
||||
),
|
||||
|
||||
@@ -27,17 +27,3 @@ Capital Expenditure 7,557 7,377 8,031 7,712 2,000
|
||||
Selling, General & Admin. Exp. 5,342 6,809 7,023 6,906 5,686
|
||||
Shareholder’s Equity 44,873 63,057 85,777 96,491 -
|
||||
Total Assets 79,406 101,864 129,230 129,102 -
|
||||
Previous Quarter Current Quarter Next Quarter Current Year Next Year
|
||||
QUARTER EARNINGS ESTIMATES
|
||||
Date ending 03/31/22 ending 06/30/22 ending 09/30/22 ending 12/31/22 ending 12/31/23
|
||||
No. of Analysts 31 27 26 38 37
|
||||
Average Estimate 2.258 USD 2.198 USD 3.175 USD 12.183 USD 16.115 USD
|
||||
Year Ago 0.930 USD 1.450 USD 1.860 USD 6.780 USD 12.183 USD
|
||||
Publish Date 4/20/2022 7/27/2022 10/26/2022 - -
|
||||
Previous Quarter Current Quarter Next Quarter Current Year Next Year
|
||||
QUARTER REVENUES ESTIMATES
|
||||
Date ending 03/31/22 ending 06/30/22 ending 09/30/22 ending 12/31/22 ending 12/31/23
|
||||
No. of Analysts 16 14 13 27 26
|
||||
Average Estimate 17,869 USD 18,200 USD 22,867 USD 86,858 USD 116,788 USD
|
||||
Year Ago 10,389 USD 11,958 USD 13,757 USD 53,823 USD 86,858 USD
|
||||
Publish Date 4/20/2022 7/27/2022 10/26/2022 - -
|
||||
|
||||
@@ -356,6 +356,7 @@ def test_call_func_expect_queue(expected_queue, queue, func):
|
||||
ratios=False,
|
||||
plot=None,
|
||||
export="csv",
|
||||
limit=5,
|
||||
),
|
||||
),
|
||||
(
|
||||
@@ -408,6 +409,7 @@ def test_call_func_expect_queue(expected_queue, queue, func):
|
||||
ratios=False,
|
||||
plot=None,
|
||||
export="csv",
|
||||
limit=5,
|
||||
),
|
||||
),
|
||||
(
|
||||
@@ -460,6 +462,7 @@ def test_call_func_expect_queue(expected_queue, queue, func):
|
||||
ratios=False,
|
||||
plot=None,
|
||||
export="csv",
|
||||
limit=5,
|
||||
),
|
||||
),
|
||||
(
|
||||
|
||||
@@ -39,10 +39,8 @@ def test_call_func(func, recorder):
|
||||
|
||||
@pytest.mark.vcr
|
||||
def test_get_shareholders(recorder):
|
||||
major_df, institutional_df, mutual_df = yahoo_finance_model.get_shareholders(
|
||||
symbol="AAPL"
|
||||
)
|
||||
result_list = [major_df, institutional_df, mutual_df]
|
||||
df = yahoo_finance_model.get_shareholders(symbol="AAPL", holder="major")
|
||||
result_list = [df]
|
||||
|
||||
recorder.capture_list(result_list)
|
||||
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
|
||||
|
||||
0 0.13% Percentage of Shares Held by All Insider
|
||||
1 76.34% Percentage of Shares Held by Institutions
|
||||
2 76.44% Percentage of Float Held by Institutions
|
||||
3 2406 Number of Institutions Holding Shares
|
||||
Holder Shares Date Reported Stake Value
|
||||
0 Vanguard Group, Inc. (The) 128.605 M 2022-03-30 8.30 % 11.598 B
|
||||
1 Blackrock Inc. 96.512 M 2022-03-30 6.23 % 8.703 B
|
||||
@@ -15,14 +9,3 @@
|
||||
7 GQG Partners LLC 29.967 M 2022-03-30 1.93 % 2.702 B
|
||||
8 Geode Capital Management, LLC 28.199 M 2022-03-30 1.82 % 2.543 B
|
||||
9 JP Morgan Chase & Company 25.222 M 2022-03-30 1.63 % 2.275 B
|
||||
Holder Shares Date Reported Stake Value
|
||||
0 Vanguard Total Stock Market Index Fund 44.724 M 2022-03-30 2.89 % 4.033 B
|
||||
1 American Balanced Fund 40.320 M 2022-03-30 2.60 % 3.636 B
|
||||
2 Vanguard 500 Index Fund 33.916 M 2022-03-30 2.19 % 3.059 B
|
||||
3 Income Fund of America Inc 30.785 M 2022-04-29 1.99 % 2.776 B
|
||||
4 Investment Company Of America 30.471 M 2022-03-30 1.97 % 2.748 B
|
||||
5 Fundamental Investors Inc 26.294 M 2022-03-30 1.70 % 2.371 B
|
||||
6 Capital Income Builder, Inc. 25.245 M 2022-04-29 1.63 % 2.277 B
|
||||
7 SPDR S&P 500 ETF Trust 16.812 M 2022-06-29 1.08 % 1.516 B
|
||||
8 Fidelity 500 Index Fund 16.340 M 2022-05-30 1.05 % 1.474 B
|
||||
9 Capital World Growth and Income Fund 14.947 M 2022-03-30 0.96 % 1.348 B
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
ReportDate TransactionDate ... House Range
|
||||
0 2022-08-08 2022-08-03 ... Representatives $15,001-$50,000
|
||||
1 2022-08-08 2022-08-03 ... Representatives $15,001-$50,000
|
||||
2 2022-08-08 2022-07-27 ... Representatives $1,001-$15,000
|
||||
3 2022-08-07 2022-07-29 ... Representatives $1,001-$15,000
|
||||
4 2022-08-05 2022-08-04 ... Representatives $1,001-$15,000
|
||||
.. ... ... ... ... ...
|
||||
995 2021-10-15 2021-09-30 ... Senate $1,001 - $15,000
|
||||
996 2021-10-15 2021-09-30 ... Senate $1,001 - $15,000
|
||||
997 2021-10-15 2021-09-30 ... Senate $1,001 - $15,000
|
||||
998 2021-10-04 2021-09-28 ... Senate $1,001 - $15,000
|
||||
999 2021-10-04 2021-09-28 ... Senate $15,001 - $50,000
|
||||
|
||||
[1000 rows x 8 columns]
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
Empty DataFrame
|
||||
Columns: []
|
||||
Index: []
|
||||
No MOCK_TEXT trading data found
|
||||
|
||||
|
||||
Reference in New Issue
Block a user