summaryrefslogtreecommitdiff
path: root/trade.py
diff options
context:
space:
mode:
authoruvok2025-04-15 12:19:46 +0200
committeruvok2025-04-15 12:19:46 +0200
commit9e9b21015c546c798a00d8674ae017013dbd2882 (patch)
treed9d3d5928bbc388bf78d52a4dcfa6873b456fe3a /trade.py
parent4543d2a64c50e9234b969b9fa0bff3d5b7bf665d (diff)
Format total amount in Trade
Diffstat (limited to 'trade.py')
-rw-r--r--trade.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/trade.py b/trade.py
index c274463..1a39b2d 100644
--- a/trade.py
+++ b/trade.py
@@ -94,4 +94,4 @@ class Trade:
Returns:
str: A formatted string displaying the trade details.
"""
- return f"Trade(amount={self.amount}, price_per_coin={self.price_per_coin:.2f}, total_cost={self.total_cost:.2f}, date={self.date})"
+ return f"Trade(amount={self.amount:.2f}, price_per_coin={self.price_per_coin:.2f}, total_cost={self.total_cost:.2f}, date={self.date})"