Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rtscli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down