SimpleStockData/example1.py

15 lines
409 B
Python

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