summaryrefslogtreecommitdiff
path: root/trade.py
diff options
context:
space:
mode:
Diffstat (limited to 'trade.py')
-rw-r--r--trade.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/trade.py b/trade.py
index 30a0030..7c2ecc7 100644
--- a/trade.py
+++ b/trade.py
@@ -106,6 +106,16 @@ class Trade:
return self.__timestamp.split(" ")[0]
@property
+ def timestamp(self) -> str:
+ """
+ Get the timestamp of the trade.
+
+ Returns:
+ str: The trade timestamp as a string.
+ """
+ return self.__timestamp
+
+ @property
def price_per_coin(self) -> Decimal:
"""
Calculate the price per coin based on the total cost and current amount.