Changed the maths a bit for the total delta thing

This commit is contained in:
socks 2021-03-09 01:06:55 +00:00
parent c2de58039b
commit d36322d0a2

View file

@ -70,7 +70,8 @@ async def portfolio(ctx):
# TODO: Raises ZeroDivisionError if user has no stocks # TODO: Raises ZeroDivisionError if user has no stocks
total_delta = 100 * ( total_delta = 100 * (
(current_portfolio_total_value / yesterday_portfolio_total_value) - 1 (current_portfolio_total_value - yesterday_portfolio_total_value)
/ yesterday_portfolio_value
) )
data.append( data.append(