From 16997b1b8814d247bdc8b2e0598b17bd3a7feff2 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Thu, 21 Oct 2021 13:23:26 -0700 Subject: [PATCH] easy pr, adding a link to the share price on market watch for the graph --- app/stock.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/stock.py b/app/stock.py index f8c262ac..57e787db 100755 --- a/app/stock.py +++ b/app/stock.py @@ -41,8 +41,9 @@ def get_stock(share_name): embed.add_field(name='Day Low', value="$%s" % request['regularMarketDayLow'], inline=False) embed.add_field(name='Day High', value="$%s" % request['regularMarketDayHigh'], inline=False) embed.add_field(name='Day\'s Range', value=request['regularMarketDayRange'], inline=False) - embed.add_field(name='Market Cap', value="{:,}".format(request['marketCap']), inline=False) - embed.add_field(name='Shares Outstanding', value="{:,}".format(request['sharesOutstanding']), inline=False) + embed.add_field(name='Market Cap', value="{:,}".format(request['marketCap']), inline=False) + embed.add_field(name='Shares Outstanding', value="{:,}".format(request['sharesOutstanding']), inline=False) + embed.add_field(name='Link to stock price', value="https://www.marketwatch.com/investing/stock/%s" % share_name, inline=False) embed.set_footer(text="Pulled from https://finance.yahoo.com\nRemember, stocks can go up 100000%, but they can only go down 100%", icon_url='https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/emojidex/112/chart-with-downwards-trend_1f4c9.png') return embed