mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-15 23:06:40 +00:00
Merge branch 'master' of gitlab.com:simple-stock-bots/simple-telegram-stock-bot
This commit is contained in:
commit
0b887b7042
@ -195,6 +195,11 @@ _Donations can only be made in a chat directly with @simplestockbot_
|
||||
if response.status_code == 200:
|
||||
IEXData = response.json()
|
||||
|
||||
try: # Some symbols dont return if the market is open
|
||||
IEXData["isUSMarketOpen"]
|
||||
except KeyError:
|
||||
IEXData["isUSMarketOpen"] = True
|
||||
|
||||
if (
|
||||
IEXData["isUSMarketOpen"]
|
||||
or (IEXData["extendedChangePercent"] is None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user