Cleaned up gov underscores (#783)

This commit is contained in:
jmaslek
2021-10-04 16:37:12 -04:00
committed by GitHub
parent 5be35554c2
commit 3ae97553f0
10 changed files with 50 additions and 38 deletions

View File

@@ -140,11 +140,11 @@ Current Ticker: {self.ticker or None}{dim_no_ticker}
self.ticker = self.ticker.split(".")[0]
def call_lasttrades(self, other_args: List[str]):
"""Process last trades command"""
"""Process lasttrades command"""
parser = argparse.ArgumentParser(
add_help=False,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prog="last_trades",
prog="lasttrades",
description="Last government trading trading. [Source: www.quiverquant.com]",
)
parser.add_argument(
@@ -193,11 +193,11 @@ Current Ticker: {self.ticker or None}{dim_no_ticker}
print(e, "\n")
def call_topbuys(self, other_args: List[str]):
"""Process top_buys command"""
"""Process topbuys command"""
parser = argparse.ArgumentParser(
add_help=False,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prog="top_buys",
prog="topbuys",
description="Top buys for government trading. [Source: www.quiverquant.com]",
)
parser.add_argument(
@@ -253,11 +253,11 @@ Current Ticker: {self.ticker or None}{dim_no_ticker}
print(e, "\n")
def call_topsells(self, other_args: List[str]):
"""Process top_sells command"""
"""Process topsells command"""
parser = argparse.ArgumentParser(
add_help=False,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prog="top_sells",
prog="topsells",
description="Top sells for government trading. [Source: www.quiverquant.com]",
)
parser.add_argument(
@@ -313,11 +313,11 @@ Current Ticker: {self.ticker or None}{dim_no_ticker}
print(e, "\n")
def call_lastcontracts(self, other_args: List[str]):
"""Process last_contracts command"""
"""Process lastcontracts command"""
parser = argparse.ArgumentParser(
add_help=False,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prog="last_contracts",
prog="lastcontracts",
description="Last government contracts. [Source: www.quiverquant.com]",
)
parser.add_argument(
@@ -363,11 +363,11 @@ Current Ticker: {self.ticker or None}{dim_no_ticker}
print(e, "\n")
def call_qtrcontracts(self, other_args: List[str]):
"""Process contracts command"""
"""Process qtrcontracts command"""
parser = argparse.ArgumentParser(
add_help=False,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prog="qtr_contracts",
prog="qtrcontracts",
description="Look at government contracts [Source: www.quiverquant.com]",
)
parser.add_argument(
@@ -402,11 +402,11 @@ Current Ticker: {self.ticker or None}{dim_no_ticker}
print(e, "\n")
def call_toplobbying(self, other_args: List[str]):
"""Process top_lobbying command"""
"""Process toplobbying command"""
parser = argparse.ArgumentParser(
add_help=False,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prog="top_lobbying",
prog="toplobbying",
description="Top lobbying. [Source: www.quiverquant.com]",
)
parser.add_argument(
@@ -536,11 +536,11 @@ Current Ticker: {self.ticker or None}{dim_no_ticker}
print(e, "\n")
def call_histcont(self, other_args: List[str]):
"""Process qtr_contracts_hist command"""
"""Process histcont command"""
parser = argparse.ArgumentParser(
add_help=False,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prog="hist_cont",
prog="histcont",
description="Quarterly-contracts historical [Source: www.quiverquant.com]",
)
try:

View File

@@ -1,5 +1,17 @@
---
geekdocCollapseSection: true
---
```
usage: topsells [-g {congress,senate,house}] [-p PAST_TRANSACTIONS_MONTHS] [-n NUM] [--raw] [-h] [--export {png,jpg,pdf,svg}]
```
{{< toc-tree >}}
Top sells for government trading. [Source: www.quiverquant.com]
```
optional arguments:
-g {congress,senate,house}, --govtype {congress,senate,house}
-p PAST_TRANSACTIONS_MONTHS, --past_transactions_months PAST_TRANSACTIONS_MONTHS
Past transaction months (default: 6)
-n NUM, --num NUM Number of top tickers (default: 10)
--raw Print raw data. (default: False)
-h, --help show this help message (default: False)
--export {png,jpg,pdf,svg}
Export or figure into png, jpg, pdf, svg (default: )
```

View File

@@ -1,5 +1,5 @@
```
usage: hist_cont [-h] [--export {png,jpg,pdf,svg,csv,json,xlsx}]
usage: histcont [-h] [--export {png,jpg,pdf,svg,csv,json,xlsx}]
```
Quarterly-contracts historical [Source: www.quiverquant.com]

View File

@@ -1,5 +1,5 @@
```
usage: last_contracts [-p PAST_TRANSACTION_DAYS] [-n NUM] [-s] [--export {png,jpg,pdf,svg,csv,json,xlsx}] [-h]
usage: lastcontracts [-p PAST_TRANSACTION_DAYS] [-n NUM] [-s] [--export {png,jpg,pdf,svg,csv,json,xlsx}] [-h]
```
Last government contracts. [Source: www.quiverquant.com]

View File

@@ -1,5 +1,5 @@
```
usage: last_trades [-g {congress,senate,house}] [-p PAST_TRANSACTIONS_DAYS] [-r REPRESENTATIVE] [-h]
usage: lasttrades [-g {congress,senate,house}] [-p PAST_TRANSACTIONS_DAYS] [-r REPRESENTATIVE] [-h]
[--export {png,jpg,pdf,svg,csv,json,xlsx}]
```

View File

@@ -1,5 +1,5 @@
```
usage: qtr_contracts [-n NUM] [-a {total,upmom,downmom}] [-h] [--export {png,jpg,pdf,svg,csv,json,xlsx}]
usage: qtrcontracts [-n NUM] [-a {total,upmom,downmom}] [-h] [--export {png,jpg,pdf,svg,csv,json,xlsx}]
```
Look at government contracts [Source: www.quiverquant.com]

View File

@@ -1,5 +1,5 @@
```
usage: top_buys [-g {congress,senate,house}] [-p PAST_TRANSACTIONS_MONTHS] [-n NUM] [--raw]
usage: topbuys [-g {congress,senate,house}] [-p PAST_TRANSACTIONS_MONTHS] [-n NUM] [--raw]
[--export {png,jpg,pdf,svg,csv,json,xlsx}] [-h]
```
Top buys for government trading. [Source: www.quiverquant.com]

View File

@@ -1,5 +1,5 @@
```
usage: top_lobbying [-n NUM] [--raw] [--export {png,jpg,pdf,svg,csv,json,xlsx}] [-h]
usage: toplobbying [-n NUM] [--raw] [--export {png,jpg,pdf,svg,csv,json,xlsx}] [-h]
```
Top lobbying. [Source: www.quiverquant.com]

View File

@@ -154,22 +154,22 @@ main:
ref: "/stocks/government/contracts"
- name: gtrades
ref: "/stocks/government/gtrades"
- name: hist_cont
ref: "/stocks/government/hist_cont"
- name: last_contracts
ref: "/stocks/government/last_contracts"
- name: last_trades
ref: "/stocks/government/last_trades"
- name: histcont
ref: "/stocks/government/histcont"
- name: lastcontracts
ref: "/stocks/government/lastcontracts"
- name: lasttrades
ref: "/stocks/government/lasttrades"
- name: lobbying
ref: "/stocks/government/lobbying"
- name: qtr_contracts
ref: "/stocks/government/qtr_contracts"
- name: top_buys
ref: "/stocks/government/top_buys"
- name: top_lobbying
ref: "/stocks/government/top_lobbying"
- name: top_sells
ref: "/stocks/government/top_sells"
- name: qtrcontracts
ref: "/stocks/government/qtrcontracts"
- name: topbuys
ref: "/stocks/government/topbuys"
- name: toplobbying
ref: "/stocks/government/toplobbying"
- name: topsells
ref: "/stocks/government/topsells"
- name: fundamental analysis
ref: "/stocks/fundamental_analysis"
sub: