diff options
author | uvok | 2025-04-15 12:19:46 +0200 |
---|---|---|
committer | uvok | 2025-04-15 12:19:46 +0200 |
commit | 9e9b21015c546c798a00d8674ae017013dbd2882 (patch) | |
tree | d9d3d5928bbc388bf78d52a4dcfa6873b456fe3a /trade.py | |
parent | 4543d2a64c50e9234b969b9fa0bff3d5b7bf665d (diff) |
Format total amount in Trade
Diffstat (limited to 'trade.py')
-rw-r--r-- | trade.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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})" |