1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-06-16 15:17:28 +00:00

small formatting change

This commit is contained in:
Anson 2021-08-04 22:52:52 -07:00
parent 390a6199ad
commit 6d2b9309d7

View File

@ -209,7 +209,7 @@ class IEX_Symbol:
message = f"The current stock price of {IEXData['companyName']} is $**{IEXData['latestPrice']}**" message = f"The current stock price of {IEXData['companyName']} is $**{IEXData['latestPrice']}**"
else: else:
message = ( message = (
f"{IEXData['companyName']} closed at $**{IEXData['latestPrice']}**, with a change of {change}" f"{IEXData['companyName']} closed at $**{IEXData['latestPrice']}** with a change of {change}%,"
+ f" after hours _(15 minutes delayed)_ the stock price is $**{IEXData['extendedPrice']}**" + f" after hours _(15 minutes delayed)_ the stock price is $**{IEXData['extendedPrice']}**"
) )
if change := IEXData.get("extendedChangePercent", 0): if change := IEXData.get("extendedChangePercent", 0):