SimpleStockData/example1.py
2023-11-30 21:28:15 +01:00

15 lines
439 B
Python

from SimpleStockData import SimpleStockData
ssd = SimpleStockData(["BAS.DE", "AMZN"], "2023-11-20", "2023-11-24", "EUR")
print(ssd.get_info(0))
print(ssd.get_info(0, "address1"))
print(ssd.get_info(0, "country"))
print(ssd.get_info(0, "currency"))
print(ssd.get_info(0, "website"))
print()
print(ssd.get_info(1))
print(ssd.get_info(1, "currency"))
print(ssd.get_info(1, "website"))
print(ssd.get_history(0, "1h"))
print(ssd._exchange_df)