Changed the maths a bit for the total delta thing
This commit is contained in:
parent
c2de58039b
commit
d36322d0a2
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -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(
|
||||||
|
|
Loading…
Add table
Reference in a new issue