From ce2e68e8017961af0b9c449fdb4885a48ab41ef9 Mon Sep 17 00:00:00 2001 From: didier Date: Mon, 15 Mar 2021 21:47:46 +0000 Subject: [PATCH 1/4] fix wrong reddit api keys warning --- gamestonk_terminal/sentiment/reddit_api.py | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gamestonk_terminal/sentiment/reddit_api.py b/gamestonk_terminal/sentiment/reddit_api.py index 606cf2a637d..0eb640270ad 100644 --- a/gamestonk_terminal/sentiment/reddit_api.py +++ b/gamestonk_terminal/sentiment/reddit_api.py @@ -60,6 +60,12 @@ def watchlist(l_args): password=cfg.API_REDDIT_PASSWORD, ) + try: + praw_api.user.me() + except Exception: + print("REDDIT API Keys are incorrect\n") + return + dt_last_time_market_close = get_last_time_market_was_open( datetime.now() - timedelta(hours=24) ) @@ -237,6 +243,12 @@ def popular_tickers(l_args): password=cfg.API_REDDIT_PASSWORD, ) + try: + praw_api.user.me() + except Exception: + print("REDDIT API Keys are incorrect\n") + return + psaw_api = PushshiftAPI() for s_sub_reddit in l_sub_reddits: @@ -400,6 +412,12 @@ def spac_community(l_args): password=cfg.API_REDDIT_PASSWORD, ) + try: + praw_api.user.me() + except Exception: + print("REDDIT API Keys are incorrect\n") + return + d_submission = {} d_watchlist_tickers = {} l_watchlist_links = list() @@ -523,6 +541,12 @@ def spac(l_args): password=cfg.API_REDDIT_PASSWORD, ) + try: + praw_api.user.me() + except Exception: + print("REDDIT API Keys are incorrect\n") + return + d_submission = {} d_watchlist_tickers = {} l_watchlist_links = list() @@ -667,6 +691,12 @@ def wsb_community(l_args): password=cfg.API_REDDIT_PASSWORD, ) + try: + praw_api.user.me() + except Exception: + print("REDDIT API Keys are incorrect\n") + return + d_submission = {} l_watchlist_links = list() From 5c8c489986425cd552838ad349444224cdd1e24a Mon Sep 17 00:00:00 2001 From: didier Date: Mon, 15 Mar 2021 21:51:10 +0000 Subject: [PATCH 2/4] Add stockanalysis.com to research menu --- gamestonk_terminal/res_menu.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gamestonk_terminal/res_menu.py b/gamestonk_terminal/res_menu.py index cb6b31c8df3..52c4d0b8092 100644 --- a/gamestonk_terminal/res_menu.py +++ b/gamestonk_terminal/res_menu.py @@ -34,6 +34,7 @@ def print_research(s_ticker, s_start, s_interval): print(" zacks www.zacks.com") print(" macrotrends www.macrotrends.net") print(" newsfilter www.newsfilter.io") + print(" stockanalysis www.stockanalysis.com") print("") print(" resources trading analysis, tips and research") print("") @@ -66,6 +67,7 @@ def res_menu(s_ticker, s_start, s_interval): "macrotrends", "newsfilter", "resources", + "stockanalysis", ], ) @@ -158,6 +160,9 @@ def res_menu(s_ticker, s_start, s_interval): elif ns_known_args.cmd == "newsfilter": webbrowser.open(f"https://newsfilter.io/search?query={s_ticker}") + elif ns_known_args.cmd == "stockanalysis": + webbrowser.open(f"https://stockanalysis.com/stocks/{s_ticker}") + elif ns_known_args.cmd == "resources": # webbrowser.open(f"https://www.tradinganalysisresources.com/2020/05/free-references-and-resources.html") webbrowser.open( From f49c0f9a8a211f081bc0051641aa7a458959c614 Mon Sep 17 00:00:00 2001 From: DidierRLopes Date: Mon, 15 Mar 2021 22:15:09 +0000 Subject: [PATCH 3/4] Update README.md --- README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 826881e6435..6ce07d4d5f2 100644 --- a/README.md +++ b/README.md @@ -65,18 +65,22 @@
  • Contributing
  • License
  • Disclaimer
  • -
  • Contact
  • +
  • Contacts
  • Acknowledgments
  • ## About The Project -How it started: -"Gamestonk Terminal is an awesome stock and crypto market terminal that has been developed for fun, while I saw my GME shares tanking. But hey, I like the stock 💎🙌." +**How it started:** -How it's going: -u/schoen: _(...) I think people have upvoted this so much because it's an initial version of a single person's passion project that manages to put a whole bunch of financial information at your fingertips. With an active community, it could easily grow and grow and grow in functionality._ +Gamestonk Terminal is an awesome stock and crypto market terminal that has been developed for fun, while I saw my GME shares tanking. But hey, I like the stock 💎🙌. + +**How it's going:** + +Gamestonk Terminal provides a modern Python-based integrated environment for investment research, that allows the average joe retail trader to leverage state-of-the-art Data Science and Machine Learning technologies. + +As a modern Python-based environment, GamestonkTerminal opens access to numerous Python data libraries in Data Science (Pandas, Numpy, Scipy, Jupyter), Machine Learning (Pytorch, Tensorflow, Sklearn, Flair), and Data Acquisition (Beautiful Soup, and numerous third-party APIs). ## Getting Started @@ -258,12 +262,15 @@ Welcome to the club, and feel free to support the developers behind this amazing Distributed under the MIT License. See [LICENSE](https://github.com/DidierRLopes/GamestonkTerminal/blob/main/LICENSE) for more information. ## Disclaimer + "A few things I am not. I am not a cat. I am not an institutional investor, nor am I a hedge fund. I do not have clients and I do not provide personalized investment advice for fees or commissions." DFV -## Contact +## Contacts [Didier Rodrigues Lopes](https://www.linkedin.com/in/didier-lopes/) - dro.lopes@campus.fct.unl.pt +[Artem Veremy](https://www.linkedin.com/in/veremey/) - artem@veremey.net + ## Acknowledgments * [VICE article](https://www.vice.com/en/article/qjp9vp/gamestonk-terminal-is-a-diy-meme-stock-version-of-bloomberg-terminal) From 7f2ad2e8498d2a917fd55621f99155543286536c Mon Sep 17 00:00:00 2001 From: didier Date: Mon, 15 Mar 2021 22:27:13 +0000 Subject: [PATCH 4/4] pylint too many branches complain --- gamestonk_terminal/res_menu.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gamestonk_terminal/res_menu.py b/gamestonk_terminal/res_menu.py index 52c4d0b8092..f887c83e1ae 100644 --- a/gamestonk_terminal/res_menu.py +++ b/gamestonk_terminal/res_menu.py @@ -40,6 +40,7 @@ def print_research(s_ticker, s_start, s_interval): print("") +# pylint: disable=too-many-branches def res_menu(s_ticker, s_start, s_interval): # Add list of arguments that the research parser accepts res_parser = argparse.ArgumentParser(add_help=False, prog="discovery")