From d36322d0a267c583a18b4640fbf94546bbb53cd5 Mon Sep 17 00:00:00 2001 From: socks Date: Tue, 9 Mar 2021 01:06:55 +0000 Subject: [PATCH] Changed the maths a bit for the total delta thing --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index f4b397a..a0474d4 100644 --- a/main.py +++ b/main.py @@ -70,7 +70,8 @@ async def portfolio(ctx): # TODO: Raises ZeroDivisionError if user has no stocks 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(