diff options
Diffstat (limited to 'trade.py')
-rw-r--r-- | trade.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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. |