update dd controller and README.

This commit is contained in:
Hinko Kocevar
2021-04-18 23:46:49 +02:00
parent d5116f502d
commit e9b5c2262c
2 changed files with 19 additions and 0 deletions

View File

@@ -26,6 +26,8 @@ This menu aims to help in due-diligence of a pre-loaded stock, and the usage of
* company warnings according to Sean Seah book [Market Watch]
* [dp](#dp)
* dark pools (ATS) vs OTC data [FINRA]
* [ftd](#ftd)
* fails-to-deliver data [SEC]
## news <a name="news"></a>
@@ -170,4 +172,14 @@ Display barchart of dark pool (ATS) and OTC (Non ATS) data
![dp](https://user-images.githubusercontent.com/25267873/115130908-7987b580-9feb-11eb-8bca-1999174178d0.png)
## ftd <a name="ftd"></a>
```text
usage: ftd [-n]
```
The fails-to-deliver data collected by SEC. Fails to deliver on a given day are a cumulative number of all fails outstanding until that day, plus new fails that occur that day, less fails that settle that day. See <https://www.sec.gov/data/foiadocsfailsdatahtm>. [Source: SEC]
* -n : number of latest fails-to-deliver being printed. Default 10.
<img width="927" alt="ftd" src="TODO">

View File

@@ -14,6 +14,7 @@ from gamestonk_terminal.due_diligence import quandl_view as q_view
from gamestonk_terminal.due_diligence import reddit_view as r_view
from gamestonk_terminal.due_diligence import news_view
from gamestonk_terminal.due_diligence import finra_view
from gamestonk_terminal.due_diligence import sec_view
from gamestonk_terminal import feature_flags as gtff
from gamestonk_terminal.helper_funcs import get_flair
from gamestonk_terminal.menu import session
@@ -39,6 +40,7 @@ class DueDiligenceController:
"warnings",
"sec",
"dp",
"ftd",
]
def __init__(self, stock: DataFrame, ticker: str, start: str, interval: str):
@@ -100,6 +102,7 @@ class DueDiligenceController:
" warnings company warnings according to Sean Seah book [Market Watch]"
)
print(" dp dark pools (ATS) vs OTC data [FINRA]")
print(" ftd fails-to-deliver data [SEC]")
print("")
def switch(self, an_input: str):
@@ -182,6 +185,10 @@ class DueDiligenceController:
""" Process dp command """
finra_view.dark_pool(other_args, self.ticker)
def call_ftd(self, other_args: List[str]):
""" Process ftd command """
sec_view.fails_to_deliver(other_args, self.ticker)
def menu(stock: DataFrame, ticker: str, start: str, interval: str):
"""Due Diligence Menu