From 5d75d0d635c065b2b36e0ae5e4f95c9d562c8cf9 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Mon, 26 Feb 2024 08:14:16 -0800 Subject: [PATCH] Remove time zone information from entry time in order to facilitate database lookups where the timestamp is stored without this information --- iron_condor_trade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iron_condor_trade.py b/iron_condor_trade.py index a7ad803..3c9eec6 100644 --- a/iron_condor_trade.py +++ b/iron_condor_trade.py @@ -7,5 +7,5 @@ class IronCondorTrade: def __init__(self, symbol: str, target: float, entry_time: datetime): self.symbol = symbol self.target = target - self.entry_time = entry_time + self.entry_time = entry_time.replace(tzinfo = None) self.strategy = iron_condor_strategy(target) \ No newline at end of file