From ceedc4c3c19da7f01e1c315cb5c41bf4a4c59672 Mon Sep 17 00:00:00 2001 From: uvok Date: Mon, 14 Apr 2025 10:43:35 +0200 Subject: Split files, add zest --- trade.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 trade.py (limited to 'trade.py') diff --git a/trade.py b/trade.py new file mode 100644 index 0000000..f4f0870 --- /dev/null +++ b/trade.py @@ -0,0 +1,8 @@ +class Trade: + def __init__(self, amount: float, total_cost: float, date: str) -> None: + self.amount: float = amount + self.total_cost: float = total_cost + self.date: str = date + + def __repr__(self) -> str: + return f"Trade(amount={self.amount}, total_cost={self.total_cost}, date={self.date})" -- cgit v1.2.3