summaryrefslogtreecommitdiff
path: root/trade.py
blob: f4f08701e5c52b27f90b41fe6d6b19cc6cc7d08a (plain)
1
2
3
4
5
6
7
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})"