From 063609de19a6f7e97c68f7da1e5ca422449349e9 Mon Sep 17 00:00:00 2001 From: uvok Date: Fri, 18 Apr 2025 19:27:01 +0200 Subject: Add timestamp prop and fix queue to use it --- trade.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'trade.py') diff --git a/trade.py b/trade.py index 30a0030..7c2ecc7 100644 --- a/trade.py +++ b/trade.py @@ -105,6 +105,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: """ -- cgit v1.2.3