From f492c81397bac7b264ef5a8b9031b84eb82fa38b Mon Sep 17 00:00:00 2001 From: Florian Kellermann Date: Sat, 7 May 2022 19:38:17 +0200 Subject: [PATCH] removed __main__ and changes comments --- telegram_bot/shares/share_fetcher.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/telegram_bot/shares/share_fetcher.py b/telegram_bot/shares/share_fetcher.py index f6d0333..f24f6c4 100644 --- a/telegram_bot/shares/share_fetcher.py +++ b/telegram_bot/shares/share_fetcher.py @@ -13,10 +13,9 @@ def get_share_price(str_search_for): """get stock price per share for company name or isin or symbol Args: - str_search_for (string): search for this string/isi + str_search_for (string): search for this string/isin - Returns: - _type_: _description_ + Returns: none """ search_result = investpy.search_quotes(text=str_search_for, products=['stocks'], @@ -34,13 +33,12 @@ def get_share_price(str_search_for): def get_share_price_no_currency(str_search_for): - """_summary_ + """get stock price per share for company name or isin or symbol no currency Args: - str_search_for (_type_): _description_ + str_search_for (string): search for this string/isin - Returns: - _type_: _description_ + Returns: none """ search_result = investpy.search_quotes(text=str_search_for, products=['stocks'], @@ -61,8 +59,3 @@ def get_share_information(str_search_for): return str_return - - -if __name__ == "__main__": - print(get_share_price("AAPL")) - print(get_share_information("AAPL")) \ No newline at end of file