easy pr, adding a link to the share price on market watch for the graph
This commit is contained in:
parent
6892c9232b
commit
16997b1b88
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user