Move filings to the correct place

This commit is contained in:
jeroen
2023-02-08 09:23:41 +01:00
parent 4bba630a80
commit 1e55dbecd0
11 changed files with 8179 additions and 10 deletions

View File

@@ -9,6 +9,7 @@ disc
help
h
?
filings
pipo
fipo
gainers

View File

@@ -1,9 +0,0 @@
script: test_stocks_filings.openbb
- - - - - - - - - -
stocks
filings
filings --limit 200
filings --today
filings --pages 30 --limit 30000
exit

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,34 @@
# IMPORTATION STANDARD
# IMPORTATION THIRDPARTY
import pandas as pd
import pytest
# IMPORTATION INTERNAL
from openbb_terminal.stocks.discovery import fmp_model
@pytest.fixture(scope="module")
def vcr_config():
return {
"filter_headers": [("User-Agent", None)],
"filter_query_parameters": [
("apikey", "MOCK_API_KEY"),
],
}
@pytest.mark.vcr
@pytest.mark.parametrize(
"func, kwargs_dict",
[
(
"get_filings",
{},
),
],
)
@pytest.mark.record_stdout
def test_valid_df(func, kwargs_dict):
result_df = getattr(fmp_model, func)(**kwargs_dict)
assert isinstance(result_df, pd.DataFrame)

View File

@@ -0,0 +1,23 @@
# IMPORTATION STANDARD
# IMPORTATION THIRDPARTY
import pytest
# IMPORTATION INTERNAL
from openbb_terminal.stocks.fundamental_analysis import fmp_view
@pytest.fixture(scope="module")
def vcr_config():
return {
"filter_headers": [("User-Agent", None)],
"filter_query_parameters": [
("apikey", "MOCK_API_KEY"),
],
}
@pytest.mark.vcr
@pytest.mark.record_stdout
def test_display_filings():
fmp_view.display_filings()

View File

@@ -1,3 +1,4 @@
filings the most-recent form submissions to the SEC
pipo past IPOs dates [Finnhub]
fipo future IPOs dates [Finnhub]
gainers show latest top gainers [YahooFinance]

View File

@@ -0,0 +1,24 @@
[red]No filings found for ticker , consider increasing the value for --pages. Showing recent filings instead.[/red]
Ticker CIK Form Type Title URL
Date
2023-02-07 17:35:52 None 1254890 13F-HR 13F-HR - TAIYO LIFE INSURANCE CO (0001254890) (Filer) https://www.sec.gov/Archives/edgar/data/1254890/000125489023000003/0001254890-23-000003-index.htm
2023-02-07 17:34:44 None 759458 13F-HR 13F-HR - CANANDAIGUA NATIONAL CORP (0000759458) (Filer) https://www.sec.gov/Archives/edgar/data/759458/000075945823000001/0000759458-23-000001-index.htm
2023-02-07 17:30:36 ITUB 1132597 6-K 6-K - Itau Unibanco Holding S.A. (0001132597) (Filer) https://www.sec.gov/Archives/edgar/data/1132597/000129281423000325/0001292814-23-000325-index.htm
2023-02-07 17:29:43 SGBI 1104280 10-Q 10-Q - SANGUI BIOTECH INTERNATIONAL INC (0001104280) (Filer) https://www.sec.gov/Archives/edgar/data/1104280/000109690623000276/0001096906-23-000276-index.htm
2023-02-07 17:29:20 None 1426940 13F-HR 13F-HR - Horizon Investment Services, LLC (0001426940) (Filer) https://www.sec.gov/Archives/edgar/data/1426940/000108514623000727/0001085146-23-000727-index.htm
2023-02-07 17:28:20 None 1566030 13F-HR 13F-HR - INVESTMENT HOUSE LLC (0001566030) (Filer) https://www.sec.gov/Archives/edgar/data/1566030/000139834423002330/0001398344-23-002330-index.htm
2023-02-07 17:27:25 ITUB 1132597 6-K 6-K - Itau Unibanco Holding S.A. (0001132597) (Filer) https://www.sec.gov/Archives/edgar/data/1132597/000129281423000323/0001292814-23-000323-index.htm
2023-02-07 17:26:15 PETS 1040130 10-Q 10-Q - PETMED EXPRESS INC (0001040130) (Filer) https://www.sec.gov/Archives/edgar/data/1040130/000104013023000013/0001040130-23-000013-index.htm
2023-02-07 17:23:59 None 1602603 13F-HR 13F-HR - Family Firm, Inc. (0001602603) (Filer) https://www.sec.gov/Archives/edgar/data/1602603/000160260323000001/0001602603-23-000001-index.htm
2023-02-07 17:23:11 ITUB 1132597 6-K 6-K - Itau Unibanco Holding S.A. (0001132597) (Filer) https://www.sec.gov/Archives/edgar/data/1132597/000129281423000321/0001292814-23-000321-index.htm
2023-02-07 17:20:40 NEWR 1448056 10-Q 10-Q - NEW RELIC, INC. (0001448056) (Filer) https://www.sec.gov/Archives/edgar/data/1448056/000144805623000011/0001448056-23-000011-index.htm
2023-02-07 17:17:41 KREF 1631596 10-K 10-K - KKR Real Estate Finance Trust Inc. (0001631596) (Filer) https://www.sec.gov/Archives/edgar/data/1631596/000163159623000009/0001631596-23-000009-index.htm
2023-02-07 17:17:41 KREF-PA 1631596 10-K 10-K - KKR Real Estate Finance Trust Inc. (0001631596) (Filer) https://www.sec.gov/Archives/edgar/data/1631596/000163159623000009/0001631596-23-000009-index.htm
2023-02-07 17:16:46 None 1483738 13F-HR 13F-HR - Contrarius Investment Management Ltd (0001483738) (Filer) https://www.sec.gov/Archives/edgar/data/1483738/000138713123001547/0001387131-23-001547-index.htm
2023-02-07 17:15:56 DRUG 1827401 6-K 6-K - BRIGHT MINDS BIOSCIENCES INC. (0001827401) (Filer) https://www.sec.gov/Archives/edgar/data/1827401/000106299323002395/0001062993-23-002395-index.htm
2023-02-07 17:12:36 None 1882673 13F-HR 13F-HR - US Asset Management LLC (0001882673) (Filer) https://www.sec.gov/Archives/edgar/data/1882673/000188267323000002/0001882673-23-000002-index.htm
2023-02-07 17:12:01 VVV 1674910 10-Q 10-Q - VALVOLINE INC (0001674910) (Filer) https://www.sec.gov/Archives/edgar/data/1674910/000167491023000033/0001674910-23-000033-index.htm
2023-02-07 17:11:47 None 1821455 13F-HR 13F-HR - MTC Wealth Management LLC (0001821455) (Filer) https://www.sec.gov/Archives/edgar/data/1821455/000166773123000075/0001667731-23-000075-index.htm
2023-02-07 17:11:05 AVXL 1314052 10-Q 10-Q - ANAVEX LIFE SCIENCES CORP. (0001314052) (Filer) https://www.sec.gov/Archives/edgar/data/1314052/000173112223000152/0001731122-23-000152-index.htm
2023-02-07 17:10:56 HIVE 1720424 6-K 6-K - HIVE Blockchain Technologies Ltd. (0001720424) (Filer) https://www.sec.gov/Archives/edgar/data/1720424/000106299323002387/0001062993-23-002387-index.htm

View File

@@ -22,6 +22,7 @@ A brief description below highlights the main Functions and Modules available in
| Path | Type | Description |
| :------------------------- | :--------: | -------------------------------------------: |
| openbb.stocks.disc.filings | Function | Feed of new filings to the SEC |
| openbb.stocks.disc.pipo | Function | Past IPO Dates |
| openbb.stocks.disc.active | Function | Stocks with Highest Trade Volumes |
| openbb.stocks.disc.gainers | Function | Latest Top Gainers |
@@ -47,6 +48,24 @@ help(openbb.stocks.disc)
## Examples
## filings
Get the most-recent form submissions to the SEC.
```python
filings = openbb.stocks.disc.filings()
filings.head(3)
```
| Date | Ticker | CIK | Form Type | Title | URL |
|:--------------------|:---------|--------:|:------------|:------------------------------------------------|:--------------------------------------------------------------------------------------------------|
| 2023-01-12 14:09:25 | CYBN | 1833141 | 6-K | 6-K - CYBIN INC. (0001833141) (Filer) | https://www.sec.gov/Archives/edgar/data/1833141/000162828023000949/0001628280-23-000949-index.htm |
| 2023-01-12 13:39:25 | RYAOF | 1038683 | 6-K | 6-K - RYANAIR HOLDINGS PLC (0001038683) (Filer) | https://www.sec.gov/Archives/edgar/data/1038683/000165495423000350/0001654954-23-000350-index.htm |
| 2023-01-12 13:39:25 | RYAAY | 1038683 | 6-K | 6-K - RYANAIR HOLDINGS PLC (0001038683) (Filer) | https://www.sec.gov/Archives/edgar/data/1038683/000165495423000350/0001654954-23-000350-index.htm |
````
### pipo
Gives information on companies that recently had an IPO (Initial Public Offering)

View File

@@ -71,7 +71,7 @@ The first step in many workflows will be to load a stock symbol with historical
The data source for each function is located on the right-side of the menu. In the image below, this is depicted by the text in [blue].
![Stocks Menu](https://user-images.githubusercontent.com/85772166/212164398-76e461b6-84bc-415f-891b-be9c588dd02b.png "Stocks Menu")
![Stocks Menu](https://user-images.githubusercontent.com/85772166/205688600-afaf4663-37f7-492e-aa9b-7d5263abe27b.png "Stocks Menu")
Attaching the source argument to a command enables users to select their preferred source. The default sources can be changed from the [`/sources` menu](https://docs.openbb.co/terminal/guides/advanced/changing-sources). To select the `source` as `NewsApi`, use the block below.