SimpleStockData/example1.py

15 lines
410 B
Python

from SimpleStockData import SimpleStockData
ssd = SimpleStockData(["BAS.DE", "AMZN"])
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, "2023-11-24", "2023-11-25", "1h"))