From 070c9ead3a84db56b27c2b06746cd5a53a53da1c Mon Sep 17 00:00:00 2001 From: Florian Kellermann Date: Sat, 7 May 2022 19:42:28 +0200 Subject: [PATCH] Also working for us isin now --- telegram_bot/shares/share_fetcher.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/telegram_bot/shares/share_fetcher.py b/telegram_bot/shares/share_fetcher.py index f24f6c4..ca1d9e7 100644 --- a/telegram_bot/shares/share_fetcher.py +++ b/telegram_bot/shares/share_fetcher.py @@ -19,7 +19,7 @@ def get_share_price(str_search_for): """ search_result = investpy.search_quotes(text=str_search_for, products=['stocks'], - countries=['germany'], n_results=1) + countries=['germany', 'united states'], n_results=1) currency = str(search_result.retrieve_currency()) @@ -42,7 +42,7 @@ def get_share_price_no_currency(str_search_for): """ search_result = investpy.search_quotes(text=str_search_for, products=['stocks'], - countries=['germany'], n_results=1) + countries=['germany', 'united states'], n_results=1) recent_data = pandas.DataFrame(search_result.retrieve_recent_data()) @@ -53,9 +53,9 @@ def get_share_price_no_currency(str_search_for): def get_share_information(str_search_for): search_result = investpy.search_quotes(text=str_search_for, products=['stocks'], - countries=['germany'], n_results=1) + countries=['germany', 'united states'], n_results=1) str_return = "Company: " + search_result.name + "\nSymbol: " + search_result.symbol + "\nCurrent Price/Share: " + get_share_price(str_search_for) return str_return - + \ No newline at end of file