Added some docs about using SimpleStockData as a library. Some small refactorings.
This commit is contained in:
12
examples/info_and_history_example.py
Normal file
12
examples/info_and_history_example.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from SimpleStockData import SSD
|
||||
|
||||
ssd = SSD(["RHM.DE", "BAS.DE", "AZN.L"], "2024-01-02", "2024-01-18", "EUR")
|
||||
|
||||
print(ssd.get_info(0))
|
||||
print(ssd.get_history(0))
|
||||
print("\n---\n")
|
||||
print(ssd.get_info(1))
|
||||
print(ssd.get_history(1))
|
||||
print("\n---\n")
|
||||
print(ssd.get_info(2))
|
||||
print(ssd.get_history(2))
|
Reference in New Issue
Block a user