real time updating during continuous scrolling added
This commit is contained in:
@@ -9,7 +9,7 @@ sandboxAPIkey = "sandbox_c24qddqad3ickpckgg8g"
|
||||
finnhubClient = finnhub.Client(api_key=APIkey)
|
||||
|
||||
NY_zone = pytz.timezone('America/New_York')
|
||||
NY_time = datetime.now(NY_zone)
|
||||
|
||||
|
||||
opening = NY_time.replace(hour=9, minute=30, second=0, microsecond=0)
|
||||
closing = NY_time.replace(hour=16, minute=0, second=0, microsecond=0)
|
||||
@@ -19,6 +19,8 @@ closing = NY_time.replace(hour=16, minute=0, second=0, microsecond=0)
|
||||
|
||||
|
||||
def getStockPrices():
|
||||
NY_time = datetime.now(NY_zone)
|
||||
|
||||
|
||||
if opening < NY_time < closing:
|
||||
apiCalledError = False
|
||||
|
Reference in New Issue
Block a user