You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .change field is wrong for some symbols when running the program after hours, returning the last stock price. For example, on Sunday evening, running
from datetime import datetime
from wallstreet import Stock, Call, Put
print("time:", datetime.now().strftime("%A, %Y-%m-%d %H:%M:%S"))
for symbol in ["SPY", "AAPL"]:
s = Stock(symbol)
print("\nsymbol:", symbol)
print("s.price:", s.price)
print("s.change:", s.change)
print("s.last_trade:", s.last_trade)
The .change field is wrong for some symbols when running the program after hours, returning the last stock price. For example, on Sunday evening, running
gave
The text was updated successfully, but these errors were encountered: