From 9e9b21015c546c798a00d8674ae017013dbd2882 Mon Sep 17 00:00:00 2001 From: uvok Date: Tue, 15 Apr 2025 12:19:46 +0200 Subject: Format total amount in Trade --- trade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})" -- cgit v1.2.3