diff options
author | uvok | 2025-04-14 10:43:35 +0200 |
---|---|---|
committer | uvok | 2025-04-14 10:43:35 +0200 |
commit | ceedc4c3c19da7f01e1c315cb5c41bf4a4c59672 (patch) | |
tree | 67e3a819d8dbadba7434906246fdd7da7b5cc892 /trade.py | |
parent | eb1feb5219bab8398b53f5d80df4f901366b0b59 (diff) |
Split files, add zest
Diffstat (limited to 'trade.py')
-rw-r--r-- | trade.py | 8 |
1 files changed, 8 insertions, 0 deletions
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})" |