diff --git a/rtscli.py b/rtscli.py index d5f5b1c..1070aed 100644 --- a/rtscli.py +++ b/rtscli.py @@ -77,7 +77,7 @@ def calculate_gain(price_in, current_price, shares): gain_per_share = float(current_price) - float(price_in) gain_percent = round(gain_per_share / float(price_in) * 100, 3) - return gain_per_share * int(shares), gain_percent + return round(gain_per_share * int(shares), 2), gain_percent def get_update(): results = []