real time updating during continuous scrolling added

This commit is contained in:
Neythen
2021-05-06 19:23:17 +01:00
parent 3f13931f13
commit 18841c817f
3 changed files with 18 additions and 8 deletions

View File

@@ -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