Merge branch 'stock' into 'master'

fixed?

See merge request ldooks/dragon-bot!49
This commit is contained in:
Luke Robles 2017-09-25 03:14:36 +00:00
commit 737f306410

View File

@ -16,6 +16,6 @@ def get_stock(share_name):
share = yahoo_finance.Share(share_name)
open_price = share.get_open()
curr_price = share.get_price()
change = curr_price - open_price
return '```Stock: {}\n\nOpen: ${}\nCurrently: ${}\nChange:```'.format(
share_name.upper(), open_price, curr_price)
change = float(curr_price) - float(open_price)
return '```Stock: {}\n\nOpen: ${}\nCurrently: ${}\nChange: ${}```'.format(
share_name.upper(), open_price, curr_price, change)