removed __main__ and changes comments

This commit is contained in:
Florian Kellermann 2022-05-07 19:38:17 +02:00
parent a38d0c6e59
commit f492c81397

View File

@ -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"))